index.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import request from '@/config/axios'
  2. // 标本出库回库信息 VO
  3. export interface SpecimenOutboundVO {
  4. id: number // 主键
  5. infoId: string // 关联到总表中的标本ID
  6. chineseName: string // 中文名称
  7. specimenNumber: string // 申请出库的标本编号
  8. applicantName: string // 申请人或申请单位
  9. applicationDate: Date // 申请日期
  10. applicationUsage: string // 申请出库的用途
  11. attachments: string // 附件上传
  12. status: number // 审批状态
  13. remarks: string // 备注信息
  14. processInstanceId: string // 流程实例的编号
  15. operator: string // 出库员
  16. outgoingTime: Date // 出库时间
  17. returner: string // 退还人
  18. receiver: string // 点收人
  19. returnDate: Date // 退还日期
  20. specimenCondition: string // 标本情况
  21. sampleStatus: number // 标本状态(已出库、已回库、出库审批中)
  22. }
  23. // 标本出库回库信息 API
  24. export const SpecimenOutboundApi = {
  25. // 查询标本出库回库信息分页
  26. getSpecimenOutboundPage: async (params: any) => {
  27. return await request.get({ url: `/museums/specimen-outbound/page`, params })
  28. },
  29. // 查询标本出库回库信息详情
  30. getSpecimenOutbound: async (id: number) => {
  31. return await request.get({ url: `/museums/specimen-outbound/get?id=` + id })
  32. },
  33. // 新增标本出库回库申请
  34. createSpecimenOutbound: async (data: SpecimenOutboundVO) => {
  35. return await request.post({ url: `/museums/specimen-outbound/create`, data })
  36. },
  37. // 修改标本出库回库信息
  38. updateSpecimenOutbound: async (data: SpecimenOutboundVO) => {
  39. return await request.put({ url: `/museums/specimen-outbound/update`, data })
  40. },
  41. // 删除标本出库回库信息
  42. deleteSpecimenOutbound: async (id: number) => {
  43. return await request.delete({ url: `/museums/specimen-outbound/delete?id=` + id })
  44. },
  45. // 导出标本出库回库信息 Excel
  46. exportSpecimenOutbound: async (params) => {
  47. return await request.download({ url: `/museums/specimen-outbound/export-excel`, params })
  48. },
  49. // 审批通过标本出库回库
  50. ApprovalPassSpecimenOutbound: async (data: SpecimenOutboundVO) => {
  51. return await request.post({ url: `/museums/specimen-outbound/approve`, data })
  52. },
  53. // 审批驳回标本出库回库
  54. ApprovalSpecimenOutbound: async (data: SpecimenOutboundVO) => {
  55. return await request.post({ url: `/museums/specimen-outbound/reject`, data })
  56. },
  57. // // 确认回标本回库
  58. // SpecimenOutboundReturn: async (data: SpecimenOutboundVO) => {
  59. // return await request.post({ url: `/museums/specimen-outbound/update`,data})
  60. // },
  61. // 确认回标本出库
  62. ConfirmSpecimenOutbound :async (id: number) => {
  63. // 构造请求体
  64. const reqBody = {
  65. id: id
  66. };
  67. // 发送POST请求,包含请求体
  68. return await request.post({
  69. url: `/museums/specimen-outbound/confirmOutbound`,
  70. data: reqBody
  71. });
  72. },
  73. // 确认标本回库
  74. // SpecimenOutboundReturn :async (id: number) => {
  75. // // 构造请求体
  76. // const reqBody = {
  77. // id: id
  78. // };
  79. // // 发送POST请求,包含请求体
  80. // return await request.post({
  81. // url: `/museums/specimen-outbound/update`,
  82. // data: reqBody
  83. // });/museums/specimen-outbound/specimenInfo
  84. // }
  85. // 查询标本出库回库信息详情页面
  86. getSpecimenOutboundDetails: async (id: number) => {
  87. return await request.get({ url: `/museums/specimen-outbound/specimenInfo?id=` + id })
  88. },
  89. // 修改标本出库申请
  90. alterSpecimenOutbound: async (data: SpecimenOutboundVO) => {
  91. return await request.put({ url: `/museums/specimen-outbound/recompile`, data })
  92. },
  93. }