|
@ -509,13 +509,13 @@ const searchDockCode = () => { |
|
|
// return; |
|
|
// return; |
|
|
// } |
|
|
// } |
|
|
let filters = [] |
|
|
let filters = [] |
|
|
if (warehouseCodeObj.value?.Value) { |
|
|
// if (warehouseCodeObj.value?.Value) { |
|
|
filters = [{ |
|
|
// filters = [{ |
|
|
action: warehouseCodeObj.value.ScreenOperator, |
|
|
// action: warehouseCodeObj.value.ScreenOperator, |
|
|
column: 'warehouseCode', |
|
|
// column: 'warehouseCode', |
|
|
value: warehouseCodeObj.value.Value |
|
|
// value: warehouseCodeObj.value.Value |
|
|
}] |
|
|
// }] |
|
|
} |
|
|
// } |
|
|
|
|
|
|
|
|
searchTableRef.value.open( |
|
|
searchTableRef.value.open( |
|
|
'请选择月台', |
|
|
'请选择月台', |
|
@ -538,7 +538,7 @@ const searchTableSuccess = (formField, searchField, val, type, row) => { |
|
|
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') |
|
|
warehouseCodeObj.value = formData.value.condition.find(item => item['ParamCode'] == 'WarehouseCode') |
|
|
if(warehouseCodeObj.value){ |
|
|
if(warehouseCodeObj.value){ |
|
|
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=='Area') { |
|
|
let Area = formData.value.condition.find(item => item['ParamCode'] == 'Area') |
|
|
let Area = formData.value.condition.find(item => item['ParamCode'] == 'Area') |
|
@ -574,23 +574,23 @@ const blurWarehouseByCodes = async ()=>{ |
|
|
].join(',') |
|
|
].join(',') |
|
|
message.alert('代码' + str + '没有找到对应数据') |
|
|
message.alert('代码' + str + '没有找到对应数据') |
|
|
WarehouseCode.Value = '' |
|
|
WarehouseCode.Value = '' |
|
|
formData.value.configuration.DockCode='' |
|
|
// formData.value.configuration.DockCode='' |
|
|
formData.value.configuration.Receiver='' |
|
|
// formData.value.configuration.Receiver='' |
|
|
formData.value.configuration.PhoneNumber='' |
|
|
// formData.value.configuration.PhoneNumber='' |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
WarehouseCode.Value = '' |
|
|
WarehouseCode.Value = '' |
|
|
formData.value.configuration.DockCode='' |
|
|
// formData.value.configuration.DockCode='' |
|
|
formData.value.configuration.Receiver='' |
|
|
// formData.value.configuration.Receiver='' |
|
|
formData.value.configuration.PhoneNumber='' |
|
|
// formData.value.configuration.PhoneNumber='' |
|
|
message.alert('暂无数据') |
|
|
message.alert('暂无数据') |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
WarehouseCode.Value = '' |
|
|
WarehouseCode.Value = '' |
|
|
formData.value.configuration.DockCode='' |
|
|
// formData.value.configuration.DockCode='' |
|
|
formData.value.configuration.Receiver='' |
|
|
// formData.value.configuration.Receiver='' |
|
|
formData.value.configuration.PhoneNumber='' |
|
|
// formData.value.configuration.PhoneNumber='' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 供应商失去焦点 |
|
|
// 供应商失去焦点 |
|
@ -625,13 +625,13 @@ const blurSupplierCode = async ()=>{ |
|
|
const blurDockCode = async () => { |
|
|
const blurDockCode = async () => { |
|
|
if (formData.value.configuration.DockCode) { |
|
|
if (formData.value.configuration.DockCode) { |
|
|
let filters = [] |
|
|
let filters = [] |
|
|
if (warehouseCodeObj.value?.Value) { |
|
|
// if (warehouseCodeObj.value?.Value) { |
|
|
filters.push({ |
|
|
// filters.push({ |
|
|
action: warehouseCodeObj.value.ScreenOperator, |
|
|
// action: warehouseCodeObj.value.ScreenOperator, |
|
|
column: 'warehouseCode', |
|
|
// column: 'warehouseCode', |
|
|
value: warehouseCodeObj.value.Value |
|
|
// value: warehouseCodeObj.value.Value |
|
|
}) |
|
|
// }) |
|
|
} |
|
|
// } |
|
|
if (formData.value.configuration.DockCode) { |
|
|
if (formData.value.configuration.DockCode) { |
|
|
filters.push({ |
|
|
filters.push({ |
|
|
action: '==', |
|
|
action: '==', |
|
@ -661,9 +661,9 @@ const changeWarehouseArea = (e) => { |
|
|
formData.value.condition[0].Value = '' |
|
|
formData.value.condition[0].Value = '' |
|
|
WarehouseCodeOrArea.value = e |
|
|
WarehouseCodeOrArea.value = e |
|
|
if (e == 'WarehouseCode') { |
|
|
if (e == 'WarehouseCode') { |
|
|
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 == 'Area') { |
|
|
// getFormSupplierList() |
|
|
// getFormSupplierList() |
|
|
} |
|
|
} |
|
|