123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619 |
- import React from 'react';
- import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd';
- import ajax from 'jquery/src/ajax/xhr.js';
- import $ from 'jquery/src/ajax';
- import moment from 'moment';
- import { citySelect, provinceList, areaSelect } from '../../../areaList';
- import {getProvinceList} from '../../../addressList';
- const { Column, ColumnGroup } = Table;
- const TabPane = Tabs.TabPane;
- const monthFormat = 'YYYY/MM';
- import CustomerDetail from './myClientDesc.jsx';
- 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';
- //图片组件
- const PicturesWall = React.createClass({
- getInitialState() {
- return {
- previewVisible: false,
- previewImage: '',
- fileList: [],
- }
- },
- handleCancel() {
- this.setState({ previewVisible: false })
- },
- handlePreview(file) {
- this.setState({
- previewImage: file.url || file.thumbUrl,
- previewVisible: true,
- });
- },
- handleChange(info) {
- let fileList = info.fileList;
- this.setState({ fileList });
- this.props.fileList(fileList);
- },
- componentWillReceiveProps(nextProps) {
- this.state.fileList = nextProps.pictureUrl;
- },
- render() {
- const { previewVisible, previewImage, fileList } = this.state;
- const uploadButton = (
- <div>
- <Icon type="plus" />
- <div className="ant-upload-text">点击上传</div>
- </div>
- );
- return(
- <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>
- </div>
- );
- }
- });
- const QueryCustomer = Form.create()(React.createClass({
- loadData(pageNo, apiUrl) {
- this.state.data = [];
- this.setState({
- loading: true,
- ispage:pageNo,
- });
- $.ajax({
- method: "post",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/listAllPersonalCustomer',
- data: {
- pageNo: pageNo || 1,
- pageSize: this.state.pagination.pageSize,
- auditStatus: 1,
- type: this.state.typeSearch, //名称1
- name: this.state.nameSearch,
- province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
- city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
- status: this.state.statusSearch,
- industry: this.state.industrySearch,
- businessAudit: this.state.serviceCertificationSearch,
- currentMemberStatus: this.state.currentMemberStatusSearch,
- lvl: this.state.lvlSearch,
- listed: this.state.listedSearch, //是否上市
- highTechZone: this.state.highTechZoneSearch, //是否高新
- startDate: this.state.releaseDate[0],
- endDate: this.state.releaseDate[1],
- isMember: this.state.isMemberSearch,
- international: this.state.internationalSearch,
- celebrity: this.state.celebritySearch,
- expert: this.state.expertSearch,
- industry: this.state.industrySearch,
- shareType: this.state.shareTypeSearch,
- },
- success: function(data) {
- let theArr = [];
- if(data.error.length || data.data.list == "") {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- } else {
- for(let i = 0; i < data.data.list.length; i++) {
- let thisdata = data.data.list[i];
- theArr.push({
- key: i,
- id: thisdata.uid,
- type: thisdata.type,
- name: thisdata.name,
- status: thisdata.status,
- contacts: thisdata.contacts,
- contactMobile: thisdata.contactMobile,
- industry: thisdata.industry,
- createTime: thisdata.createTime,
- businessAudit: thisdata.businessAudit,
- auditStatus: thisdata.auditStatus,
- lvl: thisdata.lvl,
- shareType: thisdata.shareType,
- isMember: thisdata.isMember,
- consultant: thisdata.consultant,
- societyTag: thisdata.societyTag,
- currentMemberStatus: thisdata.currentMemberStatus,
- international: thisdata.international,
- listed: thisdata.listed,
- international: thisdata.international,
- expert: thisdata.expert,
- expertAudit: thisdata.expertAudit,
- celebrity: thisdata.celebrity,
- adminName: thisdata.adminName,
- 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 ;
- };
- if(data.data&&data.data.list&&!data.data.list.length){
- this.state.pagination.current=0
- this.state.pagination.total=0
- }
- this.setState({
- dataSource: theArr,
- pagination: this.state.pagination,
- selectedRowKeys:[]
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- handleCancel(e) {
- this.setState({
- visible: false,
- });
- },
- getInitialState() {
- return {
- addressSearch: [],
- positiveIdUrl: [],
- oppositeIdUrl: [],
- headPortraitUrl: [],
- visible: false,
- callnubs:"1",
- searchMore: true,
- releaseDate: [],
- releaseDate: [],
- selectedRowKeys: [],
- selectedRowKey: [],
- selectedRows: [],
- loading: false,
- pagination: {
- defaultCurrent: 1,
- defaultPageSize: 10,
- showQuickJumper: true,
- pageSize: 10,
- onChange: function(page) {
- this.loadData(page);
- }.bind(this),
- showTotal: function(total) {
- return '共' + total + '条数据';
- }
- },
- paginations: {
- defaultCurrent: 1,
- defaultPageSize: 10,
- showQuickJumper: true,
- pageSize: 10,
- onChange: function(page) {
- this.loadVisit(page);
- }.bind(this),
- showTotal: function(total) {
- return '共' + total + '条数据';
- }
- },
- paginationsy: {
- defaultCurrent: 1,
- defaultPageSize: 10,
- showQuickJumper: true,
- pageSize: 10,
- onChange: function(page) {
- this.loadBfVisit(page, false);
- }.bind(this),
- showTotal: function(total) {
- return '共' + total + '条数据';
- }
- },
- paginationt: {
- defaultCurrent: 1,
- defaultPageSize: 10,
- showQuickJumper: true,
- pageSize: 10,
- onChange: function(page) {
- this.BusinessList(page, false);
- }.bind(this),
- showTotal: function(total) {
- return '共' + total + '条数据';
- }
- },
- //业务意向列表
- intentionList: [{
- title: '业务名称',
- dataIndex: 'businessGlossoryId',
- key: 'businessGlossoryId',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
- {
- intentionalService.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select> : <span>{getCompanyIntention(text)}</span>
- }
- },
- {
- title: '最新进度',
- dataIndex: 'followSituation',
- key: 'followSituation',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
- {
- newFollow.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select> : <span>{getfllowSituation(text)}</span>
- }
- }, {
- title: '最新状态',
- dataIndex: 'customerStatus',
- key: 'customerStatus',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
- {
- customerStatus.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select> : <span>{getcustomerStatue(text)}</span>
- }
- }, {
- title: '跟进说明',
- dataIndex: 'remarks',
- key: 'remarks',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
- onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
- style={{width:'120px'}}/> : <span>{text}</span>
- }
- }
- ],
- businessIntentionList: [{
- title: '意向时间',
- dataIndex: 'createTime',
- key: 'createTime'
- }, {
- title: '客户姓名',
- dataIndex: 'identifyName',
- key: 'identifyName'
- }, {
- title: '业务名',
- dataIndex: 'businessName',
- key: 'businessName'
- }, {
- title: '营销员',
- dataIndex: 'adminName',
- key: 'adminName'
- }, {
- title: '业务意向进度',
- dataIndex: 'followSituation',
- key: 'followSituation',
- render: text => { return getfllowSituation(text) }
- }, {
- title: '客户状态',
- dataIndex: 'customerStatus',
- key: 'customerStatus',
- render: text => { return getcustomerStatue(text) }
- }, {
- title: '操作',
- dataIndex: 'ooo',
- key: 'ooo',
- render: (text, record) => { return(<Button onClick={(e)=>{this.businessIntentionDetails(record)}}>查看</Button>) }
- }],
- businessFollowList: [{
- title: '跟进时间',
- dataIndex: 'followTime',
- key: 'followTime',
- }, {
- title: '营销员',
- dataIndex: 'adminName',
- key: 'adminName',
- }, {
- title: '业务意向进度',
- dataIndex: 'followSituation',
- key: 'followSituation',
- render: text => { return getfllowSituation(text) }
- }, {
- title: '客户状态',
- dataIndex: 'customerStatus',
- key: 'customerStatus',
- render: text => { return getcustomerStatue(text) }
- },
- {
- title: '拜访方式',
- dataIndex: 'contactType',
- key: 'contactType',
- render: text => { return getContactType(text) }
- }, {
- title: '联系人',
- dataIndex: 'contacts',
- key: 'contacts',
- },
- {
- title: '联系电话',
- dataIndex: 'contactMobile',
- key: 'contactMobile',
- }, {
- title: '操作',
- dataIndex: 'ooo',
- key: 'ooo',
- render: (text, record) => { return(<Button onClick={(e)=>{this.businessFollowDetails(record)}}>查看</Button>) }
- }
- ],
- visitsList: [{
- title: '拜访时间',
- dataIndex: 'followTime',
- key: 'followTime'
- }, {
- title: '客户姓名',
- dataIndex: 'identifyName',
- key: 'identifyName'
- }, {
- title: '拜访方式',
- dataIndex: 'contactType',
- key: 'contactType',
- render: text => { return getContactType(text) }
- }, {
- title: '联系人',
- dataIndex: 'contacts',
- key: 'contacts'
- }, {
- title: '联系电话',
- dataIndex: 'contactMobile',
- key: 'contactMobile'
- }, {
- title: '拜访人',
- dataIndex: 'adminName',
- key: 'adminName'
- }, {
- title: '拜访说明',
- dataIndex: 'result',
- key: 'result',
- render: text => {
- return <span style={{width:'150px',display:'inline-block',overflow:'hidden'}}>{text}</span>
- }
- }],
- ContactsLists: [{
- title: '姓名',
- dataIndex: 'name',
- key: 'name',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id}
- onChange={(e) => { record.name = e.target.value;
- this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }, {
- title: '联系人部门',
- dataIndex: 'depatrment',
- key: 'depatrment',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
- onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }, {
- title: '联系人职务',
- dataIndex: 'position',
- key: 'position',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
- onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }, {
- title: '手机号码',
- dataIndex: 'mobile',
- key: 'mobile',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id}
- onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }, {
- title: '微信',
- dataIndex: 'wechat',
- key: 'wechat',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
- onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }, {
- title: '联系人QQ',
- dataIndex: 'qq',
- key: 'qq',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
- onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }, {
- title: '电子邮箱',
- dataIndex: 'email',
- key: 'email',
- render: (text, record, index) => {
- return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
- onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
- }
- }
- ],
- columnsman: [{
- title: '姓名',
- dataIndex: 'name',
- key: 'name'
- }, {
- title: '手机号码',
- dataIndex: 'mobile',
- key: 'mobile'
- }],
- columns: [{
- title: '客户姓名',
- dataIndex: 'name',
- key: 'name',
- }, {
- title: '地区',
- dataIndex: 'locationProvince',
- key: 'locationProvince',
- },
- {
- title: '公共客户',
- dataIndex: 'shareType',
- key: 'shareType',
- render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
- },
- {
- title: '行业',
- dataIndex: 'industry',
- key: 'industry',
- },
- {
- title: '社会性质',
- dataIndex: 'societyTag',
- key: 'societyTag',
- render: text => { return getSocialAttribute(text) }
- },
- {
- title: '创建时间',
- dataIndex: 'createTime',
- key: 'createTime',
- },{
- title: '所属人',
- dataIndex: 'adminName',
- key: 'adminName',
- },
- {
- title: '业务认证',
- dataIndex: 'businessAudit',
- key: 'businessAudit',
- render: text => { return getCertification(text) }
- },
- {
- title: '实名认证',
- dataIndex: 'auditStatus',
- key: 'auditStatus',
- render: text => { return getAuditStatus(text) }
- },
- {
- title: '是否专家',
- dataIndex: 'expert',
- key: 'expert',
- render: text => { return getWhether(text) }
- },
- {
- title: '是否会员',
- dataIndex: 'isMember',
- key: 'isMember',
- render: text => { return getWhether(text) }
- },
- {
- title: '是否国际',
- dataIndex: 'international',
- key: 'international',
- render: text => { return getWhether(text) }
- },
- {
- title: '会员等级',
- dataIndex: 'lvl',
- key: 'lvl',
- render: text => { return getLvl(text) }
- },
- {
- title: '会员状态',
- dataIndex: 'currentMemberStatus',
- key: 'currentMemberStatus',
- render: text => { return getCurrentMember(text) }
- },
- {
- title: '状态',
- dataIndex: 'status',
- key: 'status',
- render: text => { return getStatuslist(text) }
- }
- ],
- data: [],
- dataman: [],
- dataSource: [],
- visitArrList: [],
- searchTime: [, ]
- };
- },
- //tab2获取联系人详情
- contactLists(ids) {
- this.setState({
- loading: true
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
- data: {
- uid: ids, //名称1
- },
- success: function(data) {
- let theArr = [];
- if(data.error.length || data.data.list == "") {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- } else {
- for(let i = 0; i < data.data.length; i++) {
- let thisdata = data.data[i];
- theArr.push({
- id: thisdata.id,
- name: thisdata.name,
- mobile: thisdata.mobile,
- email: thisdata.email,
- qq: thisdata.qq,
- wechat: thisdata.wechat,
- depatrment: thisdata.depatrment,
- position: thisdata.position,
- });
- };
- };
- this.setState({
- contactList: theArr,
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- componentWillMount() {
- let areaArr= getProvinceList();
- let Citys=citySelect(areaArr);
- let Areas=areaSelect(areaArr);
- this.setState({
- City: Citys,
- Area: Areas
- });
- //城市
- let Province = [];
- areaArr.map(function(item) {
- var id = String(item.id)
- Province.push(
- <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
- )
- });
- //行业
- let intentionalArr = [];
- industry.map(function(item) {
- intentionalArr.push(
- <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
- )
- });
- //会员等级
- let lvlArr = [];
- lvl.map(function(item) {
- lvlArr.push(
- <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
- )
- });
- //会员状态customerStatus
- let currentMemberArr = [];
- currentMember.map(function(item) {
- currentMemberArr.push(
- <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
- )
- });
- this.state.Provinces = Province;
- this.state.intentionalOption = intentionalArr;
- this.state.lvlArrOption = lvlArr;
- this.state.currentMemberArrOption = currentMemberArr;
- this.loadData();
- },
- //审核专家通过功能
- delectRow() {
- let deletedIds;
- let rowItem;
- for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
- rowItem = this.state.selectedRows[idx];
- if(rowItem.id) {
- deletedIds = rowItem.id;
- };
- };
- this.setState({
- selectedRowKeys: [],
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
- data: {
- uid: deletedIds,
- },
- success: function(data) {
- let thisData = data.data;
- $.ajax({
- method: "post",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
- data: {
- uid: deletedIds, //审核通过的ID
- id:thisData.id,
- auditStatus:5,
- expert:rowItem.expert,
- expertAudit:rowItem.expertAudit,
- }
- }).done(function(data) {
- if(!data.error.length) {
- message.success('已成功通过实名认证申请!');
- this.setState({
- loading: false,
- });
- } else {
- message.warning(data.error[0].message);
- };
- this.loadData(this.state.ispage);
- }.bind(this));
- }.bind(this),
- })
- },
- //审核专家不通过功能
- delectRows() {
- let deletedIds;
- for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
- let rowItem = this.state.selectedRows[idx];
- if(rowItem.id) {
- deletedIds = rowItem.id;
- };
- };
- this.setState({
- selectedRowKeys: [],
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
- data: {
- uid: deletedIds,
- },
- success: function(data) {
- let thisData = data.data;
- $.ajax({
- method: "post",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
- data: {
- uid: deletedIds, //审核通过的ID
- id:thisData.id,
- auditStatus:4,
- }
- }).done(function(data) {
- if(!data.error.length) {
- message.success('已成功驳回实名认证申请!');
- this.setState({
- loading: false,
- });
- } else {
- message.warning(data.error[0].message);
- };
- this.loadData(this.state.ispage);
- }.bind(this));
- }.bind(this),
- })
- },
- getHeadPortraitUrl(e) {
- this.setState({ headPortraitUrl: e });
- },
- getPositiveIdUrl(e) {
- this.setState({ positiveIdUrl: e });
- },
- getOppositeIdUrl(e) {
- this.setState({ oppositeIdUrl: e });
- },
- search() {
- this.loadData();
- },
- reset() {
- this.state.expertSearch = undefined;
- this.state.celebritySearch = undefined;
- this.state.shareTypeSearch = undefined;
- this.state.typeSearch = undefined; //名称1
- this.state.nameSearch = '';
- this.state.addressSearch = [];
- this.state.provinceSearch = undefined;
- this.state.citySearch = undefined;
- this.state.statusSearch = undefined;
- this.state.contactsSearch = undefined;
- this.state.contactMobileSearch = undefined;
- this.state.industrySearch = undefined;
- this.state.serviceCertificationSearch = undefined;
- this.state.userCertificationSearch = undefined;
- this.state.currentMemberStatusSearch = undefined;
- this.state.lvlSearch = undefined;
- this.state.listedSearch = undefined;
- this.state.highTechZoneSearch = undefined;
- this.state.releaseDate[0] = undefined;
- this.state.releaseDate[1] = undefined;
- this.loadData();
- },
- searchSwitch() {
- this.setState({
- searchMore: !this.state.searchMore
- });
- },
- //整行点击
- tableRowClick(record, index) {
- this.state.RowData = record;
- this.detailsModalOk(record);
- this.loadInformation(record.id)
- this.httpAccount(record.id);
- this.loadBfVisit(1, record.id);
- this.BusinessList(1, record.id);
- this.contactLists(record.id);
- this.setState({
- callnub:'1',
- selectedRowKeys: [],
- rowId: record.id,
- })
- },
- VisitRowClick(record, index) {
- this.state.keys = false;
- this.state.RowData = record;
- this.setState({
- selectedRowKeys: [],
- delectId: record.followId,
- })
- },
- //点击整行查看详情
- //查看基本详情基本信息
- loadInformation(record) {
- this.RowClick;
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
- data: {
- uid: record
- },
- success: function(data) {
- let thisData = data.data;
- if(!thisData) {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- thisData = {};
- };
- let ProvinceCityArr = [];
- let ProvinceS = thisData.province; //getprovince
- let citys = thisData.city;
- let Areas = thisData.area;
- ProvinceCityArr.push(ProvinceS, citys, Areas);
- let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
- let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
- this.setState({
- proviceCityArea: ProvinceS ? cityArea : '',
- InformationId: thisData.id,
- InformationUid: thisData.uid,
- identifyName: thisData.identifyName,
- listed: thisData.listed,
- highTechZone: thisData.highTechZone,
- consultant: thisData.consultant,
- headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
- positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
- oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
- dataInformation: thisData,
- idNumber: thisData.idNumber,
- ProvinceCity: ProvinceCityArr,
- industry: String(thisData.industry),
- societyTag: thisData.societyTag,
- sex: thisData.sex,
- contacts: thisData.contacts,
- contactMobile: thisData.contactMobile,
- yearMonth: month,
- postalAddress: thisData.postalAddress,
- fixedTel: thisData.fixedTel,
- consultationPrice: thisData.consultationPrice,
- email: thisData.email,
- qq: thisData.qq,
- introduction: thisData.introduction,
- expert: thisData.expert,
- celebrity: thisData.celebrity,
- international: thisData.international,
- investment: thisData.investment,
- professionalTitle: thisData.professionalTitle,
- workUnit: thisData.workUnit,
- education: thisData.education,
- graduateSchool: thisData.graduateSchool,
- majorCategory: thisData.majorCategory,
- qualification: thisData.qualification,
- businessAudit:thisData.businessAudit,
- auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- //tab3账户信息请求数据
- httpAccount(record) {
- this.RowClick;
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
- data: {
- uid: record
- },
- success: function(data) {
- let thisData = data.data;
- if(!thisData) {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- thisData = {};
- };
- let sourcecustomer = ''
- switch(String(thisData.source)) {
- case '0':
- sourcecustomer = '注册客户'
- break;
- case '1':
- sourcecustomer = '录入客户'
- break;
- }
- this.setState({
- Accountuid: thisData.id,
- mobile: thisData.mobile,
- nickname: thisData.nickname,
- email: thisData.email,
- type: getcustomerTyp(String(thisData.type)),
- source: sourcecustomer,
- isMember: thisData.isMember,
- currentMemberStatus: String(thisData.currentMemberStatus),
- lvl: String(thisData.lvl),
- status: String(thisData.status),
- createTimes: thisData.createTimes,
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- detailsModalOk(e) {
- this.setState({ modal5Visible: true }); //需要一个请求数据
- },
- //点击消失函数
- detailsModal(e) {
- this.setState({
- modal5Visible: false
- });
- },
- //拜访modul函数
- visitOk(e) {
- this.setState({
- visitModul: false
- });
- this.loadVisit()
- },
- visitCancel(e) {
- this.setState({
- visitModul: false
- });
- },
- //当选择联系人的列表变化时,则执行
- hundleName(e) {
- let changNub = this.state.telNum[e];
- this.setState({
- nub: this.state.telNum[e],
- lastName: e,
- });
- },
- //添加新业务及单位客户详情新增
- addNew() {
- this.state.data.push({
- customerStatus: undefined,
- businessGlossoryId: undefined,
- followSituation: undefined,
- remarks: '',
- });
- this.setState({
- data: this.state.data
- })
- },
- //tab2新增联系人
- addcontact() {
- this.state.contactList.push({
- id: null,
- name: '',
- mobile: '',
- email: '',
- qq: '',
- wechat: '',
- depatrment: '',
- position: '',
- });
- this.setState({
- contactList: this.state.contactList
- })
- },
- //tab5进入修改时
- //进入修改时
- listFollowUp(e) {
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
- data: {
- ufbId: e
- },
- success: function(data) {
- let thedata = data.data;
- if(!thedata) {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- thedata = {};
- };
- this.setState({
- businessGlossoryIds: thedata.businessGlossoryId,
- followSituations: thedata.followSituation,
- customerStatuss: thedata.customerStatus,
- followTimes: thedata.followTime,
- createTimes: thedata.createTime,
- identifyNames: thedata.identifyName,
- contactTypes: parseInt(thedata.contactType),
- results: thedata.result,
- remarkss: thedata.remarks,
- adminNames: thedata.adminName,
- contactss: thedata.contacts,
- contactMobiles: thedata.contactMobile,
- ufbId: thedata.ufbId,
- followIds: thedata.followId,
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- //修改密码Modul
- modifyPassworld() {
- this.setState({
- passworldModul: true
- });
- },
- passworldOk(e) {
- this.setState({
- passworldModul: false
- });
- },
- passworldCancel(e) {
- this.setState({
- passworldModul: false
- });
- },
- //修改密码保存
- passworldSubmit(e) {
- e.preventDefault();
- this.passworldCancel()
- },
- //新增联系人
- addcontactModulOK() {
- this.setState({
- addcontactModul: false
- });
- },
- addcontactModulcancel() {
- this.setState({
- addcontactModul: false
- });
- },
- //点击新增详情
- newContacts() {
- this.state.newsex =undefined;
- this.state.newname ='';
- this.state.newmobile='';
- this.state.newwechat='';
- this.state.newqq='';
- this.state.newdepatrment='';
- this.state.newposition='';
- this.state.newemail='';
- this.setState({
- uids: this.state.uid,
- addcontactModul: true
- });
- },
- //tab5意向业务
- //意向业务查看列表单个详情
- businessIntentionDetails(e) {
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
- data: {
- businessId: e.businessId
- },
- success: function(data) {
- let thisData = data.data;
- if(!thisData) {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- thisData = {};
- };
- this.setState({
- businessGlossoryId: thisData.businessGlossoryId,
- identifyName: thisData.identifyName,
- uid: thisData.uid,
- businessId: thisData.businessId,
- followSituation: thisData.followSituation,
- customerStatus: thisData.customerStatus,
- createTime: thisData.createTime,
- followTime: thisData.followTime,
- adminName: thisData.adminName,
- remarks: thisData.remarks,
- result: thisData.result,
- });
- }.bind(this),
- }).always(function() {
- this.loadVisit();
- this.setState({
- loading: false
- });
- }.bind(this));
- this.setState({
- businessModul: true
- })
- },
- //查看跟进记录列表
- loadVisit(pageNo) {
- this.setState({
- loading: true
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/listFollowHistory',
- data: {
- pageNo: pageNo || 1,
- pageSize: this.state.paginations.pageSize,
- uid: this.state.rowId, //名称1
- businessGlossoryId: this.state.businessGlossoryId,
- },
- success: function(data) {
- let theArr = [];
- if(data.error.length || data.data.list == "") {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- } else {
- for(let i = 0; i < data.data.list.length; i++) {
- let thisdata = data.data.list[i];
- theArr.push({
- followId: thisdata.followId,
- followTime: thisdata.followTime,
- identifyName: thisdata.identifyName,
- contacts: thisdata.contacts,
- contactMobile: thisdata.contactMobile,
- result: thisdata.result,
- ufbId: thisdata.ufbId,
- adminName: thisdata.adminName,
- followSituation: thisdata.followSituation,
- customerStatus: thisdata.customerStatus,
- contactType: thisdata.contactType
- });
- };
- this.state.paginations.current = data.data.pageNo;
- this.state.paginations.total = data.data.totalCount;
- };
- this.setState({
- visitArrList: theArr,
- paginations: this.state.paginations
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- //tab3拜访记录
- loadBfVisit(pageNo, ids) {
- this.setState({
- loading: true
- });
- $.ajax({
- method: "get",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/listFollowHistory',
- data: {
- pageNo: pageNo || 1,
- pageSize: this.state.paginationsy.pageSize,
- uid: ids ? ids : this.state.rowId, //名称1
- },
- success: function(data) {
- let theArr = [];
- if(data.error.length || data.data.list == "") {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- } else {
- for(let i = 0; i < data.data.list.length; i++) {
- let thisdata = data.data.list[i];
- theArr.push({
- followId: thisdata.followId,
- followTime: thisdata.followTime,
- identifyName: thisdata.identifyName,
- contacts: thisdata.contacts,
- contactMobile: thisdata.contactMobile,
- result: thisdata.result,
- ufbId: thisdata.ufbId,
- adminName: thisdata.adminName,
- followSituation: thisdata.followSituation,
- customerStatus: thisdata.customerStatus,
- contactType: thisdata.contactType
- });
- };
- this.state.paginationsy.current = data.data.pageNo;
- this.state.paginationsy.total = data.data.totalCount;
- };
- this.setState({
- visitArrList: theArr,
- paginationsy: this.state.paginationsy
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- businessIntentionOk() {
- this.setState({
- businessGlossoryId: '',
- businessModul: false
- })
- },
- businessIntentionCancel() {
- this.setState({
- businessGlossoryId: '',
- businessModul: false
- })
- },
- //业务跟进查看跟多
- businessFollowDetails(e) {
- this.listFollowUp(e.ufbId)
- this.setState({
- businessFollowModul: true
- })
- },
- businessFollowOk(e) {
- this.setState({
- businessFollowModul: false
- })
- },
- businessFollowCancel(e) {
- this.setState({
- businessFollowModul: false
- })
- },
- //详情tab切换数据处理
- callback(e) {
- this.setState({
- callnub: e,
- })
- if(e == '1') {
- this.loadInformation(this.state.rowId)
- }
- if(e == '2') {
- this.contactLists(this.state.rowId)
- }
- if(e == '3') {
- this.httpAccount(this.state.rowId)
- }
- if(e == '4') {
- this.loadBfVisit(1, this.state.rowId);
- }
- if(e == '5') {
- this.BusinessList(1, this.state.rowId);
- }
- if(e == '6') {
- }
- if(e == '7') {
- }
- if(e == '8') {
- }
- if(e == '9') {
- }
- },
- //详情tab切换数据处理
- callbacks(e) {
- this.setState({
- callnubs: e,
- })
- if(e == '1') {
- // console.log(this.state.callnubs);
- }
- if(e == '2') {
- // console.log(this.state.callnubs);
- }
- },
- //tab5业务意向
- BusinessList(pageNo, uids) {
- this.setState({
- loading: true
- });
- $.ajax({
- method: "post",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + '/api/admin/customer/listBusiness',
- data: {
- pageNo: pageNo || 1,
- pageSize: this.state.paginationt.pageSize,
- uid: uids ? uids : this.state.rowId
- },
- success: function(data) {
- let theArr = [];
- if(data.error.length || data.data.list == "") {
- if(data.error && data.error.length) {
- message.warning(data.error[0].message);
- };
- } else {
- for(let i = 0; i < data.data.list.length; i++) {
- let thisdata = data.data.list[i];
- theArr.push({
- key: i,
- businessId: thisdata.businessId,
- businessName: thisdata.businessName,
- identifyName: thisdata.identifyName,
- followSituation: thisdata.followSituation,
- customerStatus: thisdata.customerStatus,
- adminName: thisdata.adminName,
- createTime: thisdata.createTime
- });
- };
- this.state.paginationt.current = data.data.pageNo;
- this.state.paginationt.total = data.data.totalCount;
- };
- this.setState({
- dataBusiness: theArr,
- paginationt: this.state.paginationt
- });
- }.bind(this),
- }).always(function() {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- componentWillReceiveProps(nextProps) {
- if(!this.props.visible && nextProps.visible) {
- if(nextProps.data && nextProps.data.id) {
- this.loadData(nextProps.data.id, nextProps.detailApiUrl);
- };
- this.state.data = {};
- this.state.companyLogoUrl = [];
- this.state.orgCodeUrl = [];
- };
- },
- render() {
- const FormItem = Form.Item
- const rowSelection = {
- selectedRowKeys: this.state.selectedRowKeys,
- onChange: (selectedRowKeys, selectedRows) => {
- this.setState({
- selectedRows: selectedRows.slice(-1),
- selectedRowKeys: selectedRowKeys.slice(-1)
- });
- },
- onSelect: (recordt, selected, selectedRows) => {
- this.setState({
- recordt: recordt.id
- })
- },
- };
- const rowSelections = {
- selectedRowKeys: this.state.selectedRowKey,
- onChange: (selectedRowKey, selectedRow) => {
- this.setState({
- selectedRow: selectedRow.slice(-1),
- selectedRowKey: selectedRowKey.slice(-1)
- });
- },
- onSelect: (records, selected, selectedRow) => {
- this.setState({
- selectedRow: selectedRow.slice(-1),
- records: records.id,
- })
- },
- };
- const hasSelected = this.state.selectedRowKeys.length > 0;
- const { RangePicker, MonthPicker } = DatePicker;
- const { getFieldDecorator } = this.props.form;
- const formItemLayout = {
- labelCol: { span: 8 },
- wrapperCol: { span: 14 },
- };
- const theInformation = this.state.dataInformation || {}
- const contactsOption = "";
- const formItemLayput = {
- labelCol: { span: 10 },
- wrapperCol: { span: 14 },
- };
- const contacts = this.state.contacts || '';
- return(
- <div className="user-content" >
- <div className="content-title" style={this.state.callnubs=="2"?{"display":"none"}:{}}>
- <span>个人客户实名认证</span>
- </div>
- <div className="user-search" style={this.state.callnubs=="2"?{"display":"none"}:{}}>
- <Input placeholder="客户姓名"
- value={this.state.nameSearch}
- onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
- <Select placeholder="省"
- style={{ width: 80 }}
- value={this.state.provinceSearch}
- onChange={(e) => {this.setState({ provinceSearch: e});}}>
- {this.state.Provinces}
- </Select>
- <span style={{marginRight:'10px'}}>
- <Cascader options={this.state.City} value={this.state.addressSearch} placeholder="选择城市"
- onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
- </span>
- <span style={{marginRight:'10px'}}>客户类型:</span>
- <Select placeholder="选择客户类型"
- style={{ width: 100 }}
- value={this.state.shareTypeSearch}
- onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
- <Select.Option value="" >所有客户</Select.Option>
- <Select.Option value="1" >公共客户</Select.Option>
- </Select>
- <Button type="primary" onClick={this.search}>搜索</Button>
- <Button onClick={this.reset}>重置</Button>
- {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
- disabled={!hasSelected}
- onClick={this.delectRow}>审核通过</Button>:''}
- {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
- disabled={!hasSelected}
- onClick={this.delectRows}>审核不通过</Button>:''}
- <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
- <div className='clearfix' style={{marginTop:'5px'}}>
- <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
- <RangePicker
- value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
- this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
- onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
- <Select placeholder="客户状态"
- style={{ width: 100 }}
- value={this.state.statusSearch}
- onChange={(e) => { this.setState({ statusSearch: e }) }}>
- <Select.Option value="0" >正常</Select.Option>
- <Select.Option value="2" >锁定</Select.Option>
- </Select>
- <Select placeholder="行业"
- style={{ width: 100 }}
- value={this.state.industrySearch}
- onChange={(e) => { this.setState({ industrySearch: e }) }}>
- {this.state.intentionalOption}
- </Select>
- <span>认证:</span>
- <Select placeholder="业务认证"
- style={{ width: 100 }}
- value={this.state.serviceCertificationSearch}
- onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
- <Select.Option value="0" >未认证</Select.Option>
- <Select.Option value="1" >已认证</Select.Option>
- </Select>
- <span>专家:</span>
- <Select placeholder="专家"
- style={{ width: 60 }}
- value={this.state.expertSearch}
- onChange={(e) => { this.setState({ expertSearch: e }) }}>
- <Select.Option value="0" >否</Select.Option>
- <Select.Option value="1" >是</Select.Option>
- </Select>
- <span>明星:</span>
- <Select placeholder="明星"
- style={{ width: 60 }}
- value={this.state.celebritySearch}
- onChange={(e) => { this.setState({ celebritySearch: e }) }}>
- <Select.Option value="0" >否</Select.Option>
- <Select.Option value="1" >是</Select.Option>
- </Select>
- <span>国际:</span>
- <Select placeholder="国际"
- style={{ width: 60 }}
- value={this.state.internationalSearch}
- onChange={(e) => { this.setState({ internationalSearch: e }) }}>
- <Select.Option value="0" >否</Select.Option>
- <Select.Option value="1" >是</Select.Option>
- </Select>
- <span>会员:</span>
- <Select placeholder="会员等级"
- style={{ width: 100 }}
- value={this.state.lvlSearch}
- onChange={(e) => { this.setState({ lvlSearch: e }) }}>
- {this.state.lvlArrOption}
- </Select>
- <Select placeholder="会员状态"
- style={{ width: 100 }}
- value={this.state.currentMemberStatusSearch}
- onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
- {this.state.currentMemberArrOption}
- </Select>
- </div>
- </div>
- </div>
- <div className="patent-table" style={this.state.callnubs=="2"?{"display":"none"}:{}}>
- <Spin spinning={this.state.loading}>
- <Table columns={this.state.columns}
- dataSource={this.state.dataSource}
- rowSelection={rowSelection}
- pagination={this.state.pagination}
- onRowClick={this.tableRowClick}
- style={{
- cursor: 'pointer',
- }}
- />
- </Spin>
- </div>
- <Modal
- className="customeDetails"
- title="个人客户详情"
- width='1200px'
- visible={this.state.modal5Visible}
- onOk={this.detailsModal}
- onCancel={this.detailsModal}
- footer=''
- >
- <Tabs onChange={this.callback} activeKey={this.state.callnub}>
- <TabPane tab="基本信息" key="1">
- {adminData.isSuperAdmin?<Form horizontal id="demand-form">
- <Spin spinning={this.state.loading}>
- <div className="clearfix" >
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户姓名"
- >
- <span>{theInformation.identifyName}</span>
- </FormItem>
- </div>
- <div className="clearfix" >
- <FormItem className="half-item"
- {...formItemLayout}
- label="行业">
- <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
- onChange={(e)=>{this.setState({industry:e})}}>
- {
- industry.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select>
- <span style={{color:'red',marginLeft:'15px'}}>*</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="社会属性"
- >
- <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
- onChange={(e)=>{this.setState({societyTag:e})}}>
- {
- socialAttribute.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select>
- <span style={{color:'red',marginLeft:'15px'}}>*</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="省-市-区"
- >
- <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
- onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
- <span style={{color:'red',marginLeft:'15px'}}>*</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="出生日期"
- >
- {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
- :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
- }
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="身份证号码"
- >
- <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
- this.setState({ idNumber: e.target.value })}}/>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="主要联系人"
- >
- <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
- this.setState({ contacts: e.target.value })}}/>
- </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.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.graduateSchool} onChange={(e) => {
- this.setState({ graduateSchool: 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="咨询费用"
- >
- <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
- onChange={(e) => {this.setState({consultationPrice: 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 className='clearfix'>
- <FormItem
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 18 }}
- label="客户简介" >
- <Input type="textarea" rows={4} value={this.state.introduction}
- onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
- </FormItem>
- </div>
- <div className="clearfix">
- <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.expert} onChange={(e) => {
- this.setState({ expert: e.target.value })
- }}>
- <Radio value={2}>是</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 pictures">
- <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
- labelCol={{ span: 8 }}
- wrapperCol={{ span: 10 }}
- label="身份证正面" >
- <PicturesWall
- pictureSign="ID"
- fileList={this.getPositiveIdUrl}
- pictureUrl={this.state.positiveIdUrl} />
- <p>建议:图片要清晰。</p>
- </FormItem>
- <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
- labelCol={{ span: 8 }}
- wrapperCol={{ span: 10 }}
- label="身份证反面" >
- <PicturesWall
- pictureSign="ID"
- fileList={this.getOppositeIdUrl}
- pictureUrl={this.state.oppositeIdUrl} />
- <p>建议:图片要清晰。</p>
- </FormItem>
- <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
- labelCol={{ span: 8 }}
- wrapperCol={{ span: 10 }}
- label="客户照片" >
- <PicturesWall
- pictureSign="portrait"
- fileList={this.getHeadPortraitUrl}
- pictureUrl={this.state.headPortraitUrl} />
- <p>建议:图片要清晰。</p>
- </FormItem>
- </div>
- </div>
- </Spin>
- </Form>:
- <Form horizontal id="demand-form">
- <Spin spinning={this.state.loading}>
- <div className="clearfix" >
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户姓名"
- >
- <span>{theInformation.identifyName}</span>
- </FormItem>
- </div>
- <div className="clearfix" >
- <FormItem className="half-item"
- {...formItemLayout}
- label="行业"
- >
- <span>{getIndustryType(this.state.industry)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="社会属性"
- >
- <span>{getSocialAttribute(theInformation.societyTag)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="业务认证"
- >
- <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="实名认证"
- >
- <span>{getAuditStatus(this.state.auditStatus)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="专家"
- >
- <span>{parseInt(this.state.expert)?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="明星"
- >
- <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="会员"
- >
- <span>{parseInt(this.state.isMember)?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="咨询师"
- >
- <span>{parseInt(this.state.consultant)?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="国际化"
- >
- <span>{parseInt(this.state.international)?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="性别"
- >
- <span>{this.state.sex}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="出生日期"
- >
- <span>{this.state.yearMonth}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="身份证号码"
- >
- <span>{theInformation.legalPersonIdCard}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="主要联系人"
- >
- <span>{theInformation.contacts}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="主要联系人号码"
- >
- <span>{theInformation.contactMobile}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="省-市-区"
- >
- <span>{this.state.proviceCityArea}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="投资机构"
- >
- <span>{this.state.investment?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="职称名字"
- >
- <span>{this.state.professionalTitle}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="就业单位"
- >
- <span>{this.state.workUnit}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="学历"
- >
- <span>{this.state.education}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="毕业院校"
- >
- <span>{this.state.graduateSchool}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="专业类别"
- >
- <span>{this.state.majorCategory}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="职业资格"
- >
- <span>{this.state.qualification}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="通信地址"
- >
- <span>{theInformation.postalAddress}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="手机号码"
- >
- <span>{theInformation.modile}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户传真"
- >
- <span>{theInformation.contactsFax}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="固定电话"
- >
- <span>{theInformation.contactsFixedTel}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户QQ"
- >
- <span>{theInformation.qq}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="电子邮箱"
- >
- <span>{theInformation.email}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="咨询费用"
- >
- <span>{theInformation.consultationPrice}</span>
- </FormItem>
- <div className='clearfix'>
- <FormItem
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 18 }}
- label="客户简介" >
- <span>{theInformation.introduction}</span>
- </FormItem>
- </div>
- <div className="clearfix pictures">
- <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
- labelCol={{ span: 8 }}
- wrapperCol={{ span: 10 }}
- label="身份证正面" >
- <div className="clearfix">
- <Upload className="demandDetailShow-upload"
- listType="picture-card"
- fileList={this.state.orgCodeUrl}
- onPreview={(file) => {
- this.setState({
- previewImage: file.url || file.thumbUrl,
- previewVisible: true,
- });
- }} >
- </Upload>
- <Modal maskClosable={false} footer={null}
- visible={this.state.previewVisible}
- onCancel={() => { this.setState({ previewVisible: false }) }}>
- <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
- </Modal>
- </div>
- </FormItem>
- <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
- labelCol={{ span: 8 }}
- wrapperCol={{ span: 10 }}
- label="身份证反面" >
- <div className="clearfix">
- <Upload className="demandDetailShow-upload"
- listType="picture-card"
- fileList={this.state.companyLogoUrl}
- onPreview={(file) => {
- this.setState({
- previewImage: file.url || file.thumbUrl,
- previewVisible: true,
- });
- }} >
- </Upload>
- <Modal maskClosable={false} footer={null}
- visible={this.state.previewVisible}
- onCancel={() => { this.setState({ previewVisible: false }) }}>
- <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
- </Modal>
- </div>
- </FormItem>
- <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
- labelCol={{ span: 8 }}
- wrapperCol={{ span: 10 }}
- label="客户照片" >
- <div className="clearfix">
- <Upload className="demandDetailShow-upload"
- listType="picture-card"
- fileList={this.state.companyLogoUrls}
- onPreview={(file) => {
- this.setState({
- previewImage: file.url || file.thumbUrl,
- previewVisible: true,
- });
- }} >
- </Upload>
- <Modal maskClosable={false} footer={null}
- visible={this.state.previewVisible}
- onCancel={() => { this.setState({ previewVisible: false }) }}>
- <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
- </Modal>
- </div>
- </FormItem>
- </div>
- </div>
- </Spin>
- </Form>
- }
- </TabPane>
- <TabPane tab="联系人信息" key="2">
- <div className="clearfix">
- <Spin spinning={this.state.loading}>
- <Form horizontal id="demand-form" >
- <Table
- pagination={false}
- columns={this.state.ContactsLists}
- dataSource={this.state.contactList}
- />
- <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
- </div>
- </Form>
- </Spin>
- </div>
- </TabPane>
- <TabPane tab="账户信息" key="3">
- <div className="clearfix">
- {adminData.isSuperAdmin?<Form horizontal id="demand-form" >
- <Spin spinning={this.state.loading} >
- <FormItem className="half-item"
- {...formItemLayout}
- label="注册手机号" >
- <Input value={this.state.mobile} disabled
- onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="注册用户名" >
- <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="注册邮箱" >
- <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
- </FormItem>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户来源" >
- <span>{this.state.source}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户类型" >
- <span>{this.state.type}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="创建时间" >
- <span>{this.state.createTimes}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="账户状态"
- >
- <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
- {
- statuslist.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.isMember} onChange={(e) => {
- this.setState({ isMember: e.target.value })
- }}>
- <Radio value={0}>否</Radio>
- <Radio value={1}>是</Radio>
- </Radio.Group>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="会员等级"
- >
- <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
- {
- lvl.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="会员状态"
- >
- <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
- {
- currentMember.map(function (item) {
- return <Select.Option key={item.value} >{item.key}</Select.Option>
- })
- }
- </Select>
- </FormItem>
- </div>
- </Spin>
- </Form> :
- <Form horizontal id="demand-form" >
- <Spin spinning={this.state.loading} >
- <FormItem className="half-item"
- {...formItemLayout}
- label="注册手机号" >
- <span>{this.state.mobile}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="注册用户名" >
- <span>{this.state.nickname}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="注册邮箱" >
- <span>{this.state.email}</span>
- </FormItem>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户来源" >
- <span>{this.state.source}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户类型" >
- <span>{this.state.type}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="创建时间" >
- <span>{this.state.createTimes}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="账户状态"
- >
- <span>{getStatuslist(this.state.status)}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="专家"
- >
- <span>{this.state.isMembers?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="明星"
- >
- <span>{this.state.star?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="会员"
- >
- <span>{this.state.isMember?'是':'否'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="会员等级"
- >
- <span>{getLvl(this.state.lvl)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="会员状态"
- >
- <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
- </FormItem>
- </div>
- <FormItem className="half-item"
- {...formItemLayout}
- label="业务认证"
- >
- <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="实名认证"
- >
- <span>{getAuditStatus(this.state.userCertification)}</span>
- </FormItem>
- </Spin>
- </Form>
- }
- </div>
- </TabPane>
- <TabPane tab="客户拜访" key="4">
- <div className="clearfix">
- <Spin spinning={this.state.loading}>
- <Table
- pagination={false}
- columns={this.state.visitsList}
- dataSource={this.state.visitArrList}
- onRowClick={this.VisitRowClick}
- style={{
- cursor: 'pointer',
- }}
- />
- </Spin>
- </div>
- </TabPane>
- <TabPane tab="业务意向" key="5">
- <div className="clearfix">
- <Spin spinning={this.state.loading}>
- <Table
- pagination={this.state.paginationt}
- columns={this.state.businessIntentionList}
- dataSource={this.state.dataBusiness}
- />
- </Spin>
- </div>
- </TabPane>
- <TabPane tab="业务订单" key="6">
- </TabPane>
- <TabPane tab="技术需求" key="7">
- </TabPane>
- <TabPane tab="技术成果" key="8">
- </TabPane>
- <TabPane tab="技术专家" key="9">
- </TabPane>
- </Tabs>
- </Modal>
- <Modal
- className="customeDetails"
- footer=''
- title="拜访详情"
- width='1200px'
- visible={this.state.visitModul}
- onOk={this.visitOk}
- onCancel={this.visitCancel}
- >
- <Form horizontal id="demand-form" >
- {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访方式" >
- <Radio.Group value={this.state.contactType} onChange={(e) => {
- this.setState({ contactType: e.target.value })
- }}>
- <Radio value={0}>外出</Radio>
- <Radio value={1}>电话</Radio>
- <Radio value={2}>QQ</Radio>
- <Radio value={3}>微信</Radio>
- <Radio value={4}>邮箱</Radio>
- </Radio.Group>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- >
- <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
- </FormItem>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户姓名"
- >
- <span>{this.state.identifyName}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访人"
- >
- <span>{this.state.adminName}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="当前联系人"
- >
- <span>{this.state.contacts}</span>
- </FormItem>
- {this.state.contacts?<span></span>:
- <FormItem className="half-item"
- {...formItemLayout}
- label="联系人"
- >
- <Select placeholder="选择联系人" style={{ width: 140 }}
- value={this.state.lastName}
- onChange={this.hundleName}>
- {this.state.orderStatusOption}
- </Select>
- </FormItem>
- }
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访时间"
- >
- <span>{this.state.followTime}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="联系电话"
- >
- <span>{this.state.nub}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <FormItem
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 16 }}
- label="拜访备注" >
- <Input type="textarea" rows={4} value={this.state.result}
- onChange={(e)=>{this.setState({result:e.target.value})}}/>
- </FormItem>
- </div>
- <div className="clearfix">
- <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button onClick={this.addNew} style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
- <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
- <Spin spinning={this.state.loading}>
- <Table
- rowKey={record => record.id}
- pagination={false}
- columns={this.state.intentionList}
- dataSource={this.state.data}
- />
- </Spin>
- </div>
- </div>
- </div>
- </Spin>:<Spin spinning={this.state.loading}>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访方式" >
- <span>{getContactType(String(this.state.contactType))}</span>
- </FormItem>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户姓名"
- >
- <span>{this.state.identifyName}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访人"
- >
- <span>{this.state.adminName}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="当前联系人"
- >
- <span>{this.state.contacts}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访时间"
- >
- <span>{this.state.followTime}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="联系电话"
- >
- <span>{this.state.nub}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <FormItem
- labelCol={{ span: 4 }}
- wrapperCol={{ span: 16 }}
- label="拜访备注" >
- <span>{this.state.result}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
- <Spin spinning={this.state.loading}>
- <Table
- rowKey={record => record.id}
- pagination={false}
- columns={this.state.intentionList}
- dataSource={this.state.data}
- />
- </Spin>
- </div>
- </div>
- </div>
- </Spin>}
- </Form>
- </Modal>
- <Modal
- footer=''
- title="业务意向详情"
- width='1200px'
- visible={this.state.businessModul}
- onOk={this.businessIntentionOk}
- onCancel={this.businessIntentionCancel}
- >
- <div className="clearfix">
- <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
- <Spin spinning={this.state.loading}>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="意向业务名称" >
- <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="意向时间" >
- <span>{this.state.createTime}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户姓名" >
- <span>{this.state.identifyName}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="营销员" >
- <span>{this.state.adminName}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="意向业务进度" >
- <span>{getfllowSituation(this.state.followSituation)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="业务客户状态" >
- <span>{getcustomerStatue(this.state.customerStatus)}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="业务意向说明" >
- <span>{this.state.remarks}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
- <div className="clearfix">
- <Spin spinning={this.state.loading}>
- <Table
- pagination={this.state.paginations}
- columns={this.state.businessFollowList}
- dataSource={this.state.visitArrList}
- />
- </Spin>
- </div>
- </div>
- </Spin>
- </Form>
- </div>
- </Modal>
- <Modal
- footer=''
- title="业务跟进详情"
- width='600px'
- visible={this.state.businessFollowModul}
- onOk={this.businessFollowOk}
- onCancel={this.businessFollowCancel}
- >
- <div className="clearfix">
- <Form horizontal id="demand-form" onSubmit={this.passworldSubmit}>
- <Spin spinning={this.state.loading}>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="意向业务名称" >
- <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="意向时间" >
- <span>{this.state.createTimes}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="客户姓名" >
- <span>{this.state.identifyNames}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="营销员" >
- <span>{this.state.adminNames}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="意向业务进度" >
- <span>{getfllowSituation(this.state.followSituations)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="业务客户状态" >
- <span>{getcustomerStatue(this.state.customerStatuss)}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="业务意向说明" >
- <span>{this.state.remarkss}</span>
- </FormItem>
- </div>
- <div className="clearfix">
- <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访方式" >
- <span>{getContactType(this.state.contactTypes)}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="联系人" >
- <span>{this.state.contactss}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="联系电话" >
- <span>{this.state.contactMobiles}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访时间" >
- <span>{this.state.followTimes}</span>
- </FormItem>
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访人" >
- <span>{this.state.adminNames}</span>
- </FormItem>
- <div className="clearfix">
- <FormItem className="half-item"
- {...formItemLayout}
- label="拜访备注" >
- <span>{this.state.results}</span>
- </FormItem>
- </div>
- </div>
- </Spin>
- </Form>
- </div>
- </Modal>
- </div >
- );
- }
- }));
- export default QueryCustomer;
|