From 4313ec6848db0d4c2a1b0028e05ec7711155b288 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 6 Dec 2024 15:55:44 +0800 Subject: [PATCH] =?UTF-8?q?YT-1588=E5=88=9B=E5=BB=BA=E5=BC=80=E7=A5=A8?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=EF=BC=8C=E6=9C=AA=E7=A8=8E=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=9B=9B=E8=88=8D=E4=BA=94=E5=85=A5=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=AA=E7=A8=8E=E9=87=91=E9=A2=9D=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=90=AB=E7=A8=8E=E9=87=91=E9=A2=9D=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerSaleInvoiceBasicForm.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue index 3b990c2b6..f063c9af4 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue @@ -143,9 +143,9 @@ const onChange = (field, cur, formRef)=>{ } const inputNumberChange = (field, index, row, val) => { console.log('inputNumberChange',field, index, row, val) + console.log(row['beforeTaxAmount']) + console.log(row['taxAmount']) - // 含税金额 = 未税价格+税额,四舍五入保留2位小数 - row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount'] // 模具分摊单价 默认从模具分摊对账单带出,未税金额修改后重新计算,等于未税金额/数量-销售单价 row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price'] @@ -155,6 +155,9 @@ const inputNumberChange = (field, index, row, val) => { // 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额 + + // 含税金额 = 未税价格+税额,四舍五入保留2位小数 + row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount'] }