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 @@ >