Browse Source

YT-2851:要货预测历史版本生成要货计划不正确

intex
songguoqiang 5 days ago
parent
commit
d62039bca4
  1. 11
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

11
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -295,7 +295,7 @@ const selectionPlan = async ()=>{
return return
} }
if(tableObject.tableList[0].isMaxScpVersion == '1'){ if(tableObject.tableList[0].isMaxScpVersion == '1'){
message.alert('选择版本号时无法生成要货计划选中!'); message.alert('选择版本号时无法生成要货计划!');
return; return;
} }
let rows: any = [] let rows: any = []
@ -386,11 +386,10 @@ const getSelectionRowsPlan = (currentPage, currentPageSelectionRows) => {
// //
const handleSelectionPublish = async ()=>{ const handleSelectionPublish = async ()=>{
if(!tableObject.tableList || tableObject.tableList.length === 0){ if(!tableObject.tableList || tableObject.tableList.length === 0){
message.alert('选择版本号时无法批量发布选中!');
return return
} }
if(tableObject.tableList[0].isMaxScpVersion == '1'){ if(tableObject.tableList[0].isMaxScpVersion == '1'){
message.alert('选择版本号时无法批量发布选中!'); message.alert('选择版本号时无法批量发布!');
return; return;
} }
@ -437,14 +436,14 @@ const updateDemandforecaste = async ()=>{
"supplierCodes":"", "supplierCodes":"",
"itemCodes":"" "itemCodes":""
} }
tableObject.loading = true //tableObject.loading = true
try { try {
let res = await DemandforecastingMainApi.updateDemandforecaste(submitData) let res = await DemandforecastingMainApi.updateDemandforecaste(submitData)
console.log('更新结果',res) console.log('更新结果',res)
message.success(t('更新成功')) message.success(t('同步要货预测数据需要等第一段时间才能同步完毕!'))
getList() getList()
} finally{ } finally{
tableObject.loading = false //tableObject.loading = false
} }
} }

Loading…
Cancel
Save