|
@@ -1297,13 +1297,22 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- getTableDetailDatas (pageNum) {
|
|
|
|
|
|
+ getTableDetailDatas (pageNum, type) {
|
|
let that = this;
|
|
let that = this;
|
|
- let params = {
|
|
|
|
|
|
+ let params = {};
|
|
|
|
+ if (type === 'Add') {
|
|
|
|
+ params = {
|
|
|
|
+ may: that.filterForm.data.clock,
|
|
|
|
+ workprocType: that.dialog.editorBox.form.data.workprocid,
|
|
|
|
+ sqno: null
|
|
|
|
+ };
|
|
|
|
+ } else {
|
|
|
|
+ params = {
|
|
may: that.filterForm.data.clock,
|
|
may: that.filterForm.data.clock,
|
|
workprocType: that.rightTableData[0].workprocType,
|
|
workprocType: that.rightTableData[0].workprocType,
|
|
sqno: that.rightTableData[0].sqno
|
|
sqno: that.rightTableData[0].sqno
|
|
- };
|
|
|
|
|
|
+ };
|
|
|
|
+ }
|
|
that.pageNum = pageNum || that.pageNum;
|
|
that.pageNum = pageNum || that.pageNum;
|
|
that.tableLoading = true;
|
|
that.tableLoading = true;
|
|
let url = 'pass/ems/v1/emsprodplanrounds/?pageNum=' + that.pageNum + '&pageSize=' + that.pageSize;
|
|
let url = 'pass/ems/v1/emsprodplanrounds/?pageNum=' + that.pageNum + '&pageSize=' + that.pageSize;
|
|
@@ -1708,8 +1717,8 @@ export default {
|
|
message: '新增成功',
|
|
message: '新增成功',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- that.getTableDetailDatas(that.dialog.editorBox.form.data.workprocid, null);
|
|
|
|
that.dialog.editorBox.show = false;
|
|
that.dialog.editorBox.show = false;
|
|
|
|
+ that.getTableDetailDatas(1, 'Add');
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|