ソースを参照

合同付款bug修改

asd26269546 2 年 前
コミット
8ea876b157

+ 13 - 13
src/view/material-manege/pay/modals/apply-pass-form.vue

@@ -61,7 +61,7 @@
         <div class="col" style="flex: none">
           <div class="label">实际支付金额:</div>
           <div class="value">
-            <div style="width: 95px;color: red;">{{ data.actAmount || 0 }}元</div>
+            <div style="width: 95px;color: red;">{{(data.payAmount * 100 - data.backAmount* 100 - data.expressAmount* 100 - data.totalBalance * 100)/100}}元</div>
           </div>
           <span style="padding: 0 10px">&nbsp;&nbsp;&nbsp;&nbsp;</span>
         </div>
@@ -112,20 +112,20 @@ export default {
     }
   },
   computed: {
-    payAmount () {
-      return this.data.payAmount
-    },
-    totalBalance () {
-      return this.data.totalBalance
-    }
+    // payAmount () {
+    //   return this.data.payAmount
+    // },
+    // totalBalance () {
+    //   return this.data.totalBalance
+    // }
   },
   watch: {
-    payAmount () {
-      this.$set(this.data, 'actAmount', (this.data.payAmount - this.data.totalBalance).toFixed(2))
-    },
-    totalBalance () {
-      this.$set(this.data, 'actAmount', (this.data.payAmount - this.data.totalBalance).toFixed(2))
-    },
+    // payAmount () {
+    //   this.$set(this.data, 'actAmount', (this.data.payAmount - this.data.totalBalance).toFixed(2))
+    // },
+    // totalBalance () {
+    //   this.$set(this.data, 'actAmount', (this.data.payAmount - this.data.totalBalance).toFixed(2))
+    // },
     value: {
       handler (n) {
         this.modal = n

+ 1 - 0
src/view/material-manege/pay/pay-detail.vue

@@ -469,6 +469,7 @@ export default {
         }).then(res => {
           if (res.code === 0) {
             this.currentItem = { ...res.result, payBillId: item.payBillId, flowCheckId: item.flowCheckId }
+            console.log(res.result)
             this.applyShow = true
           }
         })