| | |
| | | // required: false |
| | | // }, |
| | | { |
| | | type: 'radio', |
| | | type: 'select', |
| | | field: 'type', |
| | | label: '类型', |
| | | initval: wrap.type || 'edit', |
| | | initval: wrap.type || 'createVoucher', |
| | | required: true, |
| | | options: [ |
| | | {value: 'edit', label: '编辑'}, |
| | | {value: 'check', label: '查看'}, |
| | | {value: 'createVoucher', label: '新增凭证'}, |
| | | {value: 'checkVoucher', label: '查看凭证'}, |
| | | {value: 'createTemp', label: '新增模板'}, |
| | | {value: 'checkTemp', label: '编辑模板'}, |
| | | ], |
| | | controlFields: [ |
| | | {field: 'businessType', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'voucherType', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'voucherTypeText', values: ['createVoucher', 'checkVoucher']}, |
| | | {field: 'voucherSign', values: ['createVoucher', 'checkVoucher']}, |
| | | ] |
| | | }, |
| | | { |
| | |
| | | allowClear: true |
| | | }, |
| | | { |
| | | type: 'text', |
| | | field: 'businessType', |
| | | label: '业务类型', |
| | | initval: wrap.businessType || 'fcc01', |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'text', |
| | | field: 'voucherType', |
| | | label: '凭证类型', |
| | | initval: wrap.voucherType || 'fcc_keeping', |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'text', |
| | | field: 'voucherTypeText', |
| | | label: '凭证类型文本', |
| | | initval: wrap.voucherTypeText || '记账凭证', |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'text', |
| | | field: 'voucherSign', |
| | | label: '凭证类型标识', |
| | | initval: wrap.voucherSign || 'fcc_keeping', |
| | | required: true |
| | | }, |
| | | { |
| | | type: 'cascader', |
| | | field: 'supModule', |
| | | label: '上级组件', |