From 14462f98ab99a630c600b448561c71bb73332b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Fri, 9 Aug 2024 10:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=80=BB=E6=95=B0=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invoicing/operation_in.vue | 23 ++++++++++++++++++++--- src/views/invoicing/operation_out.vue | 23 ++++++++++++++++++++--- 2 files changed, 40 insertions(+), 6 deletions(-) diff --git a/src/views/invoicing/operation_in.vue b/src/views/invoicing/operation_in.vue index a3fb69f..d0c3606 100644 --- a/src/views/invoicing/operation_in.vue +++ b/src/views/invoicing/operation_in.vue @@ -95,7 +95,8 @@ 选择商品 --> @@ -145,7 +146,8 @@ --> @@ -189,7 +191,8 @@ @@ -346,6 +349,20 @@ export default { this.selectConsumable([item]) } }, + //删除计算 + spliceclick() { + var zong = 0 + if (this.inTabValue == 'goods') { + this.tableData.list.forEach(ele => { + zong += ele.costPrice * ele.number + }) + } else { + this.tableData.list.forEach(ele => { + zong += ele.price * ele.stockNumber + }) + } + this.queryForm.totalAmount = formatDecimal(zong) + }, // 选择商品 selectShop(res) { let arr = [] diff --git a/src/views/invoicing/operation_out.vue b/src/views/invoicing/operation_out.vue index 61d13be..3671c5d 100644 --- a/src/views/invoicing/operation_out.vue +++ b/src/views/invoicing/operation_out.vue @@ -95,7 +95,8 @@ 选择商品 --> @@ -142,7 +143,8 @@ --> @@ -184,7 +186,8 @@ @@ -348,6 +351,20 @@ export default { this.resetHandle() this.queryForm.type = type }, + //删除计算 + spliceclick() { + var zong = 0 + if (this.inTabValue == 'goods') { + this.tableData.list.forEach(ele => { + zong += ele.costPrice * ele.number + }) + } else { + this.tableData.list.forEach(ele => { + zong += ele.price * ele.stockNumber + }) + } + this.queryForm.totalAmount = formatDecimal(zong) + }, // 计算耗材总价 consCountTotal(cvalue, row, key1, key2 = undefined) { if (cvalue == undefined) {