identityAudits.jsx 86 KB

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