sample-random-model.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import {Base} from '../../../static/util/base.js'
  2. class SampleRandomModel extends Base {
  3. constructor() {
  4. super();
  5. }
  6. getEnterprisesList(data,callBack) {
  7. var params = {
  8. url: '/ah/ah-task-zf-user/getEnterprisesList',
  9. data:data,
  10. sCallBack: function (res) {
  11. callBack && callBack(res.data)
  12. }
  13. }
  14. this.serviceRequest(params);
  15. }
  16. getProductList(data,callBack) {
  17. var params = {
  18. url: '/ah/ah-task-zf-user/getProductList',
  19. data:data,
  20. sCallBack: function (res) {
  21. callBack && callBack(res.data)
  22. }
  23. }
  24. this.serviceRequest(params);
  25. }
  26. getEnterPrisesNum(data,callBack) {
  27. var params = {
  28. url: '/ah/ah-task-zf-user/getEnterPrisesNum',
  29. data:data,
  30. sCallBack: function (res) {
  31. callBack && callBack(res.data)
  32. }
  33. }
  34. this.serviceRequest(params);
  35. }
  36. getTaskSampleDetail(taskId, callBack) {
  37. var params = {
  38. url: '/ah/ahTaskDetail/list?pageNum=1&pageSize=100&taskId=' + taskId,
  39. sCallBack: function (res) {
  40. callBack && callBack(res.data)
  41. }
  42. }
  43. this.serviceRequest(params);
  44. }
  45. getZfUserById(id, callBack) {
  46. var params = {
  47. url: '/ah/ah-task-zf-user/getZfUserById',
  48. data:{id},
  49. sCallBack: function (res) {
  50. callBack && callBack(res.data)
  51. }
  52. }
  53. this.serviceRequest(params);
  54. }
  55. updateZfyInfo(data, callBack) {
  56. var params = {
  57. url: '/ah/ahSampleSheet/updateZfyInfo',
  58. data:data,
  59. type:"POST",
  60. sCallBack: function (res) {
  61. callBack && callBack(res.data)
  62. }
  63. }
  64. this.serviceRequest(params);
  65. }
  66. createSampleSheetList(data,callBack){
  67. var params = {
  68. url: '/ah/ahSampleSheet/createSampleSheet',
  69. data:data,
  70. type:"POST",
  71. sCallBack: function (res) {
  72. callBack && callBack(res.data)
  73. }
  74. }
  75. this.serviceRequest(params);
  76. }
  77. getSampleCheckList(data,callBack){
  78. var params = {
  79. url: '/ah/ahSampleSheet/listByCheckSample',
  80. data:data,
  81. sCallBack: function (res) {
  82. callBack && callBack(res.data)
  83. }
  84. }
  85. this.serviceRequest(params);
  86. }
  87. /* 获取改xzqdm下的地点 */
  88. getXzqdmSubLists(xzqCode,callBack){
  89. var params = {
  90. url: '/jg/tZdXzq/list',
  91. type: 'GET',
  92. data: {xzqCode},
  93. header: {
  94. 'content-type': 'application/x-www-form-urlencoded'
  95. },
  96. sCallBack: function (res) {
  97. callBack && callBack(res)
  98. }
  99. }
  100. this.jgRequest(params);
  101. }
  102. }
  103. const _sampleRandom = new SampleRandomModel();
  104. export {_sampleRandom}