expertQuery.jsx 99 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451
  1. import React from 'react';
  2. import { Radio, Icon, Button, Cascader, Input, Select, Tabs, Spin, Popconfirm, Table, Switch, message, DatePicker, Modal, Upload, Form, Row, Col } from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import moment from 'moment';
  6. import './myClient.less';
  7. import { citySelect, provinceList, areaSelect } from '../../../areaList';
  8. import {getProvinceList} from '../../../addressList';
  9. const { Column, ColumnGroup } = Table;
  10. const TabPane = Tabs.TabPane;
  11. const monthFormat = 'YYYY/MM';
  12. import CustomerDetail from './myClientDesc.jsx';
  13. import { socialAttribute, industry, auditStatusL, newFollow, lvl, currentMember, statuslist, customerStatus, intentionalService } from '../../../dataDic.js';
  14. import { getSocialAttribute, splitUrl,getAuditStatus, getCompanyIntention, getStatuslist, getContactType, getIndustryType, getfllowSituation, beforeUploadFile, getWhether, getcustomerStatue, getfllowSituationOn, getCertification, getcustomerTyp, getLvl, getCurrentMember, getprovince } from '../../../tools.js';
  15. //图片组件
  16. const PicturesWall = React.createClass({
  17. getInitialState() {
  18. return {
  19. previewVisible: false,
  20. previewImage: '',
  21. fileList: [],
  22. }
  23. },
  24. handleCancel() {
  25. this.setState({ previewVisible: false })
  26. },
  27. handlePreview(file) {
  28. this.setState({
  29. previewImage: file.url || file.thumbUrl,
  30. previewVisible: true,
  31. });
  32. },
  33. handleChange(info) {
  34. let fileList = info.fileList;
  35. this.setState({ fileList });
  36. this.props.fileList(fileList);
  37. },
  38. componentWillReceiveProps(nextProps) {
  39. this.state.fileList = nextProps.pictureUrl;
  40. },
  41. render() {
  42. const { previewVisible, previewImage, fileList } = this.state;
  43. const uploadButton = (
  44. <div>
  45. <Icon type="plus" />
  46. <div className="ant-upload-text">点击上传</div>
  47. </div>
  48. );
  49. return(
  50. <div style={{display:"inline-block"}}>
  51. <Upload
  52. action={globalConfig.context + "/api/admin/customer/uploadCustomerImg"}
  53. data={{ 'sign': '' }}
  54. listType="picture-card"
  55. fileList={fileList}
  56. onPreview={this.handlePreview}
  57. onChange={this.handleChange} >
  58. {fileList.length >= 1 ? null : uploadButton}
  59. </Upload>
  60. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  61. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  62. </Modal>
  63. </div>
  64. );
  65. }
  66. });
  67. const QueryCustomer = Form.create()(React.createClass({
  68. loadData(pageNo, apiUrl) {
  69. this.state.data = [];
  70. this.setState({
  71. loading: true
  72. });
  73. $.ajax({
  74. method: "post",
  75. dataType: "json",
  76. crossDomain: false,
  77. url: globalConfig.context + '/api/admin/customer/listExpertCustomer',
  78. data: {
  79. pageNo: pageNo || 1,
  80. pageSize: this.state.pagination.pageSize,
  81. type: this.state.typeSearch, //名称1
  82. name: this.state.nameSearch,
  83. province: !(this.state.addressSearch).length ? this.state.provinceSearch : this.state.addressSearch[0],
  84. city: !(this.state.addressSearch).length ? '' : this.state.addressSearch[1],
  85. status: this.state.statusSearch,
  86. industry: this.state.industrySearch,
  87. businessAudit: this.state.serviceCertificationSearch,
  88. auditStatus: this.state.userCertificationSearch,
  89. currentMemberStatus: this.state.currentMemberStatusSearch,
  90. lvl: this.state.lvlSearch,
  91. listed: this.state.listedSearch, //是否上市
  92. highTechZone: this.state.highTechZoneSearch, //是否高新
  93. startDate: this.state.releaseDate[0],
  94. endDate: this.state.releaseDate[1],
  95. isMember: this.state.isMemberSearch,
  96. international: this.state.internationalSearch,
  97. celebrity: this.state.celebritySearch,
  98. expert: 1,
  99. industry: this.state.industrySearch,
  100. shareType: this.state.shareTypeSearch,
  101. },
  102. success: function(data) {
  103. let theArr = [];
  104. if(data.error.length || data.data.list == "") {
  105. if(data.error && data.error.length) {
  106. message.warning(data.error[0].message);
  107. };
  108. } else {
  109. for(let i = 0; i < data.data.list.length; i++) {
  110. let thisdata = data.data.list[i];
  111. theArr.push({
  112. key: i,
  113. id: thisdata.uid,
  114. type: thisdata.type,
  115. name: thisdata.name,
  116. status: thisdata.status,
  117. contacts: thisdata.contacts,
  118. contactMobile: thisdata.contactMobile,
  119. industry: thisdata.industry,
  120. createTime: thisdata.createTime,
  121. businessAudit: thisdata.businessAudit,
  122. auditStatus: thisdata.auditStatus,
  123. lvl: thisdata.lvl,
  124. shareType: thisdata.shareType,
  125. isMember: thisdata.isMember,
  126. consultant: thisdata.consultant,
  127. societyTag: thisdata.societyTag,
  128. currentMemberStatus: thisdata.currentMemberStatus,
  129. international: thisdata.international,
  130. listed: thisdata.listed,
  131. international: thisdata.international,
  132. expert: thisdata.expert,
  133. celebrity: thisdata.celebrity,
  134. adminName: thisdata.adminName,
  135. highTechZone: thisdata.highTechZone,
  136. locationProvince: thisdata.province ? thisdata.province + '-' + thisdata.city || '' + '-' + thisdata.area : '--'
  137. });
  138. };
  139. this.state.pagination.current = data.data.pageNo ;
  140. this.state.pagination.total = data.data.totalCount ;
  141. };
  142. if(data.data&&data.data.list&&!data.data.list.length){
  143. this.state.pagination.current=0
  144. this.state.pagination.total=0
  145. }
  146. this.setState({
  147. dataSource: theArr,
  148. pagination: this.state.pagination,
  149. selectedRowKeys:[]
  150. });
  151. }.bind(this),
  152. }).always(function() {
  153. this.setState({
  154. loading: false
  155. });
  156. }.bind(this));
  157. },
  158. getInitialState() {
  159. return {
  160. addressSearch: [],
  161. positiveIdUrl: [],
  162. oppositeIdUrl: [],
  163. headPortraitUrl: [],
  164. visible: false,
  165. searchMore: true,
  166. releaseDate: [],
  167. releaseDate: [],
  168. selectedRowKeys: [],
  169. selectedRowKey: [],
  170. selectedRows: [],
  171. loading: false,
  172. pagination: {
  173. defaultCurrent: 1,
  174. defaultPageSize: 10,
  175. showQuickJumper: true,
  176. pageSize: 10,
  177. onChange: function(page) {
  178. this.loadData(page);
  179. }.bind(this),
  180. showTotal: function(total) {
  181. return '共' + total + '条数据';
  182. }
  183. },
  184. paginations: {
  185. defaultCurrent: 1,
  186. defaultPageSize: 10,
  187. showQuickJumper: true,
  188. pageSize: 10,
  189. onChange: function(page) {
  190. this.loadVisit(page);
  191. }.bind(this),
  192. showTotal: function(total) {
  193. return '共' + total + '条数据';
  194. }
  195. },
  196. paginationsy: {
  197. defaultCurrent: 1,
  198. defaultPageSize: 10,
  199. showQuickJumper: true,
  200. pageSize: 10,
  201. onChange: function(page) {
  202. this.loadBfVisit(page, false);
  203. }.bind(this),
  204. showTotal: function(total) {
  205. return '共' + total + '条数据';
  206. }
  207. },
  208. paginationt: {
  209. defaultCurrent: 1,
  210. defaultPageSize: 10,
  211. showQuickJumper: true,
  212. pageSize: 10,
  213. onChange: function(page) {
  214. this.BusinessList(page, false);
  215. }.bind(this),
  216. showTotal: function(total) {
  217. return '共' + total + '条数据';
  218. }
  219. },
  220. //业务意向列表
  221. intentionList: [{
  222. title: '业务名称',
  223. dataIndex: 'businessGlossoryId',
  224. key: 'businessGlossoryId',
  225. render: (text, record, index) => {
  226. return adminData.isSuperAdmin ? <Select placeholder="选择业务名称" disabled={record.id?true:false} value={record.businessGlossoryId} onChange={(e) => { record.businessGlossoryId = e; this.setState({ data: this.state.data }); }}>
  227. {
  228. intentionalService.map(function (item) {
  229. return <Select.Option key={item.value} >{item.key}</Select.Option>
  230. })
  231. }
  232. </Select> : <span>{getCompanyIntention(text)}</span>
  233. }
  234. },
  235. {
  236. title: '最新进度',
  237. dataIndex: 'followSituation',
  238. key: 'followSituation',
  239. render: (text, record, index) => {
  240. return adminData.isSuperAdmin ? <Select placeholder="选择最新进度" value={record.followSituation} onChange={(e) => { record.followSituation = e; this.setState({ data: this.state.data }); }}>
  241. {
  242. newFollow.map(function (item) {
  243. return <Select.Option key={item.value} >{item.key}</Select.Option>
  244. })
  245. }
  246. </Select> : <span>{getfllowSituation(text)}</span>
  247. }
  248. }, {
  249. title: '最新状态',
  250. dataIndex: 'customerStatus',
  251. key: 'customerStatus',
  252. render: (text, record, index) => {
  253. return adminData.isSuperAdmin ? <Select value={record.customerStatus} placeholder="选择最新状态" onChange={(e) => { record.customerStatus = e; this.setState({ data: this.state.data }); }}>
  254. {
  255. customerStatus.map(function (item) {
  256. return <Select.Option key={item.value} >{item.key}</Select.Option>
  257. })
  258. }
  259. </Select> : <span>{getcustomerStatue(text)}</span>
  260. }
  261. }, {
  262. title: '跟进说明',
  263. dataIndex: 'remarks',
  264. key: 'remarks',
  265. render: (text, record, index) => {
  266. return adminData.isSuperAdmin ? <Input value={record.remarks} placeholder="跟进说明"
  267. onChange={(e) => { record.remarks = e.target.value; this.setState({ data: this.state.data }); }}
  268. style={{width:'120px'}}/> : <span>{text}</span>
  269. }
  270. }
  271. ],
  272. businessIntentionList: [{
  273. title: '意向时间',
  274. dataIndex: 'createTime',
  275. key: 'createTime'
  276. }, {
  277. title: '客户姓名',
  278. dataIndex: 'identifyName',
  279. key: 'identifyName'
  280. }, {
  281. title: '业务名',
  282. dataIndex: 'businessName',
  283. key: 'businessName'
  284. }, {
  285. title: '营销员',
  286. dataIndex: 'adminName',
  287. key: 'adminName'
  288. }, {
  289. title: '业务意向进度',
  290. dataIndex: 'followSituation',
  291. key: 'followSituation',
  292. render: text => { return getfllowSituation(text) }
  293. }, {
  294. title: '客户状态',
  295. dataIndex: 'customerStatus',
  296. key: 'customerStatus',
  297. render: text => { return getcustomerStatue(text) }
  298. }, {
  299. title: '操作',
  300. dataIndex: 'ooo',
  301. key: 'ooo',
  302. render: (text, record) => { return(<Button onClick={(e)=>{this.businessIntentionDetails(record)}}>查看</Button>) }
  303. }],
  304. businessFollowList: [{
  305. title: '跟进时间',
  306. dataIndex: 'followTime',
  307. key: 'followTime',
  308. }, {
  309. title: '营销员',
  310. dataIndex: 'adminName',
  311. key: 'adminName',
  312. }, {
  313. title: '业务意向进度',
  314. dataIndex: 'followSituation',
  315. key: 'followSituation',
  316. render: text => { return getfllowSituation(text) }
  317. }, {
  318. title: '客户状态',
  319. dataIndex: 'customerStatus',
  320. key: 'customerStatus',
  321. render: text => { return getcustomerStatue(text) }
  322. },
  323. {
  324. title: '拜访方式',
  325. dataIndex: 'contactType',
  326. key: 'contactType',
  327. render: text => { return getContactType(text) }
  328. }, {
  329. title: '联系人',
  330. dataIndex: 'contacts',
  331. key: 'contacts',
  332. },
  333. {
  334. title: '联系电话',
  335. dataIndex: 'contactMobile',
  336. key: 'contactMobile',
  337. }, {
  338. title: '操作',
  339. dataIndex: 'ooo',
  340. key: 'ooo',
  341. render: (text, record) => { return(<Button onClick={(e)=>{this.businessFollowDetails(record)}}>查看</Button>) }
  342. }
  343. ],
  344. visitsList: [{
  345. title: '拜访时间',
  346. dataIndex: 'followTime',
  347. key: 'followTime'
  348. }, {
  349. title: '客户姓名',
  350. dataIndex: 'identifyName',
  351. key: 'identifyName'
  352. }, {
  353. title: '拜访方式',
  354. dataIndex: 'contactType',
  355. key: 'contactType',
  356. render: text => { return getContactType(text) }
  357. }, {
  358. title: '联系人',
  359. dataIndex: 'contacts',
  360. key: 'contacts'
  361. }, {
  362. title: '联系电话',
  363. dataIndex: 'contactMobile',
  364. key: 'contactMobile'
  365. }, {
  366. title: '拜访人',
  367. dataIndex: 'adminName',
  368. key: 'adminName'
  369. }, {
  370. title: '拜访说明',
  371. dataIndex: 'result',
  372. key: 'result',
  373. render: text => {
  374. return <span style={{width:'150px',display:'inline-block',overflow:'hidden'}}>{text}</span>
  375. }
  376. }],
  377. ContactsLists: [{
  378. title: '姓名',
  379. dataIndex: 'name',
  380. key: 'name',
  381. render: (text, record, index) => {
  382. return adminData.isSuperAdmin ? <Input value={record.name} placeholder="姓名" key={record.id}
  383. onChange={(e) => { record.name = e.target.value;
  384. this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  385. }
  386. }, {
  387. title: '联系人部门',
  388. dataIndex: 'depatrment',
  389. key: 'depatrment',
  390. render: (text, record, index) => {
  391. return adminData.isSuperAdmin ? <Input value={record.depatrment} placeholder="联系人部门" key={record.id}
  392. onChange={(e) => { record.depatrment = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  393. }
  394. }, {
  395. title: '联系人职务',
  396. dataIndex: 'position',
  397. key: 'position',
  398. render: (text, record, index) => {
  399. return adminData.isSuperAdmin ? <Input value={record.position} placeholder="联系人职务" key={record.id}
  400. onChange={(e) => { record.position = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  401. }
  402. }, {
  403. title: '手机号码',
  404. dataIndex: 'mobile',
  405. key: 'mobile',
  406. render: (text, record, index) => {
  407. return adminData.isSuperAdmin ? <Input value={record.mobile} placeholder="手机号码" key={record.id}
  408. onChange={(e) => { record.mobile = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  409. }
  410. }, {
  411. title: '微信',
  412. dataIndex: 'wechat',
  413. key: 'wechat',
  414. render: (text, record, index) => {
  415. return adminData.isSuperAdmin ? <Input value={record.wechat} placeholder="微信" key={record.id}
  416. onChange={(e) => { record.wechat = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  417. }
  418. }, {
  419. title: '联系人QQ',
  420. dataIndex: 'qq',
  421. key: 'qq',
  422. render: (text, record, index) => {
  423. return adminData.isSuperAdmin ? <Input value={record.qq} placeholder="联系人QQ" key={record.id}
  424. onChange={(e) => { record.qq = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  425. }
  426. }, {
  427. title: '电子邮箱',
  428. dataIndex: 'email',
  429. key: 'email',
  430. render: (text, record, index) => {
  431. return adminData.isSuperAdmin ? <Input value={record.email} placeholder="电子邮箱" key={record.id}
  432. onChange={(e) => { record.email = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/> : <span>{text}</span>
  433. }
  434. }
  435. ],
  436. columnsman: [{
  437. title: '姓名',
  438. dataIndex: 'name',
  439. key: 'name'
  440. }, {
  441. title: '手机号码',
  442. dataIndex: 'mobile',
  443. key: 'mobile'
  444. }],
  445. columns: [{
  446. title: '客户姓名',
  447. dataIndex: 'name',
  448. key: 'name',
  449. }, {
  450. title: '地区',
  451. dataIndex: 'locationProvince',
  452. key: 'locationProvince',
  453. },
  454. {
  455. title: '公共客户',
  456. dataIndex: 'shareType',
  457. key: 'shareType',
  458. render: (text, record) => { return record.shareType == '1' ? <span>公共客户</span> : <span>个人客户</span> }
  459. },
  460. {
  461. title: '行业',
  462. dataIndex: 'industry',
  463. key: 'industry',
  464. },
  465. {
  466. title: '社会性质',
  467. dataIndex: 'societyTag',
  468. key: 'societyTag',
  469. render: text => { return getSocialAttribute(text) }
  470. },
  471. {
  472. title: '创建时间',
  473. dataIndex: 'createTime',
  474. key: 'createTime',
  475. },{
  476. title: '所属人',
  477. dataIndex: 'adminName',
  478. key: 'adminName',
  479. },
  480. {
  481. title: '业务认证',
  482. dataIndex: 'businessAudit',
  483. key: 'businessAudit',
  484. render: text => { return getCertification(text) }
  485. },
  486. {
  487. title: '实名认证',
  488. dataIndex: 'auditStatus',
  489. key: 'auditStatus',
  490. render: text => { return getAuditStatus(text) }
  491. },
  492. {
  493. title: '是否专家',
  494. dataIndex: 'expert',
  495. key: 'expert',
  496. render: text => { return getWhether(text) }
  497. },
  498. {
  499. title: '是否会员',
  500. dataIndex: 'isMember',
  501. key: 'isMember',
  502. render: text => { return getWhether(text) }
  503. },
  504. {
  505. title: '是否国际',
  506. dataIndex: 'international',
  507. key: 'international',
  508. render: text => { return getWhether(text) }
  509. },
  510. {
  511. title: '会员等级',
  512. dataIndex: 'lvl',
  513. key: 'lvl',
  514. render: text => { return getLvl(text) }
  515. },
  516. {
  517. title: '会员状态',
  518. dataIndex: 'currentMemberStatus',
  519. key: 'currentMemberStatus',
  520. render: text => { return getCurrentMember(text) }
  521. },
  522. {
  523. title: '状态',
  524. dataIndex: 'status',
  525. key: 'status',
  526. render: text => { return getStatuslist(text) }
  527. }
  528. ],
  529. data: [],
  530. dataman: [],
  531. dataSource: [],
  532. visitArrList: [],
  533. searchTime: [, ]
  534. };
  535. },
  536. //tab2获取联系人详情
  537. contactLists(ids) {
  538. this.setState({
  539. loading: true
  540. });
  541. $.ajax({
  542. method: "get",
  543. dataType: "json",
  544. crossDomain: false,
  545. url: globalConfig.context + '/api/admin/customer/findCustomerContacts',
  546. data: {
  547. uid: ids, //名称1
  548. },
  549. success: function(data) {
  550. let theArr = [];
  551. if(data.error.length || data.data.list == "") {
  552. if(data.error && data.error.length) {
  553. message.warning(data.error[0].message);
  554. };
  555. } else {
  556. for(let i = 0; i < data.data.length; i++) {
  557. let thisdata = data.data[i];
  558. theArr.push({
  559. id: thisdata.id,
  560. name: thisdata.name,
  561. mobile: thisdata.mobile,
  562. email: thisdata.email,
  563. qq: thisdata.qq,
  564. wechat: thisdata.wechat,
  565. depatrment: thisdata.depatrment,
  566. position: thisdata.position,
  567. });
  568. };
  569. };
  570. this.setState({
  571. contactList: theArr,
  572. });
  573. }.bind(this),
  574. }).always(function() {
  575. this.setState({
  576. loading: false
  577. });
  578. }.bind(this));
  579. },
  580. getHeadPortraitUrl(e) {
  581. this.setState({ headPortraitUrl: e });
  582. },
  583. getPositiveIdUrl(e) {
  584. this.setState({ positiveIdUrl: e });
  585. },
  586. getOppositeIdUrl(e) {
  587. this.setState({ oppositeIdUrl: e });
  588. },
  589. componentWillMount() {
  590. let areaArr= getProvinceList();
  591. let Citys=citySelect(areaArr);
  592. let Areas=areaSelect(areaArr);
  593. this.setState({
  594. City: Citys,
  595. Area: Areas
  596. });
  597. //城市
  598. let Province = [];
  599. areaArr.map(function(item) {
  600. var id = String(item.id)
  601. Province.push(
  602. <Select.Option value={id} key={item.name}>{item.name}</Select.Option>
  603. )
  604. });
  605. //行业
  606. let intentionalArr = [];
  607. industry.map(function(item) {
  608. intentionalArr.push(
  609. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  610. )
  611. });
  612. //会员等级
  613. let lvlArr = [];
  614. lvl.map(function(item) {
  615. lvlArr.push(
  616. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  617. )
  618. });
  619. //会员状态customerStatus
  620. let currentMemberArr = [];
  621. currentMember.map(function(item) {
  622. currentMemberArr.push(
  623. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  624. )
  625. });
  626. //客户状态
  627. let customerStatusArr = [];
  628. customerStatus.map(function(item) {
  629. customerStatusArr.push(
  630. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  631. )
  632. });
  633. this.state.Provinces = Province;
  634. this.state.intentionalOption = intentionalArr;
  635. this.state.lvlArrOption = lvlArr;
  636. this.state.currentMemberArrOption = currentMemberArr;
  637. this.state.customerStatusArrOption = customerStatusArr;
  638. this.loadData();
  639. },
  640. search() {
  641. this.loadData();
  642. },
  643. reset() {
  644. this.state.expertSearch = undefined;
  645. this.state.celebritySearch = undefined;
  646. this.state.shareTypeSearch = undefined;
  647. this.state.typeSearch = undefined; //名称1
  648. this.state.nameSearch = '';
  649. this.state.addressSearch = [];
  650. this.state.provinceSearch = undefined;
  651. this.state.citySearch = undefined;
  652. this.state.statusSearch = undefined;
  653. this.state.contactsSearch = undefined;
  654. this.state.contactMobileSearch = undefined;
  655. this.state.industrySearch = undefined;
  656. this.state.serviceCertificationSearch = undefined;
  657. this.state.userCertificationSearch = undefined;
  658. this.state.currentMemberStatusSearch = undefined;
  659. this.state.lvlSearch = undefined;
  660. this.state.listedSearch = undefined;
  661. this.state.highTechZoneSearch = undefined;
  662. this.state.releaseDate[0] = undefined;
  663. this.state.releaseDate[1] = undefined;
  664. this.loadData();
  665. },
  666. searchSwitch() {
  667. this.setState({
  668. searchMore: !this.state.searchMore
  669. });
  670. },
  671. //整行点击
  672. tableRowClick(record, index) {
  673. this.state.RowData = record;
  674. this.detailsModalOk(record);
  675. this.loadInformation(record.id)
  676. this.httpAccount(record.id);
  677. this.loadBfVisit(1, record.id);
  678. this.BusinessList(1, record.id);
  679. this.contactLists(record.id);
  680. this.setState({
  681. callnub:'1',
  682. selectedRowKeys: [],
  683. rowId: record.id,
  684. })
  685. },
  686. VisitRowClick(record, index) {
  687. this.state.keys = false;
  688. this.state.RowData = record;
  689. this.setState({
  690. selectedRowKeys: [],
  691. delectId: record.followId,
  692. })
  693. },
  694. //点击整行查看详情
  695. //查看基本详情基本信息
  696. loadInformation(record) {
  697. this.RowClick;
  698. $.ajax({
  699. method: "get",
  700. dataType: "json",
  701. crossDomain: false,
  702. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  703. data: {
  704. uid: record
  705. },
  706. success: function(data) {
  707. let thisData = data.data;
  708. if(!thisData) {
  709. if(data.error && data.error.length) {
  710. message.warning(data.error[0].message);
  711. };
  712. thisData = {};
  713. };
  714. let ProvinceCityArr = [];
  715. let ProvinceS = thisData.province; //getprovince
  716. let citys = thisData.city;
  717. let Areas = thisData.area;
  718. ProvinceCityArr.push(ProvinceS, citys, Areas);
  719. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  720. let month = thisData.dateOfBirthYear ? thisData.dateOfBirthYear + '/' + thisData.dateOfBirthMonth : false;
  721. this.setState({
  722. proviceCityArea: ProvinceS ? cityArea : '',
  723. InformationId: thisData.id,
  724. InformationUid: thisData.uid,
  725. identifyName: thisData.identifyName,
  726. listed: thisData.listed,
  727. highTechZone: thisData.highTechZone,
  728. consultant: thisData.consultant,
  729. headPortraitUrl: thisData.headPortraitUrl ? splitUrl(thisData.headPortraitUrl, ',', globalConfig.avatarHost + '/upload') : [],
  730. positiveIdUrl: thisData.positiveIdUrl ? splitUrl(thisData.positiveIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  731. oppositeIdUrl: thisData.oppositeIdUrl ? splitUrl(thisData.oppositeIdUrl, ',', globalConfig.avatarHost + '/upload') : [],
  732. dataInformation: thisData,
  733. idNumber: thisData.idNumber,
  734. ProvinceCity: ProvinceCityArr,
  735. industry: String(thisData.industry),
  736. societyTag: thisData.societyTag,
  737. sex: thisData.sex,
  738. contacts: thisData.contacts,
  739. contactMobile: thisData.contactMobile,
  740. yearMonth: month,
  741. postalAddress: thisData.postalAddress,
  742. fixedTel: thisData.fixedTel,
  743. consultationPrice: thisData.consultationPrice,
  744. email: thisData.email,
  745. qq: thisData.qq,
  746. introduction: thisData.introduction,
  747. expert: thisData.expert,
  748. celebrity: thisData.celebrity,
  749. international: thisData.international,
  750. investment: thisData.investment,
  751. professionalTitle: thisData.professionalTitle,
  752. workUnit: thisData.workUnit,
  753. education: thisData.education,
  754. graduateSchool: thisData.graduateSchool,
  755. majorCategory: thisData.majorCategory,
  756. qualification: thisData.qualification,
  757. businessAudit:thisData.businessAudit,
  758. auditStatus:thisData.auditStatus?String(thisData.auditStatus):undefined,
  759. });
  760. }.bind(this),
  761. }).always(function() {
  762. this.setState({
  763. loading: false
  764. });
  765. }.bind(this));
  766. },
  767. //tab3账户信息请求数据
  768. httpAccount(record) {
  769. this.RowClick;
  770. $.ajax({
  771. method: "get",
  772. dataType: "json",
  773. crossDomain: false,
  774. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  775. data: {
  776. uid: record
  777. },
  778. success: function(data) {
  779. let thisData = data.data;
  780. if(!thisData) {
  781. if(data.error && data.error.length) {
  782. message.warning(data.error[0].message);
  783. };
  784. thisData = {};
  785. };
  786. let sourcecustomer = ''
  787. switch(String(thisData.source)) {
  788. case '0':
  789. sourcecustomer = '注册客户'
  790. break;
  791. case '1':
  792. sourcecustomer = '录入客户'
  793. break;
  794. }
  795. this.setState({
  796. Accountuid: thisData.id,
  797. mobile: thisData.mobile,
  798. nickname: thisData.nickname,
  799. email: thisData.email,
  800. type: getcustomerTyp(String(thisData.type)),
  801. source: sourcecustomer,
  802. isMember: thisData.isMember,
  803. currentMemberStatus: String(thisData.currentMemberStatus),
  804. lvl: String(thisData.lvl),
  805. status: String(thisData.status),
  806. createTimes: thisData.createTimes,
  807. });
  808. }.bind(this),
  809. }).always(function() {
  810. this.setState({
  811. loading: false
  812. });
  813. }.bind(this));
  814. },
  815. detailsModalOk(e) {
  816. this.setState({ modal5Visible: true }); //需要一个请求数据
  817. },
  818. //点击消失函数
  819. detailsModal(e) {
  820. this.setState({
  821. modal5Visible: false
  822. });
  823. },
  824. //拜访modul函数
  825. visitOk(e) {
  826. this.setState({
  827. visitModul: false
  828. });
  829. this.loadVisit()
  830. },
  831. visitCancel(e) {
  832. this.setState({
  833. visitModul: false
  834. });
  835. },
  836. //当选择联系人的列表变化时,则执行
  837. hundleName(e) {
  838. let changNub = this.state.telNum[e];
  839. this.setState({
  840. nub: this.state.telNum[e],
  841. lastName: e,
  842. });
  843. },
  844. //tab5进入修改时
  845. //进入修改时
  846. listFollowUp(e) {
  847. $.ajax({
  848. method: "get",
  849. dataType: "json",
  850. crossDomain: false,
  851. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  852. data: {
  853. ufbId: e
  854. },
  855. success: function(data) {
  856. let thedata = data.data;
  857. if(!thedata) {
  858. if(data.error && data.error.length) {
  859. message.warning(data.error[0].message);
  860. };
  861. thedata = {};
  862. };
  863. this.setState({
  864. businessGlossoryIds: thedata.businessGlossoryId,
  865. followSituations: thedata.followSituation,
  866. customerStatuss: thedata.customerStatus,
  867. followTimes: thedata.followTime,
  868. createTimes: thedata.createTime,
  869. identifyNames: thedata.identifyName,
  870. contactTypes: parseInt(thedata.contactType),
  871. results: thedata.result,
  872. remarkss: thedata.remarks,
  873. adminNames: thedata.adminName,
  874. contactss: thedata.contacts,
  875. contactMobiles: thedata.contactMobile,
  876. ufbId: thedata.ufbId,
  877. followIds: thedata.followId,
  878. });
  879. }.bind(this),
  880. }).always(function() {
  881. this.setState({
  882. loading: false
  883. });
  884. }.bind(this));
  885. },
  886. //点击新增详情
  887. newContacts() {
  888. this.state.newsex =undefined;
  889. this.state.newname ='';
  890. this.state.newmobile='';
  891. this.state.newwechat='';
  892. this.state.newqq='';
  893. this.state.newdepatrment='';
  894. this.state.newposition='';
  895. this.state.newemail='';
  896. this.setState({
  897. uids: this.state.uid,
  898. addcontactModul: true
  899. });
  900. },
  901. //tab5意向业务
  902. //意向业务查看列表单个详情
  903. businessIntentionDetails(e) {
  904. $.ajax({
  905. method: "get",
  906. dataType: "json",
  907. crossDomain: false,
  908. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  909. data: {
  910. businessId: e.businessId
  911. },
  912. success: function(data) {
  913. let thisData = data.data;
  914. if(!thisData) {
  915. if(data.error && data.error.length) {
  916. message.warning(data.error[0].message);
  917. };
  918. thisData = {};
  919. };
  920. this.setState({
  921. businessGlossoryId: thisData.businessGlossoryId,
  922. identifyName: thisData.identifyName,
  923. uid: thisData.uid,
  924. businessId: thisData.businessId,
  925. followSituation: thisData.followSituation,
  926. customerStatus: thisData.customerStatus,
  927. createTime: thisData.createTime,
  928. followTime: thisData.followTime,
  929. adminName: thisData.adminName,
  930. remarks: thisData.remarks,
  931. result: thisData.result,
  932. });
  933. }.bind(this),
  934. }).always(function() {
  935. this.loadVisit();
  936. this.setState({
  937. loading: false
  938. });
  939. }.bind(this));
  940. this.setState({
  941. businessModul: true
  942. })
  943. },
  944. //查看跟进记录列表
  945. loadVisit(pageNo) {
  946. this.setState({
  947. loading: true
  948. });
  949. $.ajax({
  950. method: "get",
  951. dataType: "json",
  952. crossDomain: false,
  953. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  954. data: {
  955. pageNo: pageNo || 1,
  956. pageSize: this.state.paginations.pageSize,
  957. uid: this.state.rowId, //名称1
  958. businessGlossoryId: this.state.businessGlossoryId,
  959. },
  960. success: function(data) {
  961. let theArr = [];
  962. if(data.error.length || data.data.list == "") {
  963. if(data.error && data.error.length) {
  964. message.warning(data.error[0].message);
  965. };
  966. } else {
  967. for(let i = 0; i < data.data.list.length; i++) {
  968. let thisdata = data.data.list[i];
  969. theArr.push({
  970. followId: thisdata.followId,
  971. followTime: thisdata.followTime,
  972. identifyName: thisdata.identifyName,
  973. contacts: thisdata.contacts,
  974. contactMobile: thisdata.contactMobile,
  975. result: thisdata.result,
  976. ufbId: thisdata.ufbId,
  977. adminName: thisdata.adminName,
  978. followSituation: thisdata.followSituation,
  979. customerStatus: thisdata.customerStatus,
  980. contactType: thisdata.contactType
  981. });
  982. };
  983. this.state.paginations.current = data.data.pageNo;
  984. this.state.paginations.total = data.data.totalCount;
  985. };
  986. this.setState({
  987. visitArrList: theArr,
  988. paginations: this.state.paginations
  989. });
  990. }.bind(this),
  991. }).always(function() {
  992. this.setState({
  993. loading: false
  994. });
  995. }.bind(this));
  996. },
  997. //tab3拜访记录
  998. loadBfVisit(pageNo, ids) {
  999. this.setState({
  1000. loading: true
  1001. });
  1002. $.ajax({
  1003. method: "get",
  1004. dataType: "json",
  1005. crossDomain: false,
  1006. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1007. data: {
  1008. pageNo: pageNo || 1,
  1009. pageSize: this.state.paginationsy.pageSize,
  1010. uid: ids ? ids : this.state.rowId, //名称1
  1011. },
  1012. success: function(data) {
  1013. let theArr = [];
  1014. if(data.error.length || data.data.list == "") {
  1015. if(data.error && data.error.length) {
  1016. message.warning(data.error[0].message);
  1017. };
  1018. } else {
  1019. for(let i = 0; i < data.data.list.length; i++) {
  1020. let thisdata = data.data.list[i];
  1021. theArr.push({
  1022. followId: thisdata.followId,
  1023. followTime: thisdata.followTime,
  1024. identifyName: thisdata.identifyName,
  1025. contacts: thisdata.contacts,
  1026. contactMobile: thisdata.contactMobile,
  1027. result: thisdata.result,
  1028. ufbId: thisdata.ufbId,
  1029. adminName: thisdata.adminName,
  1030. followSituation: thisdata.followSituation,
  1031. customerStatus: thisdata.customerStatus,
  1032. contactType: thisdata.contactType
  1033. });
  1034. };
  1035. this.state.paginationsy.current = data.data.pageNo;
  1036. this.state.paginationsy.total = data.data.totalCount;
  1037. };
  1038. this.setState({
  1039. visitArrList: theArr,
  1040. paginationsy: this.state.paginationsy
  1041. });
  1042. }.bind(this),
  1043. }).always(function() {
  1044. this.setState({
  1045. loading: false
  1046. });
  1047. }.bind(this));
  1048. },
  1049. businessIntentionOk() {
  1050. this.setState({
  1051. businessGlossoryId: '',
  1052. businessModul: false
  1053. })
  1054. },
  1055. businessIntentionCancel() {
  1056. this.setState({
  1057. businessGlossoryId: '',
  1058. businessModul: false
  1059. })
  1060. },
  1061. //业务跟进查看跟多
  1062. businessFollowDetails(e) {
  1063. this.listFollowUp(e.ufbId)
  1064. this.setState({
  1065. businessFollowModul: true
  1066. })
  1067. },
  1068. businessFollowOk(e) {
  1069. this.setState({
  1070. businessFollowModul: false
  1071. })
  1072. },
  1073. businessFollowCancel(e) {
  1074. this.setState({
  1075. businessFollowModul: false
  1076. })
  1077. },
  1078. //详情tab切换数据处理
  1079. callback(e) {
  1080. if(e == '1') {
  1081. this.loadInformation(this.state.rowId)
  1082. }
  1083. if(e == '2') {
  1084. this.contactLists(this.state.rowId)
  1085. }
  1086. if(e == '3') {
  1087. this.httpAccount(this.state.rowId)
  1088. }
  1089. if(e == '4') {
  1090. this.loadBfVisit(1, this.state.rowId);
  1091. }
  1092. if(e == '5') {
  1093. this.BusinessList(1, this.state.rowId);
  1094. }
  1095. if(e == '6') {
  1096. }
  1097. if(e == '7') {
  1098. }
  1099. if(e == '8') {
  1100. }
  1101. if(e == '9') {
  1102. }
  1103. this.setState({
  1104. callnub: e,
  1105. })
  1106. },
  1107. //tab5业务意向
  1108. BusinessList(pageNo, uids) {
  1109. this.setState({
  1110. loading: true
  1111. });
  1112. $.ajax({
  1113. method: "post",
  1114. dataType: "json",
  1115. crossDomain: false,
  1116. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1117. data: {
  1118. pageNo: pageNo || 1,
  1119. pageSize: this.state.paginationt.pageSize,
  1120. uid: uids ? uids : this.state.rowId
  1121. },
  1122. success: function(data) {
  1123. let theArr = [];
  1124. if(data.error.length || data.data.list == "") {
  1125. if(data.error && data.error.length) {
  1126. message.warning(data.error[0].message);
  1127. };
  1128. } else {
  1129. for(let i = 0; i < data.data.list.length; i++) {
  1130. let thisdata = data.data.list[i];
  1131. theArr.push({
  1132. key: i,
  1133. businessId: thisdata.businessId,
  1134. businessName: thisdata.businessName,
  1135. identifyName: thisdata.identifyName,
  1136. followSituation: thisdata.followSituation,
  1137. customerStatus: thisdata.customerStatus,
  1138. adminName: thisdata.adminName,
  1139. createTime: thisdata.createTime
  1140. });
  1141. };
  1142. this.state.paginationt.current = data.data.pageNo;
  1143. this.state.paginationt.total = data.data.totalCount;
  1144. };
  1145. this.setState({
  1146. dataBusiness: theArr,
  1147. paginationt: this.state.paginationt
  1148. });
  1149. }.bind(this),
  1150. }).always(function() {
  1151. this.setState({
  1152. loading: false
  1153. });
  1154. }.bind(this));
  1155. },
  1156. componentWillReceiveProps(nextProps) {
  1157. if(!this.props.visible && nextProps.visible) {
  1158. if(nextProps.data && nextProps.data.id) {
  1159. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1160. };
  1161. this.state.data = {};
  1162. this.state.companyLogoUrl = [];
  1163. this.state.orgCodeUrl = [];
  1164. };
  1165. },
  1166. render() {
  1167. const FormItem = Form.Item
  1168. const rowSelection = {
  1169. selectedRowKeys: this.state.selectedRowKeys,
  1170. onChange: (selectedRowKeys, selectedRows) => {
  1171. this.setState({
  1172. selectedRows: selectedRows.slice(-1),
  1173. selectedRowKeys: selectedRowKeys.slice(-1)
  1174. });
  1175. },
  1176. onSelect: (recordt, selected, selectedRows) => {
  1177. this.setState({
  1178. recordt: recordt.id
  1179. })
  1180. },
  1181. };
  1182. const rowSelections = {
  1183. selectedRowKeys: this.state.selectedRowKey,
  1184. onChange: (selectedRowKey, selectedRow) => {
  1185. this.setState({
  1186. selectedRow: selectedRow.slice(-1),
  1187. selectedRowKey: selectedRowKey.slice(-1)
  1188. });
  1189. },
  1190. onSelect: (records, selected, selectedRow) => {
  1191. this.setState({
  1192. selectedRow: selectedRow.slice(-1),
  1193. records: records.id,
  1194. })
  1195. },
  1196. };
  1197. const hasSelected = this.state.selectedRowKeys.length > 0;
  1198. const { RangePicker, MonthPicker } = DatePicker;
  1199. const { getFieldDecorator } = this.props.form;
  1200. const formItemLayout = {
  1201. labelCol: { span: 8 },
  1202. wrapperCol: { span: 14 },
  1203. };
  1204. const theInformation = this.state.dataInformation || {}
  1205. const contactsOption = "";
  1206. const formItemLayput = {
  1207. labelCol: { span: 10 },
  1208. wrapperCol: { span: 14 },
  1209. };
  1210. const contacts = this.state.contacts || '';
  1211. return(
  1212. <div className="user-content" >
  1213. <div className="content-title">
  1214. <span>专家查询</span>
  1215. </div>
  1216. <div className="user-search">
  1217. <Input placeholder="客户姓名"
  1218. value={this.state.nameSearch}
  1219. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1220. <Select placeholder="省"
  1221. style={{ width: 80 }}
  1222. value={this.state.provinceSearch}
  1223. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1224. {this.state.Provinces}
  1225. </Select>
  1226. <span style={{marginRight:'10px'}}>
  1227. <Cascader options={this.state.City} value={this.state.addressSearch} placeholder="选择城市"
  1228. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1229. </span>
  1230. <span style={{marginRight:'10px'}}>客户类型:</span>
  1231. <Select placeholder="选择客户类型"
  1232. style={{ width: 100 }}
  1233. value={this.state.shareTypeSearch}
  1234. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1235. <Select.Option value="" >所有客户</Select.Option>
  1236. <Select.Option value="1" >公共客户</Select.Option>
  1237. </Select>
  1238. <Button type="primary" onClick={this.search}>搜索</Button>
  1239. <Button onClick={this.reset}>重置</Button>
  1240. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1241. <div className='clearfix' style={{marginTop:'5px'}}>
  1242. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1243. <RangePicker
  1244. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1245. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1246. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1247. <Select placeholder="客户状态"
  1248. style={{ width: 100 }}
  1249. value={this.state.statusSearch}
  1250. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1251. <Select.Option value="0" >正常</Select.Option>
  1252. <Select.Option value="2" >锁定</Select.Option>
  1253. </Select>
  1254. <Select placeholder="行业"
  1255. style={{ width: 100 }}
  1256. value={this.state.industrySearch}
  1257. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1258. {this.state.intentionalOption}
  1259. </Select>
  1260. <span>认证:</span>
  1261. <Select placeholder="业务认证"
  1262. style={{ width: 100 }}
  1263. value={this.state.serviceCertificationSearch}
  1264. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1265. <Select.Option value="0" >未认证</Select.Option>
  1266. <Select.Option value="1" >已认证</Select.Option>
  1267. </Select>
  1268. <Select placeholder="实名认证"
  1269. style={{ width: 100 }}
  1270. value={this.state.userCertificationSearch}
  1271. onChange={(e) => { this.setState({ userCertificationSearch: e }) }}>
  1272. {
  1273. auditStatusL.map(function (item) {
  1274. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1275. })
  1276. }
  1277. </Select>
  1278. <span>专家:</span>
  1279. <Select placeholder="专家"
  1280. style={{ width: 60 }}
  1281. value={this.state.expertSearch}
  1282. onChange={(e) => { this.setState({ expertSearch: e }) }}>
  1283. <Select.Option value="0" >否</Select.Option>
  1284. <Select.Option value="1" >是</Select.Option>
  1285. </Select>
  1286. <span>明星:</span>
  1287. <Select placeholder="明星"
  1288. style={{ width: 60 }}
  1289. value={this.state.celebritySearch}
  1290. onChange={(e) => { this.setState({ celebritySearch: e }) }}>
  1291. <Select.Option value="0" >否</Select.Option>
  1292. <Select.Option value="1" >是</Select.Option>
  1293. </Select>
  1294. <span>国际:</span>
  1295. <Select placeholder="国际"
  1296. style={{ width: 60 }}
  1297. value={this.state.internationalSearch}
  1298. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  1299. <Select.Option value="0" >否</Select.Option>
  1300. <Select.Option value="1" >是</Select.Option>
  1301. </Select>
  1302. <span>会员:</span>
  1303. <Select placeholder="会员等级"
  1304. style={{ width: 100 }}
  1305. value={this.state.lvlSearch}
  1306. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  1307. {this.state.lvlArrOption}
  1308. </Select>
  1309. <Select placeholder="会员状态"
  1310. style={{ width: 100 }}
  1311. value={this.state.currentMemberStatusSearch}
  1312. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  1313. {this.state.currentMemberArrOption}
  1314. </Select>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. <div className="patent-table">
  1319. <Spin spinning={this.state.loading}>
  1320. <Table size="middle" columns={this.state.columns}
  1321. dataSource={this.state.dataSource}
  1322. rowSelection={rowSelection}
  1323. pagination={this.state.pagination}
  1324. onRowClick={this.tableRowClick}
  1325. />
  1326. </Spin>
  1327. </div>
  1328. <Modal
  1329. className="customeDetails"
  1330. title="个人客户详情"
  1331. width='1200px'
  1332. visible={this.state.modal5Visible}
  1333. onOk={this.detailsModal}
  1334. onCancel={this.detailsModal}
  1335. footer=''
  1336. >
  1337. <Tabs onChange={this.callback} activeKey={this.state.callnub}>
  1338. <TabPane tab="基本信息" key="1">
  1339. {adminData.isSuperAdmin?<Form horizontal id="demand-form">
  1340. <Spin spinning={this.state.loading}>
  1341. <div className="clearfix" >
  1342. <FormItem className="half-item"
  1343. {...formItemLayout}
  1344. label="客户姓名"
  1345. >
  1346. <span>{theInformation.identifyName}</span>
  1347. </FormItem>
  1348. </div>
  1349. <div className="clearfix" >
  1350. <FormItem className="half-item"
  1351. {...formItemLayout}
  1352. label="行业">
  1353. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  1354. onChange={(e)=>{this.setState({industry:e})}}>
  1355. {
  1356. industry.map(function (item) {
  1357. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1358. })
  1359. }
  1360. </Select>
  1361. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1362. </FormItem>
  1363. <FormItem className="half-item"
  1364. {...formItemLayout}
  1365. label="社会属性"
  1366. >
  1367. <Select placeholder="客户社会属性" value={this.state.societyTag} style={{width:'300px'}}
  1368. onChange={(e)=>{this.setState({societyTag:e})}}>
  1369. {
  1370. socialAttribute.map(function (item) {
  1371. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1372. })
  1373. }
  1374. </Select>
  1375. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1376. </FormItem>
  1377. <FormItem className="half-item"
  1378. {...formItemLayout}
  1379. label="省-市-区"
  1380. >
  1381. <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  1382. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1383. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1384. </FormItem>
  1385. <FormItem className="half-item"
  1386. {...formItemLayout}
  1387. label="出生日期"
  1388. >
  1389. {!this.state.yearMonth?<MonthPicker placeholder="选择出生年月" value={this.state.yearMonth||null} onChange={(time) => {this.setState({yearMonth: time});}}/>
  1390. :<MonthPicker value={moment(this.state.yearMonth, monthFormat)} format={monthFormat} onChange={(time) => {this.setState({yearMonth: time});}}/>
  1391. }
  1392. </FormItem>
  1393. <FormItem className="half-item"
  1394. {...formItemLayout}
  1395. label="身份证号码"
  1396. >
  1397. <Input placeholder="身份证号码" value={this.state.idNumber} onChange={(e) => {
  1398. this.setState({ idNumber: e.target.value })}}/>
  1399. </FormItem>
  1400. <FormItem className="half-item"
  1401. {...formItemLayout}
  1402. label="主要联系人"
  1403. >
  1404. <Input placeholder="主要联系人" value={this.state.contacts} onChange={(e) => {
  1405. this.setState({ contacts: e.target.value })}}/>
  1406. </FormItem>
  1407. <FormItem className="half-item"
  1408. {...formItemLayout}
  1409. label="主要联系人号码"
  1410. >
  1411. <Input placeholder="主要联系人号码" value={this.state.contactMobile} onChange={(e) => {
  1412. this.setState({ contactMobile: e.target.value })}}/>
  1413. </FormItem>
  1414. <FormItem className="half-item"
  1415. {...formItemLayout}
  1416. label="职称名字"
  1417. >
  1418. <Input placeholder="职称名字" value={this.state.professionalTitle} onChange={(e) => {
  1419. this.setState({ professionalTitle: e.target.value })}}/>
  1420. </FormItem>
  1421. <FormItem className="half-item"
  1422. {...formItemLayout}
  1423. label="就业单位"
  1424. >
  1425. <Input placeholder="就业单位" value={this.state.workUnit} onChange={(e) => {
  1426. this.setState({ workUnit: e.target.value })}}/>
  1427. </FormItem>
  1428. <FormItem className="half-item"
  1429. {...formItemLayout}
  1430. label="学历"
  1431. >
  1432. <Input placeholder="学历" value={this.state.education} onChange={(e) => {
  1433. this.setState({ education: e.target.value })}}/>
  1434. </FormItem>
  1435. <FormItem className="half-item"
  1436. {...formItemLayout}
  1437. label="毕业院校"
  1438. >
  1439. <Input placeholder="学历" value={this.state.graduateSchool} onChange={(e) => {
  1440. this.setState({ graduateSchool: e.target.value })}}/>
  1441. </FormItem>
  1442. <FormItem className="half-item"
  1443. {...formItemLayout}
  1444. label="专业类别"
  1445. >
  1446. <Input placeholder="专业类别" value={this.state.majorCategory} onChange={(e) => {
  1447. this.setState({ majorCategory: e.target.value })}}/>
  1448. </FormItem>
  1449. <FormItem className="half-item"
  1450. {...formItemLayout}
  1451. label="职业资格"
  1452. >
  1453. <Input placeholder="职业资格" value={this.state.qualification} onChange={(e) => {
  1454. this.setState({ qualification: e.target.value })}}/>
  1455. </FormItem>
  1456. <FormItem className="half-item"
  1457. {...formItemLayout}
  1458. label="通信地址"
  1459. >
  1460. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1461. onChange={(e,pre) => { this.setState({ postalAddress: e.target.value }) }}/>
  1462. </FormItem>
  1463. <FormItem className="half-item"
  1464. {...formItemLayout}
  1465. label="固定电话"
  1466. >
  1467. <Input placeholder="客户固定电话" value={this.state.fixedTel}
  1468. onChange={(e) => { this.setState({ fixedTel: e.target.value }) }}/>
  1469. </FormItem>
  1470. <FormItem className="half-item"
  1471. {...formItemLayout}
  1472. label="客户QQ"
  1473. >
  1474. <Input placeholder="客户QQ" value={this.state.qq}
  1475. onChange={(e) => { this.setState({ qq: e.target.value })}}/>
  1476. </FormItem>
  1477. <FormItem className="half-item"
  1478. {...formItemLayout}
  1479. label="电子邮箱"
  1480. >
  1481. <Input placeholder="客户电子邮箱" value={this.state.email}
  1482. onChange={(e) => {this.setState({email: e.target.value })}}/>
  1483. </FormItem>
  1484. <FormItem className="half-item"
  1485. {...formItemLayout}
  1486. label="咨询费用"
  1487. >
  1488. <Input ref='consul' placeholder="输入数字且不超过6位" value={this.state.consultationPrice}
  1489. onChange={(e) => {this.setState({consultationPrice: e.target.value })}}/>
  1490. </FormItem>
  1491. <FormItem className="half-item"
  1492. {...formItemLayout}
  1493. label="实名认证"
  1494. >
  1495. <Select placeholder="实名认证"
  1496. value={this.state.auditStatus}
  1497. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  1498. {
  1499. auditStatusL.map(function (item) {
  1500. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1501. })
  1502. }
  1503. </Select>
  1504. </FormItem>
  1505. <div className='clearfix'>
  1506. <FormItem
  1507. labelCol={{ span: 4 }}
  1508. wrapperCol={{ span: 18 }}
  1509. label="客户简介" >
  1510. <Input type="textarea" rows={4} value={this.state.introduction}
  1511. onChange={(e,pre) => { this.setState({ introduction: e.target.value })}}/>
  1512. </FormItem>
  1513. </div>
  1514. <div className="clearfix">
  1515. <FormItem className="half-item"
  1516. {...formItemLayout}
  1517. label="业务认证"
  1518. >
  1519. <Radio.Group value={this.state.businessAudit} onChange={(e) => {
  1520. this.setState({ businessAudit: e.target.value })
  1521. }}>
  1522. <Radio value={0}>未认证</Radio>
  1523. <Radio value={1}>已认证</Radio>
  1524. </Radio.Group>
  1525. </FormItem>
  1526. <FormItem className="half-item"
  1527. {...formItemLayout}
  1528. label="专家"
  1529. >
  1530. <Radio.Group value={this.state.expert} onChange={(e) => {
  1531. this.setState({ expert: e.target.value })
  1532. }}>
  1533. <Radio value={0}>否</Radio>
  1534. <Radio value={1}>是</Radio>
  1535. </Radio.Group>
  1536. </FormItem>
  1537. <FormItem className="half-item"
  1538. {...formItemLayout}
  1539. label="明星"
  1540. >
  1541. <Radio.Group value={this.state.expert} onChange={(e) => {
  1542. this.setState({ expert: e.target.value })
  1543. }}>
  1544. <Radio value={2}>是</Radio>
  1545. </Radio.Group>
  1546. </FormItem>
  1547. <FormItem className="half-item"
  1548. {...formItemLayout}
  1549. label="国际化"
  1550. >
  1551. <Radio.Group value={this.state.international} onChange={(e) => {
  1552. this.setState({ international: e.target.value })
  1553. }}>
  1554. <Radio value={0}>否</Radio>
  1555. <Radio value={1}>是</Radio>
  1556. </Radio.Group>
  1557. </FormItem>
  1558. <FormItem className="half-item"
  1559. {...formItemLayout}
  1560. label="性别"
  1561. >
  1562. <Radio.Group value={this.state.sex} onChange={(e) => {
  1563. this.setState({sex:e.target.value})
  1564. }}>
  1565. <Radio value={'男'}>男</Radio>
  1566. <Radio value={'女'}>女</Radio>
  1567. </Radio.Group>
  1568. </FormItem>
  1569. </div>
  1570. <div className="clearfix pictures">
  1571. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  1572. labelCol={{ span: 8 }}
  1573. wrapperCol={{ span: 10 }}
  1574. label="身份证正面" >
  1575. <PicturesWall
  1576. pictureSign="ID"
  1577. fileList={this.getPositiveIdUrl}
  1578. pictureUrl={this.state.positiveIdUrl} />
  1579. <p>建议:图片要清晰。</p>
  1580. </FormItem>
  1581. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  1582. labelCol={{ span: 8 }}
  1583. wrapperCol={{ span: 10 }}
  1584. label="身份证反面" >
  1585. <PicturesWall
  1586. pictureSign="ID"
  1587. fileList={this.getOppositeIdUrl}
  1588. pictureUrl={this.state.oppositeIdUrl} />
  1589. <p>建议:图片要清晰。</p>
  1590. </FormItem>
  1591. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  1592. labelCol={{ span: 8 }}
  1593. wrapperCol={{ span: 10 }}
  1594. label="客户照片" >
  1595. <PicturesWall
  1596. pictureSign="portrait"
  1597. fileList={this.getHeadPortraitUrl}
  1598. pictureUrl={this.state.headPortraitUrl} />
  1599. <p>建议:图片要清晰。</p>
  1600. </FormItem>
  1601. </div>
  1602. </div>
  1603. </Spin>
  1604. </Form>:
  1605. <Form horizontal id="demand-form">
  1606. <Spin spinning={this.state.loading}>
  1607. <div className="clearfix" >
  1608. <FormItem className="half-item"
  1609. {...formItemLayout}
  1610. label="客户姓名"
  1611. >
  1612. <span>{theInformation.identifyName}</span>
  1613. </FormItem>
  1614. </div>
  1615. <div className="clearfix" >
  1616. <FormItem className="half-item"
  1617. {...formItemLayout}
  1618. label="行业"
  1619. >
  1620. <span>{getIndustryType(this.state.industry)}</span>
  1621. </FormItem>
  1622. <FormItem className="half-item"
  1623. {...formItemLayout}
  1624. label="社会属性"
  1625. >
  1626. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  1627. </FormItem>
  1628. <FormItem className="half-item"
  1629. {...formItemLayout}
  1630. label="业务认证"
  1631. >
  1632. <span>{parseInt(this.state.businessAudit)?'已认证':'未认证'}</span>
  1633. </FormItem>
  1634. <FormItem className="half-item"
  1635. {...formItemLayout}
  1636. label="实名认证"
  1637. >
  1638. <span>{getAuditStatus(this.state.auditStatus)}</span>
  1639. </FormItem>
  1640. <FormItem className="half-item"
  1641. {...formItemLayout}
  1642. label="专家"
  1643. >
  1644. <span>{parseInt(this.state.expert)?'是':'否'}</span>
  1645. </FormItem>
  1646. <FormItem className="half-item"
  1647. {...formItemLayout}
  1648. label="明星"
  1649. >
  1650. <span>{parseInt(this.state.celebrity)?'是':'否'}</span>
  1651. </FormItem>
  1652. <FormItem className="half-item"
  1653. {...formItemLayout}
  1654. label="会员"
  1655. >
  1656. <span>{parseInt(this.state.isMember)?'是':'否'}</span>
  1657. </FormItem>
  1658. <FormItem className="half-item"
  1659. {...formItemLayout}
  1660. label="咨询师"
  1661. >
  1662. <span>{parseInt(this.state.consultant)?'是':'否'}</span>
  1663. </FormItem>
  1664. <FormItem className="half-item"
  1665. {...formItemLayout}
  1666. label="国际化"
  1667. >
  1668. <span>{parseInt(this.state.international)?'是':'否'}</span>
  1669. </FormItem>
  1670. <FormItem className="half-item"
  1671. {...formItemLayout}
  1672. label="性别"
  1673. >
  1674. <span>{this.state.sex}</span>
  1675. </FormItem>
  1676. <FormItem className="half-item"
  1677. {...formItemLayout}
  1678. label="出生日期"
  1679. >
  1680. <span>{this.state.yearMonth}</span>
  1681. </FormItem>
  1682. <FormItem className="half-item"
  1683. {...formItemLayout}
  1684. label="身份证号码"
  1685. >
  1686. <span>{theInformation.legalPersonIdCard}</span>
  1687. </FormItem>
  1688. <FormItem className="half-item"
  1689. {...formItemLayout}
  1690. label="主要联系人"
  1691. >
  1692. <span>{theInformation.contacts}</span>
  1693. </FormItem>
  1694. <FormItem className="half-item"
  1695. {...formItemLayout}
  1696. label="主要联系人号码"
  1697. >
  1698. <span>{theInformation.contactMobile}</span>
  1699. </FormItem>
  1700. <FormItem className="half-item"
  1701. {...formItemLayout}
  1702. label="省-市-区"
  1703. >
  1704. <span>{this.state.proviceCityArea}</span>
  1705. </FormItem>
  1706. <FormItem className="half-item"
  1707. {...formItemLayout}
  1708. label="投资机构"
  1709. >
  1710. <span>{this.state.investment?'是':'否'}</span>
  1711. </FormItem>
  1712. <FormItem className="half-item"
  1713. {...formItemLayout}
  1714. label="职称名字"
  1715. >
  1716. <span>{this.state.professionalTitle}</span>
  1717. </FormItem>
  1718. <FormItem className="half-item"
  1719. {...formItemLayout}
  1720. label="就业单位"
  1721. >
  1722. <span>{this.state.workUnit}</span>
  1723. </FormItem>
  1724. <FormItem className="half-item"
  1725. {...formItemLayout}
  1726. label="学历"
  1727. >
  1728. <span>{this.state.education}</span>
  1729. </FormItem>
  1730. <FormItem className="half-item"
  1731. {...formItemLayout}
  1732. label="毕业院校"
  1733. >
  1734. <span>{this.state.graduateSchool}</span>
  1735. </FormItem>
  1736. <FormItem className="half-item"
  1737. {...formItemLayout}
  1738. label="专业类别"
  1739. >
  1740. <span>{this.state.majorCategory}</span>
  1741. </FormItem>
  1742. <FormItem className="half-item"
  1743. {...formItemLayout}
  1744. label="职业资格"
  1745. >
  1746. <span>{this.state.qualification}</span>
  1747. </FormItem>
  1748. <FormItem className="half-item"
  1749. {...formItemLayout}
  1750. label="通信地址"
  1751. >
  1752. <span>{theInformation.postalAddress}</span>
  1753. </FormItem>
  1754. <FormItem className="half-item"
  1755. {...formItemLayout}
  1756. label="手机号码"
  1757. >
  1758. <span>{theInformation.modile}</span>
  1759. </FormItem>
  1760. <FormItem className="half-item"
  1761. {...formItemLayout}
  1762. label="客户传真"
  1763. >
  1764. <span>{theInformation.contactsFax}</span>
  1765. </FormItem>
  1766. <FormItem className="half-item"
  1767. {...formItemLayout}
  1768. label="固定电话"
  1769. >
  1770. <span>{theInformation.contactsFixedTel}</span>
  1771. </FormItem>
  1772. <FormItem className="half-item"
  1773. {...formItemLayout}
  1774. label="客户QQ"
  1775. >
  1776. <span>{theInformation.qq}</span>
  1777. </FormItem>
  1778. <FormItem className="half-item"
  1779. {...formItemLayout}
  1780. label="电子邮箱"
  1781. >
  1782. <span>{theInformation.email}</span>
  1783. </FormItem>
  1784. <FormItem className="half-item"
  1785. {...formItemLayout}
  1786. label="咨询费用"
  1787. >
  1788. <span>{theInformation.consultationPrice}</span>
  1789. </FormItem>
  1790. <div className='clearfix'>
  1791. <FormItem
  1792. labelCol={{ span: 4 }}
  1793. wrapperCol={{ span: 18 }}
  1794. label="客户简介" >
  1795. <span>{theInformation.introduction}</span>
  1796. </FormItem>
  1797. </div>
  1798. <div className="clearfix pictures">
  1799. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px',marginLeft:'60px'}}
  1800. labelCol={{ span: 8 }}
  1801. wrapperCol={{ span: 10 }}
  1802. label="身份证正面" >
  1803. <div className="clearfix">
  1804. <Upload className="demandDetailShow-upload"
  1805. listType="picture-card"
  1806. fileList={this.state.orgCodeUrl}
  1807. onPreview={(file) => {
  1808. this.setState({
  1809. previewImage: file.url || file.thumbUrl,
  1810. previewVisible: true,
  1811. });
  1812. }} >
  1813. </Upload>
  1814. <Modal maskClosable={false} footer={null}
  1815. visible={this.state.previewVisible}
  1816. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1817. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  1818. </Modal>
  1819. </div>
  1820. </FormItem>
  1821. <FormItem style={{display:'inline-block',width:'350px',marginTop:'20px'}}
  1822. labelCol={{ span: 8 }}
  1823. wrapperCol={{ span: 10 }}
  1824. label="身份证反面" >
  1825. <div className="clearfix">
  1826. <Upload className="demandDetailShow-upload"
  1827. listType="picture-card"
  1828. fileList={this.state.companyLogoUrl}
  1829. onPreview={(file) => {
  1830. this.setState({
  1831. previewImage: file.url || file.thumbUrl,
  1832. previewVisible: true,
  1833. });
  1834. }} >
  1835. </Upload>
  1836. <Modal maskClosable={false} footer={null}
  1837. visible={this.state.previewVisible}
  1838. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1839. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  1840. </Modal>
  1841. </div>
  1842. </FormItem>
  1843. <FormItem style={{display:'inline-block' ,width:'350px',marginTop:'20px'}}
  1844. labelCol={{ span: 8 }}
  1845. wrapperCol={{ span: 10 }}
  1846. label="客户照片" >
  1847. <div className="clearfix">
  1848. <Upload className="demandDetailShow-upload"
  1849. listType="picture-card"
  1850. fileList={this.state.companyLogoUrls}
  1851. onPreview={(file) => {
  1852. this.setState({
  1853. previewImage: file.url || file.thumbUrl,
  1854. previewVisible: true,
  1855. });
  1856. }} >
  1857. </Upload>
  1858. <Modal maskClosable={false} footer={null}
  1859. visible={this.state.previewVisible}
  1860. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1861. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrls || ''} />
  1862. </Modal>
  1863. </div>
  1864. </FormItem>
  1865. </div>
  1866. </div>
  1867. </Spin>
  1868. </Form>
  1869. }
  1870. </TabPane>
  1871. <TabPane tab="联系人信息" key="2">
  1872. <div className="clearfix">
  1873. <Spin spinning={this.state.loading}>
  1874. <Form horizontal id="demand-form" >
  1875. <Table
  1876. size="middle"
  1877. pagination={false}
  1878. columns={this.state.ContactsLists}
  1879. dataSource={this.state.contactList}
  1880. />
  1881. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1882. </div>
  1883. </Form>
  1884. </Spin>
  1885. </div>
  1886. </TabPane>
  1887. <TabPane tab="账户信息" key="3">
  1888. <div className="clearfix">
  1889. {adminData.isSuperAdmin?<Form horizontal id="demand-form" >
  1890. <Spin spinning={this.state.loading} >
  1891. <FormItem className="half-item"
  1892. {...formItemLayout}
  1893. label="注册手机号" >
  1894. <Input value={this.state.mobile} disabled
  1895. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  1896. </FormItem>
  1897. <FormItem className="half-item"
  1898. {...formItemLayout}
  1899. label="注册用户名" >
  1900. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  1901. </FormItem>
  1902. <FormItem className="half-item"
  1903. {...formItemLayout}
  1904. label="注册邮箱" >
  1905. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  1906. </FormItem>
  1907. <div className="clearfix">
  1908. <FormItem className="half-item"
  1909. {...formItemLayout}
  1910. label="客户来源" >
  1911. <span>{this.state.source}</span>
  1912. </FormItem>
  1913. <FormItem className="half-item"
  1914. {...formItemLayout}
  1915. label="客户类型" >
  1916. <span>{this.state.type}</span>
  1917. </FormItem>
  1918. <FormItem className="half-item"
  1919. {...formItemLayout}
  1920. label="创建时间" >
  1921. <span>{this.state.createTimes}</span>
  1922. </FormItem>
  1923. <FormItem className="half-item"
  1924. {...formItemLayout}
  1925. label="账户状态"
  1926. >
  1927. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  1928. {
  1929. statuslist.map(function (item) {
  1930. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1931. })
  1932. }
  1933. </Select>
  1934. </FormItem>
  1935. </div>
  1936. <div className="clearfix">
  1937. <FormItem className="half-item"
  1938. {...formItemLayout}
  1939. label="会员"
  1940. >
  1941. <Radio.Group value={this.state.isMember} onChange={(e) => {
  1942. this.setState({ isMember: e.target.value })
  1943. }}>
  1944. <Radio value={0}>否</Radio>
  1945. <Radio value={1}>是</Radio>
  1946. </Radio.Group>
  1947. </FormItem>
  1948. <FormItem className="half-item"
  1949. {...formItemLayout}
  1950. label="会员等级"
  1951. >
  1952. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  1953. {
  1954. lvl.map(function (item) {
  1955. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1956. })
  1957. }
  1958. </Select>
  1959. </FormItem>
  1960. <FormItem className="half-item"
  1961. {...formItemLayout}
  1962. label="会员状态"
  1963. >
  1964. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  1965. {
  1966. currentMember.map(function (item) {
  1967. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1968. })
  1969. }
  1970. </Select>
  1971. </FormItem>
  1972. </div>
  1973. </Spin>
  1974. </Form> :
  1975. <Form horizontal id="demand-form" >
  1976. <Spin spinning={this.state.loading} >
  1977. <FormItem className="half-item"
  1978. {...formItemLayout}
  1979. label="注册手机号" >
  1980. <span>{this.state.mobile}</span>
  1981. </FormItem>
  1982. <FormItem className="half-item"
  1983. {...formItemLayout}
  1984. label="注册用户名" >
  1985. <span>{this.state.nickname}</span>
  1986. </FormItem>
  1987. <FormItem className="half-item"
  1988. {...formItemLayout}
  1989. label="注册邮箱" >
  1990. <span>{this.state.email}</span>
  1991. </FormItem>
  1992. <div className="clearfix">
  1993. <FormItem className="half-item"
  1994. {...formItemLayout}
  1995. label="客户来源" >
  1996. <span>{this.state.source}</span>
  1997. </FormItem>
  1998. <FormItem className="half-item"
  1999. {...formItemLayout}
  2000. label="客户类型" >
  2001. <span>{this.state.type}</span>
  2002. </FormItem>
  2003. <FormItem className="half-item"
  2004. {...formItemLayout}
  2005. label="创建时间" >
  2006. <span>{this.state.createTimes}</span>
  2007. </FormItem>
  2008. <FormItem className="half-item"
  2009. {...formItemLayout}
  2010. label="账户状态"
  2011. >
  2012. <span>{getStatuslist(this.state.status)}</span>
  2013. </FormItem>
  2014. </div>
  2015. <div className="clearfix">
  2016. <FormItem className="half-item"
  2017. {...formItemLayout}
  2018. label="专家"
  2019. >
  2020. <span>{this.state.isMembers?'是':'否'}</span>
  2021. </FormItem>
  2022. <FormItem className="half-item"
  2023. {...formItemLayout}
  2024. label="明星"
  2025. >
  2026. <span>{this.state.star?'是':'否'}</span>
  2027. </FormItem>
  2028. <FormItem className="half-item"
  2029. {...formItemLayout}
  2030. label="会员"
  2031. >
  2032. <span>{this.state.isMember?'是':'否'}</span>
  2033. </FormItem>
  2034. <FormItem className="half-item"
  2035. {...formItemLayout}
  2036. label="会员等级"
  2037. >
  2038. <span>{getLvl(this.state.lvl)}</span>
  2039. </FormItem>
  2040. <FormItem className="half-item"
  2041. {...formItemLayout}
  2042. label="会员状态"
  2043. >
  2044. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2045. </FormItem>
  2046. </div>
  2047. <FormItem className="half-item"
  2048. {...formItemLayout}
  2049. label="业务认证"
  2050. >
  2051. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2052. </FormItem>
  2053. <FormItem className="half-item"
  2054. {...formItemLayout}
  2055. label="实名认证"
  2056. >
  2057. <span>{getAuditStatus(this.state.userCertification)}</span>
  2058. </FormItem>
  2059. </Spin>
  2060. </Form>
  2061. }
  2062. </div>
  2063. </TabPane>
  2064. <TabPane tab="客户拜访" key="4">
  2065. <div className="clearfix">
  2066. <Spin spinning={this.state.loading}>
  2067. <Table
  2068. pagination={false}
  2069. columns={this.state.visitsList}
  2070. dataSource={this.state.visitArrList}
  2071. onRowClick={this.VisitRowClick}
  2072. />
  2073. </Spin>
  2074. </div>
  2075. </TabPane>
  2076. <TabPane tab="业务意向" key="5">
  2077. <div className="clearfix">
  2078. <Spin spinning={this.state.loading}>
  2079. <Table
  2080. pagination={this.state.paginationt}
  2081. columns={this.state.businessIntentionList}
  2082. dataSource={this.state.dataBusiness}
  2083. />
  2084. </Spin>
  2085. </div>
  2086. </TabPane>
  2087. <TabPane tab="业务订单" key="6">
  2088. </TabPane>
  2089. <TabPane tab="技术需求" key="7">
  2090. </TabPane>
  2091. <TabPane tab="技术成果" key="8">
  2092. </TabPane>
  2093. <TabPane tab="技术专家" key="9">
  2094. </TabPane>
  2095. </Tabs>
  2096. </Modal>
  2097. <Modal
  2098. className="customeDetails"
  2099. footer=''
  2100. title="拜访详情"
  2101. width='1200px'
  2102. visible={this.state.visitModul}
  2103. onOk={this.visitOk}
  2104. onCancel={this.visitCancel}
  2105. >
  2106. <Form horizontal id="demand-form" >
  2107. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2108. <div className="clearfix">
  2109. <FormItem className="half-item"
  2110. {...formItemLayout}
  2111. label="拜访方式" >
  2112. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2113. this.setState({ contactType: e.target.value })
  2114. }}>
  2115. <Radio value={0}>外出</Radio>
  2116. <Radio value={1}>电话</Radio>
  2117. <Radio value={2}>QQ</Radio>
  2118. <Radio value={3}>微信</Radio>
  2119. <Radio value={4}>邮箱</Radio>
  2120. </Radio.Group>
  2121. </FormItem>
  2122. <FormItem className="half-item"
  2123. {...formItemLayout}
  2124. >
  2125. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2126. </FormItem>
  2127. <div className="clearfix">
  2128. <FormItem className="half-item"
  2129. {...formItemLayout}
  2130. label="客户姓名"
  2131. >
  2132. <span>{this.state.identifyName}</span>
  2133. </FormItem>
  2134. <FormItem className="half-item"
  2135. {...formItemLayout}
  2136. label="拜访人"
  2137. >
  2138. <span>{this.state.adminName}</span>
  2139. </FormItem>
  2140. <FormItem className="half-item"
  2141. {...formItemLayout}
  2142. label="当前联系人"
  2143. >
  2144. <span>{this.state.contacts}</span>
  2145. </FormItem>
  2146. {this.state.contacts?<span></span>:
  2147. <FormItem className="half-item"
  2148. {...formItemLayout}
  2149. label="联系人"
  2150. >
  2151. <Select placeholder="选择联系人" style={{ width: 140 }}
  2152. value={this.state.lastName}
  2153. onChange={this.hundleName}>
  2154. {this.state.orderStatusOption}
  2155. </Select>
  2156. </FormItem>
  2157. }
  2158. <FormItem className="half-item"
  2159. {...formItemLayout}
  2160. label="拜访时间"
  2161. >
  2162. <span>{this.state.followTime}</span>
  2163. </FormItem>
  2164. <FormItem className="half-item"
  2165. {...formItemLayout}
  2166. label="联系电话"
  2167. >
  2168. <span>{this.state.nub}</span>
  2169. </FormItem>
  2170. </div>
  2171. <div className="clearfix">
  2172. <FormItem
  2173. labelCol={{ span: 4 }}
  2174. wrapperCol={{ span: 16 }}
  2175. label="拜访备注" >
  2176. <Input type="textarea" rows={4} value={this.state.result}
  2177. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2178. </FormItem>
  2179. </div>
  2180. <div className="clearfix">
  2181. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2182. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2183. <Spin spinning={this.state.loading}>
  2184. <Table
  2185. rowKey={record => record.id}
  2186. pagination={false}
  2187. columns={this.state.intentionList}
  2188. dataSource={this.state.data}
  2189. />
  2190. </Spin>
  2191. </div>
  2192. </div>
  2193. </div>
  2194. </Spin>:<Spin spinning={this.state.loading}>
  2195. <div className="clearfix">
  2196. <FormItem className="half-item"
  2197. {...formItemLayout}
  2198. label="拜访方式" >
  2199. <span>{getContactType(String(this.state.contactType))}</span>
  2200. </FormItem>
  2201. <div className="clearfix">
  2202. <FormItem className="half-item"
  2203. {...formItemLayout}
  2204. label="客户姓名"
  2205. >
  2206. <span>{this.state.identifyName}</span>
  2207. </FormItem>
  2208. <FormItem className="half-item"
  2209. {...formItemLayout}
  2210. label="拜访人"
  2211. >
  2212. <span>{this.state.adminName}</span>
  2213. </FormItem>
  2214. <FormItem className="half-item"
  2215. {...formItemLayout}
  2216. label="当前联系人"
  2217. >
  2218. <span>{this.state.contacts}</span>
  2219. </FormItem>
  2220. <FormItem className="half-item"
  2221. {...formItemLayout}
  2222. label="拜访时间"
  2223. >
  2224. <span>{this.state.followTime}</span>
  2225. </FormItem>
  2226. <FormItem className="half-item"
  2227. {...formItemLayout}
  2228. label="联系电话"
  2229. >
  2230. <span>{this.state.nub}</span>
  2231. </FormItem>
  2232. </div>
  2233. <div className="clearfix">
  2234. <FormItem
  2235. labelCol={{ span: 4 }}
  2236. wrapperCol={{ span: 16 }}
  2237. label="拜访备注" >
  2238. <span>{this.state.result}</span>
  2239. </FormItem>
  2240. </div>
  2241. <div className="clearfix">
  2242. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2243. <Spin spinning={this.state.loading}>
  2244. <Table
  2245. rowKey={record => record.id}
  2246. pagination={false}
  2247. columns={this.state.intentionList}
  2248. dataSource={this.state.data}
  2249. />
  2250. </Spin>
  2251. </div>
  2252. </div>
  2253. </div>
  2254. </Spin>}
  2255. </Form>
  2256. </Modal>
  2257. <Modal
  2258. footer=''
  2259. title="业务意向详情"
  2260. width='1200px'
  2261. visible={this.state.businessModul}
  2262. onOk={this.businessIntentionOk}
  2263. onCancel={this.businessIntentionCancel}
  2264. >
  2265. <div className="clearfix">
  2266. <Form horizontal id="demand-form" >
  2267. <Spin spinning={this.state.loading}>
  2268. <div className="clearfix">
  2269. <FormItem className="half-item"
  2270. {...formItemLayout}
  2271. label="意向业务名称" >
  2272. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  2273. </FormItem>
  2274. <FormItem className="half-item"
  2275. {...formItemLayout}
  2276. label="意向时间" >
  2277. <span>{this.state.createTime}</span>
  2278. </FormItem>
  2279. <FormItem className="half-item"
  2280. {...formItemLayout}
  2281. label="客户姓名" >
  2282. <span>{this.state.identifyName}</span>
  2283. </FormItem>
  2284. <FormItem className="half-item"
  2285. {...formItemLayout}
  2286. label="营销员" >
  2287. <span>{this.state.adminName}</span>
  2288. </FormItem>
  2289. <FormItem className="half-item"
  2290. {...formItemLayout}
  2291. label="意向业务进度" >
  2292. <span>{getfllowSituation(this.state.followSituation)}</span>
  2293. </FormItem>
  2294. <FormItem className="half-item"
  2295. {...formItemLayout}
  2296. label="业务客户状态" >
  2297. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  2298. </FormItem>
  2299. </div>
  2300. <div className="clearfix">
  2301. <FormItem className="half-item"
  2302. {...formItemLayout}
  2303. label="业务意向说明" >
  2304. <span>{this.state.remarks}</span>
  2305. </FormItem>
  2306. </div>
  2307. <div className="clearfix">
  2308. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  2309. <div className="clearfix">
  2310. <Spin spinning={this.state.loading}>
  2311. <Table
  2312. pagination={this.state.paginations}
  2313. columns={this.state.businessFollowList}
  2314. dataSource={this.state.visitArrList}
  2315. />
  2316. </Spin>
  2317. </div>
  2318. </div>
  2319. </Spin>
  2320. </Form>
  2321. </div>
  2322. </Modal>
  2323. <Modal
  2324. footer=''
  2325. title="业务跟进详情"
  2326. width='600px'
  2327. visible={this.state.businessFollowModul}
  2328. onOk={this.businessFollowOk}
  2329. onCancel={this.businessFollowCancel}
  2330. >
  2331. <div className="clearfix">
  2332. <Form horizontal id="demand-form" >
  2333. <Spin spinning={this.state.loading}>
  2334. <div className="clearfix">
  2335. <FormItem className="half-item"
  2336. {...formItemLayout}
  2337. label="意向业务名称" >
  2338. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  2339. </FormItem>
  2340. <FormItem className="half-item"
  2341. {...formItemLayout}
  2342. label="意向时间" >
  2343. <span>{this.state.createTimes}</span>
  2344. </FormItem>
  2345. <FormItem className="half-item"
  2346. {...formItemLayout}
  2347. label="客户姓名" >
  2348. <span>{this.state.identifyNames}</span>
  2349. </FormItem>
  2350. <FormItem className="half-item"
  2351. {...formItemLayout}
  2352. label="营销员" >
  2353. <span>{this.state.adminNames}</span>
  2354. </FormItem>
  2355. <FormItem className="half-item"
  2356. {...formItemLayout}
  2357. label="意向业务进度" >
  2358. <span>{getfllowSituation(this.state.followSituations)}</span>
  2359. </FormItem>
  2360. <FormItem className="half-item"
  2361. {...formItemLayout}
  2362. label="业务客户状态" >
  2363. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  2364. </FormItem>
  2365. </div>
  2366. <div className="clearfix">
  2367. <FormItem className="half-item"
  2368. {...formItemLayout}
  2369. label="业务意向说明" >
  2370. <span>{this.state.remarkss}</span>
  2371. </FormItem>
  2372. </div>
  2373. <div className="clearfix">
  2374. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  2375. <FormItem className="half-item"
  2376. {...formItemLayout}
  2377. label="拜访方式" >
  2378. <span>{getContactType(this.state.contactTypes)}</span>
  2379. </FormItem>
  2380. <FormItem className="half-item"
  2381. {...formItemLayout}
  2382. label="联系人" >
  2383. <span>{this.state.contactss}</span>
  2384. </FormItem>
  2385. <FormItem className="half-item"
  2386. {...formItemLayout}
  2387. label="联系电话" >
  2388. <span>{this.state.contactMobiles}</span>
  2389. </FormItem>
  2390. <FormItem className="half-item"
  2391. {...formItemLayout}
  2392. label="拜访时间" >
  2393. <span>{this.state.followTimes}</span>
  2394. </FormItem>
  2395. <FormItem className="half-item"
  2396. {...formItemLayout}
  2397. label="拜访人" >
  2398. <span>{this.state.adminNames}</span>
  2399. </FormItem>
  2400. <div className="clearfix">
  2401. <FormItem className="half-item"
  2402. {...formItemLayout}
  2403. label="拜访备注" >
  2404. <span>{this.state.results}</span>
  2405. </FormItem>
  2406. </div>
  2407. </div>
  2408. </Spin>
  2409. </Form>
  2410. </div>
  2411. </Modal>
  2412. </div >
  2413. );
  2414. }
  2415. }));
  2416. export default QueryCustomer;