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

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

parent 431e712e
import React, { Component } from 'react';
import { history } from 'umi';
import moment from 'moment';
import { ArrowRightOutlined, UploadOutlined } from '@ant-design/icons';
import { Form } from '@ant-design/compatible';
......@@ -31,7 +30,7 @@ import {
getServiceFacility,
businessModel,
getInfo,
getBankList,
// getBankList,
businessTypeDesc,
signDateTypeList,
legalPersonList,
......@@ -62,7 +61,7 @@ class BusinessInfo extends Component {
areaAddr: [], // 四级地址列表
categoryList: [], // 主要类目
serviceFacilitys: [], // 服务设施
bankList: [], // 开户行
// bankList: [], // 开户行
settlementType: 1,
// loading: false,
visibleLoading: false,
......@@ -77,7 +76,7 @@ class BusinessInfo extends Component {
await getInfo.call(this);
getAreaAddr.call(this);
getServiceFacility.call(this);
getBankList.call(this);
// getBankList.call(this);
}
// 主营类目
......@@ -997,23 +996,9 @@ class BusinessInfo extends Component {
<Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }],
rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName,
})(
<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>,
)}
})(<Input maxLength={100} disabled={disabled} />)}
</FormItem>
</Col>
<Col span={12}>
......@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component {
<Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }],
rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName,
})(
<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>,
)}
})(<Input maxLength={100} disabled={disabled} />)}
</FormItem>
</Col>
<Col span={12}>
......@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component {
<Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }],
rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName,
})(
<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>,
)}
})(<Input maxLength={100} disabled={disabled} />)}
</FormItem>
</Col>
<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