Commit 32b1e3f1 authored by 张海景's avatar 张海景

update:修改生产排产的逻辑

parent c17461ce
...@@ -452,13 +452,15 @@ export default { ...@@ -452,13 +452,15 @@ export default {
hanldeGetdefaultWorkCenterList() { hanldeGetdefaultWorkCenterList() {
getdefaultWorkCenterList().then(async (res) => { getdefaultWorkCenterList().then(async (res) => {
console.log(res, 5566) console.log(res, 5566)
this.hanldeGetworkshopList()
if (res&&res.length) { if (res&&res.length) {
this.queryWorkunitParams.workshopId = res[0].workshopId this.queryWorkunitParams.workshopId = res[0].workshopId
} }
this.hanldeGetworkshopList() if (this.queryWorkunitParams.workshopId) {
await this.hanldeGetworkstationList() await this.hanldeGetworkstationList()
this.queryWorkunitParams.workstationId = res[0].workstationId? res[0].workstationId: this.workstationList[0].workstationId this.queryWorkunitParams.workstationId = res[0].workstationId? res[0].workstationId: this.workstationList[0].workstationId
this.hanldeGettaskWorkunitList() this.hanldeGettaskWorkunitList()
}
this.getList() this.getList()
}); });
}, },
......
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