waybill.js 3.7 KB

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