identityAudits.jsx 85 KB

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