simple 5 жил өмнө
parent
commit
8b9306b675

+ 4 - 1
src/page/purchase/components/balance/balanceAdd.vue

@@ -490,6 +490,7 @@ export default {
           this.form.gyslxdh = Number(data.supplierTel);
           this.form.gyslxdh = Number(data.supplierTel);
           this.form.khh = data.depositBank;
           this.form.khh = data.depositBank;
           this.form.zh = data.accountNumber;
           this.form.zh = data.accountNumber;
+          this.form.gyszh = data.gpbcId;
           this.form.djlx = data.type;
           this.form.djlx = data.type;
           this.form.shr = data.receivedName;
           this.form.shr = data.receivedName;
           this.form.spzt = data.approvalState;
           this.form.spzt = data.approvalState;
@@ -548,6 +549,7 @@ export default {
         supplierTel: this.form.gyslxdh,
         supplierTel: this.form.gyslxdh,
         depositBank: this.form.khh,
         depositBank: this.form.khh,
         accountNumber: this.form.zh,
         accountNumber: this.form.zh,
+        gpbcId: this.form.gyszh,
         type: this.form.djlx,
         type: this.form.djlx,
         receivedName: this.form.shr,
         receivedName: this.form.shr,
         adjustmentPrice: this.form.tzje.toFixed(2),
         adjustmentPrice: this.form.tzje.toFixed(2),
@@ -625,6 +627,7 @@ export default {
         supplierTel: this.form.gyslxdh,
         supplierTel: this.form.gyslxdh,
         depositBank: this.form.khh,
         depositBank: this.form.khh,
         accountNumber: this.form.zh,
         accountNumber: this.form.zh,
+        gpbcId: this.form.gyszh,
         type: this.form.djlx,
         type: this.form.djlx,
         receivedName: this.form.shr,
         receivedName: this.form.shr,
         // recivedTel: this,
         // recivedTel: this,
@@ -707,7 +710,7 @@ export default {
     tableData(val) {
     tableData(val) {
       let num = 0;
       let num = 0;
       for (let item in val) {
       for (let item in val) {
-        num += val[item].totalPrice;
+        num += Number(val[item].totalPrice);
       }
       }
       this.form.total = Number(num).toFixed(2);
       this.form.total = Number(num).toFixed(2);
     }
     }