import request from '@/config/axios' export interface ProcessVO { code: string name: string description: string type: string workshopCode: string productionLineCode: string available: number activeTime: Date expireTime: Date remark: string } // 查询工序列表 export const getProcessPage = async (params) => { return await request.get({ url: `/wms/process/page`, params }) } // 查询工序详情 export const getProcess = async (id: number) => { return await request.get({ url: `/wms/process/get?id=` + id }) } // 新增工序 export const createProcess = async (data: ProcessVO) => { return await request.post({ url: `/wms/process/create`, data }) } // 修改工序 export const updateProcess = async (data: ProcessVO) => { return await request.put({ url: `/wms/process/update`, data }) } // 删除工序 export const deleteProcess = async (id: number) => { return await request.delete({ url: `/wms/process/delete?id=` + id }) } // 导出工序 Excel export const exportProcess = async (params) => { return await request.download({ url: `/wms/process/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/process/get-import-template' }) }