|
@@ -67,13 +67,13 @@ export default {
|
|
|
})
|
|
|
if(res.code == 200){
|
|
|
this.orderId = res.data.orderId
|
|
|
- if(this.ruleForm.paymentType == 2) { // 现金支付
|
|
|
+ if(this.rebookForm.paymentType == 2) { // 现金支付
|
|
|
this.gotoCashPayFun(this.orderId)
|
|
|
- }else if(this.ruleForm.paymentType == 3) { // 对公支付
|
|
|
+ }else if(this.rebookForm.paymentType == 3) { // 对公支付
|
|
|
this.gotoCorporatePayFun(this.orderId)
|
|
|
- }else if(this.ruleForm.paymentType == 4){ // 账户余额
|
|
|
+ }else if(this.rebookForm.paymentType == 4){ // 账户余额
|
|
|
this.gotoBalancePayFun(this.orderId)
|
|
|
- }else if(this.ruleForm.paymentType == 5){ // 授信余额
|
|
|
+ }else if(this.rebookForm.paymentType == 5){ // 授信余额
|
|
|
this.gotoQuotaPayFun(this.orderId)
|
|
|
}else {
|
|
|
// 扫码支付
|
|
@@ -86,6 +86,7 @@ export default {
|
|
|
this.payStatus = 1
|
|
|
}
|
|
|
} catch (error) {
|
|
|
+ console.error(error)
|
|
|
this.$message.error('生成订单失败!!!');
|
|
|
this.loading = false
|
|
|
this.payStatus = 1
|
|
@@ -129,7 +130,7 @@ export default {
|
|
|
this.loadingText = "订单入库中..."
|
|
|
let res = await gotoCorporatePay({
|
|
|
"orderId": orderId, // 订单编号-提交订单返回
|
|
|
- "payAmount": this.ruleForm.realPrice
|
|
|
+ "payAmount": this.rebookForm.realPrice
|
|
|
})
|
|
|
if(res.code == 200){
|
|
|
if(this.payTime){
|
|
@@ -211,7 +212,7 @@ export default {
|
|
|
this.loadingText = "订单入库中..."
|
|
|
let res = await gotoCashPay({
|
|
|
"orderId": orderId, // 订单编号-提交订单返回
|
|
|
- "payAmount": this.ruleForm.realPrice
|
|
|
+ "payAmount": this.rebookForm.realPrice
|
|
|
})
|
|
|
if(res.code == 200){
|
|
|
if(this.payTime){
|
|
@@ -254,7 +255,7 @@ export default {
|
|
|
this.orderInfoCancelFun()
|
|
|
return
|
|
|
}
|
|
|
- if(this.ruleForm.paymentType == 2){
|
|
|
+ if(this.rebookForm.paymentType == 2){
|
|
|
this.loadingText = "订单入库中..."
|
|
|
}else {
|
|
|
this.loadingText = "订单支付中..."
|
|
@@ -269,7 +270,7 @@ export default {
|
|
|
if(this.payTime){
|
|
|
clearInterval(this.payTime)
|
|
|
}
|
|
|
- if(this.ruleForm.paymentType == 2){
|
|
|
+ if(this.rebookForm.paymentType == 2){
|
|
|
this.$message.error('"订单入库中失败"');
|
|
|
this.loading = false
|
|
|
this.payStatus = 3
|
|
@@ -289,7 +290,7 @@ export default {
|
|
|
if(this.payTime){
|
|
|
clearInterval(this.payTime)
|
|
|
}
|
|
|
- if(this.ruleForm.paymentType == 2){
|
|
|
+ if(this.rebookForm.paymentType == 2){
|
|
|
this.$message({
|
|
|
message: '订单入库成功',
|
|
|
type: 'success'
|
|
@@ -318,7 +319,7 @@ export default {
|
|
|
if(this.payTime){
|
|
|
clearInterval(this.payTime)
|
|
|
}
|
|
|
- if(this.ruleForm.paymentType == 2){
|
|
|
+ if(this.rebookForm.paymentType == 2){
|
|
|
this.$message.error('"订单入库中失败"');
|
|
|
this.loading = false
|
|
|
this.payStatus = 3
|
|
@@ -338,7 +339,7 @@ export default {
|
|
|
clearInterval(this.payTime)
|
|
|
}
|
|
|
|
|
|
- if(this.ruleForm.paymentType == 2){
|
|
|
+ if(this.rebookForm.paymentType == 2){
|
|
|
this.$message.error('"订单入库中失败"');
|
|
|
this.loading = false
|
|
|
this.payStatus = 3
|