|
@ -143,9 +143,9 @@ const onChange = (field, cur, formRef)=>{ |
|
|
} |
|
|
} |
|
|
const inputNumberChange = (field, index, row, val) => { |
|
|
const inputNumberChange = (field, index, row, val) => { |
|
|
console.log('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'] |
|
|
row['allocationPrice'] = row['beforeTaxAmount']/row['qty'] - row['price'] |
|
@ -156,6 +156,9 @@ const inputNumberChange = (field, index, row, val) => { |
|
|
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 |
|
|
// 税额:taxAmount 未税价格*税率/100,四舍五入保留2位小数 |
|
|
row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额 |
|
|
row['taxAmount'] = (row['beforeTaxAmount'] * formRef.value.formRef.formModel['taxRate'])/100 //含税金额 |
|
|
|
|
|
|
|
|
|
|
|
// 含税金额 = 未税价格+税额,四舍五入保留2位小数 |
|
|
|
|
|
row['afterTaxAmount'] = row['beforeTaxAmount'] + row['taxAmount'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const flag = ref(false) |
|
|
const flag = ref(false) |
|
|