new_file.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. export const formRules = () => {
  2. return [ {
  3. field: 'T_sn',
  4. label: '1、充装管道压力',
  5. placeholder: '充装管道压力',
  6. type: 'input',
  7. colWidth: 12,
  8. unit: 'MPa',
  9. rules: [{
  10. required: true,
  11. message: '请输入充装管道压力',
  12. trigger: 'blur'
  13. }]
  14. }, {
  15. field: 'T_sn',
  16. label: '2、充装重量',
  17. placeholder: '充装重量',
  18. type: 'input',
  19. colWidth: 12,
  20. unit: 'kg',
  21. rules: [{
  22. required: true,
  23. message: '请输入充装重量',
  24. trigger: 'blur'
  25. }]
  26. }, {
  27. field: 'T_sn',
  28. label: '3、复称重量',
  29. placeholder: '复称重量',
  30. type: 'input',
  31. colWidth: 12,
  32. unit: 'kg',
  33. rules: [{
  34. required: true,
  35. message: '请输入复称重量',
  36. trigger: 'blur'
  37. }]
  38. }, {
  39. field: 'T_name',
  40. label: '4、是否腐蚀',
  41. type: 'radio',
  42. colWidth: 12,
  43. rules: [{
  44. required: true,
  45. message: '请选择是否腐蚀',
  46. trigger: 'change'
  47. }],
  48. options: [{
  49. label: '无',
  50. value: "1",
  51. },
  52. {
  53. label: '有',
  54. value: "2",
  55. }
  56. ]
  57. }, {
  58. field: 'T_name',
  59. label: '5、是否有裂纹',
  60. type: 'radio',
  61. colWidth: 12,
  62. rules: [{
  63. required: true,
  64. message: '请选择是否有裂纹',
  65. trigger: 'change'
  66. }],
  67. options: [{
  68. label: '无',
  69. value: "1",
  70. },
  71. {
  72. label: '有',
  73. value: "2",
  74. }
  75. ]
  76. }, {
  77. field: 'T_name',
  78. label: '6、是否变形',
  79. type: 'radio',
  80. colWidth: 12,
  81. rules: [{
  82. required: true,
  83. message: '请选择是否变形',
  84. trigger: 'change'
  85. }],
  86. options: [{
  87. label: '无',
  88. value: "1",
  89. },
  90. {
  91. label: '有',
  92. value: "2",
  93. }
  94. ]
  95. }, {
  96. field: 'T_name',
  97. label: '7、是否有损伤',
  98. type: 'radio',
  99. colWidth: 12,
  100. rules: [{
  101. required: true,
  102. message: '请选择是否有损伤',
  103. trigger: 'change'
  104. }],
  105. options: [{
  106. label: '无',
  107. value: "1",
  108. },
  109. {
  110. label: '有',
  111. value: "2",
  112. }
  113. ]
  114. }, {
  115. field: 'T_name',
  116. label: '8、安全附件完好',
  117. type: 'radio',
  118. colWidth: 12,
  119. rules: [{
  120. required: true,
  121. message: '请选择安全附件完好状态',
  122. trigger: 'change'
  123. }],
  124. options: [{
  125. label: '完好',
  126. value: "1",
  127. },
  128. {
  129. label: '缺失',
  130. value: "2",
  131. }
  132. ]
  133. }, {
  134. field: 'T_name',
  135. label: '9、余压正常(或抽真空)',
  136. type: 'radio',
  137. colWidth: 12,
  138. rules: [{
  139. required: true,
  140. message: '请选择余压状态',
  141. trigger: 'change'
  142. }],
  143. options: [{
  144. label: '正常',
  145. value: "1",
  146. },
  147. {
  148. label: '不正常',
  149. value: "2",
  150. }
  151. ]
  152. }, {
  153. field: 'T_name',
  154. label: '10、瓶体有无变形',
  155. type: 'radio',
  156. colWidth: 12,
  157. rules: [{
  158. required: true,
  159. message: '请选择瓶体有无变形',
  160. trigger: 'change'
  161. }],
  162. options: [{
  163. label: '无',
  164. value: "1",
  165. },
  166. {
  167. label: '有',
  168. value: "2",
  169. }
  170. ]
  171. }, {
  172. field: 'T_name',
  173. label: '11、充装过程有无泄漏',
  174. type: 'radio',
  175. colWidth: 12,
  176. rules: [{
  177. required: true,
  178. message: '请选择充装过程有无泄漏',
  179. trigger: 'change'
  180. }],
  181. options: [{
  182. label: '无',
  183. value: "1",
  184. },
  185. {
  186. label: '有',
  187. value: "2",
  188. }
  189. ]
  190. }, {
  191. field: 'T_name',
  192. label: '12、瓶体温度正常',
  193. type: 'radio',
  194. colWidth: 12,
  195. rules: [{
  196. required: true,
  197. message: '请选择瓶体温度正常状态',
  198. trigger: 'change'
  199. }],
  200. options: [{
  201. label: '正常',
  202. value: "1",
  203. },
  204. {
  205. label: '不正常',
  206. value: "2",
  207. }
  208. ]
  209. }, {
  210. field: 'T_name',
  211. label: '13、充装后有无泄漏',
  212. type: 'radio',
  213. colWidth: 12,
  214. rules: [{
  215. required: true,
  216. message: '请选择充装后有无泄漏',
  217. trigger: 'change'
  218. }],
  219. options: [{
  220. label: '无',
  221. value: "1",
  222. },
  223. {
  224. label: '有',
  225. value: "2",
  226. }
  227. ]
  228. }, {
  229. field: 'T_name',
  230. label: '14、警示标志完好',
  231. type: 'radio',
  232. colWidth: 12,
  233. rules: [{
  234. required: true,
  235. message: '请选择警示标志完好状态',
  236. trigger: 'change'
  237. }],
  238. options: [{
  239. label: '完好',
  240. value: "1",
  241. },
  242. {
  243. label: '缺失',
  244. value: "2",
  245. }
  246. ]
  247. }, {
  248. field: 'T_name',
  249. label: '15、充装标签完好',
  250. type: 'radio',
  251. colWidth: 12,
  252. rules: [{
  253. required: true,
  254. message: '请选择充装标签完好状态',
  255. trigger: 'change'
  256. }],
  257. options: [{
  258. label: '完好',
  259. value: "1",
  260. },
  261. {
  262. label: '缺失',
  263. value: "2",
  264. }
  265. ]
  266. }, {
  267. field: 'T_name',
  268. label: '16、封口完好',
  269. type: 'radio',
  270. colWidth: 12,
  271. rules: [{
  272. required: true,
  273. message: '请选择封口完好状态',
  274. trigger: 'change'
  275. }],
  276. options: [{
  277. label: '完好',
  278. value: "1",
  279. },
  280. {
  281. label: '缺失',
  282. value: "2",
  283. }
  284. ]
  285. }, ]
  286. }