|
@@ -12,6 +12,7 @@ const monthFormat = 'YYYY/MM';
|
|
|
import CustomerDetail from './myClientDesc.jsx';
|
|
import CustomerDetail from './myClientDesc.jsx';
|
|
|
import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
|
|
import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
|
|
|
import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
|
|
import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
|
|
|
|
|
+import ImgList from "../../../common/imgList";
|
|
|
|
|
|
|
|
//图片组件
|
|
//图片组件
|
|
|
const PicturesWall = React.createClass({
|
|
const PicturesWall = React.createClass({
|
|
@@ -49,18 +50,19 @@ const PicturesWall = React.createClass({
|
|
|
);
|
|
);
|
|
|
return(
|
|
return(
|
|
|
<div style={{display:"inline-block"}}>
|
|
<div style={{display:"inline-block"}}>
|
|
|
- <Upload
|
|
|
|
|
- action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
|
|
|
|
|
- data={{ 'sign': '' }}
|
|
|
|
|
- listType="picture-card"
|
|
|
|
|
- fileList={fileList}
|
|
|
|
|
- onPreview={this.handlePreview}
|
|
|
|
|
- onChange={this.handleChange} >
|
|
|
|
|
- {fileList.length >= 1 ? null : uploadButton}
|
|
|
|
|
- </Upload>
|
|
|
|
|
- <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
|
|
|
|
|
- <img alt="example" style={{ width: '100%' }} src={previewImage} />
|
|
|
|
|
- </Modal>
|
|
|
|
|
|
|
+ <ImgList
|
|
|
|
|
+ domId={this.props.domId}
|
|
|
|
|
+ uploadConfig={{
|
|
|
|
|
+ action:globalConfig.context + "/api/admin/customer/uploadCustomerImg",
|
|
|
|
|
+ data:{ 'sign': '' },
|
|
|
|
|
+ multiple:true,
|
|
|
|
|
+ listType:"picture-card",
|
|
|
|
|
+ }}
|
|
|
|
|
+ onChange={(infor)=>{
|
|
|
|
|
+ this.handleChange(infor)
|
|
|
|
|
+ }}
|
|
|
|
|
+ fileList={fileList}
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
@@ -2327,6 +2329,7 @@ const QueryCustomer = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="身份证正面" >
|
|
label="身份证正面" >
|
|
|
<PicturesWall
|
|
<PicturesWall
|
|
|
|
|
+ domId={'publicManagesOne1'}
|
|
|
pictureSign="ID"
|
|
pictureSign="ID"
|
|
|
fileList={this.getPositiveIdUrl}
|
|
fileList={this.getPositiveIdUrl}
|
|
|
pictureUrl={this.state.positiveIdUrl} />
|
|
pictureUrl={this.state.positiveIdUrl} />
|
|
@@ -2337,6 +2340,7 @@ const QueryCustomer = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="身份证反面" >
|
|
label="身份证反面" >
|
|
|
<PicturesWall
|
|
<PicturesWall
|
|
|
|
|
+ domId={'publicManagesOne2'}
|
|
|
pictureSign="ID"
|
|
pictureSign="ID"
|
|
|
fileList={this.getOppositeIdUrl}
|
|
fileList={this.getOppositeIdUrl}
|
|
|
pictureUrl={this.state.oppositeIdUrl} />
|
|
pictureUrl={this.state.oppositeIdUrl} />
|
|
@@ -2347,6 +2351,7 @@ const QueryCustomer = Form.create()(React.createClass({
|
|
|
wrapperCol={{ span: 10 }}
|
|
wrapperCol={{ span: 10 }}
|
|
|
label="客户照片" >
|
|
label="客户照片" >
|
|
|
<PicturesWall
|
|
<PicturesWall
|
|
|
|
|
+ domId={'publicManagesOne3'}
|
|
|
pictureSign="portrait"
|
|
pictureSign="portrait"
|
|
|
fileList={this.getHeadPortraitUrl}
|
|
fileList={this.getHeadPortraitUrl}
|
|
|
pictureUrl={this.state.headPortraitUrl} />
|
|
pictureUrl={this.state.headPortraitUrl} />
|