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