From faf571013313005ae10c683dd7d9f5fb44fafadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 2 Jun 2021 23:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=A2=E5=8A=A1=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E6=95=B0=E5=80=BC=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/bill/mixins/BillModalMixin.js | 1 - jshERP-web/src/views/financial/modules/GiroModal.vue | 3 ++- jshERP-web/src/views/financial/modules/ItemOutModal.vue | 3 ++- jshERP-web/src/views/financial/modules/MoneyOutModal.vue | 2 +- jshERP-web/src/views/report/VendorAccount.vue | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index 45b2ad28..eebb4291 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -166,7 +166,6 @@ export const BillModalMixin = { //单元值改变一个字符就触发一次 onValueChange(event) { let that = this - debugger const { type, row, column, value, target } = event let param,operNumber,unitPrice,taxUnitPrice,allPrice,taxRate,taxMoney,taxLastMoney switch(column.key) { diff --git a/jshERP-web/src/views/financial/modules/GiroModal.vue b/jshERP-web/src/views/financial/modules/GiroModal.vue index f91cac28..e8839e82 100644 --- a/jshERP-web/src/views/financial/modules/GiroModal.vue +++ b/jshERP-web/src/views/financial/modules/GiroModal.vue @@ -165,7 +165,8 @@ for(let item of detailArr){ totalPrice += item.eachAmount-0 } - billMain.totalPrice = totalPrice + billMain.totalPrice = 0-totalPrice + billMain.changeAmount = 0-billMain.changeAmount if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/financial/modules/ItemOutModal.vue b/jshERP-web/src/views/financial/modules/ItemOutModal.vue index efa9ff3c..c00ec5fd 100644 --- a/jshERP-web/src/views/financial/modules/ItemOutModal.vue +++ b/jshERP-web/src/views/financial/modules/ItemOutModal.vue @@ -177,7 +177,8 @@ for(let item of detailArr){ totalPrice += item.eachAmount-0 } - billMain.totalPrice = totalPrice + billMain.totalPrice = 0-totalPrice + billMain.changeAmount = 0-billMain.changeAmount if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/financial/modules/MoneyOutModal.vue b/jshERP-web/src/views/financial/modules/MoneyOutModal.vue index c58d4f5f..4971c79f 100644 --- a/jshERP-web/src/views/financial/modules/MoneyOutModal.vue +++ b/jshERP-web/src/views/financial/modules/MoneyOutModal.vue @@ -168,7 +168,7 @@ for(let item of detailArr){ totalPrice += item.eachAmount-0 } - billMain.totalPrice = totalPrice + billMain.totalPrice = 0-totalPrice if(this.model.id){ billMain.id = this.model.id } diff --git a/jshERP-web/src/views/report/VendorAccount.vue b/jshERP-web/src/views/report/VendorAccount.vue index 3138d2da..de207d49 100644 --- a/jshERP-web/src/views/report/VendorAccount.vue +++ b/jshERP-web/src/views/report/VendorAccount.vue @@ -165,6 +165,7 @@ let moneyBeginNeedGet = beginNeedGet - 0; //期初应收 let moneyBeginNeedPay = beginNeedPay - 0; //期初应付 money = (money + moneyBeginNeedGet - moneyBeginNeedPay).toFixed(2); + money = 0-money; if(type === 'first') { this.firstTotal = prefix + money + "," } else if(type === 'last') {