From e1b7897374c9555b9cafe75cb510415440900e84 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Wed, 27 Feb 2019 17:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E8=83=BD=E5=8A=9B=E5=B9=B3?= =?UTF-8?q?=E8=A1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProductionCapacityBalance.js | 4 ++-- .../ProductionCapacityBalance/index.vue | 19 ++++++++----------- 2 files changed, 10 insertions(+), 13 deletions(-) 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() {