You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.1 KiB
97 lines
3.1 KiB
import request from '@/config/axios'
|
|
|
|
export interface ProcessrouteVO {
|
|
deleteTime: Date
|
|
id: number
|
|
status: string
|
|
concurrencyStamp: number
|
|
remark: string
|
|
deleter: string
|
|
processrouteCode: string
|
|
processName: string
|
|
productCode: string
|
|
routeVersion: number
|
|
|
|
}
|
|
|
|
|
|
// 查询工艺路线定义列表
|
|
export const getProcessroutePage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/mes/processroute/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/mes/processroute/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询工艺路线定义详情
|
|
export const getProcessroute = async (id: number) => {
|
|
return await request.get({ url: `/mes/processroute/get?id=` + id })
|
|
}
|
|
// 查询工艺路线定义的工序列表
|
|
export const getProcessrouteNodeList = async (code:any) => {
|
|
return await request.get({ url: `/mes/processrouteNodeDetail/getRouteNodes?code=`+code })
|
|
}
|
|
|
|
|
|
// 新增工艺路线定义
|
|
export const createProcessroute = async (data: ProcessrouteVO) => {
|
|
return await request.post({ url: `/mes/processroute/create`, data })
|
|
}
|
|
//提交图形数据
|
|
// 新增工艺路线定义
|
|
export const saveGraphData = async (data: any) => {
|
|
return await request.post({ url: `/mes/processroute/updategraph`, data })
|
|
}
|
|
// 修改工艺路线定义
|
|
export const updateProcessroute = async (data: ProcessrouteVO) => {
|
|
return await request.put({ url: `/mes/processroute/update`, data })
|
|
}
|
|
|
|
// 删除工艺路线定义
|
|
export const deleteProcessroute = async (id: number) => {
|
|
return await request.delete({ url: `/mes/processroute/delete?id=` + id })
|
|
}
|
|
|
|
// 导出工艺路线定义 Excel
|
|
export const exportProcessroute = async (params) => {
|
|
return await request.download({ url: `/mes/processroute/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/mes/processroute/get-import-template' })
|
|
}
|
|
// 获取工序工序列表-
|
|
export const getProcessList =async (params) => {
|
|
return await request.get({ url: `/mes/process/page`, params })
|
|
}
|
|
// 获取工序工序信息-
|
|
export const getProcesInfo = async(code:String) => {
|
|
return await request.get({ url: `/mes/process/getByCode?code=`+code })
|
|
}
|
|
// 获取产品信息列表-
|
|
export const getProductInfo =async (code:String) => {
|
|
return await request.get({ url: `/wms/itembasic/getProduct?code=`+code})
|
|
}
|
|
|
|
// 查询模具基本信息列表
|
|
export const getPatternPage = async (code:String) => {
|
|
return await request.get({ url: `/mes/mes-process-pattern/pagePatternByProcessCode?pageSize=25&processCode=`+code })
|
|
}
|
|
|
|
// 查询产品物料列表
|
|
export const getProcessBomList = async (params) => {
|
|
return await request.get({ url: `/mes/common/getBomListByProductAndProcess`,params})
|
|
}
|
|
|
|
// 查询产品bom的工序物料列表
|
|
export const getBomListByProductBomAndProcess = async (params) => {
|
|
return await request.get({ url: `/mes/common/getBomListByProductBomAndProcess`,params})
|
|
}
|
|
|
|
export const getWorkstationPage = async (code:String) => {
|
|
return await request.get({ url: `/mes/workstation/page?pageSize=25&processCode=`+code})
|
|
}
|
|
|