From d19bf8c0857bab0b19305f157d858d257f248a95 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Mon, 22 Apr 2024 10:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E8=AE=A1=E5=88=92API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/orderDay/index.ts | 116 ++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 src/api/mes/orderDay/index.ts diff --git a/src/api/mes/orderDay/index.ts b/src/api/mes/orderDay/index.ts new file mode 100644 index 0000000..24de2d1 --- /dev/null +++ b/src/api/mes/orderDay/index.ts @@ -0,0 +1,116 @@ +import http from '../../http' + +export interface OrderDayVO { + status: string + remark: string + planNoMonth: string + planNoDay: string + productCode: string + workroomCode: string + lineCode: string + planCount: number + processrouteCode: string + tempProcessroute: string + standardBom: string + tempBom: string + workMode: string + planDate: Date + startTime: Date + endTime: Date + taskMode: string +} + +export function getOrderDayPage(params) { + return http.get('/mes/orderday/page', {params}) +} + +export function getOrderDayPlanDetail(number) { + //return http.get('/eam/item-apply-request-main/appGetByNumber?number=' + number) + return http.get('/mes/orderday/get?id=' + number) +} + +// 查询生产日计划列表 +// export const getOrderDayPage = async (params) => { +// if (params.isSearch) { +// delete params.isSearch +// const data = {...params} +// return await request.post({ url: '/mes/orderday/senior', data }) +// } else { +// return await request.get({ url: `/mes/orderday/page`, params }) +// } +// } + +// // 查询生产日计划详情 +// export const getOrderDay = async (id: number) => { +// return await request.get({ url: `/mes/orderday/get?id=` + id }) +// } + +// // 新增生产日计划 +// export const createOrderDay = async (data: OrderDayVO) => { +// return await request.post({ url: `/mes/orderday/create`, data }) +// } + +// // 修改生产日计划 +// export const updateOrderDay = async (data: OrderDayVO) => { +// return await request.put({ url: `/mes/orderday/update`, data }) +// } + +// // 删除生产日计划 +// export const deleteOrderDay = async (id: number) => { +// return await request.delete({ url: `/mes/orderday/delete?id=` + id }) +// } + +// // 导出生产日计划 Excel +// export const exportOrderDay = async (params) => { +// return await request.download({ url: `/mes/orderday/export-excel`, params }) +// } +// // 下载用户导入模板 +// export const importTemplate = () => { +// return request.download({ url: '/mes/orderday/get-import-template' }) +// } +// // 根据产品编码获取Bom +// export const getBoms = async (code: String) => { +// return request.get({ url: '/mes/common/geBomByProductCode?code='+code }) +// } +// // 根据产品编码获取工艺路线 +// export const getProcessroutes = async (code: String) => { +// return request.get({ url: '/mes/common/getProcessRouteByProductCode?code='+code }) +// } +// // 根据车间编码获取产线列表 +// export const getProductlines = async (code: String) => { +// return request.get({ url: '/mes/common/getLinesByWorkRoomCode?code='+code }) +// } +// // 获取产线信息 +// export const getProductlineInfo = async (code: String) => { +// return request.get({ url: '/mes/common/getLinesByWorkRoomCode?code='+code }) +// } +// // 根据工艺路线的工序信息 +// export const getProcessroutesDetail = async (code) => { +// return await request.get({ url: `/mes/orderday/getProcessInfo?code=`+ code }) +// } +// // 根据获取计划BOM信息 +// export const getPlanBom = async (params) => { +// return await request.get({ url: `/mes/orderday/getBomInfo`,params }) +// } + +// // 根据获取计划BOM信息 +// export const getBomInfoTree = async (params) => { +// return await request.get({ url: `/mes/orderday/getBomInfoTree`,params }) +// } +// // 根据计划的车间、产线、计划时间 查询已经配置的人员 +// export const getPlanWorks = async (params) => { +// return await request.get({ url: `/mes/orderday/getWorkGroup`,params }) +// } +// // 根据车间、产线 查询已配置的设备 +// export const getPlanDevices = async (params) => { +// return await request.get({ url: `/mes/orderday/getDeviceInfo`,params }) +// } + +// ///发布计划 +// export const publishPlan = async (data: OrderDayVO) => { +// return await request.post({ url: `/mes/orderday/publishPlan`,data }) +// } +// //终止计划 +// export const stopPlan = async (params) => { +// return await request.post({ url: `/mes/orderday/stopPlan`,params }) +// } \ No newline at end of file