From ee3146c100daf6e77407f2972ab1cc0dc6917b8f Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 5 Nov 2024 16:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E8=A6=81=E8=B4=A7=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/demandforecastingDetail/index.ts | 6 ++++++ .../supplierdeliver/demandforecastingMain/index.vue | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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') {