diff --git a/src/api/wms/demandforecastingDetail/index.ts b/src/api/wms/demandforecastingDetail/index.ts index 27a835055..944d0f0fd 100644 --- a/src/api/wms/demandforecastingDetail/index.ts +++ b/src/api/wms/demandforecastingDetail/index.ts @@ -130,3 +130,9 @@ export const queryVersion = async (params) => { export const getPreviewPlan = async (params) => { return await request.get({ url: `/wms/demandforecasting-detail/preview`, params }) } + + +// 预览要货计划-保存 +export const generateOrderPlan = async (data) => { + return await request.post({ url: '/wms/demandforecasting-detail/generateOrderPlan', data }) +} \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue index 5e8fd2958..cc340c4d4 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue @@ -285,7 +285,7 @@ const handlePreviewPlan = async ()=>{ dialogVisiblePlan.value = true } -const buttonBaseClickPlan = (val)=>{ +const buttonBaseClickPlan = async (val)=>{ if (val == 'save') { // 保存 dialogVisiblePlan.value = false @@ -295,7 +295,10 @@ const buttonBaseClickPlan = (val)=>{ }) console.log('预览要货计划', selectionPlanRows.value) console.log('预览要货计划', rows.join(',')) - + let res = await DemandforecastingDetailApi.generateOrderPlan(rows) + message.success(t('common.submitSuccess')) + buttonBaseClick('refresh', null) + console.log('保存',res) } // 关闭 else if (val == 'close') {