Browse Source

bug

master_hella_20240701
yufei0306 6 months ago
parent
commit
fb21b9b9b7
  1. 8
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

8
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

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

Loading…
Cancel
Save