code.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. async save(form) {
  4. return HcApi({
  5. url: '/api/blade-business/trialnumberrule/save',
  6. method: 'post',
  7. data: form,
  8. })
  9. },
  10. async update(form) {
  11. return HcApi({
  12. url: '/api/blade-business/trialnumberrule/update',
  13. method: 'post',
  14. data: form,
  15. })
  16. },
  17. async getTrialNumberRule(form) {
  18. return HcApi({
  19. url: '/api/blade-business/trialnumberrule/getTrialNumberRule',
  20. method: 'get',
  21. params: form,
  22. })
  23. },
  24. //删除
  25. async remove(form) {
  26. return HcApi({
  27. url: '/api//blade-business/trialnumberrule/remove',
  28. method: 'post',
  29. params: form,
  30. })
  31. },
  32. async getTrialNumber(form) {
  33. return HcApi({
  34. url: '/api/blade-business/trialnumberrule/getTrialNumber',
  35. method: 'get',
  36. params: form,
  37. })
  38. },
  39. async reTrialNumberRule(form) {
  40. return HcApi({
  41. url: '/api/blade-business/trialnumberrule/reTrialNumberRule',
  42. method: 'get',
  43. params: form,
  44. })
  45. },
  46. async getEntrustNumber(form) {
  47. return HcApi({
  48. url: '/api/blade-business/trialnumberrule/getEntrustNumber',
  49. method: 'get',
  50. params: form,
  51. })
  52. },
  53. async sort(form) {
  54. return HcApi({
  55. url: '/api/blade-business/trialnumberrule/sort',
  56. method: 'post',
  57. data: form,
  58. })
  59. },
  60. ///获取基础信息
  61. async getBaseInfo(form) {
  62. return HcApi({
  63. url: '/api/blade-business/detection/self/getBaseInfo',
  64. method: 'get',
  65. params: form,
  66. })
  67. },
  68. async saveBaseInfo(form) {
  69. return HcApi({
  70. url: '/api/blade-business/detection/self/saveBaseInfo',
  71. method: 'post',
  72. data: form,
  73. })
  74. },
  75. //根据standardCode获取检测项目
  76. async getStandardInfoByStandardId(form) {
  77. return HcApi({
  78. url: '/api/blade-business/detection/self/getStandardInfoByStandardId',
  79. method: 'get',
  80. params: form,
  81. })
  82. },
  83. //关联上次设备
  84. async lastTrailDeviceInfo(form) {
  85. return HcApi({
  86. url: '/api/blade-business/detection/self/lastTrailDeviceInfo',
  87. method: 'get',
  88. params: form,
  89. })
  90. },
  91. //获取关联设备修改
  92. async getDeviceInfoByIds(form) {
  93. return HcApi({
  94. url: '/api/blade-business/detection/self/getDeviceInfoByIds',
  95. method: 'get',
  96. params: form,
  97. })
  98. },
  99. }