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') {