feat:多项功能优化
This commit is contained in:
@@ -28,7 +28,8 @@ async function loadScopeDicts() {
|
||||
try {
|
||||
const z = await request.get('/zone/picker')
|
||||
const arr = Array.isArray(z) ? z : (z?.list || [])
|
||||
zonesDict.value = arr.map(x => x.zoneCode || x.code).filter(Boolean)
|
||||
// picker 每行是一个货位,同一区域会重复出现,去重后区域选项才不重复
|
||||
zonesDict.value = [...new Set(arr.map(x => x.zoneCode || x.code).filter(Boolean))]
|
||||
} catch { /* 忽略 */ }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user