system.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. import Mock from 'mockjs';
  2. // system customer manage
  3. export const customerListApi = Mock.mock(
  4. '/api/system/customer/list',
  5. 'post',
  6. (data) => {
  7. return {
  8. // list: [],
  9. list: [
  10. {
  11. id: '1',
  12. name: '1122',
  13. type: '333',
  14. province: '4',
  15. city: '5',
  16. area: '6',
  17. address: '7',
  18. manager: '8',
  19. serviceName: '9',
  20. roles: '10',
  21. k: 12,
  22. l: '12',
  23. m: '13',
  24. },
  25. ],
  26. total: 70,
  27. };
  28. }
  29. );
  30. // supplier customer manage
  31. export const supplierListApi = Mock.mock(
  32. '/api/system/supplier/list',
  33. 'post',
  34. (data) => {
  35. return {
  36. // list: [],
  37. list: [
  38. {
  39. id: '1',
  40. code: '22',
  41. name: '33',
  42. type: '44',
  43. remark: '55',
  44. enable: true,
  45. },
  46. ],
  47. total: 70,
  48. };
  49. }
  50. );
  51. // device customer manage
  52. export const deviceListApi = Mock.mock(
  53. '/api/system/device/list',
  54. 'post',
  55. (data) => {
  56. return {
  57. // list: [],
  58. list: [
  59. {
  60. id: '1',
  61. code: '22',
  62. serialNo: '33',
  63. brand: '44',
  64. buyTime: '55',
  65. supllier: '66',
  66. status: '77',
  67. location: '88',
  68. scanCount: '99',
  69. },
  70. ],
  71. total: 70,
  72. };
  73. }
  74. );
  75. // service-level manage
  76. export const serviceLevelListApi = Mock.mock(
  77. '/api/system/service-level/list',
  78. 'post',
  79. (data) => {
  80. return {
  81. list: [
  82. {
  83. id: '1',
  84. name: '11',
  85. businessType: '22',
  86. roles: [],
  87. creator: '44',
  88. createdTime: '',
  89. },
  90. ],
  91. total: 70,
  92. };
  93. }
  94. );
  95. // checkin customer manage
  96. export const checkinListApi = Mock.mock(
  97. '/api/system/checkin/list',
  98. 'post',
  99. (data) => {
  100. return {
  101. list: [
  102. {
  103. id: '1',
  104. unit: '11',
  105. status: '22',
  106. name: '33',
  107. to: [],
  108. supplier: '44',
  109. checkinTime: [55],
  110. checkoutTime: [66],
  111. auditRoles: [77],
  112. openFace: false,
  113. backupCount: 2,
  114. },
  115. ],
  116. total: 70,
  117. };
  118. }
  119. );
  120. // log customer manage
  121. export const logListApi = Mock.mock('/api/system/log/list', 'post', (data) => {
  122. return {
  123. // list: [],
  124. list: [
  125. {
  126. id: '1',
  127. a: '1122',
  128. b: '333',
  129. c: '4',
  130. },
  131. {
  132. id: '2',
  133. a: '1122',
  134. b: '333',
  135. c: '4',
  136. },
  137. {
  138. id: '3',
  139. a: '1122',
  140. b: '333',
  141. c: '4',
  142. },
  143. ],
  144. total: 70,
  145. };
  146. });
  147. // notice customer manage
  148. export const noticeListApi = Mock.mock(
  149. '/api/system/notice/list',
  150. 'post',
  151. (data) => {
  152. return {
  153. // list: [],
  154. list: [
  155. {
  156. id: '1',
  157. a: '1122',
  158. b: '333',
  159. c: '4',
  160. },
  161. {
  162. id: '2',
  163. a: '1122',
  164. b: '333',
  165. c: '4',
  166. },
  167. {
  168. id: '3',
  169. a: '1122',
  170. b: '333',
  171. c: '4',
  172. },
  173. ],
  174. total: 70,
  175. };
  176. }
  177. );