identityAuditsOne.jsx 103 KB

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