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) {