data.tsx 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. import { DescItem } from '/@/components/Description/index';
  2. import { BasicColumn } from '/@/components/Table/src/types/table';
  3. import { Button } from '/@/components/Button';
  4. import { Badge } from 'ant-design-vue';
  5. export const refundData = {
  6. a1: '1000000000',
  7. a2: '已取货',
  8. a3: '1234123421',
  9. a4: '3214321432',
  10. };
  11. export const personData = {
  12. b1: '付小小',
  13. b2: '18100000000',
  14. b3: '菜鸟仓储',
  15. b4: '浙江省杭州市西湖区万塘路18号',
  16. b5: '无',
  17. };
  18. export const refundSchema: DescItem[] = [
  19. {
  20. field: 'a1',
  21. label: '取货单号',
  22. },
  23. {
  24. field: 'a2',
  25. label: '状态',
  26. },
  27. {
  28. field: 'a3',
  29. label: '销售单号',
  30. },
  31. {
  32. field: 'a4',
  33. label: '子订单',
  34. },
  35. ];
  36. export const personSchema: DescItem[] = [
  37. {
  38. field: 'b1',
  39. label: '用户姓名',
  40. },
  41. {
  42. field: 'b2',
  43. label: '联系电话',
  44. },
  45. {
  46. field: 'b3',
  47. label: '常用快递',
  48. },
  49. {
  50. field: 'b4',
  51. label: '取货地址',
  52. },
  53. {
  54. field: 'b5',
  55. label: '备注',
  56. },
  57. ];
  58. export const refundTableSchema: BasicColumn[] = [
  59. {
  60. title: '商品编号',
  61. width: 150,
  62. dataIndex: 't1',
  63. customRender: ({ record }) => {
  64. return (
  65. <Button type="link" size="small">
  66. {() => record.t1}
  67. </Button>
  68. );
  69. },
  70. },
  71. {
  72. title: '商品名称',
  73. width: 150,
  74. dataIndex: 't2',
  75. },
  76. {
  77. title: '商品条码',
  78. width: 150,
  79. dataIndex: 't3',
  80. },
  81. {
  82. title: '单价 ',
  83. width: 150,
  84. dataIndex: 't4',
  85. },
  86. {
  87. title: '数量(件) ',
  88. width: 150,
  89. dataIndex: 't5',
  90. },
  91. {
  92. title: '金额',
  93. width: 150,
  94. dataIndex: 't6',
  95. },
  96. ];
  97. export const refundTimeTableSchema: BasicColumn[] = [
  98. {
  99. title: '时间',
  100. width: 150,
  101. dataIndex: 't1',
  102. },
  103. {
  104. title: '当前进度',
  105. width: 150,
  106. dataIndex: 't2',
  107. },
  108. {
  109. title: '状态',
  110. width: 150,
  111. dataIndex: 't3',
  112. customRender: ({ record }) => {
  113. return <Badge status="success" text={record.t3} />;
  114. },
  115. },
  116. {
  117. title: '操作员ID ',
  118. width: 150,
  119. dataIndex: 't4',
  120. },
  121. {
  122. title: '耗时',
  123. width: 150,
  124. dataIndex: 't5',
  125. },
  126. ];
  127. export const refundTableData: any[] = [
  128. {
  129. t1: 1234561,
  130. t2: '矿泉水 550ml',
  131. t3: '12421432143214321',
  132. t4: '2.00',
  133. t5: 1,
  134. t6: 2.0,
  135. },
  136. {
  137. t1: 1234562,
  138. t2: '矿泉水 550ml',
  139. t3: '12421432143214321',
  140. t4: '2.00',
  141. t5: 2,
  142. t6: 2.0,
  143. },
  144. {
  145. t1: 1234562,
  146. t2: '矿泉水 550ml',
  147. t3: '12421432143214321',
  148. t4: '2.00',
  149. t5: 2,
  150. t6: 2.0,
  151. },
  152. {
  153. t1: 1234562,
  154. t2: '矿泉水 550ml',
  155. t3: '12421432143214321',
  156. t4: '2.00',
  157. t5: 2,
  158. t6: 2.0,
  159. },
  160. ];
  161. export const refundTimeTableData: any[] = [
  162. {
  163. t1: '2017-10-01 14:10',
  164. t2: '联系客户',
  165. t3: '进行中',
  166. t4: '取货员 ID1234',
  167. t5: '5mins',
  168. },
  169. {
  170. t1: '2017-10-01 14:10',
  171. t2: '取货员出发',
  172. t3: '成功',
  173. t4: '取货员 ID1234',
  174. t5: '5mins',
  175. },
  176. {
  177. t1: '2017-10-01 14:10',
  178. t2: '取货员接单',
  179. t3: '成功',
  180. t4: '系统',
  181. t5: '5mins',
  182. },
  183. {
  184. t1: '2017-10-01 14:10',
  185. t2: '申请审批通过',
  186. t3: '成功',
  187. t4: '用户',
  188. t5: '1h',
  189. },
  190. ];