Commit 08c8338e authored by mengcheng's avatar mengcheng

优化物料查询,优化代码逻辑

parent 72a0b4c0
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.processList = res.data; this.processList = res.data;
this.activeProcess = res.data[0].processCode; this.activeProcess = res.data[0].processCode;
this.getWorkstationList(0); this.getWorkstationList({index: 0});
} else { } else {
this.$u.toast("获取工序清单异常" + res.msg); this.$u.toast("获取工序清单异常" + res.msg);
} }
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
//获取工作站清单 //获取工作站清单
getWorkstationList(item) { getWorkstationList(item) {
this.currentFlag = item.index; this.currentFlag = item.index;
this.activeProcess = this.processList[item.index]?.processCode; this.activeProcess = this.processList[item.index].processCode;
this.$u.api.getWorkstationList({ this.$u.api.getWorkstationList({
processCode: this.activeProcess processCode: this.activeProcess
}).then(res => { }).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment