diff --git a/src/api/mes/orderDay/index.ts b/src/api/mes/orderDay/index.ts index 00f348d3e..0ccc0f3ee 100644 --- a/src/api/mes/orderDay/index.ts +++ b/src/api/mes/orderDay/index.ts @@ -99,9 +99,9 @@ export const getPlanDevices = async (params) => { ///发布计划 export const publishPlan = async (data: OrderDayVO) => { - return await request.post({ url: `/mes/orderday/publishPlan`,data }) + return await request.postOriginal({ url: `/mes/orderday/publishPlan`,data }) } //终止计划 -export const stopPlan = async (params) => { - return await request.post({ url: `/mes/orderday/stopPlan`,params }) +export const stopPlan = async (id) => { + return await request.post({ url: `/mes/orderday/stopPlan/`+id }) } \ No newline at end of file diff --git a/src/api/mes/workScheduling/index.ts b/src/api/mes/workScheduling/index.ts index 08591d25b..d17a72c52 100644 --- a/src/api/mes/workScheduling/index.ts +++ b/src/api/mes/workScheduling/index.ts @@ -9,38 +9,42 @@ export const getWorkSchedulingPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/mes/work-scheduling/senior', data }) + return await request.post({ url: '/mes/workScheduling/senior', data }) } else { - return await request.get({ url: `/mes/work-scheduling/page`, params }) + return await request.get({ url: `/mes/workScheduling/page`, params }) } } // 查询生产任务排产详情 export const getWorkScheduling = async (id: number) => { - return await request.get({ url: `/mes/work-scheduling/get?id=` + id }) + return await request.get({ url: `/mes/workScheduling/get?id=` + id }) } // 新增生产任务排产 export const createWorkScheduling = async (data: WorkSchedulingVO) => { - return await request.post({ url: `/mes/work-scheduling/create`, data }) + return await request.post({ url: `/mes/workScheduling/create`, data }) } // 修改生产任务排产 export const updateWorkScheduling = async (data: WorkSchedulingVO) => { - return await request.put({ url: `/mes/work-scheduling/update`, data }) + return await request.put({ url: `/mes/workScheduling/update`, data }) +} +// 更改生产任务状态 +export const updateWorkSchedulingStatus = async (data: any) => { + return await request.put({ url: `/mes/workScheduling/updateStatus`, data }) } // 删除生产任务排产 export const deleteWorkScheduling = async (id: number) => { - return await request.delete({ url: `/mes/work-scheduling/delete?id=` + id }) + return await request.delete({ url: `/mes/workScheduling/delete?id=` + id }) } // 导出生产任务排产 Excel export const exportWorkScheduling = async (params) => { - return await request.download({ url: `/mes/work-scheduling/export-excel`, params }) + return await request.download({ url: `/mes/workScheduling/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/mes/work-scheduling/get-import-template' }) + return request.download({ url: '/mes/workScheduling/get-import-template' }) } \ No newline at end of file diff --git a/src/views/mes/orderDay/components/BasicFormV2.vue b/src/views/mes/orderDay/components/BasicFormV2.vue index a155e9cdc..6c9c1b02c 100644 --- a/src/views/mes/orderDay/components/BasicFormV2.vue +++ b/src/views/mes/orderDay/components/BasicFormV2.vue @@ -4,11 +4,11 @@ v-model="dialogVisible" :width="dialogWidth" :close-on-click-modal="false" + :vLoading="formLoading" >