onChange=
{changeCompany}
filterOption
={(input, option) =>
option.children.toLowerCase().indexOf(input.toLowerCase())
>= 0
{companyOptions.map(item
=>
<
Option
key
=
{item.id}
value
=
{item.id}
companyCode
={item.companyCode} // 额外的属性
establishedtime={item.establishedTime}
desc={item.desc}
>{item.companyName}</Option>
</Select>
</Form.Item>
<Col span={7}>
<
Form.Item
label
="公司编号"
name
="companyCode"
rules
={[{required:
true
, message: '请输入公司编号'}]}>
<Input disabled placeholder="请输入公司编号" />
</Form.Item>
<Col span={7}>
<
Form.Item
label
="公司成立时间"
name
="establishedTime"
rules
={[{required:
true
, message: '请输入公司成立时间'}]}>
<DatePicker style={{width: '100%'}} format={dateFormat} />
</Form.Item>
<Col span={24}>
<
Form.Item
label
="公司描述"
name
="desc"
rules
={[{required:
true
, message: '请输入公司描述'}]}>
<
TextArea
placeholder
="请输入公司描述"
autoSize
={{ minRows: 2, maxRows: 6
}}
</Form.Item>
</Form>