From 410f8862d7f6be7ac4db4675e5c5ea32f8f62844 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, 9 Nov 2022 22:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=9B=B6=E5=94=AE=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E5=92=8C=E9=9B=B6=E5=94=AE=E9=80=80=E8=B4=A7=E5=A4=9A?= =?UTF-8?q?=E9=80=89=E5=95=86=E5=93=81=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D?= =?UTF-8?q?=E6=94=B9=E5=8F=98=E5=8D=95=E6=8D=AE=E9=87=91=E9=A2=9D=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/bill/mixins/BillModalMixin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index 34c4c6d3..2b7716e3 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -370,8 +370,10 @@ export const BillModalMixin = { mObj.stock = mInfo.stock mArr.push(mObj) } + let allPriceTotal = 0 let taxLastMoneyTotal = 0 for (let j = 0; j < mArr.length; j++) { + allPriceTotal += mArr[j].allPrice-0 taxLastMoneyTotal += mArr[j].taxLastMoney-0 //组合和拆分单据给商品类型进行重新赋值 if(j===0) { @@ -381,7 +383,11 @@ export const BillModalMixin = { } } this.materialTable.dataSource = mArr - target.statisticsColumns.taxLastMoney = taxLastMoneyTotal + if(this.prefixNo ==='LSCK' || this.prefixNo ==='LSTH') { + target.statisticsColumns.allPrice = allPriceTotal + } else { + target.statisticsColumns.taxLastMoney = taxLastMoneyTotal + } that.autoChangePrice(target) }) } else {