From 4917d3560c19c3934b2631c469e661ad4a1e0c1b Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 5 Dec 2024 10:49:11 +0800 Subject: [PATCH] =?UTF-8?q?YT-1530=E5=88=9B=E5=BB=BA=E5=BC=80=E7=A5=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=EF=BC=8C=E4=B8=BB=E6=9C=AA=E7=A8=8E=E9=87=91?= =?UTF-8?q?=E9=A2=9D=3D=E6=89=80=E6=9C=89=E6=98=8E=E7=BB=86=E8=A1=8C?= =?UTF-8?q?=E4=B8=AD=E6=9C=AA=E7=A8=8E=E9=87=91=E9=A2=9D=E7=9A=84=E7=9B=B8?= =?UTF-8?q?=E5=8A=A0=E4=B9=8B=E5=92=8C=EF=BC=8C=E5=9B=9B=E8=88=8D=E4=BA=94?= =?UTF-8?q?=E5=85=A5=E4=BF=9D=E7=95=99=E4=B8=A4=E4=BD=8D=E5=B0=8F=E6=95=B0?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerSaleInvoiceBasicForm.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue index 37b382c1d..e1c5026cd 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue @@ -68,11 +68,7 @@ (formRef, formModel, tableData) => { const { taxRate = 0 } = formModel // 1、主数据未税金额 mainBeforeTaxAmount : 所有明细行未税金额的和 - let mainBeforeTaxAmount = tableData.reduce( - (prev, item) => - prev + Number(item['beforeTaxAmount']), - 0 - ) + let mainBeforeTaxAmount = tableData.reduce((prev, item) =>prev + Number(item['beforeTaxAmount'].toFixed(2)),0).toFixed(2) // 2.主数据税额 mainTaxAmount = 未税金额*税率/100 保留两位小数 let mainTaxAmount = Number(Number(mainBeforeTaxAmount*taxRate*0.01).toFixed(2)) const sumObject = {