gaojs
7 months ago
1 changed files with 116 additions and 0 deletions
@ -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 })
|
|||
// }
|
Loading…
Reference in new issue