diff --git a/src/api/wms/rule/index.ts b/src/api/wms/rule/index.ts index a6fe74970..2fd735970 100644 --- a/src/api/wms/rule/index.ts +++ b/src/api/wms/rule/index.ts @@ -56,3 +56,8 @@ export const exportRule = async (params) => { export const importTemplate = () => { return request.download({ url: '/wms/rule/get-import-template' }) } +// 查询规则详情 +export const getMaxPriority = async (code: number) => { + return await request.get({ url: `/wms/rule/getMaxPriority?code=` + code }) +} + diff --git a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue index a648a54d9..82eabc696 100644 --- a/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue +++ b/src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue @@ -660,7 +660,6 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改 const formRef = ref() // 表单 Ref const formStrategyCode = ref('') - // 仓库类型 const warehouseType = ref('WarehouseCode') @@ -1112,7 +1111,7 @@ const changeWarehouse = (e) => { } /** 打开弹窗 */ -const open = async (type: string, strategyCode: string, id?: number) => { +const open = async (type: string, strategyCode: string, id?: number, priority?: Number) => { formStrategyCode.value = strategyCode dialogVisible.value = true @@ -1120,6 +1119,7 @@ const open = async (type: string, strategyCode: string, id?: number) => { formType.value = type warehouseType.value = 'WarehouseCode' // getFormWarehouseList() + resetForm() // 修改时,设置数据 @@ -1196,6 +1196,9 @@ const open = async (type: string, strategyCode: string, id?: number) => { formLoading.value = false } } else { + if(priority){ + formData.value.priority = priority + } Butttondata.value = [ defaultButtons.formSaveBtn(null), // 保存 defaultButtons.formCloseBtn(null) // 关闭 @@ -1389,6 +1392,7 @@ const getOverflowLocationCodes = async ()=>{ getOverflowLocationCodes() +