From ef587ae8f9ecfac4b51826c13fa16bb3283d7f2b Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Tue, 25 Mar 2025 21:08:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=8D=95=E6=8D=AE=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E5=8D=95=E4=BB=B7=E4=BF=9D=E7=95=994=E4=BD=8D=E5=B0=8F?= =?UTF-8?q?=E6=95=B0=EF=BC=8C=E8=A7=A3=E5=86=B3=E8=AE=A1=E7=AE=97=E7=B2=BE?= =?UTF-8?q?=E5=BA=A6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/bill/mixins/BillModalMixin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index 69c96a2bb..d984c1837 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -586,7 +586,7 @@ export const BillModalMixin = { operNumber = row.operNumber-0 //数量 taxRate = row.taxRate-0 //税率 allPrice = value-0 - unitPrice = (allPrice/operNumber).toFixed(2)-0 //单价 + unitPrice = (allPrice/operNumber).toFixed(4)-0 //单价 taxMoney =((taxRate*0.01)*allPrice).toFixed(2)-0 taxLastMoney = (allPrice + taxMoney).toFixed(2)-0 target.setValues([{rowKey: row.id, values: {unitPrice: unitPrice, taxMoney: taxMoney, taxLastMoney: taxLastMoney}}]) @@ -609,13 +609,13 @@ export const BillModalMixin = { taxLastMoney = value-0 taxRate = row.taxRate-0 //税率 if(taxRate) { - unitPrice = (taxLastMoney/operNumber/(1+taxRate*0.01)).toFixed(2)-0 + unitPrice = (taxLastMoney/operNumber/(1+taxRate*0.01)).toFixed(4)-0 allPrice = (unitPrice*operNumber).toFixed(2)-0 taxMoney =(taxLastMoney-allPrice).toFixed(2)-0 } else { //税率为0的情况,特殊处理 allPrice = taxLastMoney - unitPrice = (allPrice/operNumber).toFixed(2)-0 //单价 + unitPrice = (allPrice/operNumber).toFixed(4)-0 //单价 taxMoney = 0 } target.setValues([{rowKey: row.id, values: {unitPrice: unitPrice, allPrice: allPrice, taxMoney: taxMoney}}])