From 5e283bb8048e49481f6d1629a775453f0009d113 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 26 Jun 2024 16:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoicing/operation_in.vue | 13 +++++++++---- src/views/invoicing/operation_out.vue | 13 ++++++++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index 2663d9d..8db3474 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -90,14 +90,14 @@ @@ -202,7 +202,13 @@ export default { this.tbShopPurveyorGet() }, methods: { - + modifyPrice() { + let zong = 0 + this.tableData.list.forEach(ele => { + zong += ele.costPrice * ele.number + }) + this.queryForm.totalAmount = zong + }, // 提交 submitHandle() { this.$refs.queryForm.validate(async valid => { @@ -210,7 +216,6 @@ export default { try { this.queryFormLoading = true this.queryForm.list = this.tableData.list - console.log(this.queryForm,'调试costPrice') await tbProductStockOperateOutAndOn(this.queryForm) this.queryFormLoading = false this.showResult = true diff --git a/src/views/invoicing/operation_out.vue b/src/views/invoicing/operation_out.vue index e65ec99..478457f 100644 --- a/src/views/invoicing/operation_out.vue +++ b/src/views/invoicing/operation_out.vue @@ -89,15 +89,15 @@ @@ -202,6 +202,13 @@ export default { this.tbShopPurveyorGet() }, methods: { + modifyPrice() { + let zong = 0 + this.tableData.list.forEach(ele => { + zong += ele.costPrice * ele.number + }) + this.queryForm.totalAmount = zong + }, // 提交 submitHandle() { this.$refs.queryForm.validate(async valid => {