diff --git a/src/api/wms/location/index.ts b/src/api/wms/location/index.ts index df0ef46bb..d50614a7e 100644 --- a/src/api/wms/location/index.ts +++ b/src/api/wms/location/index.ts @@ -154,3 +154,9 @@ export const selectConfigToLocation = async (params) => { export const getLocationByCodes = async (params) => { return await request.get({ url: `/wms/location/listByCodes`, params }) } + + +// 查询库位组列表 +export const getLocationByOverflowAreaTypeByConfig = async (params) => { + return await request.get({ url: `/wms/location/queryLocationByOverflowAreaTypeByConfig`, params }) +} \ No newline at end of file diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue index 31fed6cd8..7f0f4e9a2 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue @@ -446,10 +446,10 @@ - + @@ -597,7 +597,7 @@ import { getCustomerList } from '@/api/wms/customer' import { getWarehouseList } from '@/api/wms/warehouse' import { getAreaList } from '@/api/wms/areabasic' import { getLocationgroupList } from '@/api/wms/locationgroup' -import { getLocationList } from '@/api/wms/location' +import { getLocationList,getLocationByOverflowAreaTypeByConfig } from '@/api/wms/location' import * as RuleApi from '@/api/wms/rule' import * as WarehouseApi from '@/api/wms/warehouse' import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' @@ -679,7 +679,7 @@ const formData = ref({ // 列排序方向 ColumOrder: 'ASC', //溢出库位 - OverFlowLocation:'' + overflowLocationCode:'' } }) // 验证规则 @@ -748,7 +748,8 @@ const options = reactive({ ], //仓库列表 warehouseList: [], - originWarehouseList: [] + originWarehouseList: [], + overflowLocationCodes:[] }) // 弹窗按钮 const Butttondata = ref([ @@ -1276,11 +1277,21 @@ const resetForm = () => { // 列排序方向 ColumOrder: 'ASC', //溢出库位 - OverFlowLocation:'' + overflowLocationCode:'' } } } + +// 获取溢出库位 +const getOverflowLocationCodes = async ()=>{ + let overflowLocationCodes = await getLocationByOverflowAreaTypeByConfig({}) + options.overflowLocationCodes = overflowLocationCodes || [] + +} + +getOverflowLocationCodes() +