| | |
| | | |
| | | class UniqueForm extends Component { |
| | | static propTpyes = { |
| | | floor: PropTypes.any, // 是否为子表 |
| | | dict: PropTypes.object, // 字典项 |
| | | fields: PropTypes.array, // 表单 |
| | | billcodes: PropTypes.array, // 表单 |
| | |
| | | fieldMap.set(_field.field, true) |
| | | } |
| | | }) |
| | | |
| | | if (this.props.floor === 'subtable') { |
| | | if (!fieldMap.has('BID')) { |
| | | _billFields.unshift({ |
| | | uuid: 'BID', |
| | | field: 'BID', |
| | | label: 'BID' |
| | | }) |
| | | } |
| | | } |
| | | |
| | | let _usedfields = this.props.billcodes.map(item => item.field) |
| | | |
| | |
| | | <Form {...formItemLayout} className="verify-form"> |
| | | <Row gutter={24}> |
| | | <Col span={10}> |
| | | <Form.Item label={'函数变量'}> |
| | | <Form.Item label={this.props.dict['header.form.funcvar']}> |
| | | {getFieldDecorator('field', { |
| | | initialValue: '', |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: this.props.dict['form.required.input'] + '函数变量!' |
| | | message: this.props.dict['form.required.input'] + this.props.dict['header.form.funcvar'] + '!' |
| | | } |
| | | ] |
| | | })( |