publicQueryOne.jsx 100 KB

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