companyCustomer.jsx 89 KB

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