From 3748020db0645e1bad0fd18bf7906fcf8bf5e824 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 11 Oct 2024 13:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=B4=E4=BF=AE=E5=8D=95?= =?UTF-8?q?=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operation/repairbill/repairbillAdd.vue | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue index 8936362ab4..6db719d719 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue @@ -1230,8 +1230,8 @@ export default { // 加税点项目是否包含维修项目 if (this.formobj.invoiceVo.taxItems.includes('维修项目')) { this.formobj.sitemVos.forEach((e) => { - // 是,销售价 = 原销售价 + 原销售价 * (1 + 税率) - e.price = Math.round((parseFloat(e.sitemPrice) + parseFloat(e.sitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 是,销售价 = 原销售价 * (1 + 税率) + e.price = Math.round((parseFloat(e.sitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 this.computeYHAndXSJE(e) }) } else { @@ -1253,8 +1253,8 @@ export default { e.price = e.goodsDetailsPrice this.computeYHAndJE(e) } else { - // 商品进货价不含税则销售价 = 原销售价 + 原销售价 * (1 + 税率) - e.price = Math.round((parseFloat(e.goodsDetailsPrice) + parseFloat(e.goodsDetailsPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 商品进货价不含税则销售价 = 原销售价 * (1 + 税率) + e.price = Math.round((parseFloat(e.goodsDetailsPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 this.computeYHAndJE(e) } }) @@ -1271,8 +1271,8 @@ export default { // 加税点项目是否包含其它附加项目 if (this.formobj.invoiceVo.taxItems.includes('其它附加项目')) { this.formobj.aitemVos.forEach((e) => { - // 是,销售价 = 原销售价 + 原销售价 * (1 + 税率) - e.price = Math.round((parseFloat(e.aitemPrice) + parseFloat(e.aitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 是,销售价 = 原销售价 * (1 + 税率) + e.price = Math.round((parseFloat(e.aitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 }) } else { this.formobj.aitemVos.forEach((k) => { @@ -1284,12 +1284,12 @@ export default { // 附加项目,加税点项目是否包含附加项目 if (this.formobj.invoiceVo.taxItems.includes('附加项目')) { // 是 - // 外出费开票金额 = 原外出费 + 原外出费 * (1 + 税率) - this.formobj.outKPAmount = Math.round((parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') + parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 - // 厂家补助开票金额 = 原厂家补助 + 原厂家补助 * (1 + 税率) - this.formobj.subsidyKPAmount = Math.round((parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') + parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 - // 施救费开票金额 = 原施救费 + 原施救费 * (1 + 税率) - this.formobj.rescueKPAmount = Math.round((parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') + parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 外出费开票金额 = 原外出费 * (1 + 税率) + this.formobj.outKPAmount = Math.round((parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 厂家补助开票金额 = 原厂家补助 * (1 + 税率) + this.formobj.subsidyKPAmount = Math.round((parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 施救费开票金额 = 原施救费 * (1 + 税率) + this.formobj.rescueKPAmount = Math.round((parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 } else { // 否 this.formobj.outKPAmount = '' @@ -1349,8 +1349,8 @@ export default { row.hours = value.hours row.sitemPrice = value.price if (this.formobj.invoiceVo.isInvoicing === '1' && this.formobj.invoiceVo.taxItems.length > 0 && this.formobj.invoiceVo.taxItems.includes('维修项目')) { - // 是否开发票为是且选择加税点的项目中包含维修项目,则销售价 = 原销售价 + 原销售价 * ( 1 + 税率 ) - row.price = Math.round((parseFloat(row.sitemPrice) + parseFloat(row.sitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 是否开发票为是且选择加税点的项目中包含维修项目,则销售价 = 原销售价 * ( 1 + 税率 ) + row.price = Math.round((parseFloat(row.sitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 } else { row.price = row.sitemPrice } @@ -1416,8 +1416,8 @@ export default { // 附加项目,加税点项目是否包含附加项目 if (this.formobj.invoiceVo.taxItems.includes('附加项目')) { // 是 - // 外出费开票金额 = 原外出费 + 原外出费 * (1 + 税率) - this.formobj.outKPAmount = Math.round((parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') + parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 外出费开票金额 = 原外出费 * (1 + 税率) + this.formobj.outKPAmount = Math.round((parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 } else { // 否 this.formobj.outKPAmount = '' @@ -1428,8 +1428,8 @@ export default { // 附加项目,加税点项目是否包含附加项目 if (this.formobj.invoiceVo.taxItems.includes('附加项目')) { // 是 - // 厂家补助开票金额 = 原厂家补助 + 原厂家补助 * (1 + 税率) - this.formobj.subsidyKPAmount = Math.round((parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') + parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 厂家补助开票金额 = 原厂家补助 * (1 + 税率) + this.formobj.subsidyKPAmount = Math.round((parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 } else { // 否 this.formobj.subsidyKPAmount = '' @@ -1440,8 +1440,8 @@ export default { // 附加项目,加税点项目是否包含附加项目 if (this.formobj.invoiceVo.taxItems.includes('附加项目')) { // 是 - // 施救费开票金额 = 原施救费 + 原施救费 * (1 + 税率) - this.formobj.rescueKPAmount = Math.round((parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') + parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 施救费开票金额 = 原施救费 * (1 + 税率) + this.formobj.rescueKPAmount = Math.round((parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : '0') * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 } else { // 否 this.formobj.rescueKPAmount = '' @@ -1479,8 +1479,8 @@ export default { row.aitemName = value.aitemName row.aitemPrice = value.price if (this.formobj.invoiceVo.isInvoicing === '1' && this.formobj.invoiceVo.taxItems.length > 0 && this.formobj.invoiceVo.taxItems.includes('其它附加项目')) { - // 是否开发票为是且选择加税点的项目中包含其它附加项目,则销售价 = 原销售价 + 原销售价 * ( 1 + 税率 ) - row.price = Math.round((parseFloat(row.aitemPrice) + parseFloat(row.aitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 + // 是否开发票为是且选择加税点的项目中包含其它附加项目,则销售价 = 原销售价 * ( 1 + 税率 ) + row.price = Math.round((parseFloat(row.aitemPrice) * (parseFloat(1) + parseFloat(this.formobj.invoiceVo.taxRate !== '' ? this.formobj.invoiceVo.taxRate : '0') / 100)) * 100) / 100 } else { row.price = row.aitemPrice }