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'] }