From 1345515b680fd2af4e2b07f5f20c13e7646d0009 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Sat, 26 Oct 2019 20:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E6=8E=92=E4=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/ShopScheduling/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/ManufacturingCenter/ShopScheduling/index.vue b/src/views/ManufacturingCenter/ShopScheduling/index.vue index 3468285d..f6d8fa58 100644 --- a/src/views/ManufacturingCenter/ShopScheduling/index.vue +++ b/src/views/ManufacturingCenter/ShopScheduling/index.vue @@ -125,6 +125,7 @@ import { getPerson, getParts, getGongxu, XuanRu, XuanChu, searchTableData2 } fro export default { data() { return { + index: 0, 工艺计划流水号: '', PersonValue: '', Person: [], @@ -180,6 +181,7 @@ export default { getGongxu(row) { this.loading3 = true this.tableData3 = [] + this.index = row.index this.工艺计划流水号 = row.工艺计划流水号 getGongxu(row.工艺计划流水号).then(response => { response.data.map(v => { @@ -198,6 +200,7 @@ export default { }) }, tableData1ClassName({ row, rowIndex }) { + row.index = rowIndex if (row.状态 === '1') { return 'CJPClingjianjinxing' } @@ -219,7 +222,8 @@ export default { if (row.工序状态 !== 4) { XuanRu(this.PersonValue, row.工序流水号).then(response => { if (response.data[0].result === '1') { - this.getParts() + // this.getParts() + this.tableData1[this.index].状态 = '1' this.loading3 = true this.tableData3 = [] getGongxu(this.工艺计划流水号).then(response => { @@ -245,7 +249,8 @@ export default { XuanChu(row) { XuanChu(row.工序流水号).then(response => { if (response.data[0].result === '1') { - this.getParts() + // this.getParts() + this.tableData1[this.index].状态 = '1' this.loading3 = true this.tableData3 = [] getGongxu(this.工艺计划流水号).then(response => { @@ -268,10 +273,12 @@ export default { }) }, handleSizeChange(val) { + this.tableData3 = [] this.pageSize = val this.getParts() }, handleCurrentChange(val) { + this.tableData3 = [] this.pageCurrent = val this.getParts() }