|
|
@ -466,11 +466,6 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
|
// } |
|
|
|
if (data.condition) { |
|
|
|
formData.value.condition = JSON.parse(data.condition) |
|
|
|
formData.value.condition.forEach((item, index) => { |
|
|
|
if (item.Operator == 'IN' || item.Operator == 'NOT IN') { |
|
|
|
item.Value = item.Value.split(',') |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
if (data.configuration) { |
|
|
|
formData.value.configuration = JSON.parse(data.configuration) |
|
|
@ -747,12 +742,17 @@ const blurWarehouse = async ({module='config',type})=>{ |
|
|
|
} |
|
|
|
} |
|
|
|
const searchTableSuccess = (formField, searchField, val, type, row) => { |
|
|
|
|
|
|
|
console.log(formField) |
|
|
|
if(searchTableModule.value == 'condition'){ |
|
|
|
// module: config 配置 condition 条件 |
|
|
|
// 仓库 库区 库位 库位组 |
|
|
|
let conditionObj = formData.value.condition.find(item=>['ItemCode','WarehouseCode','AreaCode','LocationGroupCode','LocationCode'].includes(item['ParamCode'])) |
|
|
|
conditionObj['Value'] = val.map(item=>(item['code'])).join(',') |
|
|
|
if (formField == 'WarehouseCode' || formField == 'AreaCode' ||formField == 'LocationGroupCode' ||formField == 'LocationCode' ) { |
|
|
|
let conditionObj = formData.value.condition.find(item => ['WarehouseCode', 'AreaCode', 'LocationGroupCode', 'LocationCode'].includes(item['ParamCode'])) |
|
|
|
conditionObj['Value'] = val.map(item=>(item['code'])).join(',') |
|
|
|
} else if (formField == 'ItemCode') { |
|
|
|
let conditionObjItem = formData.value.condition.find(item => [ 'ItemCode'].includes(item['ParamCode'])) |
|
|
|
conditionObjItem['Value'] = val.map(item=>(item['code'])).join(',') |
|
|
|
} |
|
|
|
}else{ |
|
|
|
// 配置 |
|
|
|
// 仓库 库区 库位 库位组 |
|
|
|