123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310 |
- export const formRules = () => {
- return [{
- field: 'deadWeight',
- label: '1、气瓶自重',
- placeholder: '气瓶自重',
- type: 'numinput',
- colWidth: 12,
- unit: 'kg',
- rules: [{
- required: true,
- message: '请输入气瓶自重',
- trigger: 'blur'
- }]
- }, {
- field: 'color',
- label: '2、颜色',
- placeholder: '颜色',
- type: 'input',
- colWidth: 12,
- unit: '',
- rules: [{
- required: true,
- message: '请输入颜色',
- trigger: 'blur'
- }]
- }, {
- field: 'pipePressure',
- label: '3、充装管道压力',
- placeholder: '充装管道压力',
- type: 'numinput',
- colWidth: 12,
- unit: 'MPa',
- rules: [{
- required: true,
- message: '请输入充装管道压力',
- trigger: 'blur'
- }]
- }, {
- field: 'fillWeight',
- label: '4、充装重量',
- placeholder: '充装重量',
- type: 'numinput',
- colWidth: 12,
- unit: 'kg',
- rules: [{
- required: true,
- message: '请输入充装重量',
- trigger: 'blur'
- }]
- }, {
- field: 'repeatWeight',
- label: '5、复称重量',
- placeholder: '复称重量',
- type: 'numinput',
- colWidth: 12,
- unit: 'kg',
- rules: [{
- required: true,
- message: '请输入复称重量',
- trigger: 'blur'
- }]
- }, {
- field: 'corrosion',
- label: '6、是否腐蚀',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否腐蚀',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'crackle',
- label: '7、是否有裂纹',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否有裂纹',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'deform',
- label: '8、是否变形',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否变形',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'damage',
- label: '9、是否有损伤',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否有损伤',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'safeAnnex',
- label: '10、安全附件完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择安全附件完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: 0,
- },
- {
- label: '缺失',
- value: 1,
- }
- ]
- }, {
- field: 'gasPressure',
- label: '11、余压正常(或抽真空)',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择余压状态',
- trigger: 'change'
- }],
- options: [{
- label: '正常',
- value: 0,
- },
- {
- label: '不正常',
- value: 1,
- }
- ]
- }, {
- field: 'bodyDeform',
- label: '12、瓶体有无变形',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择瓶体有无变形',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'fillingLeak',
- label: '13、充装过程有无泄漏',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择充装过程有无泄漏',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'bodyTemperature',
- label: '14、瓶体温度正常',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择瓶体温度正常状态',
- trigger: 'change'
- }],
- options: [{
- label: '正常',
- value: 0,
- },
- {
- label: '不正常',
- value: 1,
- }
- ]
- }, {
- field: 'filledLeak',
- label: '15、充装后有无泄漏',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择充装后有无泄漏',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: 0,
- },
- {
- label: '有',
- value: 1,
- }
- ]
- }, {
- field: 'warnSign',
- label: '16、警示标志完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择警示标志完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: 0,
- },
- {
- label: '缺失',
- value: 1,
- }
- ]
- }, {
- field: 'fillLabel',
- label: '17、充装标签完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择充装标签完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: 0,
- },
- {
- label: '缺失',
- value: 1,
- }
- ]
- }, {
- field: 'seal',
- label: '18、封口完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择封口完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: 0,
- },
- {
- label: '缺失',
- value: 1,
- }
- ]
- }, ]
- }
|