identityAuditsOne.jsx 103 KB

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