Commit 35f8db30 authored by guang.wu's avatar guang.wu

fix: 修改开户行 为输入模式

parent 431e712e
import React, { Component } from 'react'; import React, { Component } from 'react';
import { history } from 'umi';
import moment from 'moment'; import moment from 'moment';
import { ArrowRightOutlined, UploadOutlined } from '@ant-design/icons'; import { ArrowRightOutlined, UploadOutlined } from '@ant-design/icons';
import { Form } from '@ant-design/compatible'; import { Form } from '@ant-design/compatible';
...@@ -31,7 +30,7 @@ import { ...@@ -31,7 +30,7 @@ import {
getServiceFacility, getServiceFacility,
businessModel, businessModel,
getInfo, getInfo,
getBankList, // getBankList,
businessTypeDesc, businessTypeDesc,
signDateTypeList, signDateTypeList,
legalPersonList, legalPersonList,
...@@ -62,7 +61,7 @@ class BusinessInfo extends Component { ...@@ -62,7 +61,7 @@ class BusinessInfo extends Component {
areaAddr: [], // 四级地址列表 areaAddr: [], // 四级地址列表
categoryList: [], // 主要类目 categoryList: [], // 主要类目
serviceFacilitys: [], // 服务设施 serviceFacilitys: [], // 服务设施
bankList: [], // 开户行 // bankList: [], // 开户行
settlementType: 1, settlementType: 1,
// loading: false, // loading: false,
visibleLoading: false, visibleLoading: false,
...@@ -77,7 +76,7 @@ class BusinessInfo extends Component { ...@@ -77,7 +76,7 @@ class BusinessInfo extends Component {
await getInfo.call(this); await getInfo.call(this);
getAreaAddr.call(this); getAreaAddr.call(this);
getServiceFacility.call(this); getServiceFacility.call(this);
getBankList.call(this); // getBankList.call(this);
} }
// 主营类目 // 主营类目
...@@ -997,23 +996,9 @@ class BusinessInfo extends Component { ...@@ -997,23 +996,9 @@ class BusinessInfo extends Component {
<Col span={12}> <Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}> <FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', { {getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }], rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName, initialValue: businessInfo.accountBankName,
})( })(<Input maxLength={100} disabled={disabled} />)}
<Select
showSearch
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
disabled={disabled}
>
{this.state.bankList.map(item => (
<Option value={item.bankName} key={item.bankName}>
{item.bankName}
</Option>
))}
</Select>,
)}
</FormItem> </FormItem>
</Col> </Col>
<Col span={12}> <Col span={12}>
...@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component { ...@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component {
<Col span={12}> <Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}> <FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', { {getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }], rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName, initialValue: businessInfo.accountBankName,
})( })(<Input maxLength={100} disabled={disabled} />)}
<Select
showSearch
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
disabled={disabled}
>
{this.state.bankList.map(item => (
<Option value={item.bankName} key={item.bankName}>
{item.bankName}
</Option>
))}
</Select>,
)}
</FormItem> </FormItem>
</Col> </Col>
<Col span={12}> <Col span={12}>
...@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component { ...@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component {
<Col span={12}> <Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}> <FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', { {getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }], rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName, initialValue: businessInfo.accountBankName,
})( })(<Input maxLength={100} disabled={disabled} />)}
<Select
showSearch
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
disabled={disabled}
>
{this.state.bankList.map(item => (
<Option value={item.bankName} key={item.bankName}>
{item.bankName}
</Option>
))}
</Select>,
)}
</FormItem> </FormItem>
</Col> </Col>
<Col span={12}> <Col span={12}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment