123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- export const formRules = () => {
- return [ {
- field: 'T_sn',
- label: '1、充装管道压力',
- placeholder: '充装管道压力',
- type: 'input',
- colWidth: 12,
- unit: 'MPa',
- rules: [{
- required: true,
- message: '请输入充装管道压力',
- trigger: 'blur'
- }]
- }, {
- field: 'T_sn',
- label: '2、充装重量',
- placeholder: '充装重量',
- type: 'input',
- colWidth: 12,
- unit: 'kg',
- rules: [{
- required: true,
- message: '请输入充装重量',
- trigger: 'blur'
- }]
- }, {
- field: 'T_sn',
- label: '3、复称重量',
- placeholder: '复称重量',
- type: 'input',
- colWidth: 12,
- unit: 'kg',
- rules: [{
- required: true,
- message: '请输入复称重量',
- trigger: 'blur'
- }]
- }, {
- field: 'T_name',
- label: '4、是否腐蚀',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否腐蚀',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '5、是否有裂纹',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否有裂纹',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '6、是否变形',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否变形',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '7、是否有损伤',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择是否有损伤',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '8、安全附件完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择安全附件完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: "1",
- },
- {
- label: '缺失',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '9、余压正常(或抽真空)',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择余压状态',
- trigger: 'change'
- }],
- options: [{
- label: '正常',
- value: "1",
- },
- {
- label: '不正常',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '10、瓶体有无变形',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择瓶体有无变形',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '11、充装过程有无泄漏',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择充装过程有无泄漏',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '12、瓶体温度正常',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择瓶体温度正常状态',
- trigger: 'change'
- }],
- options: [{
- label: '正常',
- value: "1",
- },
- {
- label: '不正常',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '13、充装后有无泄漏',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择充装后有无泄漏',
- trigger: 'change'
- }],
- options: [{
- label: '无',
- value: "1",
- },
- {
- label: '有',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '14、警示标志完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择警示标志完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: "1",
- },
- {
- label: '缺失',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '15、充装标签完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择充装标签完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: "1",
- },
- {
- label: '缺失',
- value: "2",
- }
- ]
- }, {
- field: 'T_name',
- label: '16、封口完好',
- type: 'radio',
- colWidth: 12,
- rules: [{
- required: true,
- message: '请选择封口完好状态',
- trigger: 'change'
- }],
- options: [{
- label: '完好',
- value: "1",
- },
- {
- label: '缺失',
- value: "2",
- }
- ]
- }, ]
- }
|