waybill.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. label: '零担物流',
  49. value: '零担物流',
  50. }
  51. ],
  52. }, {
  53. field: 'cargoType',
  54. type: 'select',
  55. label: '货物类型',
  56. placeholder: '请选择',
  57. required: true,
  58. options: [{
  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. label: '其它',
  76. value: '其它',
  77. }
  78. ],
  79. }, {
  80. field: 'quantity',
  81. label: '数量',
  82. placeholder: '请输入数量',
  83. type: 'input',
  84. required: true,
  85. }, {
  86. field: 'remark',
  87. label: '备注',
  88. placeholder: '备注',
  89. type: 'textarea',
  90. }, {
  91. field: 'customerName',
  92. type: 'input',
  93. label: '下单客户',
  94. placeholder: '请输入',
  95. }, ]
  96. }
  97. export const pickupRulesil = () => {
  98. return [{
  99. field: 'name',
  100. label: '姓名',
  101. placeholder: '请输入姓名',
  102. type: 'input',
  103. required: true,
  104. }, {
  105. field: 'phone',
  106. label: '电话',
  107. placeholder: '请输入电话',
  108. type: 'input',
  109. required: true,
  110. }, {
  111. field: 'address',
  112. label: '地址',
  113. placeholder: '请输入地址',
  114. type: 'input',
  115. required: true,
  116. }]
  117. }
  118. export const printList = () => {
  119. return [{
  120. arr: [{
  121. arr: [
  122. [{
  123. T_sn: '2024117235321460',
  124. T_id: 1,
  125. T_rh: 59.8,
  126. T_t: 3.1,
  127. T_time: '2024-04-24',
  128. time: '15:30',
  129. },
  130. {
  131. T_sn: '2024117235321460',
  132. T_id: 2,
  133. T_rh: 59.8,
  134. T_t: 2.1,
  135. T_time: '2024-04-24',
  136. time: '15:30',
  137. },
  138. {
  139. T_sn: '2024117235321460',
  140. T_id: 3,
  141. T_rh: 59.8,
  142. T_t: 23.1,
  143. T_time: '2024-04-24',
  144. time: '15:30',
  145. },
  146. {
  147. T_sn: '2024117235321460',
  148. T_id: 4,
  149. T_rh: 59.8,
  150. T_t: 23.1,
  151. T_time: '2024-04-24',
  152. time: '15:30',
  153. }
  154. ]
  155. ],
  156. time: "2024-04-24"
  157. }],
  158. id: 38,
  159. title: '测试',
  160. isChecked: true,
  161. endTime: '2024-04-24 15:31:18',
  162. startTime: '2024-04-24 15:31:18'
  163. }, {
  164. arr: [{
  165. arr: [
  166. [{
  167. T_sn: '2024117235321460',
  168. T_id: 1,
  169. T_rh: 59.8,
  170. T_t: 3.1,
  171. T_time: '2024-04-24',
  172. time: '15:30',
  173. },
  174. {
  175. T_sn: '2024117235321460',
  176. T_id: 2,
  177. T_rh: 59.8,
  178. T_t: 2.1,
  179. T_time: '2024-04-24',
  180. time: '15:30',
  181. },
  182. {
  183. T_sn: '2024117235321460',
  184. T_id: 3,
  185. T_rh: 59.8,
  186. T_t: 23.1,
  187. T_time: '2024-04-24',
  188. time: '15:30',
  189. },
  190. {
  191. T_sn: '2024117235321460',
  192. T_id: 4,
  193. T_rh: 59.8,
  194. T_t: 23.1,
  195. T_time: '2024-04-24',
  196. time: '15:30',
  197. }
  198. ]
  199. ],
  200. time: "2024-04-24"
  201. }],
  202. id: 37,
  203. title: '测试1',
  204. isChecked: true,
  205. endTime: '2024-04-24 15:31:18',
  206. startTime: '2024-04-24 15:31:18'
  207. }, ]
  208. }