Browse Source

HL-5614 上架策略添加溢出库位功能

hella_online_20240828
wangyufei 3 months ago
parent
commit
dd098e645e
  1. 6
      src/api/wms/location/index.ts
  2. 33
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

6
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 })
}

33
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -446,10 +446,10 @@
</el-form-item>
</el-col>
<!-- 溢出库位 -->
<!-- <el-col key="溢出库位col" :span="24">
<el-col key="溢出库位col" :span="24">
<el-form-item key="溢出库位formItem" label="溢出库位" prop="warehouse" >
<el-select key="溢出库位Value"
v-model="formData.configuration.OverFlowLocation"
v-model="formData.configuration.overflowLocationCode"
placeholder="请选择溢出库位"
style="flex: 1;margin-left: 10px;"
clearable
@ -457,14 +457,14 @@
collapse-tags
>
<el-option
v-for="cur in getStrDictOptions(DICT_TYPE.INVENTORY_STATUS)"
:key="'溢出库位Value'+cur.value"
:label="cur.label"
:value="cur.value"
v-for="cur in options.overflowLocationCodes"
:key="'溢出库位Value'+cur.code"
:label="cur.code"
:value="cur.code"
/>
</el-select>
</el-form-item>
</el-col> -->
</el-col>
<!-- 优先空位库 -->
<el-col key="优先空位库col" :span="24">
<el-form-item key="优先空位库formItem" label="优先空位库">
@ -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()
</script>
<style scoped lang="scss">
.item {

Loading…
Cancel
Save