examine.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. import {
  2. whether,
  3. intact,
  4. normal
  5. } from '@/assets/js/blockSort'
  6. export const employee = () => {
  7. return [{
  8. field: 'index',
  9. label: '编号',
  10. align: 'center',
  11. }, {
  12. field: 'operationLogId',
  13. label: '操作编码',
  14. align: 'center',
  15. colWidth: '200px',
  16. },
  17. // {
  18. // field: 'storeId',
  19. // label: '所属单位',
  20. // align: 'center',
  21. // colWidth: '200px',
  22. // },
  23. {
  24. field: 'innerCode',
  25. label: '单位内编号',
  26. align: 'center',
  27. colWidth: '200px',
  28. }, {
  29. field: 'deadWeight',
  30. label: '气瓶自重(kg)',
  31. align: 'center',
  32. colWidth: '200px',
  33. }, {
  34. field: 'color',
  35. label: '颜色',
  36. align: 'center',
  37. colWidth: '100px',
  38. }, {
  39. field: 'corrosion',
  40. label: '是否腐蚀',
  41. align: 'center',
  42. colWidth: '100px',
  43. options: whether(),
  44. }, {
  45. field: 'crackle',
  46. label: '是否有裂纹',
  47. align: 'center',
  48. colWidth: '100px',
  49. options: whether(),
  50. }, {
  51. field: 'deform',
  52. label: '是否变形',
  53. align: 'center',
  54. colWidth: '100px',
  55. options: whether(),
  56. }, {
  57. field: 'damage',
  58. label: '是否有损伤',
  59. align: 'center',
  60. colWidth: '100px',
  61. options: whether(),
  62. }, {
  63. field: 'safeAnnex',
  64. label: '安全附件完好',
  65. align: 'center',
  66. colWidth: '100px',
  67. options: intact(),
  68. }, {
  69. field: 'gasPressure',
  70. label: '余压正常(或抽真空)',
  71. align: 'center',
  72. colWidth: '120px',
  73. options: normal(),
  74. }, {
  75. field: 'pipePressure',
  76. label: '充装管道压力(MPa)',
  77. align: 'center',
  78. colWidth: '120px',
  79. }, {
  80. field: 'bodyDeform',
  81. label: '瓶体有无变形',
  82. align: 'center',
  83. colWidth: '100px',
  84. options: whether(),
  85. }, {
  86. field: 'fillingLeak',
  87. label: '充装过程有无泄漏',
  88. align: 'center',
  89. colWidth: '100px',
  90. options: whether(),
  91. }, {
  92. field: 'bodyTemperature',
  93. label: '瓶体温度正常',
  94. align: 'center',
  95. colWidth: '100px',
  96. options: normal(),
  97. }, {
  98. field: 'fillWeight',
  99. label: '充装重量(kg)',
  100. align: 'center',
  101. colWidth: '120px',
  102. }, {
  103. field: 'repeatWeight',
  104. label: '复称重量(kg)',
  105. align: 'center',
  106. colWidth: '120px',
  107. }, {
  108. field: 'filledLeak',
  109. label: '充装后有无泄漏',
  110. align: 'center',
  111. colWidth: '100px',
  112. options: whether(),
  113. }, {
  114. field: 'warnSign',
  115. label: '警示标志完好',
  116. align: 'center',
  117. colWidth: '100px',
  118. options: intact(),
  119. }, {
  120. field: 'fillLabel',
  121. label: '充装标签完好',
  122. align: 'center',
  123. options: intact(),
  124. }, {
  125. field: 'seal',
  126. label: '封口完好',
  127. align: 'center',
  128. colWidth: '100px',
  129. options: intact(),
  130. }, {
  131. field: 'nickName',
  132. label: '操作员',
  133. align: 'center',
  134. colWidth: '120px',
  135. }
  136. ]
  137. }
  138. export const formRules = () => {
  139. return [{
  140. field: 'pro_variety',
  141. label: '单位内编号 :',
  142. type: 'descriptions',
  143. colWidth: 12,
  144. }, {
  145. field: 'pro_name',
  146. label: '气瓶自重 :',
  147. type: 'descriptions',
  148. colWidth: 12,
  149. }, {
  150. field: 'pro_no',
  151. label: '颜色 :',
  152. type: 'descriptions',
  153. colWidth: 12,
  154. }, {
  155. field: 'T_sn',
  156. label: '1、充装管道压力',
  157. placeholder: '充装管道压力',
  158. type: 'input',
  159. colWidth: 12,
  160. unit: 'MPa',
  161. rules: [{
  162. required: true,
  163. message: '请输入充装管道压力',
  164. trigger: 'blur'
  165. }]
  166. }, {
  167. field: 'T_sn',
  168. label: '2、充装重量',
  169. placeholder: '充装重量',
  170. type: 'input',
  171. colWidth: 12,
  172. unit: 'kg',
  173. rules: [{
  174. required: true,
  175. message: '请输入充装重量',
  176. trigger: 'blur'
  177. }]
  178. }, {
  179. field: 'T_sn',
  180. label: '3、复称重量',
  181. placeholder: '复称重量',
  182. type: 'input',
  183. colWidth: 12,
  184. unit: 'kg',
  185. rules: [{
  186. required: true,
  187. message: '请输入复称重量',
  188. trigger: 'blur'
  189. }]
  190. }, {
  191. field: 'T_name',
  192. label: '4、是否腐蚀',
  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: '5、是否有裂纹',
  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: '6、是否变形',
  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: '7、是否有损伤',
  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: '8、安全附件完好',
  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. field: 'T_name',
  287. label: '9、余压正常(或抽真空)',
  288. type: 'radio',
  289. colWidth: 12,
  290. rules: [{
  291. required: true,
  292. message: '请选择余压状态',
  293. trigger: 'change'
  294. }],
  295. options: [{
  296. label: '正常',
  297. value: "1",
  298. },
  299. {
  300. label: '不正常',
  301. value: "2",
  302. }
  303. ]
  304. }, {
  305. field: 'T_name',
  306. label: '10、瓶体有无变形',
  307. type: 'radio',
  308. colWidth: 12,
  309. rules: [{
  310. required: true,
  311. message: '请选择瓶体有无变形',
  312. trigger: 'change'
  313. }],
  314. options: [{
  315. label: '无',
  316. value: "1",
  317. },
  318. {
  319. label: '有',
  320. value: "2",
  321. }
  322. ]
  323. }, {
  324. field: 'T_name',
  325. label: '11、充装过程有无泄漏',
  326. type: 'radio',
  327. colWidth: 12,
  328. rules: [{
  329. required: true,
  330. message: '请选择充装过程有无泄漏',
  331. trigger: 'change'
  332. }],
  333. options: [{
  334. label: '无',
  335. value: "1",
  336. },
  337. {
  338. label: '有',
  339. value: "2",
  340. }
  341. ]
  342. }, {
  343. field: 'T_name',
  344. label: '12、瓶体温度正常',
  345. type: 'radio',
  346. colWidth: 12,
  347. rules: [{
  348. required: true,
  349. message: '请选择瓶体温度正常状态',
  350. trigger: 'change'
  351. }],
  352. options: [{
  353. label: '正常',
  354. value: "1",
  355. },
  356. {
  357. label: '不正常',
  358. value: "2",
  359. }
  360. ]
  361. }, {
  362. field: 'T_name',
  363. label: '13、充装后有无泄漏',
  364. type: 'radio',
  365. colWidth: 12,
  366. rules: [{
  367. required: true,
  368. message: '请选择充装后有无泄漏',
  369. trigger: 'change'
  370. }],
  371. options: [{
  372. label: '无',
  373. value: "1",
  374. },
  375. {
  376. label: '有',
  377. value: "2",
  378. }
  379. ]
  380. }, {
  381. field: 'T_name',
  382. label: '14、警示标志完好',
  383. type: 'radio',
  384. colWidth: 12,
  385. rules: [{
  386. required: true,
  387. message: '请选择警示标志完好状态',
  388. trigger: 'change'
  389. }],
  390. options: [{
  391. label: '完好',
  392. value: "1",
  393. },
  394. {
  395. label: '缺失',
  396. value: "2",
  397. }
  398. ]
  399. }, {
  400. field: 'T_name',
  401. label: '15、充装标签完好',
  402. type: 'radio',
  403. colWidth: 12,
  404. rules: [{
  405. required: true,
  406. message: '请选择充装标签完好状态',
  407. trigger: 'change'
  408. }],
  409. options: [{
  410. label: '完好',
  411. value: "1",
  412. },
  413. {
  414. label: '缺失',
  415. value: "2",
  416. }
  417. ]
  418. }, {
  419. field: 'T_name',
  420. label: '16、封口完好',
  421. type: 'radio',
  422. colWidth: 12,
  423. rules: [{
  424. required: true,
  425. message: '请选择封口完好状态',
  426. trigger: 'change'
  427. }],
  428. options: [{
  429. label: '完好',
  430. value: "1",
  431. },
  432. {
  433. label: '缺失',
  434. value: "2",
  435. }
  436. ]
  437. }, ]
  438. }