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