|
@@ -1,6 +1,5 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import { Radio, Select, Input,Form } from 'antd';
|
|
import { Radio, Select, Input,Form } from 'antd';
|
|
-// import { $Axios } from '../../common/publish';
|
|
|
|
import select_data from '../../common/ssq';
|
|
import select_data from '../../common/ssq';
|
|
import '../center-o/centerO.scss'
|
|
import '../center-o/centerO.scss'
|
|
|
|
|
|
@@ -20,7 +19,9 @@ export default class centerO extends React.Component {
|
|
lodings: false,
|
|
lodings: false,
|
|
desireAuth: '',
|
|
desireAuth: '',
|
|
offlist : select_data.offlist,
|
|
offlist : select_data.offlist,
|
|
- validation_list : []
|
|
|
|
|
|
+ validation_list : [],
|
|
|
|
+ signedType : 'BY_SPLIT_BILL', // 默认被分帐方
|
|
|
|
+ merchantInfo : JSON.parse(localStorage.getItem('merchantInfo')) == undefined ? '' : JSON.parse(localStorage.getItem('merchantInfo'))
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -31,6 +32,9 @@ export default class centerO extends React.Component {
|
|
desireAuth : this.state.Params.desireAuth == undefined ? 'DESIRE_VIDEO' : this.state.Params.desireAuth, // 开户意愿核实类型
|
|
desireAuth : this.state.Params.desireAuth == undefined ? 'DESIRE_VIDEO' : this.state.Params.desireAuth, // 开户意愿核实类型
|
|
})
|
|
})
|
|
this.initData();
|
|
this.initData();
|
|
|
|
+ if(this.state.merchantInfo !== ''){
|
|
|
|
+ this.initPcc();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
listTypes(e){
|
|
listTypes(e){
|
|
@@ -45,7 +49,7 @@ export default class centerO extends React.Component {
|
|
}
|
|
}
|
|
|
|
|
|
initData() {
|
|
initData() {
|
|
- if (this.props.arr) { //初始化判断数据回填
|
|
|
|
|
|
+ if (this.props.arr && this.state.merchantInfo == '') { //初始化判断数据回填
|
|
if (this.state.Params.businessAddressProvince !== undefined) {
|
|
if (this.state.Params.businessAddressProvince !== undefined) {
|
|
let Province = this.state.Params.businessAddressProvince;
|
|
let Province = this.state.Params.businessAddressProvince;
|
|
let city = this.state.Params.businessAddressCity;
|
|
let city = this.state.Params.businessAddressCity;
|
|
@@ -60,19 +64,28 @@ export default class centerO extends React.Component {
|
|
regionlist: regionlist.mallAreaList
|
|
regionlist: regionlist.mallAreaList
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- if(this.state.Params.registerRole == 'INDIVIDUAL_BUSINESS'){ //个体工商户
|
|
|
|
- this.setState({
|
|
|
|
- offlist:select_data.INDIVIDUAL_BUSINESS
|
|
|
|
- })
|
|
|
|
- }else if(this.state.Params.registerRole == 'NATURAL_PERSON'){ //自然人
|
|
|
|
- this.setState({
|
|
|
|
- offlist:select_data.NATURAL_PERSON
|
|
|
|
- })
|
|
|
|
- }else { //默认
|
|
|
|
|
|
+ let signedType = this.state.Params.signedType;
|
|
|
|
+ let merchantInfo = this.state.merchantInfo;
|
|
|
|
+ if(signedType == 'GENERAL_SUB_MERCHANT'){
|
|
this.setState({
|
|
this.setState({
|
|
- offlist:select_data.offlist
|
|
|
|
|
|
+ offlist:select_data.GENERAL_SUB_MERCHANT
|
|
})
|
|
})
|
|
|
|
+ }else{
|
|
|
|
+ if(this.state.Params.registerRole == 'INDIVIDUAL_BUSINESS' || merchantInfo.baseInfo.registerRole == 'INDIVIDUAL_BUSINESS'){ //个体工商户
|
|
|
|
+ this.setState({
|
|
|
|
+ offlist:select_data.INDIVIDUAL_BUSINESS
|
|
|
|
+ })
|
|
|
|
+ }else if(this.state.Params.registerRole == 'NATURAL_PERSON' || merchantInfo.baseInfo.registerRole == 'NATURAL_PERSON'){ //自然人
|
|
|
|
+ this.setState({
|
|
|
|
+ offlist:select_data.NATURAL_PERSON
|
|
|
|
+ })
|
|
|
|
+ }else { //默认
|
|
|
|
+ this.setState({
|
|
|
|
+ offlist:select_data.offlist
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -82,7 +95,7 @@ export default class centerO extends React.Component {
|
|
|
|
|
|
Inputdata(e) {
|
|
Inputdata(e) {
|
|
let Params = {
|
|
let Params = {
|
|
- signedType: 'BY_SPLIT_BILL', //签约类型
|
|
|
|
|
|
+ signedType: this.state.Params.signedType == undefined ? 'BY_SPLIT_BILL' : this.state.Params.signedType, //签约类型
|
|
signedName: document.getElementById("qymc").value, //签约名称
|
|
signedName: document.getElementById("qymc").value, //签约名称
|
|
signedShorthand: document.getElementById("names").value, //商户简称
|
|
signedShorthand: document.getElementById("names").value, //商户简称
|
|
registerRole: this.state.Params.registerRole == undefined ? '' : this.state.Params.registerRole, //商户签约性质
|
|
registerRole: this.state.Params.registerRole == undefined ? '' : this.state.Params.registerRole, //商户签约性质
|
|
@@ -94,7 +107,7 @@ export default class centerO extends React.Component {
|
|
contactName: document.getElementById("myname").value, //联系人姓名
|
|
contactName: document.getElementById("myname").value, //联系人姓名
|
|
contactEmail: document.getElementById("mymail").value,// 联系人邮箱
|
|
contactEmail: document.getElementById("mymail").value,// 联系人邮箱
|
|
contactPhone: document.getElementById("mynums").value,// 联系人电话
|
|
contactPhone: document.getElementById("mynums").value,// 联系人电话
|
|
- businessClassification: this.state.Params.businessClassification, //业务分类 (签约类型为被分账方不传此参数)
|
|
|
|
|
|
+ businessClassification: this.state.Params.businessClassification == undefined ? '' : this.state.Params.businessClassification, //业务分类 (签约类型为被分账方不传此参数)
|
|
desireAuth: this.state.Params.desireAuth == undefined ? 'DESIRE_VIDEO' : this.state.Params.desireAuth, // 开户意愿核实类型
|
|
desireAuth: this.state.Params.desireAuth == undefined ? 'DESIRE_VIDEO' : this.state.Params.desireAuth, // 开户意愿核实类型
|
|
// legalPersonName : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname1").value : '',// 法人姓名
|
|
// legalPersonName : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname1").value : '',// 法人姓名
|
|
// legalPersonIdNo : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname2").value : '',// 法人身份证号
|
|
// legalPersonIdNo : this.state.Params.desireAuth == 'DESIRE_MOBILEINFO' ? document.getElementById("myname2").value : '',// 法人身份证号
|
|
@@ -107,23 +120,30 @@ export default class centerO extends React.Component {
|
|
handleChangeQy(e) { //商户签约性质
|
|
handleChangeQy(e) { //商户签约性质
|
|
let registerRole = e;
|
|
let registerRole = e;
|
|
this.state.Params.registerRole = registerRole;
|
|
this.state.Params.registerRole = registerRole;
|
|
- if(registerRole == 'INDIVIDUAL_BUSINESS'){ //个体工商户
|
|
|
|
- this.setState({
|
|
|
|
- offlist:select_data.INDIVIDUAL_BUSINESS
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if(registerRole == 'NATURAL_PERSON'){ //自然人
|
|
|
|
|
|
+ if(this.state.signedType == 'GENERAL_SUB_MERCHANT'){ //入网类型为收单子户时
|
|
this.setState({
|
|
this.setState({
|
|
- offlist:select_data.NATURAL_PERSON
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if(registerRole == 'offlist'){ //默认
|
|
|
|
- this.setState({
|
|
|
|
- offlist:select_data.offlist
|
|
|
|
|
|
+ offlist:select_data.GENERAL_SUB_MERCHANT
|
|
})
|
|
})
|
|
|
|
+ }else{
|
|
|
|
+ if(registerRole == 'INDIVIDUAL_BUSINESS'){ //个体工商户
|
|
|
|
+ this.setState({
|
|
|
|
+ offlist:select_data.INDIVIDUAL_BUSINESS
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(registerRole == 'NATURAL_PERSON'){ //自然人
|
|
|
|
+ this.setState({
|
|
|
|
+ offlist:select_data.NATURAL_PERSON
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(registerRole == 'offlist'){ //默认
|
|
|
|
+ this.setState({
|
|
|
|
+ offlist:select_data.offlist
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
handleChangeZs(e) { //商户证书类型
|
|
handleChangeZs(e) { //商户证书类型
|
|
@@ -131,6 +151,30 @@ export default class centerO extends React.Component {
|
|
this.state.Params.cerType = cerType;
|
|
this.state.Params.cerType = cerType;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ initPcc(){
|
|
|
|
+ let registerRole = this.state.merchantInfo.baseInfo.registerRole;
|
|
|
|
+ this.handleChangeQy(registerRole)
|
|
|
|
+ let Province = this.state.merchantInfo.baseInfo.businessAddressProvince;
|
|
|
|
+ let city = this.state.merchantInfo.baseInfo.businessAddressCity;
|
|
|
|
+ let region = this.state.merchantInfo.baseInfo.businessAddressArea;
|
|
|
|
+ this.state.Params.businessAddressProvince = Province;
|
|
|
|
+ this.state.Params.businessAddressCity = city;
|
|
|
|
+ this.state.Params.businessAddressArea = region;
|
|
|
|
+ let data = this.state.selectData.Area;
|
|
|
|
+ let cityList = data.find((item, index) => { return Province == item.provinceCode });
|
|
|
|
+ let regionlist = cityList.mallCityList.find((item, index) => { return city == item.cityCode });
|
|
|
|
+ let that_ = this;
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ that_.setState({
|
|
|
|
+ cityOs: false,
|
|
|
|
+ citylist: cityList.mallCityList,
|
|
|
|
+ regionOs: false,
|
|
|
|
+ regionlist: regionlist.mallAreaList
|
|
|
|
+ })
|
|
|
|
+ },500)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
province_select(e) { //选择省
|
|
province_select(e) { //选择省
|
|
this.state.Params.businessAddressProvince = e;
|
|
this.state.Params.businessAddressProvince = e;
|
|
let citylist = this.state.selectData.Area.find((item, index) => { return e == item.provinceCode });
|
|
let citylist = this.state.selectData.Area.find((item, index) => { return e == item.provinceCode });
|
|
@@ -195,33 +239,54 @@ export default class centerO extends React.Component {
|
|
// console.log(e)
|
|
// console.log(e)
|
|
}
|
|
}
|
|
|
|
|
|
- // verificationMap(e){
|
|
|
|
- // let data = this.state.validation_list;
|
|
|
|
- // let type = false;
|
|
|
|
- // if(data.length > 0){
|
|
|
|
- // let s = ;
|
|
|
|
- // console.log(s)
|
|
|
|
- // }else{
|
|
|
|
-
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- // return type;
|
|
|
|
- // }
|
|
|
|
|
|
+ signedTypeRadio(e){
|
|
|
|
+ let signedType = e.target.value;
|
|
|
|
+ this.state.Params.signedType = signedType;
|
|
|
|
+ if(signedType == 'GENERAL_SUB_MERCHANT'){
|
|
|
|
+ this.setState({
|
|
|
|
+ signedType: signedType,
|
|
|
|
+ offlist : select_data.GENERAL_SUB_MERCHANT
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.setState({
|
|
|
|
+ signedType: signedType,
|
|
|
|
+ offlist : select_data.offlist
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
- const { selectData, cityOs, regionOs, citylist, regionlist, cityTxt, regionTxt, desireAuth, Params , validation_list } = this.state;
|
|
|
|
|
|
+ const { selectData, cityOs, regionOs, citylist, regionlist, cityTxt, regionTxt, desireAuth, Params , validation_list, signedType , merchantInfo } = this.state;
|
|
const { Option } = Select;
|
|
const { Option } = Select;
|
|
const { TextArea } = Input;
|
|
const { TextArea } = Input;
|
|
|
|
+ const { baseInfo } = merchantInfo;
|
|
const layout = {
|
|
const layout = {
|
|
labelCol: { span: 4 },
|
|
labelCol: { span: 4 },
|
|
- // wrapperCol: { span: },
|
|
|
|
};
|
|
};
|
|
return (
|
|
return (
|
|
<div className='center_up'>
|
|
<div className='center_up'>
|
|
<Form
|
|
<Form
|
|
{...layout}
|
|
{...layout}
|
|
- // initialValuess={{ 'registerRole' : '1'}}
|
|
|
|
|
|
+ initialValues={{
|
|
|
|
+ //数据回填,先检测用户状态是否为,入网被拒用户,符合则先以接口数据进行回填,否则按照自己输入的数据进行回填
|
|
|
|
+ signedType : merchantInfo == '' ? Params.signedType == undefined ? 'BY_SPLIT_BILL' : Params.signedType : baseInfo.signedType,
|
|
|
|
+ signedName : merchantInfo == '' ? Params.signedName : baseInfo.signedName,
|
|
|
|
+ registerRole : merchantInfo == '' ? Params.registerRole : baseInfo.registerRole,
|
|
|
|
+ cerType : merchantInfo == '' ? Params.cerType : baseInfo.cerType == '' ? null : baseInfo.cerType,
|
|
|
|
+ signedShorthand : merchantInfo == '' ? Params.signedShorthand : baseInfo.signedShorthand == '' ? null : baseInfo.signedShorthand,
|
|
|
|
+ contactName : merchantInfo == '' ? Params.contactName : baseInfo.contactName == '' ? null : baseInfo.contactName,
|
|
|
|
+ contactEmail : merchantInfo == '' ? Params.contactEmail : baseInfo.contactEmail == '' ? null : baseInfo.contactEmail,
|
|
|
|
+ contactPhone : merchantInfo == '' ? Params.contactPhone : baseInfo.contactPhone == '' ? null : baseInfo.contactPhone,
|
|
|
|
+ businessAddress : merchantInfo == '' ? Params.businessAddress : baseInfo.businessAddress == '' ? null : baseInfo.businessAddress,
|
|
|
|
+ businessClassification : merchantInfo == '' ? Params.businessClassification : baseInfo.businessClassification == '' ? null : baseInfo.businessClassification,
|
|
|
|
+ desireAuth : merchantInfo == '' ? Params.desireAuth == '' ? 'DESIRE_VIDEO' : Params.desireAuth : baseInfo.desireAuth == '' ? 'DESIRE_VIDEO' : baseInfo.desireAuth,
|
|
|
|
+ businessAddressProvince : merchantInfo == '' ? Params.businessAddressProvince : baseInfo.businessAddressProvince == '' ? null : baseInfo.businessAddressProvince,
|
|
|
|
+ businessAddressCity : merchantInfo == '' ? Params.businessAddressCity : baseInfo.businessAddressCity == '' ? null : baseInfo.businessAddressCity,
|
|
|
|
+ businessAddressArea : merchantInfo == '' ? Params.businessAddressArea : baseInfo.businessAddressArea == '' ? null : baseInfo.businessAddressArea,
|
|
|
|
+
|
|
|
|
+ }}
|
|
>
|
|
>
|
|
<div className='center_left'>
|
|
<div className='center_left'>
|
|
<div className='c-x' style={{height : '50px'}}>
|
|
<div className='c-x' style={{height : '50px'}}>
|
|
@@ -231,8 +296,9 @@ export default class centerO extends React.Component {
|
|
labelCol={{ style: { width: 150 } }}
|
|
labelCol={{ style: { width: 150 } }}
|
|
rules={[{ required: this.listTypes('signedType') == true ? true : false }]}
|
|
rules={[{ required: this.listTypes('signedType') == true ? true : false }]}
|
|
>
|
|
>
|
|
- <Radio.Group name="radiogroup" defaultValue={1}>
|
|
|
|
- <Radio value={1}>被分帐方</Radio>
|
|
|
|
|
|
+ <Radio.Group name="signedType" onChange={this.signedTypeRadio.bind(this)}>
|
|
|
|
+ <Radio value='BY_SPLIT_BILL' >被分帐方</Radio>
|
|
|
|
+ <Radio value='GENERAL_SUB_MERCHANT' >收单子户</Radio>
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
@@ -247,7 +313,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'signedName'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'signedName'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'signedName'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'signedName'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Input id='qymc' style={{ width: 200 }} placeholder='请输入签约名称' defaultValue={Params.signedName} />
|
|
|
|
|
|
+ <Input id='qymc' style={{ width: 200 }} placeholder='请输入签约名称' />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -264,12 +330,16 @@ export default class centerO extends React.Component {
|
|
size='default'
|
|
size='default'
|
|
id='qyxz'
|
|
id='qyxz'
|
|
placeholder="请选择商户签约性质"
|
|
placeholder="请选择商户签约性质"
|
|
- defaultValue={Params.registerRole}
|
|
|
|
onChange={this.handleChangeQy.bind(this)}
|
|
onChange={this.handleChangeQy.bind(this)}
|
|
style={{ width: 200 }}
|
|
style={{ width: 200 }}
|
|
>
|
|
>
|
|
{selectData.contract.map((item, index) => (
|
|
{selectData.contract.map((item, index) => (
|
|
- <Option key={index} value={item.value}>{item.txt}</Option>
|
|
|
|
|
|
+ signedType == 'GENERAL_SUB_MERCHANT' ?
|
|
|
|
+ item.value !== 'ENTERPRISE_LEGAL_PERSON' ?
|
|
|
|
+ <Option key={index} value={item.value} disabled>{item.txt}</Option>
|
|
|
|
+ :<Option key={index} value={item.value}>{item.txt}</Option>
|
|
|
|
+
|
|
|
|
+ : <Option key={index} value={item.value}>{item.txt}</Option>
|
|
))}
|
|
))}
|
|
</Select>
|
|
</Select>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
@@ -288,7 +358,6 @@ export default class centerO extends React.Component {
|
|
size='default'
|
|
size='default'
|
|
id='zslx'
|
|
id='zslx'
|
|
placeholder="请选择证书类型"
|
|
placeholder="请选择证书类型"
|
|
- defaultValue={Params.cerType}
|
|
|
|
onChange={this.handleChangeZs.bind(this)}
|
|
onChange={this.handleChangeZs.bind(this)}
|
|
style={{ width: 200 }}
|
|
style={{ width: 200 }}
|
|
>
|
|
>
|
|
@@ -307,7 +376,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'signedShorthand'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'signedShorthand'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'signedShorthand'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'signedShorthand'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Input id='names' style={{ width: 200 }} placeholder='请输入商户简称' defaultValue={Params.signedShorthand} />
|
|
|
|
|
|
+ <Input id='names' style={{ width: 200 }} placeholder='请输入商户简称' />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
</div>
|
|
</div>
|
|
<div className='c-l'>
|
|
<div className='c-l'>
|
|
@@ -319,7 +388,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'contactName'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'contactName'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'contactName'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'contactName'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Input id='myname' style={{ width: 200 }} placeholder='请输入商户简称' defaultValue={Params.contactName} />
|
|
|
|
|
|
+ <Input id='myname' style={{ width: 200 }} placeholder='请输入联系人姓名' />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
</div>
|
|
</div>
|
|
<div className='c-l'>
|
|
<div className='c-l'>
|
|
@@ -331,7 +400,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'contactEmail'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'contactEmail'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'contactEmail'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'contactEmail'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Input id='mymail' style={{ width: 200 }} placeholder='请输入商户简称' defaultValue={Params.contactEmail} />
|
|
|
|
|
|
+ <Input id='mymail' style={{ width: 200 }} placeholder='请输入联系人邮箱' />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
</div>
|
|
</div>
|
|
<div className='c-l'>
|
|
<div className='c-l'>
|
|
@@ -343,7 +412,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'contactPhone'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'contactPhone'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'contactPhone'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'contactPhone'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Input id='mynums' style={{ width: 200 }} placeholder="请输入联系人电话" onChange={this.inputDatas.bind(this)} defaultValue={Params.contactPhone} />
|
|
|
|
|
|
+ <Input id='mynums' style={{ width: 200 }} placeholder="请输入联系人电话" onChange={this.inputDatas.bind(this)} />
|
|
</Form.Item>
|
|
</Form.Item>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -357,7 +426,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddressProvince'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddressProvince'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddressProvince'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddressProvince'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Select size='default' placeholder="请选择省份" defaultValue={Params.businessAddressProvince} onChange={this.province_select.bind(this)} style={{ width: 200 }}>
|
|
|
|
|
|
+ <Select size='default' placeholder="请选择省份" onChange={this.province_select.bind(this)} style={{ width: 200 }}>
|
|
{selectData.Area.map((item, index) => (
|
|
{selectData.Area.map((item, index) => (
|
|
<Option key={index} value={item.provinceCode}>{item.provinceName}</Option>
|
|
<Option key={index} value={item.provinceCode}>{item.provinceName}</Option>
|
|
))}
|
|
))}
|
|
@@ -374,7 +443,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddressCity'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddressCity'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddressCity'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddressCity'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Select size='default' placeholder="请选择市" defaultValue={Params.businessAddressCity} key={cityTxt} onChange={this.city_select.bind(this)} style={{ width: 200 }} disabled={cityOs}>
|
|
|
|
|
|
+ <Select size='default' placeholder="请选择市" key={cityTxt} onChange={this.city_select.bind(this)} style={{ width: 200 }} disabled={cityOs}>
|
|
{citylist.map((item, index) => (
|
|
{citylist.map((item, index) => (
|
|
<Option key={index} value={item.cityCode}>{item.cityName}</Option>
|
|
<Option key={index} value={item.cityCode}>{item.cityName}</Option>
|
|
))}
|
|
))}
|
|
@@ -390,7 +459,7 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddressArea'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddressArea'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddressArea'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddressArea'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Select size='default' placeholder="请选择区" defaultValue={Params.businessAddressArea} key={regionTxt} onChange={this.region_select.bind(this)} style={{ width: 200 }} disabled={regionOs}>
|
|
|
|
|
|
+ <Select size='default' placeholder="请选择区" key={regionTxt} onChange={this.region_select.bind(this)} style={{ width: 200 }} disabled={regionOs}>
|
|
{regionlist.map((item, index) => (
|
|
{regionlist.map((item, index) => (
|
|
<Option key={index} value={item.areaCode}>{item.areaName}</Option>
|
|
<Option key={index} value={item.areaCode}>{item.areaName}</Option>
|
|
))}
|
|
))}
|
|
@@ -399,16 +468,16 @@ export default class centerO extends React.Component {
|
|
</div>
|
|
</div>
|
|
<div className='c-x' style={{marginBottom : '30px'}}>
|
|
<div className='c-x' style={{marginBottom : '30px'}}>
|
|
<Form.Item
|
|
<Form.Item
|
|
- label="经营地址区"
|
|
|
|
|
|
+ label="详细地址"
|
|
name="businessAddress"
|
|
name="businessAddress"
|
|
labelCol={{ style: { width: 150 } }}
|
|
labelCol={{ style: { width: 150 } }}
|
|
rules={[{ required: this.listTypes('businessAddress') == true ? true : false , message: ''}]}
|
|
rules={[{ required: this.listTypes('businessAddress') == true ? true : false , message: ''}]}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddress'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessAddress'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddress'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessAddress'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <div className='TextAreas' >
|
|
|
|
- <TextArea id='mywb' style={{ resize: 'none' }} defaultValue={Params.businessAddress} rows={6} />
|
|
|
|
- </div>
|
|
|
|
|
|
+ {/* <div className='TextAreas' > */}
|
|
|
|
+ <Input.TextArea id='mywb' style={{ resize: 'none',width : 400 }} rows={6} />
|
|
|
|
+ {/* </div> */}
|
|
</Form.Item>
|
|
</Form.Item>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -421,7 +490,16 @@ export default class centerO extends React.Component {
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessClassification'}) !== undefined ? 'error' : null}
|
|
validateStatus = {validation_list.find((item,index) => { return item == 'businessClassification'}) !== undefined ? 'error' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessClassification'}) !== undefined ? '此项为必填项!' : null}
|
|
help = {validation_list.find((item,index) => { return item == 'businessClassification'}) !== undefined ? '此项为必填项!' : null}
|
|
>
|
|
>
|
|
- <Select size='default' placeholder="请选择业务类型" defaultValue={Params.businessClassification} onChange={this.handleChange.bind(this)} style={{ width: 400 }}>
|
|
|
|
|
|
+ <Select
|
|
|
|
+ showSearch
|
|
|
|
+ size='default'
|
|
|
|
+ placeholder="请选择业务类型"
|
|
|
|
+ onChange={this.handleChange.bind(this)}
|
|
|
|
+ style={{ width: 400 }}
|
|
|
|
+ filterOption={(input, option) =>
|
|
|
|
+ option.children.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ }
|
|
|
|
+ >
|
|
{selectData.fication.map((item, index) => (
|
|
{selectData.fication.map((item, index) => (
|
|
<Option key={index} value={item.value}>{item.txt}</Option>
|
|
<Option key={index} value={item.value}>{item.txt}</Option>
|
|
))}
|
|
))}
|
|
@@ -438,7 +516,7 @@ export default class centerO extends React.Component {
|
|
// validateStatus="error"
|
|
// validateStatus="error"
|
|
// help="此项为必填项!"
|
|
// help="此项为必填项!"
|
|
>
|
|
>
|
|
- <Radio.Group name="radiogroup" defaultValue={Params.desireAuth == undefined ? 'DESIRE_VIDEO' : Params.desireAuth} onChange={this.onChangeRadio.bind(this)}>
|
|
|
|
|
|
+ <Radio.Group name="radiogroup" onChange={this.onChangeRadio.bind(this)}>
|
|
<Radio value='DESIRE_VIDEO'>视频验证</Radio>
|
|
<Radio value='DESIRE_VIDEO'>视频验证</Radio>
|
|
<Radio value='DESIRE_MOBILEINFO'>手机短信验证</Radio>
|
|
<Radio value='DESIRE_MOBILEINFO'>手机短信验证</Radio>
|
|
<Radio value='DESIRE_NONEED'>其他验证方式</Radio>
|
|
<Radio value='DESIRE_NONEED'>其他验证方式</Radio>
|