identityAuditsOne.jsx 102 KB

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