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