From 744125699d638749e74798d7a678b7848c1ec1ee Mon Sep 17 00:00:00 2001 From: bjang03 Date: Sun, 7 Apr 2024 11:50:52 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=AE=A2=E5=8D=95=E6=9C=88=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E7=BA=A7=E8=81=94=E5=88=A0=E9=99=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/ordermonthplan/index.ts | 53 ++++++ src/views/mes/ordermonthplan/index.vue | 44 +++-- .../ordermonthplan/mesOrderMonthMain.data.ts | 51 +++--- .../ordermonthplan/mesOrderMonthSub.data.ts | 162 ++++++++++++++++++ 4 files changed, 271 insertions(+), 39 deletions(-) create mode 100644 src/views/mes/ordermonthplan/mesOrderMonthSub.data.ts 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" > -