diff --git a/src/api/mes/ordermonthplan/index.ts b/src/api/mes/ordermonthplan/index.ts index 3c86a1a5c..d3fc9bfd1 100644 --- a/src/api/mes/ordermonthplan/index.ts +++ b/src/api/mes/ordermonthplan/index.ts @@ -58,3 +58,56 @@ export const exportMesOrderMonthMain = async (params) => { export const importTemplate = () => { return request.download({ url: '/plan/mes-order-month-main/get-import-template' }) } + +export interface MesOrderMonthSubVO { + status: string + remark: string + productCode: string + bomCode: string + inStoreCode: string + planBegin: Date + planEnd: Date + realStart: string + realFinish: Date + planCount: number + finishCount: number + qualifiedCount: number + unqualifiedCount: number + flagBackwash: string + productBatchcode: string +} +// 查询订单月计划子列表 +export const getMesOrderMonthSubPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/plan/mes-order-month-sub/senior', data }) + } else { + return await request.get({ url: `/plan/mes-order-month-sub/page`, params }) + } +} + +// 查询订单月计划子详情 +export const getMesOrderMonthSub = async (id: number) => { + return await request.get({ url: `/plan/mes-order-month-sub/get?id=` + id }) +} + +// 新增订单月计划子 +export const createMesOrderMonthSub = async (data: MesOrderMonthSubVO) => { + return await request.post({ url: `/plan/mes-order-month-sub/create`, data }) +} + +// 修改订单月计划子 +export const updateMesOrderMonthSub = async (data: MesOrderMonthSubVO) => { + return await request.put({ url: `/plan/mes-order-month-sub/update`, data }) +} + +// 删除订单月计划子 +export const deleteMesOrderMonthSub = async (id: number) => { + return await request.delete({ url: `/plan/mes-order-month-sub/delete?id=` + id }) +} + +// 导出订单月计划子 Excel +export const exportMesOrderMonthSub = async (params) => { + return await request.download({ url: `/plan/mes-order-month-sub/export-excel`, params }) +} diff --git a/src/views/mes/ordermonthplan/index.vue b/src/views/mes/ordermonthplan/index.vue index bea98e710..eaf3a3cde 100644 --- a/src/views/mes/ordermonthplan/index.vue +++ b/src/views/mes/ordermonthplan/index.vue @@ -27,9 +27,9 @@ v-model:currentPage="tableObject.currentPage" v-model:sort="tableObject.sort" > -