From 68419a31db3428cb8f6b390a63e60cc6a4d2552c Mon Sep 17 00:00:00 2001 From: yanyan <513352169@qq.com> Date: Mon, 20 Apr 2026 11:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E6=8A=A5=E4=BB=B7?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=99=84=E4=BB=B6=EF=BC=8C=E6=88=91=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E4=BB=B7=E8=AE=A1=E7=AE=97=E5=90=AB=E7=A8=8E=E5=8D=95?= =?UTF-8?q?=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/supplier/myPurReplyHistList.vue | 18 ++++++ .../modules/supplier/supPurReplyHistList.vue | 59 ++++++++++++++++++- 2 files changed, 75 insertions(+), 2 deletions(-) diff --git a/src/views/modules/supplier/myPurReplyHistList.vue b/src/views/modules/supplier/myPurReplyHistList.vue index e312c67..bfb7695 100644 --- a/src/views/modules/supplier/myPurReplyHistList.vue +++ b/src/views/modules/supplier/myPurReplyHistList.vue @@ -466,7 +466,25 @@ export default { otherCondition: '' } } + // 计算含税单价: + this.calculatePrice() + // this.calculateTax() + this.quoteDialogVisible = true this.dialogVisible = true + }, + calculatePrice(){ + //未税单价=材料成本+加工费+表面费用+利润 + this.form.price = this.form.materialCost + this.form.produceFee + + this.form.surfaceFee + this.form.profit + this.calculateTax() + + }, + // 计算含税单价 + calculateTax() { + //含税单价=未税单价*(1+税率) + if (this.form.price && this.form.taxRate) { + this.form.tax = this.form.price * (1 + this.form.taxRate / 100) + } }, validateForm() { if (!this.form.partNo) { diff --git a/src/views/modules/supplier/supPurReplyHistList.vue b/src/views/modules/supplier/supPurReplyHistList.vue index 95c018c..98e0d87 100644 --- a/src/views/modules/supplier/supPurReplyHistList.vue +++ b/src/views/modules/supplier/supPurReplyHistList.vue @@ -38,7 +38,7 @@ - + +