identityAuditsOne.jsx 103 KB

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