From 2505c686ff4d2ed1b12d04cf137efb9f324c8696 Mon Sep 17 00:00:00 2001
From: zhang_li
Date: Wed, 30 Apr 2025 14:06:14 +0800
Subject: [PATCH] =?UTF-8?q?YT-2578=E9=94=80=E5=94=AE=E5=BC=80=E7=A5=A8?=
=?UTF-8?q?=E7=94=B3=E8=AF=B7=EF=BC=8C=E5=B7=B2=E5=88=86=E6=91=8A=E6=A8=A1?=
=?UTF-8?q?=E5=85=B7=E7=A8=8E=E9=A2=9D=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CustomerSaleInvoiceBasicForm.vue | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
index 4566d3e61..087020744 100644
--- a/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
+++ b/src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
@@ -56,27 +56,11 @@
}
// 2.主数据税额 mainTaxAmount = 未税金额*税率/100 保留两位小数
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({
// 主数据税额
taxAmount:mainTaxAmount,
// 主数据价税合计金额:mainAdTaxAmount =未税金额+税额
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,
})
}
}