|
|
@@ -272,8 +272,9 @@ const _getRecommendedLocation = async (lotNum, owner) => {
|
|
|
const params = { warehouse, lotNum, owner,zoneGroup:'WH01-02' }
|
|
|
const res = await getRecommendedLocation(params)
|
|
|
locationList.value = res.data
|
|
|
- // 'EA'数据
|
|
|
- const eaItems = res.data.filter(item => item.type === 'EA')
|
|
|
+ // 件/箱等拣货库位类型
|
|
|
+ const allowedLocationTypes = ['EA', 'PC', 'GY', 'TH', 'CS']
|
|
|
+ const eaItems = res.data.filter(item => allowedLocationTypes.includes(item.type))
|
|
|
// 获取 quantity < 300 的
|
|
|
let result = eaItems.find(item => item.quantity !== null && item.quantity < 1000)
|
|
|
// 获取 quantity 为 null 的
|