api.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import {
  2. request
  3. } from "./index.js";
  4. // 数据字典查询
  5. // export const reqDictionary = (postData) =>
  6. // request({
  7. // url: "/common/common/getDictionary",
  8. // data: postData,
  9. // method: 'POST'
  10. // });
  11. // 用户登录接口
  12. export const reqLogin = (postData) =>
  13. request({
  14. url: "/auth/login",
  15. data: postData,
  16. method: 'POST'
  17. });
  18. // 首页查看急标和普标数量
  19. export const reqSpecimenWorkOrderMsg = (postData) =>
  20. request({
  21. url: "/nurse/getSpecimenWorkOrderMsg",
  22. data: postData,
  23. method: 'POST'
  24. });
  25. // 首页快捷工单(其他临床服务任务类型)
  26. export const reqDeptTaskType = (postData) =>
  27. request({
  28. url: "/nurse/getDeptTaskType",
  29. data: postData,
  30. method: 'POST'
  31. });
  32. // 获取动态二维码
  33. export const reqDeptCodes = (postData) =>
  34. request({
  35. url: "/dept/deptCodes/0",
  36. data: postData,
  37. method: 'POST'
  38. });
  39. // fetchDataList查询(通用)
  40. export const reqFetchDataList = (type, target, postData) =>
  41. request({
  42. url: `/${type}/fetchDataList/${target}`,
  43. data: postData,
  44. method: 'POST'
  45. });
  46. // 获取一键建单所需的信息
  47. export const reqBuildTrip = (postData) =>
  48. request({
  49. url: '/nurse/workOrder/buildTrip',
  50. data: postData,
  51. method: 'POST'
  52. });
  53. // 获取一键建单所需的历史输入信息
  54. export const reqRecentRemarks = (postData) =>
  55. request({
  56. url: '/nurse/workOrder/recentRemarks',
  57. data: postData,
  58. method: 'POST'
  59. });
  60. // 建单
  61. export const reqBuildOrder = (postData) =>
  62. request({
  63. url: '/api/startOrder',
  64. data: postData,
  65. method: 'POST'
  66. });
  67. // 切换院区
  68. export const reqChangeHospital = (postData) =>
  69. request({
  70. url: '/auth/changeHospital',
  71. data: postData,
  72. method: 'POST'
  73. });
  74. // 更新操作
  75. export const reqUpdData = (type, target, postData) =>
  76. request({
  77. url: `/${type}/updData/${target}`,
  78. data: postData,
  79. method: 'POST'
  80. });
  81. // 获取当前用户登录信息
  82. export const reqGetCurrentUser = () =>
  83. request({
  84. url: '/user/data/getCurrentUser',
  85. });