|
|
@ -277,7 +277,7 @@ const options = reactive({ |
|
|
|
// 仓库和库区下拉列表 |
|
|
|
warehouseAreaOptions: [ |
|
|
|
{value: 'WarehouseCode', label: '仓库' }, |
|
|
|
{value: 'Area', label: '库区' } |
|
|
|
{value: 'AreaCode', label: '库区' } |
|
|
|
], |
|
|
|
// 供应商范围下拉框列表 |
|
|
|
WarehouseCodeRangeOptions: formatRangeOptions('IN', 'NOT IN'), |
|
|
@ -347,8 +347,8 @@ const open = async (type: string, strategyCode: string, id?: number) => { |
|
|
|
// item.Value = item.Value.split(',') |
|
|
|
// } |
|
|
|
// }) |
|
|
|
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' |
|
|
|
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode' || item['ParamCode'] == 'AreaCode') || '' |
|
|
|
WarehouseCodeOrArea.value= formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') ? 'WarehouseCode' : 'AreaCode' |
|
|
|
} |
|
|
|
if (data.configuration) { |
|
|
|
formData.value.configuration = JSON.parse(data.configuration) |
|
|
@ -485,7 +485,7 @@ const searchWarehouse = () => { |
|
|
|
'请选择库区', |
|
|
|
Area.allSchemas, |
|
|
|
AreaApi.getAreaPage, |
|
|
|
'Area', |
|
|
|
'AreaCode', |
|
|
|
'code', |
|
|
|
true, |
|
|
|
undefined, |
|
|
@ -546,10 +546,10 @@ const searchTableSuccess = (formField, searchField, val, type, row) => { |
|
|
|
warehouseCodeObj.value.Value = val.map(item => (item['code'])).join(',') |
|
|
|
// formData.value.configuration['DockCode']='' |
|
|
|
} |
|
|
|
}else if (formField=='Area') { |
|
|
|
let Area = formData.value.condition.find(item => item['ParamCode'] == 'Area') |
|
|
|
if(Area){ |
|
|
|
Area.Value = val.map(item=>(item['code'])).join(',') |
|
|
|
}else if (formField=='AreaCode') { |
|
|
|
let AreaCode = formData.value.condition.find(item => item['ParamCode'] == 'AreaCode') |
|
|
|
if(AreaCode){ |
|
|
|
AreaCode.Value = val.map(item=>(item['code'])).join(',') |
|
|
|
} |
|
|
|
} else if (formField=='SupplierCode') { |
|
|
|
let SupplierCode = formData.value.condition.find(item => item['ParamCode'] == 'SupplierCode') |
|
|
@ -669,12 +669,12 @@ const changeWarehouseArea = (e) => { |
|
|
|
// formData.value.configuration.DockCode='' |
|
|
|
// formData.value.configuration.Receiver='' |
|
|
|
// formData.value.configuration.PhoneNumber='' |
|
|
|
} else if (e == 'Area') { |
|
|
|
} else if (e == 'AreaCode') { |
|
|
|
// getFormSupplierList() |
|
|
|
} |
|
|
|
} |
|
|
|
// {value: 'WarehouseCode', label: '仓库' }, |
|
|
|
// {value: 'Area', label: '库区' } |
|
|
|
// {value: 'AreaCode', label: '库区' } |
|
|
|
</script> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.item { |
|
|
|