From 435b39bb2035d2f73f51d71d6c7d0ec8c5286ef5 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 20 Nov 2024 10:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerSaleInvoiceBasicForm.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue index 1b5c63917..b5c6e245b 100644 --- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue +++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue @@ -83,8 +83,6 @@ const onChange = (field, cur, formRef)=>{ } const inputNumberChange = (field, index, row, val) => { console.log('inputNumberChange',field, index, row, val) - // 合计单价 = 销售单价 + 模具分摊单价 - row['sumPrice'] = row['price'] + row['allocationPrice'] // 含税金额 = 未税价格+税额,四舍五入保留2位小数 row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount'] @@ -92,6 +90,9 @@ const inputNumberChange = (field, index, row, val) => { // 模具分摊单价 默认从模具分摊对账单带出,未税金额修改后重新计算,等于未税金额/数量-销售单价 row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price'] + // 合计单价 = 销售单价 + 模具分摊单价 + row['sumPrice'] = row['price'] + row['allocationPrice'] + // 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额