import request from '@/config/axios' export interface PgMasterVO { id: number pgNumber: string taskNo: string taskId: number projectId: number projectNo: string projectName: string pgUser: number pgDatetime: localdate } //查询BOM明细 export const getSearchBomMx = async (task_id: number,project_id: number) => { return await request.get({ url: `/heli/pg-master/getBomMx?task_id=` + task_id+`&project_id=`+project_id}) } // 查询质量派工单过程检验行分页 export const getPgMasterLinePage = async (params) => { return await request.get({ url: `/heli/pg-master/task-dispatch-detail/pages`, params }) } // 查询质量过程检派工单主分页 export const getPgMasterPage = async (params) => { return await request.get({ url: `/heli/pg-master/page`, params }) } // 查询质量过程检派工单主详情 export const getPgMaster = async (id: number) => { return await request.get({ url: `/heli/pg-master/get?id=` + id }) } // 新增质量过程检派工单主 export const createPgMaster = async (data: PgMasterVO) => { return await request.post({ url: `/heli/pg-master/create`, data }) } // 修改质量过程检派工单主 export const updatePgMaster = async (data: PgMasterVO) => { return await request.put({ url: `/heli/pg-master/update`, data }) } // 删除质量过程检派工单主 export const deletePgMaster = async (id: number) => { return await request.delete({ url: `/heli/pg-master/delete?id=` + id }) } // 导出质量过程检派工单主 Excel export const exportPgMaster = async (params) => { return await request.download({ url: `/heli/pg-master/export-excel`, params }) } // ==================== 子表(质量派工单过程检验行) ==================== // 获得质量派工单过程检验行列表 export const getPgMasterLineListByZlPgId = async (zlPgId) => { return await request.get({ url: `/heli/pg-master/pg-master-line/list-by-zl-pg-id?zlPgId=` + zlPgId }) }