identityAuditsOne.jsx 103 KB

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