|
@ -416,18 +416,18 @@ const filterMethodFromLocation = (query: string) => { |
|
|
return item?.code.includes(query) |
|
|
return item?.code.includes(query) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
options.locationList = options.originLocationList |
|
|
options.locationList = [...options.originLocationList] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 获取库位列表 |
|
|
// 获取库位列表 |
|
|
const getFormLocationList = async () => { |
|
|
const getFormLocationList = async () => { |
|
|
if(!options.locationList || options.locationList.length==0){ |
|
|
if(!options.locationList || options.locationList.length==0){ |
|
|
options.locationList = await getLocationList({ type: 'TRANSPORT' }) |
|
|
options.originLocationList = await getLocationList({ type: 'TRANSPORT' }) |
|
|
options.originLocationList = [...options.locationList] |
|
|
options.locationList = [...options.originLocationList] |
|
|
}else{ |
|
|
}else{ |
|
|
options.locationList = [] |
|
|
options.locationList = [] |
|
|
let timer = setTimeout(()=>{ |
|
|
let timer = setTimeout(()=>{ |
|
|
options.locationList = options.originLocationList |
|
|
options.locationList = [...options.originLocationList] |
|
|
if(timer){ |
|
|
if(timer){ |
|
|
clearTimeout(timer) |
|
|
clearTimeout(timer) |
|
|
} |
|
|
} |
|
|