2
0

_profile.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*
  2. * Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. const basicGoods = [
  17. {
  18. id: '1234561',
  19. name: '矿泉水 550ml',
  20. barcode: '12421432143214321',
  21. price: '2.00',
  22. num: '1',
  23. amount: '2.00',
  24. },
  25. {
  26. id: '1234562',
  27. name: '凉茶 300ml',
  28. barcode: '12421432143214322',
  29. price: '3.00',
  30. num: '2',
  31. amount: '6.00',
  32. },
  33. {
  34. id: '1234563',
  35. name: '好吃的薯片',
  36. barcode: '12421432143214323',
  37. price: '7.00',
  38. num: '4',
  39. amount: '28.00',
  40. },
  41. {
  42. id: '1234564',
  43. name: '特别好吃的蛋卷',
  44. barcode: '12421432143214324',
  45. price: '8.50',
  46. num: '3',
  47. amount: '25.50',
  48. },
  49. ];
  50. const basicProgress = [
  51. {
  52. key: '1',
  53. time: '2017-10-01 14:10',
  54. rate: '联系客户',
  55. status: 'processing',
  56. operator: '取货员 ID1234',
  57. cost: '5mins',
  58. },
  59. {
  60. key: '2',
  61. time: '2017-10-01 14:05',
  62. rate: '取货员出发',
  63. status: 'success',
  64. operator: '取货员 ID1234',
  65. cost: '1h',
  66. },
  67. {
  68. key: '3',
  69. time: '2017-10-01 13:05',
  70. rate: '取货员接单',
  71. status: 'success',
  72. operator: '取货员 ID1234',
  73. cost: '5mins',
  74. },
  75. {
  76. key: '4',
  77. time: '2017-10-01 13:00',
  78. rate: '申请审批通过',
  79. status: 'success',
  80. operator: '系统',
  81. cost: '1h',
  82. },
  83. {
  84. key: '5',
  85. time: '2017-10-01 12:00',
  86. rate: '发起退货申请',
  87. status: 'success',
  88. operator: '用户',
  89. cost: '5mins',
  90. },
  91. ];
  92. const advancedOperation1 = [
  93. {
  94. key: 'op1',
  95. type: '订购关系生效',
  96. name: '曲丽丽',
  97. status: 'agree',
  98. updatedAt: '2017-10-03 19:23:12',
  99. memo: '-',
  100. },
  101. {
  102. key: 'op2',
  103. type: '财务复审',
  104. name: '付小小',
  105. status: 'reject',
  106. updatedAt: '2017-10-03 19:23:12',
  107. memo: '不通过原因',
  108. },
  109. {
  110. key: 'op3',
  111. type: '部门初审',
  112. name: '周毛毛',
  113. status: 'agree',
  114. updatedAt: '2017-10-03 19:23:12',
  115. memo: '-',
  116. },
  117. {
  118. key: 'op4',
  119. type: '提交订单',
  120. name: '林东东',
  121. status: 'agree',
  122. updatedAt: '2017-10-03 19:23:12',
  123. memo: '很棒',
  124. },
  125. {
  126. key: 'op5',
  127. type: '创建订单',
  128. name: '汗牙牙',
  129. status: 'agree',
  130. updatedAt: '2017-10-03 19:23:12',
  131. memo: '-',
  132. },
  133. ];
  134. const advancedOperation2 = [
  135. {
  136. key: 'op1',
  137. type: '订购关系生效',
  138. name: '曲丽丽',
  139. status: 'agree',
  140. updatedAt: '2017-10-03 19:23:12',
  141. memo: '-',
  142. },
  143. ];
  144. const advancedOperation3 = [
  145. {
  146. key: 'op1',
  147. type: '创建订单',
  148. name: '汗牙牙',
  149. status: 'agree',
  150. updatedAt: '2017-10-03 19:23:12',
  151. memo: '-',
  152. },
  153. ];
  154. export const PROFILES = {
  155. 'GET /profile/progress': basicProgress,
  156. 'GET /profile/goods': basicGoods,
  157. 'GET /profile/advanced': {
  158. advancedOperation1,
  159. advancedOperation2,
  160. advancedOperation3,
  161. },
  162. };