diff --git a/src/api/ManufacturingCenter/ProductionCapacityBalance.js b/src/api/ManufacturingCenter/ProductionCapacityBalance.js index 4d63337f..f9e29fd9 100644 --- a/src/api/ManufacturingCenter/ProductionCapacityBalance.js +++ b/src/api/ManufacturingCenter/ProductionCapacityBalance.js @@ -127,8 +127,8 @@ export function discharge(a) { method: 'post', data: { type: '2', - name: '车间生产管理工艺_新排产算法_工序应完成时间_平均算法', - param: '工艺计划流水号=' + a + '=int' + name: '车间生产管理_能力平衡_循环执行', + param: '工艺计划流水号组=' + a } }) } diff --git a/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue b/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue index 0a7a50fc..5e853f2b 100644 --- a/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue +++ b/src/views/ManufacturingCenter/ProductionCapacityBalance/index.vue @@ -621,6 +621,7 @@ export default { directives: { elDragDialog }, data() { return { + bianliang1: [], count: 0, 是否扫描: false, dataX1: [], // 图表1横坐标 @@ -1437,19 +1438,15 @@ export default { }, // 虚拟排产 Discharge() { - this.result1 = 0 for (let i = 0; i < this.tableData1.length; i++) { - discharge(this.tableData1[i].工艺计划流水号).then(response => { - this.result1 += parseInt(response.data[0].result) - if (this.result1 === this.tableData1.length) { - this.result1 = 0 - this.total1 = 0 - this.pageSize1 = 10 - this.pageList1 = 1 - this.Selection1() - } - }) + this.bianliang1.push(this.tableData1[i].工艺计划流水号) } + discharge(this.bianliang1).then(response => { + this.total1 = 0 + this.pageSize1 = 10 + this.pageList1 = 1 + this.Selection1() + }) }, // 4.1 确定零件计划 Plan() {