|
@@ -8,10 +8,11 @@ import { citySelect,provinceList,areaSelect} from '../../../NewDicProvinceList';
|
|
|
const { Column, ColumnGroup } = Table;
|
|
|
const TabPane = Tabs.TabPane;
|
|
|
import CustomerDetail from './myClientDesc.jsx';
|
|
|
-import {socialAttribute,industry,newFollow,lvl,currentMember,cityArr, statuslist,customerStatus,intentionalService,sex} from '../../../dataDic.js';
|
|
|
-import {getCompanyIntention,getSocialAttribute ,getStatuslist,getIndustry,getContactType,getfllowSituation,beforeUploadFile,getWhether,getcityArr,getcustomerStatue,getfllowSituationOn,getCertification,getcustomerTyp,getLvl,getCurrentMember,getprovince} from '../../../tools.js';
|
|
|
+import {socialAttribute,industry,newFollow,auditStatusL,lvl,currentMember,cityArr, statuslist,customerStatus,intentionalService,sex} from '../../../dataDic.js';
|
|
|
+import {getCompanyIntention,splitUrl,getAuditStatus,getSocialAttribute ,getStatuslist,getIndustry,getContactType,getfllowSituation,beforeUploadFile,getWhether,getcityArr,getcustomerStatue,getfllowSituationOn,getCertification,getcustomerTyp,getLvl,getCurrentMember,getprovince} from '../../../tools.js';
|
|
|
const monthFormat = 'YYYY/MM';
|
|
|
//图片组件
|
|
|
+
|
|
|
const PicturesWall = React.createClass({
|
|
|
getInitialState() {
|
|
|
return {
|
|
@@ -48,7 +49,7 @@ const PicturesWall = React.createClass({
|
|
|
return (
|
|
|
<div style={{display:"inline-block"}}>
|
|
|
<Upload
|
|
|
- action={globalConfig.context + "/api/admin/customer/attachmentUpload"}
|
|
|
+ action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
|
|
|
data={{ 'sign': this.props.pictureSign }}
|
|
|
listType="picture-card"
|
|
|
fileList={fileList}
|
|
@@ -84,8 +85,8 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
//area: this.state.addressSearch?this.state.addressSearch[2].value:'',
|
|
|
status:this.state.statusSearch,
|
|
|
industry:this.state.industrySearch,
|
|
|
- serviceCertification:this.state.serviceCertificationSearch,
|
|
|
- userCertification: this.state.userCertificationSearch,
|
|
|
+ businessAudit:this.state.serviceCertificationSearch,
|
|
|
+ auditStatus: this.state.userCertificationSearch,
|
|
|
currentMemberStatus:this.state.currentMemberStatusSearch,
|
|
|
lvl:this.state.lvlSearch,
|
|
|
listed:this.state.listedSearch, //是否上市
|
|
@@ -117,8 +118,8 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
contactMobile:thisdata.contactMobile,
|
|
|
industry:thisdata.industry,
|
|
|
createTime:thisdata.createTime,
|
|
|
- serviceCertification:thisdata.serviceCertification,
|
|
|
- userCertification:thisdata.userCertification,
|
|
|
+ businessAudit:thisdata.businessAudit,
|
|
|
+ auditStatus:thisdata.auditStatus,
|
|
|
lvl:thisdata.lvl,
|
|
|
isMember:thisdata.isMember,
|
|
|
societyTag:thisdata.societyTag,
|
|
@@ -130,12 +131,13 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
celebrity:thisdata.celebrity,
|
|
|
highTechZone:thisdata.highTechZone,
|
|
|
locationProvince:thisdata.province?thisdata.province+'-'+thisdata.city||''+'-'+thisdata.area :'--'
|
|
|
+
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+ this.state.pagination.current = data.data.pageNo;
|
|
|
+ this.state.pagination.total = data.data.totalCount;
|
|
|
};
|
|
|
- this.state.pagination.current = data.data.pageNo?data.data.pageNo:'0';
|
|
|
- this.state.pagination.total = data.data.totalCount?data.data.totalCount:'0';
|
|
|
+
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
pagination: this.state.pagination
|
|
@@ -534,15 +536,15 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
},
|
|
|
{
|
|
|
title: '业务认证',
|
|
|
- dataIndex: 'serviceCertification',
|
|
|
- key: 'serviceCertification',
|
|
|
+ dataIndex: 'businessAudit',
|
|
|
+ key: 'businessAudit',
|
|
|
render: text => { return getCertification(text) }
|
|
|
},
|
|
|
{
|
|
|
title: '实名认证',
|
|
|
- dataIndex: 'userCertification',
|
|
|
- key: 'userCertification',
|
|
|
- render: text => { return getCertification(text) }
|
|
|
+ dataIndex: 'auditStatus',
|
|
|
+ key: 'auditStatus',
|
|
|
+ render: text => { return getAuditStatus(text) }
|
|
|
},
|
|
|
{
|
|
|
title: '是否专家',
|
|
@@ -1186,7 +1188,16 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
introduction:this.state.introduction,
|
|
|
positiveIdUrl:thecompanyLogoUrl,
|
|
|
oppositeIdUrl:thecompanyLogoUrls,
|
|
|
- headPortraitUrl:theorgCodeUrl,
|
|
|
+ headPortraitUrl:theorgCodeUrl,
|
|
|
+
|
|
|
+ investment:this.state.investment,
|
|
|
+ professionalTitle:this.state.professionalTitle,
|
|
|
+ workUnit:this.state.workUnit,
|
|
|
+ education:this.state.education,
|
|
|
+ majorCategory:this.state.majorCategory,
|
|
|
+ qualification:this.state.qualification,
|
|
|
+ businessAudit:this.state.businessAudit,
|
|
|
+ auditStatus:this.state.auditStatus,
|
|
|
}
|
|
|
}).done(function (data) {
|
|
|
this.setState({
|
|
@@ -1253,7 +1264,15 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
introduction:thisData.introduction,
|
|
|
expert:thisData.expert,
|
|
|
celebrity:thisData.celebrity,
|
|
|
- international:thisData.international,
|
|
|
+ international:thisData.international,
|
|
|
+ investment:thisData.investment,
|
|
|
+ professionalTitle:thisData.professionalTitle,
|
|
|
+ workUnit:thisData.workUnit,
|
|
|
+ education:thisData.education,
|
|
|
+ majorCategory:thisData.majorCategory,
|
|
|
+ qualification:thisData.qualification,
|
|
|
+ businessAudit:thisData.businessAudit,
|
|
|
+ auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
|
|
|
});
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
@@ -1300,9 +1319,7 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
isMember:thisData.isMember,
|
|
|
currentMemberStatus:String(thisData.currentMemberStatus),
|
|
|
lvl:String(thisData.lvl),
|
|
|
- serviceCertification:thisData.serviceCertification,
|
|
|
- status:String(thisData.status),
|
|
|
- userCertification:thisData.userCertification,
|
|
|
+ status:String(thisData.status),
|
|
|
createTimes:thisData.createTimes,
|
|
|
});
|
|
|
}.bind(this),
|
|
@@ -1898,8 +1915,6 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
email: this.state.email,
|
|
|
isMember: this.state.isMember,
|
|
|
currentMemberStatus: this.state.currentMemberStatus,
|
|
|
- serviceCertification: this.state.serviceCertification,
|
|
|
- userCertification: this.state.userCertification,
|
|
|
lvl:this.state.lvl,
|
|
|
status:this.state.status,
|
|
|
}
|
|
@@ -2172,8 +2187,11 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
style={{ width: 100 }}
|
|
|
value={this.state.userCertificationSearch}
|
|
|
onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
|
|
|
- <Select.Option value="0" >未认证</Select.Option>
|
|
|
- <Select.Option value="1" >已认证</Select.Option>
|
|
|
+ {
|
|
|
+ auditStatusL.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
</Select>
|
|
|
<span>专家:</span>
|
|
|
<Select placeholder="专家"
|
|
@@ -2310,87 +2328,161 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
>
|
|
|
<Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
|
|
|
this.setState({ contacts: e.target.value })}}/>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="主要联系人号码"
|
|
|
>
|
|
|
<Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
|
|
|
this.setState({ contactMobile: e.target.value })}}/>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="通信地址"
|
|
|
- >
|
|
|
- <Input placeholder="客户通信地址" value={this.state.postalAddress}
|
|
|
- onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="固定电话"
|
|
|
- >
|
|
|
- <Input placeholder="客户固定电话" value={this.state.fixedTel}
|
|
|
- onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="客户QQ"
|
|
|
- >
|
|
|
- <Input placeholder="客户QQ" value={this.state.qq}
|
|
|
- onChange={(e) => { this.setState({ qq: e.target.value })}}/>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="电子邮箱"
|
|
|
- >
|
|
|
- <Input placeholder="客户电子邮箱" value={this.state.email}
|
|
|
- onChange={(e) => {this.setState({email: e.target.value })}}/>
|
|
|
</FormItem>
|
|
|
<div className="clearfix">
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="专家"
|
|
|
- >
|
|
|
- <Radio.Group value={this.state.expert} onChange={(e) => {
|
|
|
- this.setState({ expert: e.target.value })
|
|
|
- }}>
|
|
|
- <Radio value={0}>否</Radio>
|
|
|
- <Radio value={1}>是</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="明星"
|
|
|
- >
|
|
|
- <Radio.Group value={this.state.celebrity} onChange={(e) => {
|
|
|
- this.setState({ celebrity: e.target.value })
|
|
|
- }}>
|
|
|
- <Radio value={0}>否</Radio>
|
|
|
- <Radio value={1}>是</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="国际化"
|
|
|
- >
|
|
|
- <Radio.Group value={this.state.international} onChange={(e) => {
|
|
|
- this.setState({ international: e.target.value })
|
|
|
- }}>
|
|
|
- <Radio value={0}>否</Radio>
|
|
|
- <Radio value={1}>是</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="性别"
|
|
|
- >
|
|
|
- <Radio.Group value={this.state.sex} onChange={(e) => {
|
|
|
- this.setState({sex:e.target.value})
|
|
|
- }}>
|
|
|
- <Radio value={'男'}>男</Radio>
|
|
|
- <Radio value={'女'}>女</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="职称名字"
|
|
|
+ >
|
|
|
+ <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
|
|
|
+ this.setState({ professionalTitle: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="就业单位"
|
|
|
+ >
|
|
|
+ <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
|
|
|
+ this.setState({ workUnit: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="学历"
|
|
|
+ >
|
|
|
+ <Input placeholder="学历" value={this.state.education} onChange={(e) => {
|
|
|
+ this.setState({ education: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="专业类别"
|
|
|
+ >
|
|
|
+ <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
|
|
|
+ this.setState({ majorCategory: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="执业资格"
|
|
|
+ >
|
|
|
+ <Input placeholder="执业资格" value={this.state.qualification} onChange={(e) => {
|
|
|
+ this.setState({ qualification: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="通信地址"
|
|
|
+ >
|
|
|
+ <Input placeholder="客户通信地址" value={this.state.postalAddress}
|
|
|
+ onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="固定电话"
|
|
|
+ >
|
|
|
+ <Input placeholder="客户固定电话" value={this.state.fixedTel}
|
|
|
+ onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="客户QQ"
|
|
|
+ >
|
|
|
+ <Input placeholder="客户QQ" value={this.state.qq}
|
|
|
+ onChange={(e) => { this.setState({ qq: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="电子邮箱"
|
|
|
+ >
|
|
|
+ <Input placeholder="客户电子邮箱" value={this.state.email}
|
|
|
+ onChange={(e) => {this.setState({email: e.target.value })}}/>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="实名认证"
|
|
|
+ >
|
|
|
+ <Select placeholder="实名认证"
|
|
|
+ value={this.state.auditStatus}
|
|
|
+ onChange={(e) => { this.setState({ auditStatus: e }) }}>
|
|
|
+ {
|
|
|
+ auditStatusL.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <div className="clearfix">
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="投资机构"
|
|
|
+ >
|
|
|
+ <Radio.Group value={this.state.investment} onChange={(e) => {
|
|
|
+ this.setState({ investment: e.target.value })
|
|
|
+ }}>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="业务认证"
|
|
|
+ >
|
|
|
+ <Radio.Group value={this.state.businessAudit} onChange={(e) => {
|
|
|
+ this.setState({ businessAudit: e.target.value })
|
|
|
+ }}>
|
|
|
+ <Radio value={0}>未认证</Radio>
|
|
|
+ <Radio value={1}>已认证</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="专家"
|
|
|
+ >
|
|
|
+ <Radio.Group value={this.state.expert} onChange={(e) => {
|
|
|
+ this.setState({ expert: e.target.value })
|
|
|
+ }}>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="明星"
|
|
|
+ >
|
|
|
+ <Radio.Group value={this.state.celebrity} onChange={(e) => {
|
|
|
+ this.setState({ celebrity: e.target.value })
|
|
|
+ }}>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="国际化"
|
|
|
+ >
|
|
|
+ <Radio.Group value={this.state.international} onChange={(e) => {
|
|
|
+ this.setState({ international: e.target.value })
|
|
|
+ }}>
|
|
|
+ <Radio value={0}>否</Radio>
|
|
|
+ <Radio value={1}>是</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="性别"
|
|
|
+ >
|
|
|
+ <Radio.Group value={this.state.sex} onChange={(e) => {
|
|
|
+ this.setState({sex:e.target.value})
|
|
|
+ }}>
|
|
|
+ <Radio value={'男'}>男</Radio>
|
|
|
+ <Radio value={'女'}>女</Radio>
|
|
|
+ </Radio.Group>
|
|
|
+ </FormItem>
|
|
|
</div>
|
|
|
<div className='clearfix'>
|
|
|
<FormItem
|
|
@@ -2407,7 +2499,7 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="身份证正面" >
|
|
|
<PicturesWall
|
|
|
- pictureSign="customer_sys_file"
|
|
|
+ pictureSign="ID"
|
|
|
fileList={this.getPositiveIdUrl}
|
|
|
pictureUrl={this.state.positiveIdUrl} />
|
|
|
<p>建议:图片要清晰。</p>
|
|
@@ -2417,7 +2509,7 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="身份证反面" >
|
|
|
<PicturesWall
|
|
|
- pictureSign="customer_sys_file"
|
|
|
+ pictureSign="ID"
|
|
|
fileList={this.getOppositeIdUrl}
|
|
|
pictureUrl={this.state.oppositeIdUrl} />
|
|
|
<p>建议:图片要清晰。</p>
|
|
@@ -2427,7 +2519,7 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="客户照片" >
|
|
|
<PicturesWall
|
|
|
- pictureSign="customer_sys_file"
|
|
|
+ pictureSign="portrait"
|
|
|
fileList={this.getHeadPortraitUrl}
|
|
|
pictureUrl={this.state.headPortraitUrl} />
|
|
|
<p>建议:图片要清晰。</p>
|
|
@@ -2545,28 +2637,6 @@ const IndividualCustomer = Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="业务认证"
|
|
|
- >
|
|
|
- <Radio.Group value={this.state.serviceCertification} onChange={(e) => {
|
|
|
- this.setState({ serviceCertification: e.target.value })
|
|
|
- }}>
|
|
|
- <Radio value={0}>未认证</Radio>
|
|
|
- <Radio value={1}>已认证</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="实名认证"
|
|
|
- >
|
|
|
- <Radio.Group value={this.state.userCertification} onChange={(e) => {
|
|
|
- this.setState({ userCertification: e.target.value })
|
|
|
- }}>
|
|
|
- <Radio value={0}>未认证</Radio>
|
|
|
- <Radio value={1}>已认证</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
<div className="clearfix">
|
|
|
<Button className='saveBtn' type="primary" htmlType="submit">保存</Button>
|
|
|
<Button type="ghost" onClick={this.detailsModal}>取消</Button>
|