From 9887fbf94b3052ef3ed37422a55772b004f2bd01 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Mon, 25 Mar 2019 10:25:54 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E5=A4=96=E5=8D=8F=E9=A2=84=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Outsourcing/InterBudgetaryBudgets/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/Outsourcing/InterBudgetaryBudgets/index.vue b/src/views/Outsourcing/InterBudgetaryBudgets/index.vue index a5ae2b45..46dc5812 100644 --- a/src/views/Outsourcing/InterBudgetaryBudgets/index.vue +++ b/src/views/Outsourcing/InterBudgetaryBudgets/index.vue @@ -184,6 +184,7 @@ import { machine, getToolNum, getNum, searchPartNum1, searchTable, saveWeightAre export default { data() { return { + a: '', entryNameValue: '', entryName: [], // 项目名称 toolNumValue: '', @@ -383,12 +384,16 @@ export default { if (this.tableData.length === 0) { this.$message.error('请选择零件') } else { + this.a = 0 for (let i = 0; i < this.tableData.length; i++) { saveRowPrice(this.tableData[i].工序流水号, parseFloat(this.tableData[i].外协预算价格_计算), this.tableData[i].工艺计划流水号, this.cailiaofei).then(response => { + this.a += parseInt(response.data[0].result) + if (this.a === this.tableData.length) { + this.$message.success('保存成功') + this.searchPartNum() + } }) } - this.$message.success('保存成功') - this.searchPartNum() } }, handleSizeChange2(val) { From 2b0a4398cb985565d5f387ce617dedfde4fb9a05 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Mon, 25 Mar 2019 11:05:57 +0800 Subject: [PATCH 02/11] style --- .../Inventory/InventoryManagement/index.vue | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/views/Inventory/InventoryManagement/index.vue b/src/views/Inventory/InventoryManagement/index.vue index 1f6d153a..85a0cd31 100644 --- a/src/views/Inventory/InventoryManagement/index.vue +++ b/src/views/Inventory/InventoryManagement/index.vue @@ -1,16 +1,10 @@