Browse Source

生成要货计划

intex_online20241111
yufei_wang 3 weeks ago
parent
commit
ee3146c100
  1. 6
      src/api/wms/demandforecastingDetail/index.ts
  2. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

6
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 })
}

7
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') {

Loading…
Cancel
Save