sampling.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import {request} from '../util/request'
  2. // 添加入场申请
  3. const applyadmission = async (param) => {
  4. // console.log(param)
  5. let res = await request({
  6. url: '/entrance/addAdmission',
  7. data:param,
  8. method:'POST'
  9. })
  10. return res
  11. }
  12. // 获取申请人列表,入场申请时的申请人
  13. const getApplyManList = async () => {
  14. let res = await request({
  15. url: '/applicantslist/getApplicants'
  16. })
  17. return res
  18. }
  19. // const getSampleList= async () => {
  20. // let res = await request({
  21. // url: '/sample/get'
  22. // })
  23. // return res
  24. // }
  25. // 检查结果录入和查询检查结果那里,输入隔离点和批次搜索采样列表
  26. const getSampleList = async (param) => {
  27. // console.log(param)
  28. let res = await request({
  29. url: '/sample/search',
  30. data:param,
  31. method:'POST'
  32. })
  33. return res
  34. }
  35. // 获取隔离点列表
  36. const getIsolationpointsList = async () => {
  37. let res = await request({
  38. url: '/isolationpoints/getIsolatedPoints'
  39. })
  40. return res
  41. }
  42. // 检查结果录入
  43. const addResult = async (data) =>{
  44. let res = await request({
  45. url:'/sample/updateResult',
  46. data:data,
  47. method:'POST'
  48. })
  49. return res
  50. }
  51. // 获取入场申请列表,人员采样页面
  52. const getAdmissionsList = async () => {
  53. let res = await request({
  54. url: '/entrance/getAdmission'
  55. })
  56. return res
  57. }
  58. export {
  59. applyadmission,
  60. getApplyManList,
  61. getSampleList,
  62. getIsolationpointsList,
  63. addResult,
  64. getAdmissionsList
  65. }