identityAudits.jsx 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269
  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. className="customeDetails"
  1458. title="单位客户详情"
  1459. width='1200px'
  1460. visible={this.state.modal5Visible}
  1461. onOk={this.detailsModal}
  1462. onCancel={this.detailsModal}
  1463. footer=''
  1464. >
  1465. <Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
  1466. <TabPane tab="基本信息" key="1">
  1467. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  1468. <Spin spinning={this.state.loading}>
  1469. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1470. <FormItem className="half-item"
  1471. labelCol={{ span: 4 }}
  1472. wrapperCol={{ span: 18 }}
  1473. label="客户名称"
  1474. >
  1475. <span>{theInformation.identifyName}</span>
  1476. </FormItem>
  1477. </div>
  1478. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1479. <FormItem className="half-item"
  1480. labelCol={{ span: 4 }}
  1481. wrapperCol={{ span: 18 }}
  1482. label="行业">
  1483. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  1484. onChange={(e)=>{this.setState({industry:e})}}>
  1485. {
  1486. industry.map(function (item) {
  1487. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1488. })
  1489. }
  1490. </Select>
  1491. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1492. </FormItem>
  1493. <FormItem className="half-item"
  1494. labelCol={{ span: 4 }}
  1495. wrapperCol={{ span: 18 }}
  1496. label="社会属性"
  1497. >
  1498. <Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
  1499. onChange={(e)=>{this.setState({societyTag:e})}}>
  1500. {
  1501. socialAttribute.map(function (item) {
  1502. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1503. })
  1504. }
  1505. </Select>
  1506. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1507. </FormItem>
  1508. <FormItem className="half-item"
  1509. labelCol={{ span: 4 }}
  1510. wrapperCol={{ span: 18 }}
  1511. label="省-市-区"
  1512. >
  1513. <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  1514. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1515. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1516. </FormItem>
  1517. <FormItem className="half-item"
  1518. labelCol={{ span: 4 }}
  1519. wrapperCol={{ span: 18 }}
  1520. label="通信地址"
  1521. >
  1522. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1523. onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
  1524. </FormItem>
  1525. <FormItem className="half-item"
  1526. labelCol={{ span: 4 }}
  1527. wrapperCol={{ span: 18 }}
  1528. label="固定电话"
  1529. >
  1530. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1531. onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
  1532. </FormItem>
  1533. <FormItem className="half-item"
  1534. labelCol={{ span: 4 }}
  1535. wrapperCol={{ span: 18 }}
  1536. label="客户传真"
  1537. >
  1538. <Input placeholder="客户传真" value={this.state.contactsFax}
  1539. onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
  1540. </FormItem>
  1541. <FormItem className="half-item"
  1542. labelCol={{ span: 4 }}
  1543. wrapperCol={{ span: 18 }}
  1544. label="注册资本"
  1545. >
  1546. <Input placeholder="注册资本" value={this.state.registeredCapital}
  1547. onChange={(e)=>{this.setState({registeredCapital:e.target.value})}}/>
  1548. </FormItem>
  1549. <FormItem className="half-item"
  1550. labelCol={{ span: 4 }}
  1551. wrapperCol={{ span: 18 }}
  1552. label="单位规模"
  1553. >
  1554. <Input placeholder="单位规模" value={this.state.enterpriseScale}
  1555. onChange={(e)=>{this.setState({enterpriseScale:e.target.value})}}/>
  1556. </FormItem>
  1557. <FormItem className="half-item"
  1558. labelCol={{ span: 4 }}
  1559. wrapperCol={{ span: 18 }}
  1560. label="法人名称"
  1561. >
  1562. <Input placeholder="法人名称" value={this.state.legalPerson}
  1563. onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
  1564. </FormItem>
  1565. <FormItem className="half-item"
  1566. labelCol={{ span: 4 }}
  1567. wrapperCol={{ span: 18 }}
  1568. label="身份证号码"
  1569. >
  1570. <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
  1571. onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
  1572. </FormItem>
  1573. <FormItem className="half-item"
  1574. labelCol={{ span: 4 }}
  1575. wrapperCol={{ span: 18 }}
  1576. label="法人电话"
  1577. >
  1578. <Input placeholder="法人电话" value={this.state.legalPersonTel}
  1579. onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
  1580. </FormItem>
  1581. <FormItem className="half-item"
  1582. labelCol={{ span: 4 }}
  1583. wrapperCol={{ span: 18 }}
  1584. label="电子邮箱"
  1585. >
  1586. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1587. onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
  1588. </FormItem>
  1589. <FormItem className="half-item"
  1590. labelCol={{ span: 4 }}
  1591. wrapperCol={{ span: 18 }}
  1592. label="机构代码"
  1593. >
  1594. <Input placeholder="社会同意机构代码" value={this.state.orgCode}
  1595. onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
  1596. </FormItem>
  1597. <FormItem className="half-item"
  1598. labelCol={{ span: 4 }}
  1599. wrapperCol={{ span: 18 }}
  1600. label="实名认证"
  1601. >
  1602. {adminData.isSuperAdmin?<Select placeholder="实名认证"
  1603. value={this.state.auditStatus}
  1604. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  1605. {
  1606. auditStatusL.map(function (item) {
  1607. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1608. })
  1609. }
  1610. </Select>:<span>{getAuditStatus(this.state.auditStatus)}</span>}
  1611. </FormItem>
  1612. <div className="clearfix">
  1613. <FormItem className="half-item"
  1614. labelCol={{ span: 4 }}
  1615. wrapperCol={{ span: 18 }}
  1616. label="业务认证"
  1617. >
  1618. {adminData.isSuperAdmin?<Radio.Group value={this.state.businessAudit} onChange={(e) => {
  1619. this.setState({ businessAudit: e.target.value })
  1620. }}>
  1621. <Radio value={0}>未认证</Radio>
  1622. <Radio value={1}>已认证</Radio>
  1623. </Radio.Group>:<span>{this.state.businessAudit?'是':'否'}</span>}
  1624. </FormItem>
  1625. <FormItem className="half-item"
  1626. labelCol={{ span: 4 }}
  1627. wrapperCol={{ span: 18 }}
  1628. label="高新"
  1629. >
  1630. <Radio.Group value={this.state.highTechZone} onChange={(e) => {
  1631. this.setState({highTechZone:e.target.value})
  1632. }}>
  1633. <Radio value={0}>否</Radio>
  1634. <Radio value={1}>是</Radio>
  1635. </Radio.Group>
  1636. </FormItem>
  1637. <FormItem className="half-item"
  1638. labelCol={{ span: 4 }}
  1639. wrapperCol={{ span: 18 }}
  1640. label="上市"
  1641. >
  1642. <Radio.Group value={this.state.listed} onChange={(e) => {
  1643. this.setState({listed:e.target.value })
  1644. }}>
  1645. <Radio value={0}>否</Radio>
  1646. <Radio value={1}>是</Radio>
  1647. </Radio.Group>
  1648. </FormItem>
  1649. <FormItem className="half-item"
  1650. labelCol={{ span: 4 }}
  1651. wrapperCol={{ span: 18 }}
  1652. label="国际化"
  1653. >
  1654. <Radio.Group value={this.state.international} onChange={(e) => {
  1655. this.setState({international:e.target.value })
  1656. }}>
  1657. <Radio value={0}>否</Radio>
  1658. <Radio value={1}>是</Radio>
  1659. </Radio.Group>
  1660. </FormItem>
  1661. </div>
  1662. <div className="clearfix pictures">
  1663. <FormItem
  1664. labelCol={{ span: 4 }}
  1665. wrapperCol={{ span: 18 }}
  1666. label="机构证(PIC)" >
  1667. <PicturesWalls
  1668. pictureSign="PIC"
  1669. fileList={this.getOrgCodeUrl}
  1670. pictureUrl={this.state.orgCodeUrl} />
  1671. <p>图片建议:图片要清晰。</p>
  1672. </FormItem>
  1673. <FormItem
  1674. labelCol={{ span: 4 }}
  1675. wrapperCol={{ span: 18 }}
  1676. label="单位logo" >
  1677. <PicturesWalls
  1678. pictureSign="logo"
  1679. fileList={this.getCompanyLogoUrl}
  1680. pictureUrl={this.state.companyLogoUrl} />
  1681. <p>图片建议:图片要清晰。</p>
  1682. </FormItem>
  1683. </div>
  1684. <div className="clearfix">
  1685. <FormItem
  1686. labelCol={{ span: 2 }}
  1687. wrapperCol={{ span: 18 }}
  1688. label="业务范围" >
  1689. <Input type="textarea" rows={4} value={this.state.businessScope}
  1690. onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
  1691. </FormItem>
  1692. <FormItem
  1693. labelCol={{ span: 2 }}
  1694. wrapperCol={{ span: 18 }}
  1695. label="单位简介" >
  1696. <Input type="textarea" rows={4} value={this.state.introduction}
  1697. onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
  1698. </FormItem>
  1699. </div>
  1700. </div>
  1701. </Spin>
  1702. </Form> :<Form horizontal id="demand-form">
  1703. <Spin spinning={this.state.loading}>
  1704. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1705. <FormItem className="half-item"
  1706. labelCol={{ span: 4 }}
  1707. wrapperCol={{ span: 18 }}
  1708. label="客户名称"
  1709. >
  1710. <span>{theInformation.identifyName}</span>
  1711. </FormItem>
  1712. </div>
  1713. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1714. <FormItem className="half-item"
  1715. labelCol={{ span: 4 }}
  1716. wrapperCol={{ span: 18 }}
  1717. label="行业"
  1718. >
  1719. <span>{getIndustry(String(theInformation.industry))}</span>
  1720. </FormItem>
  1721. <FormItem className="half-item"
  1722. labelCol={{ span: 4 }}
  1723. wrapperCol={{ span: 18 }}
  1724. label="社会属性"
  1725. >
  1726. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  1727. </FormItem>
  1728. <FormItem className="half-item"
  1729. labelCol={{ span: 4 }}
  1730. wrapperCol={{ span: 18 }}
  1731. label="省-市-区"
  1732. >
  1733. <span>{this.state.proviceCityArea}</span>
  1734. </FormItem>
  1735. <FormItem className="half-item"
  1736. labelCol={{ span: 4 }}
  1737. wrapperCol={{ span: 18 }}
  1738. label="通信地址"
  1739. >
  1740. <span>{theInformation.postalAddress}</span>
  1741. </FormItem>
  1742. <FormItem className="half-item"
  1743. labelCol={{ span: 4 }}
  1744. wrapperCol={{ span: 18 }}
  1745. label="固定电话"
  1746. >
  1747. <span>{theInformation.contactsFixedTel}</span>
  1748. </FormItem>
  1749. <FormItem className="half-item"
  1750. labelCol={{ span: 4 }}
  1751. wrapperCol={{ span: 18 }}
  1752. label="客户传真"
  1753. >
  1754. <span>{theInformation.contactsFax}</span>
  1755. </FormItem>
  1756. <FormItem className="half-item"
  1757. labelCol={{ span: 4 }}
  1758. wrapperCol={{ span: 18 }}
  1759. label="注册资本"
  1760. >
  1761. <span>{theInformation.registeredCapital}</span>
  1762. </FormItem>
  1763. <FormItem className="half-item"
  1764. labelCol={{ span: 4 }}
  1765. wrapperCol={{ span: 18 }}
  1766. label="单位规模"
  1767. >
  1768. <span>{theInformation.enterpriseScale}</span>
  1769. </FormItem>
  1770. <FormItem className="half-item"
  1771. labelCol={{ span: 4 }}
  1772. wrapperCol={{ span: 18 }}
  1773. label="法人名称"
  1774. >
  1775. <span>{theInformation.legalPerson}</span>
  1776. </FormItem>
  1777. <FormItem className="half-item"
  1778. labelCol={{ span: 4 }}
  1779. wrapperCol={{ span: 18 }}
  1780. label="身份证号码"
  1781. >
  1782. <span>{theInformation.legalPersonIdCard}</span>
  1783. </FormItem>
  1784. <FormItem className="half-item"
  1785. labelCol={{ span: 4 }}
  1786. wrapperCol={{ span: 18 }}
  1787. label="法人电话"
  1788. >
  1789. <span>{theInformation.legalPersonTel}</span>
  1790. </FormItem>
  1791. <FormItem className="half-item"
  1792. labelCol={{ span: 4 }}
  1793. wrapperCol={{ span: 18 }}
  1794. label="电子邮箱"
  1795. >
  1796. <span>{theInformation.legalPersonEmail}</span>
  1797. </FormItem>
  1798. <FormItem className="half-item"
  1799. labelCol={{ span: 4 }}
  1800. wrapperCol={{ span: 18 }}
  1801. label="投资机构"
  1802. >
  1803. <span>{this.state.investment?'是':'否'}</span>
  1804. </FormItem>
  1805. <FormItem className="half-item"
  1806. labelCol={{ span: 4 }}
  1807. wrapperCol={{ span: 18 }}
  1808. label="高新"
  1809. >
  1810. <span>{this.state.highTechZone?'是':'否'}</span>
  1811. </FormItem>
  1812. <FormItem className="half-item"
  1813. labelCol={{ span: 4 }}
  1814. wrapperCol={{ span: 18 }}
  1815. label="上市"
  1816. >
  1817. <span>{this.state.listed?'是':'否'}</span>
  1818. </FormItem>
  1819. <FormItem className="half-item"
  1820. labelCol={{ span: 4 }}
  1821. wrapperCol={{ span: 18 }}
  1822. label="国际化"
  1823. >
  1824. <span>{this.state.international?'是':'否'}</span>
  1825. </FormItem>
  1826. <FormItem className="half-item"
  1827. labelCol={{ span: 4 }}
  1828. wrapperCol={{ span: 18 }}
  1829. label="机构代码"
  1830. >
  1831. <span>{theInformation.orgCode}</span>
  1832. </FormItem>
  1833. <div className="clearfix pictures">
  1834. <FormItem
  1835. labelCol={{ span: 4 }}
  1836. wrapperCol={{ span: 18 }}
  1837. label="机构证(PIC)" >
  1838. <div className="clearfix">
  1839. <Upload className="demandDetailShow-upload"
  1840. listType="picture-card"
  1841. fileList={this.state.orgCodeUrl}
  1842. onPreview={(file) => {
  1843. this.setState({
  1844. previewImage: file.url || file.thumbUrl,
  1845. previewVisible: true,
  1846. });
  1847. }} >
  1848. </Upload>
  1849. <Modal maskClosable={false} footer={null}
  1850. visible={this.state.previewVisible}
  1851. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1852. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  1853. </Modal>
  1854. </div>
  1855. </FormItem>
  1856. <FormItem
  1857. labelCol={{ span: 4 }}
  1858. wrapperCol={{ span: 18 }}
  1859. label="单位logo" >
  1860. <div className="clearfix">
  1861. <Upload className="demandDetailShow-upload"
  1862. listType="picture-card"
  1863. fileList={this.state.companyLogoUrl}
  1864. onPreview={(file) => {
  1865. this.setState({
  1866. previewImage: file.url || file.thumbUrl,
  1867. previewVisible: true,
  1868. });
  1869. }} >
  1870. </Upload>
  1871. <Modal maskClosable={false} footer={null}
  1872. visible={this.state.previewVisible}
  1873. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1874. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  1875. </Modal>
  1876. </div>
  1877. </FormItem>
  1878. </div>
  1879. <div className="clearfix">
  1880. <FormItem
  1881. labelCol={{ span: 2 }}
  1882. wrapperCol={{ span: 18 }}
  1883. label="业务范围" >
  1884. <span>{theInformation.businessScope}</span>
  1885. </FormItem>
  1886. <FormItem
  1887. labelCol={{ span: 2 }}
  1888. wrapperCol={{ span: 18 }}
  1889. label="单位简介" >
  1890. <span>{theInformation.introduction}</span>
  1891. </FormItem>
  1892. </div>
  1893. </div>
  1894. </Spin>
  1895. </Form>}
  1896. </TabPane>
  1897. <TabPane tab="联系人信息" key="2">
  1898. <div className="clearfix">
  1899. <Spin spinning={this.state.loading}>
  1900. <Form horizontal id="demand-form" >
  1901. <Table
  1902. pagination={false}
  1903. columns={this.state.ContactsLists}
  1904. dataSource={this.state.contactList}
  1905. />
  1906. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1907. </div>
  1908. </Form>
  1909. </Spin>
  1910. </div>
  1911. </TabPane>
  1912. <TabPane tab="账户信息" key="3">
  1913. <div className="clearfix">
  1914. <Form horizontal id="demand-form" >
  1915. <Spin spinning={this.state.loading} >
  1916. <div className="clearfix">
  1917. <FormItem className="half-item"
  1918. {...formItemLayout}
  1919. label="注册手机号" >
  1920. {adminData.isSuperAdmin?<div><Input value={this.state.mobile} disabled onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  1921. </div>:<span>{this.state.mobile}</span>}
  1922. </FormItem>
  1923. <FormItem className="half-item"
  1924. {...formItemLayout}
  1925. label="注册用户名" >
  1926. {adminData.isSuperAdmin?<Input value={this.state.nickname}
  1927. onChange={(e) => { this.setState({ nickname: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1928. </FormItem>
  1929. <FormItem className="half-item"
  1930. {...formItemLayout}
  1931. label="注册邮箱" >
  1932. {adminData.isSuperAdmin?<Input value={this.state.email}
  1933. onChange={(e) => { this.setState({ email: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1934. </FormItem>
  1935. </div>
  1936. <FormItem className="half-item"
  1937. {...formItemLayout}
  1938. label="客户来源" >
  1939. <span>{this.state.source}</span>
  1940. </FormItem>
  1941. <FormItem className="half-item"
  1942. {...formItemLayout}
  1943. label="客户类型" >
  1944. <span>{this.state.type}</span>
  1945. </FormItem>
  1946. <FormItem className="half-item"
  1947. {...formItemLayout}
  1948. label="创建时间" >
  1949. <span>{this.state.createTimes}</span>
  1950. </FormItem>
  1951. <FormItem className="half-item"
  1952. {...formItemLayout}
  1953. label="账户状态"
  1954. >
  1955. {adminData.isSuperAdmin?<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  1956. {
  1957. statuslist.map(function (item) {
  1958. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1959. })
  1960. }
  1961. </Select>:<span>{getStatuslist(this.state.status)}</span>}
  1962. </FormItem>
  1963. <div className="clearfix">
  1964. <FormItem className="half-item"
  1965. {...formItemLayout}
  1966. label="会员"
  1967. >
  1968. {adminData.isSuperAdmin?<Radio.Group value={this.state.isMember} onChange={(e) => {
  1969. this.setState({ isMember: e.target.value })
  1970. }}>
  1971. <Radio value={0}>否</Radio>
  1972. <Radio value={1}>是</Radio>
  1973. </Radio.Group>:<span>{this.state.isMember?'是':'否'}</span>}
  1974. </FormItem>
  1975. <FormItem className="half-item"
  1976. {...formItemLayout}
  1977. label="会员等级"
  1978. >
  1979. {adminData.isSuperAdmin?<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  1980. {
  1981. lvl.map(function (item) {
  1982. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1983. })
  1984. }
  1985. </Select>:<span>{getLvl(this.state.lvl)}</span>}
  1986. </FormItem>
  1987. <FormItem className="half-item"
  1988. {...formItemLayout}
  1989. label="会员状态"
  1990. >
  1991. {adminData.isSuperAdmin?<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  1992. {
  1993. currentMember.map(function (item) {
  1994. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1995. })
  1996. }
  1997. </Select>:<span>{getCurrentMember(this.state.currentMemberStatus)}</span>}
  1998. </FormItem>
  1999. </div>
  2000. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2001. </div>
  2002. </Spin>
  2003. </Form>
  2004. </div>
  2005. </TabPane>
  2006. <TabPane tab="客户拜访" key="4">
  2007. <div className="clearfix">
  2008. <Spin spinning={this.state.loading}>
  2009. <Table
  2010. pagination={false}
  2011. columns={this.state.visitsList}
  2012. dataSource={this.state.visitArrList}
  2013. onRowClick={this.VisitRowClick}
  2014. />
  2015. </Spin>
  2016. </div>
  2017. </TabPane>
  2018. <TabPane tab="业务意向" key="5">
  2019. <div className="clearfix">
  2020. <Spin spinning={this.state.loading}>
  2021. <Table
  2022. pagination={this.state.paginationt}
  2023. columns={this.state.businessIntentionList}
  2024. dataSource={this.state.dataBusiness}
  2025. />
  2026. </Spin>
  2027. </div>
  2028. </TabPane>
  2029. <TabPane tab="业务订单" key="6">
  2030. </TabPane>
  2031. <TabPane tab="技术需求" key="7">
  2032. </TabPane>
  2033. <TabPane tab="技术成果" key="8">
  2034. </TabPane>
  2035. <TabPane tab="技术专家" key="9">
  2036. </TabPane>
  2037. </Tabs>
  2038. </Modal>
  2039. <Modal
  2040. footer=''
  2041. title="业务意向详情"
  2042. width='1000px'
  2043. visible={this.state.businessModul}
  2044. onOk={this.businessIntentionOk}
  2045. onCancel={this.businessIntentionCancel}
  2046. >
  2047. <div className="clearfix">
  2048. <Form horizontal id="demand-form">
  2049. <Spin spinning={this.state.loading}>
  2050. <div className="clearfix">
  2051. <FormItem className="half-item"
  2052. {...formItemLayout}
  2053. label="意向业务名称" >
  2054. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  2055. </FormItem>
  2056. <FormItem className="half-item"
  2057. {...formItemLayout}
  2058. label="意向时间" >
  2059. <span>{this.state.createTime}</span>
  2060. </FormItem>
  2061. <FormItem className="half-item"
  2062. {...formItemLayout}
  2063. label="客户名称" >
  2064. <span>{this.state.identifyName}</span>
  2065. </FormItem>
  2066. <FormItem className="half-item"
  2067. {...formItemLayout}
  2068. label="营销员" >
  2069. <span>{this.state.adminName}</span>
  2070. </FormItem>
  2071. <FormItem className="half-item"
  2072. {...formItemLayout}
  2073. label="意向业务进度" >
  2074. <span>{getfllowSituation(this.state.followSituation)}</span>
  2075. </FormItem>
  2076. <FormItem className="half-item"
  2077. {...formItemLayout}
  2078. label="业务客户状态" >
  2079. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  2080. </FormItem>
  2081. </div>
  2082. <div className="clearfix">
  2083. <FormItem className="half-item"
  2084. {...formItemLayout}
  2085. label="业务意向说明" >
  2086. <span>{this.state.remarks}</span>
  2087. </FormItem>
  2088. </div>
  2089. <div className="clearfix">
  2090. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  2091. <div className="clearfix">
  2092. <Spin spinning={this.state.loading}>
  2093. <Table
  2094. pagination={this.state.paginations}
  2095. columns={this.state.businessFollowList}
  2096. dataSource={this.state.visitArrList}
  2097. />
  2098. </Spin>
  2099. </div>
  2100. </div>
  2101. </Spin>
  2102. </Form>
  2103. </div>
  2104. </Modal>
  2105. <Modal
  2106. footer=''
  2107. title="业务跟进详情"
  2108. width='600px'
  2109. visible={this.state.businessFollowModul}
  2110. onOk={this.businessFollowOk}
  2111. onCancel={this.businessFollowCancel}
  2112. >
  2113. <div className="clearfix">
  2114. <Form horizontal id="demand-form" >
  2115. <Spin spinning={this.state.loading}>
  2116. <div className="clearfix">
  2117. <FormItem className="half-item"
  2118. {...formItemLayout}
  2119. label="意向业务名称" >
  2120. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  2121. </FormItem>
  2122. <FormItem className="half-item"
  2123. {...formItemLayout}
  2124. label="意向时间" >
  2125. <span>{this.state.createTimes}</span>
  2126. </FormItem>
  2127. <FormItem className="half-item"
  2128. {...formItemLayout}
  2129. label="客户名称" >
  2130. <span>{this.state.identifyNames}</span>
  2131. </FormItem>
  2132. <FormItem className="half-item"
  2133. {...formItemLayout}
  2134. label="营销员" >
  2135. <span>{this.state.adminNames}</span>
  2136. </FormItem>
  2137. <FormItem className="half-item"
  2138. {...formItemLayout}
  2139. label="意向业务进度" >
  2140. <span>{getfllowSituation(this.state.followSituations)}</span>
  2141. </FormItem>
  2142. <FormItem className="half-item"
  2143. {...formItemLayout}
  2144. label="业务客户状态" >
  2145. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  2146. </FormItem>
  2147. </div>
  2148. <div className="clearfix">
  2149. <FormItem className="half-item"
  2150. {...formItemLayout}
  2151. label="业务意向说明" >
  2152. <span>{this.state.remarkss}</span>
  2153. </FormItem>
  2154. </div>
  2155. <div className="clearfix">
  2156. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  2157. <FormItem className="half-item"
  2158. {...formItemLayout}
  2159. label="拜访方式" >
  2160. <span>{getContactType(this.state.contactTypes)}</span>
  2161. </FormItem>
  2162. <FormItem className="half-item"
  2163. {...formItemLayout}
  2164. label="联系人" >
  2165. <span>{this.state.contactss}</span>
  2166. </FormItem>
  2167. <FormItem className="half-item"
  2168. {...formItemLayout}
  2169. label="联系电话" >
  2170. <span>{this.state.contactMobiles}</span>
  2171. </FormItem>
  2172. <FormItem className="half-item"
  2173. {...formItemLayout}
  2174. label="拜访时间" >
  2175. <span>{this.state.followTimes}</span>
  2176. </FormItem>
  2177. <FormItem className="half-item"
  2178. {...formItemLayout}
  2179. label="拜访人" >
  2180. <span>{this.state.adminNames}</span>
  2181. </FormItem>
  2182. <div className="clearfix">
  2183. <FormItem className="half-item"
  2184. {...formItemLayout}
  2185. label="拜访备注" >
  2186. <span>{this.state.results}</span>
  2187. </FormItem>
  2188. </div>
  2189. </div>
  2190. </Spin>
  2191. </Form>
  2192. </div>
  2193. </Modal>
  2194. </div >
  2195. );
  2196. }
  2197. }));
  2198. const Tablees=Form.create()(React.createClass({
  2199. //详情tab切换数据处理
  2200. callbacks(e) {
  2201. this.setState({
  2202. callnubs: e,
  2203. })
  2204. if(e == '1') {
  2205. }
  2206. if(e == '2') {
  2207. }
  2208. },
  2209. getInitialState() {
  2210. return {
  2211. callnubs: "1",
  2212. }
  2213. },
  2214. render() {
  2215. return(
  2216. <div className="clearfix" style={{marginTop:'0px',marginLeft:'20px'}}>
  2217. <Tabs onChange={this.callbacks} type="card" activeKey={this.state.callnubs} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  2218. <TabPane tab="个人客户" key="1" >
  2219. <QueryCustomer />
  2220. </TabPane>
  2221. <TabPane tab="单位客户" key="2">
  2222. <PublicCustomer />
  2223. </TabPane>
  2224. </Tabs>
  2225. </div>
  2226. );
  2227. }
  2228. }));
  2229. export default Tablees;