import request from '@/config/axios' // 标本出库回库信息 VO export interface SpecimenOutboundVO { id: number // 主键 infoId: string // 关联到总表中的标本ID chineseName: string // 中文名称 specimenNumber: string // 申请出库的标本编号 applicantName: string // 申请人或申请单位 applicationDate: Date // 申请日期 applicationUsage: string // 申请出库的用途 attachments: string // 附件上传 status: number // 审批状态 remarks: string // 备注信息 processInstanceId: string // 流程实例的编号 operator: string // 出库员 outgoingTime: Date // 出库时间 returner: string // 退还人 receiver: string // 点收人 returnDate: Date // 退还日期 specimenCondition: string // 标本情况 sampleStatus: number // 标本状态(已出库、已回库、出库审批中) } // 标本出库回库信息 API export const SpecimenOutboundApi = { // 查询标本出库回库信息分页 getSpecimenOutboundPage: async (params: any) => { return await request.get({ url: `/museums/specimen-outbound/page`, params }) }, // 查询标本出库回库信息详情 getSpecimenOutbound: async (id: number) => { return await request.get({ url: `/museums/specimen-outbound/get?id=` + id }) }, // 新增标本出库回库申请 createSpecimenOutbound: async (data: SpecimenOutboundVO) => { return await request.post({ url: `/museums/specimen-outbound/create`, data }) }, // 修改标本出库回库信息 updateSpecimenOutbound: async (data: SpecimenOutboundVO) => { return await request.put({ url: `/museums/specimen-outbound/update`, data }) }, // 删除标本出库回库信息 deleteSpecimenOutbound: async (id: number) => { return await request.delete({ url: `/museums/specimen-outbound/delete?id=` + id }) }, // 导出标本出库回库信息 Excel exportSpecimenOutbound: async (params) => { return await request.download({ url: `/museums/specimen-outbound/export-excel`, params }) }, // 审批通过标本出库回库 ApprovalPassSpecimenOutbound: async (data: SpecimenOutboundVO) => { return await request.post({ url: `/museums/specimen-outbound/approve`, data }) }, // 审批驳回标本出库回库 ApprovalSpecimenOutbound: async (data: SpecimenOutboundVO) => { return await request.post({ url: `/museums/specimen-outbound/reject`, data }) }, // // 确认回标本回库 // SpecimenOutboundReturn: async (data: SpecimenOutboundVO) => { // return await request.post({ url: `/museums/specimen-outbound/update`,data}) // }, // 确认回标本出库 ConfirmSpecimenOutbound :async (id: number) => { // 构造请求体 const reqBody = { id: id }; // 发送POST请求,包含请求体 return await request.post({ url: `/museums/specimen-outbound/confirmOutbound`, data: reqBody }); }, // 确认标本回库 // SpecimenOutboundReturn :async (id: number) => { // // 构造请求体 // const reqBody = { // id: id // }; // // 发送POST请求,包含请求体 // return await request.post({ // url: `/museums/specimen-outbound/update`, // data: reqBody // });/museums/specimen-outbound/specimenInfo // } // 查询标本出库回库信息详情页面 getSpecimenOutboundDetails: async (id: number) => { return await request.get({ url: `/museums/specimen-outbound/specimenInfo?id=` + id }) }, // 修改标本出库申请 alterSpecimenOutbound: async (data: SpecimenOutboundVO) => { return await request.put({ url: `/museums/specimen-outbound/recompile`, data }) }, }