expertQuery.jsx 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450
  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 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. pagination={false}
  1877. columns={this.state.ContactsLists}
  1878. dataSource={this.state.contactList}
  1879. />
  1880. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1881. </div>
  1882. </Form>
  1883. </Spin>
  1884. </div>
  1885. </TabPane>
  1886. <TabPane tab="账户信息" key="3">
  1887. <div className="clearfix">
  1888. {adminData.isSuperAdmin?<Form horizontal id="demand-form" >
  1889. <Spin spinning={this.state.loading} >
  1890. <FormItem className="half-item"
  1891. {...formItemLayout}
  1892. label="注册手机号" >
  1893. <Input value={this.state.mobile} disabled
  1894. onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  1895. </FormItem>
  1896. <FormItem className="half-item"
  1897. {...formItemLayout}
  1898. label="注册用户名" >
  1899. <Input value={this.state.nickname} onChange={(e) => { this.setState({ nickname: e.target.value }); }} />
  1900. </FormItem>
  1901. <FormItem className="half-item"
  1902. {...formItemLayout}
  1903. label="注册邮箱" >
  1904. <Input value={this.state.email} onChange={(e) => { this.setState({ email: e.target.value }); }} />
  1905. </FormItem>
  1906. <div className="clearfix">
  1907. <FormItem className="half-item"
  1908. {...formItemLayout}
  1909. label="客户来源" >
  1910. <span>{this.state.source}</span>
  1911. </FormItem>
  1912. <FormItem className="half-item"
  1913. {...formItemLayout}
  1914. label="客户类型" >
  1915. <span>{this.state.type}</span>
  1916. </FormItem>
  1917. <FormItem className="half-item"
  1918. {...formItemLayout}
  1919. label="创建时间" >
  1920. <span>{this.state.createTimes}</span>
  1921. </FormItem>
  1922. <FormItem className="half-item"
  1923. {...formItemLayout}
  1924. label="账户状态"
  1925. >
  1926. <Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  1927. {
  1928. statuslist.map(function (item) {
  1929. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1930. })
  1931. }
  1932. </Select>
  1933. </FormItem>
  1934. </div>
  1935. <div className="clearfix">
  1936. <FormItem className="half-item"
  1937. {...formItemLayout}
  1938. label="会员"
  1939. >
  1940. <Radio.Group value={this.state.isMember} onChange={(e) => {
  1941. this.setState({ isMember: e.target.value })
  1942. }}>
  1943. <Radio value={0}>否</Radio>
  1944. <Radio value={1}>是</Radio>
  1945. </Radio.Group>
  1946. </FormItem>
  1947. <FormItem className="half-item"
  1948. {...formItemLayout}
  1949. label="会员等级"
  1950. >
  1951. <Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  1952. {
  1953. lvl.map(function (item) {
  1954. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1955. })
  1956. }
  1957. </Select>
  1958. </FormItem>
  1959. <FormItem className="half-item"
  1960. {...formItemLayout}
  1961. label="会员状态"
  1962. >
  1963. <Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  1964. {
  1965. currentMember.map(function (item) {
  1966. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1967. })
  1968. }
  1969. </Select>
  1970. </FormItem>
  1971. </div>
  1972. </Spin>
  1973. </Form> :
  1974. <Form horizontal id="demand-form" >
  1975. <Spin spinning={this.state.loading} >
  1976. <FormItem className="half-item"
  1977. {...formItemLayout}
  1978. label="注册手机号" >
  1979. <span>{this.state.mobile}</span>
  1980. </FormItem>
  1981. <FormItem className="half-item"
  1982. {...formItemLayout}
  1983. label="注册用户名" >
  1984. <span>{this.state.nickname}</span>
  1985. </FormItem>
  1986. <FormItem className="half-item"
  1987. {...formItemLayout}
  1988. label="注册邮箱" >
  1989. <span>{this.state.email}</span>
  1990. </FormItem>
  1991. <div className="clearfix">
  1992. <FormItem className="half-item"
  1993. {...formItemLayout}
  1994. label="客户来源" >
  1995. <span>{this.state.source}</span>
  1996. </FormItem>
  1997. <FormItem className="half-item"
  1998. {...formItemLayout}
  1999. label="客户类型" >
  2000. <span>{this.state.type}</span>
  2001. </FormItem>
  2002. <FormItem className="half-item"
  2003. {...formItemLayout}
  2004. label="创建时间" >
  2005. <span>{this.state.createTimes}</span>
  2006. </FormItem>
  2007. <FormItem className="half-item"
  2008. {...formItemLayout}
  2009. label="账户状态"
  2010. >
  2011. <span>{getStatuslist(this.state.status)}</span>
  2012. </FormItem>
  2013. </div>
  2014. <div className="clearfix">
  2015. <FormItem className="half-item"
  2016. {...formItemLayout}
  2017. label="专家"
  2018. >
  2019. <span>{this.state.isMembers?'是':'否'}</span>
  2020. </FormItem>
  2021. <FormItem className="half-item"
  2022. {...formItemLayout}
  2023. label="明星"
  2024. >
  2025. <span>{this.state.star?'是':'否'}</span>
  2026. </FormItem>
  2027. <FormItem className="half-item"
  2028. {...formItemLayout}
  2029. label="会员"
  2030. >
  2031. <span>{this.state.isMember?'是':'否'}</span>
  2032. </FormItem>
  2033. <FormItem className="half-item"
  2034. {...formItemLayout}
  2035. label="会员等级"
  2036. >
  2037. <span>{getLvl(this.state.lvl)}</span>
  2038. </FormItem>
  2039. <FormItem className="half-item"
  2040. {...formItemLayout}
  2041. label="会员状态"
  2042. >
  2043. <span>{getCurrentMember(this.state.currentMemberStatus)}</span>
  2044. </FormItem>
  2045. </div>
  2046. <FormItem className="half-item"
  2047. {...formItemLayout}
  2048. label="业务认证"
  2049. >
  2050. <span>{this.state.serviceCertification?'已认证':'未认证'}</span>
  2051. </FormItem>
  2052. <FormItem className="half-item"
  2053. {...formItemLayout}
  2054. label="实名认证"
  2055. >
  2056. <span>{getAuditStatus(this.state.userCertification)}</span>
  2057. </FormItem>
  2058. </Spin>
  2059. </Form>
  2060. }
  2061. </div>
  2062. </TabPane>
  2063. <TabPane tab="客户拜访" key="4">
  2064. <div className="clearfix">
  2065. <Spin spinning={this.state.loading}>
  2066. <Table
  2067. pagination={false}
  2068. columns={this.state.visitsList}
  2069. dataSource={this.state.visitArrList}
  2070. onRowClick={this.VisitRowClick}
  2071. />
  2072. </Spin>
  2073. </div>
  2074. </TabPane>
  2075. <TabPane tab="业务意向" key="5">
  2076. <div className="clearfix">
  2077. <Spin spinning={this.state.loading}>
  2078. <Table
  2079. pagination={this.state.paginationt}
  2080. columns={this.state.businessIntentionList}
  2081. dataSource={this.state.dataBusiness}
  2082. />
  2083. </Spin>
  2084. </div>
  2085. </TabPane>
  2086. <TabPane tab="业务订单" key="6">
  2087. </TabPane>
  2088. <TabPane tab="技术需求" key="7">
  2089. </TabPane>
  2090. <TabPane tab="技术成果" key="8">
  2091. </TabPane>
  2092. <TabPane tab="技术专家" key="9">
  2093. </TabPane>
  2094. </Tabs>
  2095. </Modal>
  2096. <Modal
  2097. className="customeDetails"
  2098. footer=''
  2099. title="拜访详情"
  2100. width='1000px'
  2101. visible={this.state.visitModul}
  2102. onOk={this.visitOk}
  2103. onCancel={this.visitCancel}
  2104. >
  2105. <Form horizontal id="demand-form" >
  2106. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  2107. <div className="clearfix">
  2108. <FormItem className="half-item"
  2109. {...formItemLayout}
  2110. label="拜访方式" >
  2111. <Radio.Group value={this.state.contactType} onChange={(e) => {
  2112. this.setState({ contactType: e.target.value })
  2113. }}>
  2114. <Radio value={0}>外出</Radio>
  2115. <Radio value={1}>电话</Radio>
  2116. <Radio value={2}>QQ</Radio>
  2117. <Radio value={3}>微信</Radio>
  2118. <Radio value={4}>邮箱</Radio>
  2119. </Radio.Group>
  2120. </FormItem>
  2121. <FormItem className="half-item"
  2122. {...formItemLayout}
  2123. >
  2124. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  2125. </FormItem>
  2126. <div className="clearfix">
  2127. <FormItem className="half-item"
  2128. {...formItemLayout}
  2129. label="客户姓名"
  2130. >
  2131. <span>{this.state.identifyName}</span>
  2132. </FormItem>
  2133. <FormItem className="half-item"
  2134. {...formItemLayout}
  2135. label="拜访人"
  2136. >
  2137. <span>{this.state.adminName}</span>
  2138. </FormItem>
  2139. <FormItem className="half-item"
  2140. {...formItemLayout}
  2141. label="当前联系人"
  2142. >
  2143. <span>{this.state.contacts}</span>
  2144. </FormItem>
  2145. {this.state.contacts?<span></span>:
  2146. <FormItem className="half-item"
  2147. {...formItemLayout}
  2148. label="联系人"
  2149. >
  2150. <Select placeholder="选择联系人" style={{ width: 140 }}
  2151. value={this.state.lastName}
  2152. onChange={this.hundleName}>
  2153. {this.state.orderStatusOption}
  2154. </Select>
  2155. </FormItem>
  2156. }
  2157. <FormItem className="half-item"
  2158. {...formItemLayout}
  2159. label="拜访时间"
  2160. >
  2161. <span>{this.state.followTime}</span>
  2162. </FormItem>
  2163. <FormItem className="half-item"
  2164. {...formItemLayout}
  2165. label="联系电话"
  2166. >
  2167. <span>{this.state.nub}</span>
  2168. </FormItem>
  2169. </div>
  2170. <div className="clearfix">
  2171. <FormItem
  2172. labelCol={{ span: 4 }}
  2173. wrapperCol={{ span: 16 }}
  2174. label="拜访备注" >
  2175. <Input type="textarea" rows={4} value={this.state.result}
  2176. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  2177. </FormItem>
  2178. </div>
  2179. <div className="clearfix">
  2180. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  2181. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2182. <Spin spinning={this.state.loading}>
  2183. <Table
  2184. rowKey={record => record.id}
  2185. pagination={false}
  2186. columns={this.state.intentionList}
  2187. dataSource={this.state.data}
  2188. />
  2189. </Spin>
  2190. </div>
  2191. </div>
  2192. </div>
  2193. </Spin>:<Spin spinning={this.state.loading}>
  2194. <div className="clearfix">
  2195. <FormItem className="half-item"
  2196. {...formItemLayout}
  2197. label="拜访方式" >
  2198. <span>{getContactType(String(this.state.contactType))}</span>
  2199. </FormItem>
  2200. <div className="clearfix">
  2201. <FormItem className="half-item"
  2202. {...formItemLayout}
  2203. label="客户姓名"
  2204. >
  2205. <span>{this.state.identifyName}</span>
  2206. </FormItem>
  2207. <FormItem className="half-item"
  2208. {...formItemLayout}
  2209. label="拜访人"
  2210. >
  2211. <span>{this.state.adminName}</span>
  2212. </FormItem>
  2213. <FormItem className="half-item"
  2214. {...formItemLayout}
  2215. label="当前联系人"
  2216. >
  2217. <span>{this.state.contacts}</span>
  2218. </FormItem>
  2219. <FormItem className="half-item"
  2220. {...formItemLayout}
  2221. label="拜访时间"
  2222. >
  2223. <span>{this.state.followTime}</span>
  2224. </FormItem>
  2225. <FormItem className="half-item"
  2226. {...formItemLayout}
  2227. label="联系电话"
  2228. >
  2229. <span>{this.state.nub}</span>
  2230. </FormItem>
  2231. </div>
  2232. <div className="clearfix">
  2233. <FormItem
  2234. labelCol={{ span: 4 }}
  2235. wrapperCol={{ span: 16 }}
  2236. label="拜访备注" >
  2237. <span>{this.state.result}</span>
  2238. </FormItem>
  2239. </div>
  2240. <div className="clearfix">
  2241. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2242. <Spin spinning={this.state.loading}>
  2243. <Table
  2244. rowKey={record => record.id}
  2245. pagination={false}
  2246. columns={this.state.intentionList}
  2247. dataSource={this.state.data}
  2248. />
  2249. </Spin>
  2250. </div>
  2251. </div>
  2252. </div>
  2253. </Spin>}
  2254. </Form>
  2255. </Modal>
  2256. <Modal
  2257. footer=''
  2258. title="业务意向详情"
  2259. width='1000px'
  2260. visible={this.state.businessModul}
  2261. onOk={this.businessIntentionOk}
  2262. onCancel={this.businessIntentionCancel}
  2263. >
  2264. <div className="clearfix">
  2265. <Form horizontal id="demand-form" >
  2266. <Spin spinning={this.state.loading}>
  2267. <div className="clearfix">
  2268. <FormItem className="half-item"
  2269. {...formItemLayout}
  2270. label="意向业务名称" >
  2271. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  2272. </FormItem>
  2273. <FormItem className="half-item"
  2274. {...formItemLayout}
  2275. label="意向时间" >
  2276. <span>{this.state.createTime}</span>
  2277. </FormItem>
  2278. <FormItem className="half-item"
  2279. {...formItemLayout}
  2280. label="客户姓名" >
  2281. <span>{this.state.identifyName}</span>
  2282. </FormItem>
  2283. <FormItem className="half-item"
  2284. {...formItemLayout}
  2285. label="营销员" >
  2286. <span>{this.state.adminName}</span>
  2287. </FormItem>
  2288. <FormItem className="half-item"
  2289. {...formItemLayout}
  2290. label="意向业务进度" >
  2291. <span>{getfllowSituation(this.state.followSituation)}</span>
  2292. </FormItem>
  2293. <FormItem className="half-item"
  2294. {...formItemLayout}
  2295. label="业务客户状态" >
  2296. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  2297. </FormItem>
  2298. </div>
  2299. <div className="clearfix">
  2300. <FormItem className="half-item"
  2301. {...formItemLayout}
  2302. label="业务意向说明" >
  2303. <span>{this.state.remarks}</span>
  2304. </FormItem>
  2305. </div>
  2306. <div className="clearfix">
  2307. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  2308. <div className="clearfix">
  2309. <Spin spinning={this.state.loading}>
  2310. <Table
  2311. pagination={this.state.paginations}
  2312. columns={this.state.businessFollowList}
  2313. dataSource={this.state.visitArrList}
  2314. />
  2315. </Spin>
  2316. </div>
  2317. </div>
  2318. </Spin>
  2319. </Form>
  2320. </div>
  2321. </Modal>
  2322. <Modal
  2323. footer=''
  2324. title="业务跟进详情"
  2325. width='600px'
  2326. visible={this.state.businessFollowModul}
  2327. onOk={this.businessFollowOk}
  2328. onCancel={this.businessFollowCancel}
  2329. >
  2330. <div className="clearfix">
  2331. <Form horizontal id="demand-form" >
  2332. <Spin spinning={this.state.loading}>
  2333. <div className="clearfix">
  2334. <FormItem className="half-item"
  2335. {...formItemLayout}
  2336. label="意向业务名称" >
  2337. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  2338. </FormItem>
  2339. <FormItem className="half-item"
  2340. {...formItemLayout}
  2341. label="意向时间" >
  2342. <span>{this.state.createTimes}</span>
  2343. </FormItem>
  2344. <FormItem className="half-item"
  2345. {...formItemLayout}
  2346. label="客户姓名" >
  2347. <span>{this.state.identifyNames}</span>
  2348. </FormItem>
  2349. <FormItem className="half-item"
  2350. {...formItemLayout}
  2351. label="营销员" >
  2352. <span>{this.state.adminNames}</span>
  2353. </FormItem>
  2354. <FormItem className="half-item"
  2355. {...formItemLayout}
  2356. label="意向业务进度" >
  2357. <span>{getfllowSituation(this.state.followSituations)}</span>
  2358. </FormItem>
  2359. <FormItem className="half-item"
  2360. {...formItemLayout}
  2361. label="业务客户状态" >
  2362. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  2363. </FormItem>
  2364. </div>
  2365. <div className="clearfix">
  2366. <FormItem className="half-item"
  2367. {...formItemLayout}
  2368. label="业务意向说明" >
  2369. <span>{this.state.remarkss}</span>
  2370. </FormItem>
  2371. </div>
  2372. <div className="clearfix">
  2373. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  2374. <FormItem className="half-item"
  2375. {...formItemLayout}
  2376. label="拜访方式" >
  2377. <span>{getContactType(this.state.contactTypes)}</span>
  2378. </FormItem>
  2379. <FormItem className="half-item"
  2380. {...formItemLayout}
  2381. label="联系人" >
  2382. <span>{this.state.contactss}</span>
  2383. </FormItem>
  2384. <FormItem className="half-item"
  2385. {...formItemLayout}
  2386. label="联系电话" >
  2387. <span>{this.state.contactMobiles}</span>
  2388. </FormItem>
  2389. <FormItem className="half-item"
  2390. {...formItemLayout}
  2391. label="拜访时间" >
  2392. <span>{this.state.followTimes}</span>
  2393. </FormItem>
  2394. <FormItem className="half-item"
  2395. {...formItemLayout}
  2396. label="拜访人" >
  2397. <span>{this.state.adminNames}</span>
  2398. </FormItem>
  2399. <div className="clearfix">
  2400. <FormItem className="half-item"
  2401. {...formItemLayout}
  2402. label="拜访备注" >
  2403. <span>{this.state.results}</span>
  2404. </FormItem>
  2405. </div>
  2406. </div>
  2407. </Spin>
  2408. </Form>
  2409. </div>
  2410. </Modal>
  2411. </div >
  2412. );
  2413. }
  2414. }));
  2415. export default QueryCustomer;