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