publicQueryOne.jsx 99 KB

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