Browse Source

新增条件选择仓库,修改条件改为库区保存,再次新增,条件显示仓库,点开放大镜让选择库区,应让选择仓库

intex_online20241111
张立 3 months ago
parent
commit
81936ddf8b
  1. 7
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

7
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -305,6 +305,7 @@ const querySupplierParams = ref({
}) })
const WarehouseCodeOrArea = ref('WarehouseCode')
/** 打开弹窗 */ /** 打开弹窗 */
const open = async (type: string, strategyCode: string, id?: number) => { const open = async (type: string, strategyCode: string, id?: number) => {
formStrategyCode.value = strategyCode formStrategyCode.value = strategyCode
@ -343,7 +344,8 @@ const open = async (type: string, strategyCode: string, id?: number) => {
// item.Value = item.Value.split(',') // item.Value = item.Value.split(',')
// } // }
// }) // })
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') || '' warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode' || item['ParamCode'] == 'Area') || ''
WarehouseCodeOrArea.value= formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') ? 'WarehouseCode' : 'Area'
} }
if (data.configuration) { if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration) formData.value.configuration = JSON.parse(data.configuration)
@ -353,6 +355,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formLoading.value = false formLoading.value = false
} }
} else { } else {
WarehouseCodeOrArea.value='WarehouseCode'
Butttondata.value = [ Butttondata.value = [
defaultButtons.formSaveBtn(null), // defaultButtons.formSaveBtn(null), //
@ -448,6 +451,7 @@ const resetForm = () => {
PutAway:'TRUE' PutAway:'TRUE'
} }
} }
} }
const searchTableRef = ref() const searchTableRef = ref()
@ -647,7 +651,6 @@ const blurDockCode = async () => {
const OperatorChange = (e, item) => { const OperatorChange = (e, item) => {
item.ScreenOperator = rangeOptions.find((item) =>item.value === e)?.screenValue item.ScreenOperator = rangeOptions.find((item) =>item.value === e)?.screenValue
} }
const WarehouseCodeOrArea = ref('WarehouseCode')
// //
const changeWarehouseArea = (e) => { const changeWarehouseArea = (e) => {
formData.value.condition[0].Value = '' formData.value.condition[0].Value = ''

Loading…
Cancel
Save