Browse Source

YT-659选择仓库,应不筛选对应的月台

intex_online20241111
zhang_li 3 weeks ago
parent
commit
4a3767ebef
  1. 54
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

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

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

Loading…
Cancel
Save