shish 1 rok temu
rodzic
commit
5ff3b2d13f
1 zmienionych plików z 11 dodań i 3 usunięć
  1. 11 3
      hdApp/src/admin/billing/affirm.vue

+ 11 - 3
hdApp/src/admin/billing/affirm.vue

@@ -561,16 +561,24 @@ export default {
       //售后付款单,只能走线下模式
       this.form.hasPay = 1
       this.form.payWay = this.forwardPayWay
-      this.confirmSubmit2()
+      this.toCommit()
     },
     confirmSubmit(){
       if(this.form.forward == 1){
         this.showForward()  
       }else{
-        this.confirmSubmit2()
+        if(Number(this.customInfo.balance)>Number(this.modifyPrice)){
+          //客户余额充值,只能使用余额支付
+          this.$util.confirmModal({content:'客户余额充足,请使用余额支付'},() => {
+            this.form.hasPay = 4
+            this.toCommit()
+          })
+        }else{
+          this.toCommit()
+        }
       }
     },
-    confirmSubmit2() {
+    toCommit() {
       let self = this;
       let name = '确认提交'
       if(this.form.hasPay == 0){