waybill.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. export const formRules = () => {
  2. return [{
  3. field: 'temperatureInterval',
  4. type: 'select',
  5. label: '温度需求',
  6. placeholder: '请选择',
  7. required: true,
  8. options: [{
  9. label: '常温',
  10. value: '常温',
  11. },
  12. {
  13. label: '冷藏(2-8℃)',
  14. value: '冷藏(2-8℃)',
  15. },
  16. {
  17. label: '冷藏(0-5℃)',
  18. value: '冷藏(0-5℃)',
  19. },
  20. {
  21. label: '冷冻(0℃以下)',
  22. value: '冷冻(0℃以下)',
  23. }
  24. ],
  25. }, {
  26. field: 'deliveryCondition',
  27. type: 'select',
  28. label: '配送要求',
  29. placeholder: '请选择',
  30. required: true,
  31. options: [{
  32. label: '保温箱',
  33. value: '保温箱',
  34. },
  35. {
  36. label: '冷藏车',
  37. value: '冷藏车',
  38. },
  39. {
  40. label: '航空',
  41. value: '航空',
  42. },
  43. {
  44. label: '医药整车',
  45. value: '医药整车',
  46. }
  47. ],
  48. }, {
  49. field: 'cargoType',
  50. type: 'select',
  51. label: '货物类型',
  52. placeholder: '请选择',
  53. required: true,
  54. options: [{
  55. label: '药品',
  56. value: '药品',
  57. },
  58. {
  59. label: '试剂',
  60. value: '试剂',
  61. },
  62. {
  63. label: '血液制品',
  64. value: '血液制品',
  65. },
  66. {
  67. label: '疫苗',
  68. value: '疫苗',
  69. },
  70. {
  71. label: '其它',
  72. value: '其它',
  73. }
  74. ],
  75. }, {
  76. field: 'remark',
  77. label: '备注',
  78. placeholder: '备注',
  79. type: 'textarea',
  80. }, {
  81. field: 'customerName',
  82. type: 'input',
  83. label: '下单客户',
  84. placeholder: '请输入',
  85. }, ]
  86. }
  87. export const pickupRulesil = () => {
  88. return [{
  89. field: 'name',
  90. label: '姓名',
  91. placeholder: '请输入姓名',
  92. type: 'input',
  93. required: true,
  94. }, {
  95. field: 'phone',
  96. label: '电话',
  97. placeholder: '请输入电话',
  98. type: 'input',
  99. required: true,
  100. }, {
  101. field: 'address',
  102. label: '地址',
  103. placeholder: '请输入地址',
  104. type: 'input',
  105. required: true,
  106. }]
  107. }
  108. export const printList = () => {
  109. return [{
  110. arr: [{
  111. arr: [
  112. [{
  113. T_sn: '2024117235321460',
  114. T_id: 1,
  115. T_rh: 59.8,
  116. T_t: 3.1,
  117. T_time: '2024-04-24',
  118. time: '15:30',
  119. },
  120. {
  121. T_sn: '2024117235321460',
  122. T_id: 2,
  123. T_rh: 59.8,
  124. T_t: 2.1,
  125. T_time: '2024-04-24',
  126. time: '15:30',
  127. },
  128. {
  129. T_sn: '2024117235321460',
  130. T_id: 3,
  131. T_rh: 59.8,
  132. T_t: 23.1,
  133. T_time: '2024-04-24',
  134. time: '15:30',
  135. },
  136. {
  137. T_sn: '2024117235321460',
  138. T_id: 4,
  139. T_rh: 59.8,
  140. T_t: 23.1,
  141. T_time: '2024-04-24',
  142. time: '15:30',
  143. }
  144. ]
  145. ],
  146. time: "2024-04-24"
  147. }],
  148. id: 38,
  149. title: '测试',
  150. isChecked: true,
  151. endTime: '2024-04-24 15:31:18',
  152. startTime: '2024-04-24 15:31:18'
  153. },{
  154. arr: [{
  155. arr: [
  156. [{
  157. T_sn: '2024117235321460',
  158. T_id: 1,
  159. T_rh: 59.8,
  160. T_t: 3.1,
  161. T_time: '2024-04-24',
  162. time: '15:30',
  163. },
  164. {
  165. T_sn: '2024117235321460',
  166. T_id: 2,
  167. T_rh: 59.8,
  168. T_t: 2.1,
  169. T_time: '2024-04-24',
  170. time: '15:30',
  171. },
  172. {
  173. T_sn: '2024117235321460',
  174. T_id: 3,
  175. T_rh: 59.8,
  176. T_t: 23.1,
  177. T_time: '2024-04-24',
  178. time: '15:30',
  179. },
  180. {
  181. T_sn: '2024117235321460',
  182. T_id: 4,
  183. T_rh: 59.8,
  184. T_t: 23.1,
  185. T_time: '2024-04-24',
  186. time: '15:30',
  187. }
  188. ]
  189. ],
  190. time: "2024-04-24"
  191. }],
  192. id: 37,
  193. title: '测试1',
  194. isChecked: true,
  195. endTime: '2024-04-24 15:31:18',
  196. startTime: '2024-04-24 15:31:18'
  197. },]
  198. }