From ba4bf18f27a9e116723ac36ec1acb7d70061e85e Mon Sep 17 00:00:00 2001 From: "YEJIAXING-PC\\lenovo" <591141169@qq.com> Date: Fri, 28 Feb 2025 19:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8D=B0=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRequestMain/index.vue | 235 ++++++++++-------- .../supplierinvoiceRequestMain.data.ts | 18 ++ 2 files changed, 155 insertions(+), 98 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index eed4c76b0..aa4c3e850 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -88,7 +88,7 @@ beforeTaxDiffAmount = 0, taxAmountDiff = 0, rebateTax = 0, - claimAmount = 0, + claimAmount = 0 } = formModel // 2、系统税额:每条数据的合同价格X可开票数量,计算结果取两位小数之后*税率的计算结果,再保留2位。所有子表数据再求和 if (formType == 'update') { @@ -109,8 +109,8 @@ beforeTaxDiffAmount: beforeTaxAmount - amount, //未税差额:未税金额-系统未税金额 taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 totalTaxDiffAmount: beforeTaxDiffAmount + taxAmountDiff, // 价税合计差额=未税差额+税额差异 - rebateTax:Number(Number(discountAmount1*taxRate*0.01).toFixed(2)), - rebateTotal:rebateTax+discountAmount1 + rebateTax: Number(Number(discountAmount1 * taxRate * 0.01).toFixed(2)), + rebateTotal: rebateTax + discountAmount1 }) } else if (formType == 'create') { // 新增 @@ -138,8 +138,8 @@ beforeTaxDiffAmount: beforeTaxAmount - amount, //未税差额:未税金额-系统未税金额 taxAmountDiff: totalTaxAmount - taxAmount, // 税额差异:税额-系统税额 totalTaxDiffAmount: beforeTaxDiffAmount + taxAmountDiff, // 价税合计差额=未税差额+税额差异 - rebateTax:Number(Number(discountAmount1*taxRate*0.01).toFixed(2)), - rebateTotal:rebateTax+discountAmount1 + rebateTax: Number(Number(discountAmount1 * taxRate * 0.01).toFixed(2)), + rebateTotal: rebateTax + discountAmount1 }) } } @@ -166,9 +166,11 @@ ), 0 ) - } - sumObject.invoiceAmountMain = (Number(sumObject.amount) -Number(formRef.value.formModel.claimAmount)).toFixed(2), // 发票总额:供应商维护未税金额-索赔总额 - formRef.value.setValues(sumObject) + } + ;(sumObject.invoiceAmountMain = ( + Number(sumObject.amount) - Number(formRef.value.formModel.claimAmount) + ).toFixed(2)), // 发票总额:供应商维护未税金额-索赔总额 + formRef.value.setValues(sumObject) } " :apiUpdate="SupplierinvoiceRequestMainApi.updateSupplierinvoiceRequestMain" @@ -202,7 +204,7 @@ }} - +
+ style=" + border: 1px solid #dedede; + border-radius: 8px; + padding: 10px; + width: calc(100% - 32px); + display: flex; + " + >
- - @@ -359,15 +371,24 @@ >