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/productOffline/index.ts b/src/api/mes/productOffline/index.ts index c5434f931..8d504ad7e 100644 --- a/src/api/mes/productOffline/index.ts +++ b/src/api/mes/productOffline/index.ts @@ -64,8 +64,8 @@ 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 }) } } 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/components/SearchTable/index.ts b/src/components/SearchTable/index.ts index 28289593f..4293a0555 100644 --- a/src/components/SearchTable/index.ts +++ b/src/components/SearchTable/index.ts @@ -1,3 +1,3 @@ import SearchTable from './src/SearchTable.vue' -export { SearchTable } +export { SearchTable} diff --git a/src/components/SearchTableV2/index.ts b/src/components/SearchTableV2/index.ts new file mode 100644 index 000000000..655979c12 --- /dev/null +++ b/src/components/SearchTableV2/index.ts @@ -0,0 +1,3 @@ +import SearchTable from './src/SearchTableV2.vue' + +export { SearchTable } diff --git a/src/components/SearchTableV2/src/SearchTableV2.vue b/src/components/SearchTableV2/src/SearchTableV2.vue new file mode 100644 index 000000000..cfee305e9 --- /dev/null +++ b/src/components/SearchTableV2/src/SearchTableV2.vue @@ -0,0 +1,187 @@ + + + \ 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..8715c9abb 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" >