|
@ -436,8 +436,15 @@ |
|
|
const res = await workstationByLocation(params) |
|
|
const res = await workstationByLocation(params) |
|
|
if(res.code == 0){ |
|
|
if(res.code == 0){ |
|
|
if(res.data&&res.data.list&&res.data.list.length>0){ |
|
|
if(res.data&&res.data.list&&res.data.list.length>0){ |
|
|
this.positionInfo = res.data.list[0].productionLineCode |
|
|
// const array = res.data.list.filter(item=>item.available == 'TRUE') |
|
|
this.workStationCode = res.data.list[0].workshopCode |
|
|
const array = [] |
|
|
|
|
|
console.log(array) |
|
|
|
|
|
if(array.length>0){ |
|
|
|
|
|
this.positionInfo = array[0].productionLineCode |
|
|
|
|
|
this.workStationCode = array[0].workshopCode |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。") |
|
|
|
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。") |
|
|
this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。") |
|
|
this.positionInfo = '' |
|
|
this.positionInfo = '' |
|
|