|
@ -181,27 +181,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) = |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
if(formField == 'deliverPlanNumber') { |
|
|
if(formField == 'deliverPlanNumber') { |
|
|
setV['deliverPlanNumber'] = val[0]['number'] |
|
|
setV['deliverPlanNumber'] = val[0]['number'] |
|
|
setV['customerCode'] = val[0]['customerCode'] |
|
|
|
|
|
let res = await CustomerdockApi.getCustomerdockPage({ |
|
|
|
|
|
by:"ASC", |
|
|
|
|
|
pageNo:1, |
|
|
|
|
|
pageSize:20, |
|
|
|
|
|
available: "TRUE", |
|
|
|
|
|
customerCode: val[0]['customerCode'] |
|
|
|
|
|
}) |
|
|
|
|
|
if(res&&res.list&&res.list.length>0){ |
|
|
|
|
|
setV['customerDockCode'] = res.list[0]['code']//客户月台默认取第一条-喜婷 |
|
|
|
|
|
setV['toWarehouseCode'] = res.list[0]['warehouseCode']//到仓库 |
|
|
|
|
|
setV['toLocationCode'] = res.list[0]['defaultLocationCode']//到库位 |
|
|
|
|
|
let res2 = await AreabasicApi.selectAreabasicDOByCode(res.list[0]['defaultLocationCode']) |
|
|
|
|
|
if(res2){ |
|
|
|
|
|
setV['deliverType'] = res2['type'] |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
setV['toWarehouseCode'] = ''//到仓库 |
|
|
|
|
|
setV['toLocationCode'] = ''//到库位 |
|
|
|
|
|
setV['deliverType'] = ''//发货类型 |
|
|
|
|
|
} |
|
|
|
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
//物料代码-子表 |
|
|
//物料代码-子表 |
|
|
let subRes = await DeliverPlanDetailApi.getDeliverPlanDetailPage({ |
|
|
let subRes = await DeliverPlanDetailApi.getDeliverPlanDetailPage({ |
|
@ -229,10 +208,28 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) = |
|
|
} |
|
|
} |
|
|
} else if(formField == 'customerCode'){ |
|
|
} else if(formField == 'customerCode'){ |
|
|
//客户代码 |
|
|
//客户代码 |
|
|
|
|
|
|
|
|
|
|
|
let res = await CustomerdockApi.getCustomerdockPage({ |
|
|
|
|
|
by:"ASC", |
|
|
|
|
|
pageNo:1, |
|
|
|
|
|
pageSize:20, |
|
|
|
|
|
available: "TRUE", |
|
|
|
|
|
customerCode: val[0]['code'] |
|
|
|
|
|
}) |
|
|
|
|
|
if(res&&res.list&&res.list.length>0){ |
|
|
|
|
|
setV['customerDockCode'] = res.list[0]['code']//客户月台默认取第一条-喜婷 |
|
|
|
|
|
setV['toWarehouseCode'] = res.list[0]['warehouseCode']//到仓库 |
|
|
|
|
|
setV['toLocationCode'] = res.list[0]['defaultLocationCode']//到库位 |
|
|
|
|
|
let res2 = await AreabasicApi.selectAreabasicDOByCode(res.list[0]['defaultLocationCode']) |
|
|
|
|
|
if(res2){ |
|
|
|
|
|
setV['deliverType'] = res2['type'] |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
setV['customerDockCode'] = '' |
|
|
setV['customerDockCode'] = '' |
|
|
setV['toWarehouseCode'] = '' |
|
|
setV['toWarehouseCode'] = ''//到仓库 |
|
|
setV['toLocationCode'] = '' |
|
|
setV['toLocationCode'] = ''//到库位 |
|
|
setV['deliverType'] = '' |
|
|
setV['deliverType'] = ''//发货类型 |
|
|
|
|
|
} |
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
|
}else { |
|
|
}else { |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
@ -249,6 +246,7 @@ const clearSearchInput = (field)=>{ |
|
|
customerDockCode: '', |
|
|
customerDockCode: '', |
|
|
toWarehouseCode: '', |
|
|
toWarehouseCode: '', |
|
|
toLocationCode: '', |
|
|
toLocationCode: '', |
|
|
|
|
|
deliverPlanNumber: '', |
|
|
deliverType: '', |
|
|
deliverType: '', |
|
|
}) |
|
|
}) |
|
|
tableData.value = [] |
|
|
tableData.value = [] |
|
@ -258,6 +256,8 @@ const clearSearchInput = (field)=>{ |
|
|
toLocationCode: '', |
|
|
toLocationCode: '', |
|
|
deliverType: '', |
|
|
deliverType: '', |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else if('deliverPlanNumber' == field){ |
|
|
|
|
|
tableData.value = [] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 查询页面返回——详情 |
|
|
// 查询页面返回——详情 |
|
|