|
@ -56,27 +56,11 @@ |
|
|
} |
|
|
} |
|
|
// 2.主数据税额 mainTaxAmount = 未税金额*税率/100 保留两位小数 |
|
|
// 2.主数据税额 mainTaxAmount = 未税金额*税率/100 保留两位小数 |
|
|
let mainTaxAmount = Number(beforeTaxAmount*taxRate*0.01).toFixed(2) |
|
|
let mainTaxAmount = Number(beforeTaxAmount*taxRate*0.01).toFixed(2) |
|
|
// 4、主数据模具税额 moldTaxAmount = 累加后的模具未税金额*利率/100保留两位小数 |
|
|
|
|
|
let moldTaxAmount = Number(Number(moldUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2) |
|
|
|
|
|
// 6、主数据材料税额 materialsTaxAmount = 材料未税金额*税率/100 保留两位小数 |
|
|
|
|
|
let materialsTaxAmount = Number(Number(materialsUntaxedAmount) * Number(taxRate) * 0.01).toFixed(2) |
|
|
|
|
|
// 8、主数据模具税额 alreadyMoldTaxAmount = (已分摊品番数量*分摊单价)保留两位小数*税率)保留两位小数后汇总求和 |
|
|
|
|
|
let alreadyMoldTaxAmount = tableData.reduce((prev, item) => prev + Number((Number(item['allocationPrice']) * Number(item['qty']) * Number(taxRate) * 0.01).toFixed(2)), 0).toFixed(2) |
|
|
|
|
|
formRef.value.setValues({ |
|
|
formRef.value.setValues({ |
|
|
// 主数据税额 |
|
|
// 主数据税额 |
|
|
taxAmount:mainTaxAmount, |
|
|
taxAmount:mainTaxAmount, |
|
|
// 主数据价税合计金额:mainAdTaxAmount =未税金额+税额 |
|
|
// 主数据价税合计金额:mainAdTaxAmount =未税金额+税额 |
|
|
adTaxAmount: (beforeTaxAmount + parseFloat(taxAmount)).toFixed(2), |
|
|
adTaxAmount: (beforeTaxAmount + parseFloat(taxAmount)).toFixed(2), |
|
|
// 主数据模具税额 |
|
|
|
|
|
moldTaxAmount:moldTaxAmount, |
|
|
|
|
|
// 主数据-模具含税金额 = 模具未税金额+模具税额 |
|
|
|
|
|
moldTaxTotal: (Number(moldUntaxedAmount) + Number(moldTaxAmount)).toFixed(2), |
|
|
|
|
|
// 主数据-材料金额 |
|
|
|
|
|
materialsTaxAmount: materialsTaxAmount, |
|
|
|
|
|
// 主数据-材料含税金额= 材料未税金额+材料税额 |
|
|
|
|
|
materialsTaxTotal: (Number(materialsUntaxedAmount) + Number(materialsTaxAmount)).toFixed(2), |
|
|
|
|
|
// 主数据已分摊模具税额 |
|
|
|
|
|
alreadyMoldTaxAmount: alreadyMoldTaxAmount, |
|
|
|
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|