import request from '@/config/axios' // 模具管理-领模申请 VO export interface MoldGetVO { id: number // ID orderId: number // 领模单号 code: string // 模具编码 name: string // 模具名称 state: string // 状态 person: string // 领模人 deviceId: number // 设备id deviceName: string // 设备名称 getTime: Date // 领取时间 principal: string // 库管员 remark: string // 备注 } // 模具管理-领模申请 API export const MoldGetApi = { // 查询模具管理-领模申请分页 getMoldGetPage: async (params: any) => { return await request.get({ url: `/mes/mold-get/page`, params }) }, // 查询模具管理-领模申请详情 getMoldGet: async (id: number) => { return await request.get({ url: `/mes/mold-get/get?id=` + id }) }, // 新增模具管理-领模申请 createMoldGet: async (data: MoldGetVO) => { return await request.post({ url: `/mes/mold-get/create`, data }) }, // 修改模具管理-领模申请 updateMoldGet: async (data: MoldGetVO) => { return await request.put({ url: `/mes/mold-get/update`, data }) }, // 删除模具管理-领模申请 deleteMoldGet: async (id: number) => { return await request.delete({ url: `/mes/mold-get/delete?id=` + id }) }, // 导出模具管理-领模申请 Excel exportMoldGet: async (params) => { return await request.download({ url: `/mes/mold-get/export-excel`, params }) }, }