|
|
@ -177,6 +177,7 @@ defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
|
// defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
|
defaultButtons.defaultSetBtn(null), // 设置 |
|
|
|
defaultButtons.mainListSelectionOrderPubBtn(null), // 批量发布按钮 |
|
|
|
defaultButtons.mainUpdataForecastBtn(null), // 更新要货预测 |
|
|
|
] |
|
|
|
|
|
|
|
// 头部按钮事件 |
|
|
@ -200,6 +201,8 @@ const buttonBaseClick = async (val, item) => { |
|
|
|
selectionPlan() |
|
|
|
} else if (val == 'mainOrderSelectionPub') { // 批量发布要货计划 |
|
|
|
handleSelectionPublish() |
|
|
|
} else if (val == 'updataForecast') { // 要货预测调用QAD |
|
|
|
updateDemandforecaste() |
|
|
|
} else { // 其他按钮 |
|
|
|
console.log('其他按钮', item) |
|
|
|
} |
|
|
@ -397,6 +400,23 @@ const handleSelectionPublish = async ()=>{ |
|
|
|
// }) |
|
|
|
} |
|
|
|
|
|
|
|
//点击要货预测调用QAD拉数据 |
|
|
|
const updateDemandforecaste = async ()=>{ |
|
|
|
let submitData = { |
|
|
|
"supplierCodes":"", |
|
|
|
"itemCodes":"" |
|
|
|
} |
|
|
|
tableObject.loading = true |
|
|
|
try { |
|
|
|
let res = await DemandforecastingMainApi.updateDemandforecaste(submitData) |
|
|
|
console.log('更新结果',res) |
|
|
|
message.success(t('更新成功')) |
|
|
|
} finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|