identityAudits.jsx 86 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272
  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. console.log(rowItem);
  707. };
  708. this.setState({
  709. selectedRowKeys: [],
  710. });
  711. $.ajax({
  712. method: "get",
  713. dataType: "json",
  714. crossDomain: false,
  715. url: globalConfig.context + '/api/admin/customer/findOrganizationCustomerDetail',
  716. data: {
  717. uid: deletedIds,
  718. },
  719. success: function(data) {
  720. let thisData = data.data;
  721. console.log(thisData);
  722. $.ajax({
  723. method: "post",
  724. dataType: "json",
  725. crossDomain: false,
  726. url: globalConfig.context + "/api/admin/customer/updateOrganizationCustomer",
  727. data: {
  728. uid: deletedIds, //审核通过的ID
  729. id:thisData.id,
  730. auditStatus:5,
  731. // expert:rowItem.expert,
  732. // expertAudit:rowItem.expertAudit,
  733. }
  734. }).done(function(data) {
  735. if(!data.error.length) {
  736. message.success('已成功通过实名认证申请!');
  737. this.setState({
  738. loading: false,
  739. });
  740. } else {
  741. message.warning(data.error[0].message);
  742. };
  743. this.loadData(this.state.ispage);
  744. }.bind(this));
  745. }.bind(this),
  746. })
  747. },
  748. //审核专家不通过功能
  749. delectRows() {
  750. let deletedIds;
  751. for(let idx = 0; idx < this.state.selectedRows.length; idx++) {
  752. let rowItem = this.state.selectedRows[idx];
  753. if(rowItem.id) {
  754. deletedIds = rowItem.id;
  755. };
  756. };
  757. this.setState({
  758. selectedRowKeys: [],
  759. });
  760. $.ajax({
  761. method: "get",
  762. dataType: "json",
  763. crossDomain: false,
  764. url: globalConfig.context + '/api/admin/customer/findPersonalCustomerDetail',
  765. data: {
  766. uid: deletedIds,
  767. },
  768. success: function(data) {
  769. let thisData = data.data;
  770. console.log(thisData);
  771. $.ajax({
  772. method: "post",
  773. dataType: "json",
  774. crossDomain: false,
  775. url: globalConfig.context + "/api/admin/customer/updatePersonalCustomer",
  776. data: {
  777. uid: deletedIds, //审核通过的ID
  778. id:thisData.id,
  779. auditStatus:4,
  780. }
  781. }).done(function(data) {
  782. if(!data.error.length) {
  783. message.success('已成功驳回实名认证申请!');
  784. this.setState({
  785. loading: false,
  786. });
  787. } else {
  788. message.warning(data.error[0].message);
  789. };
  790. this.loadData(this.state.ispage);
  791. }.bind(this));
  792. }.bind(this),
  793. })
  794. },
  795. getOrgCodeUrl(e) {
  796. this.setState({ orgCodeUrl: e });
  797. },
  798. getCompanyLogoUrl(e) {
  799. this.setState({ companyLogoUrl: e });
  800. },
  801. search() {
  802. this.loadData();
  803. },
  804. reset() {
  805. this.state.internationalSearch = undefined;
  806. this.state.shareTypeSearch = undefined;
  807. this.state.typeSearch = undefined; //名称1
  808. this.state.nameSearch = '';
  809. this.state.addressSearch = [];
  810. this.state.provinceSearch = undefined;
  811. this.state.citySearch = undefined;
  812. this.state.statusSearch = undefined;
  813. this.state.contactsSearch = undefined;
  814. this.state.contactMobileSearch = undefined;
  815. this.state.industrySearch = undefined;
  816. this.state.serviceCertificationSearch = undefined;
  817. this.state.userCertificationSearch = undefined;
  818. this.state.currentMemberStatusSearch = undefined;
  819. this.state.lvlSearch = undefined;
  820. this.state.listedSearch = undefined;
  821. this.state.societyTagSearch = undefined;
  822. this.state.highTechZoneSearch = undefined;
  823. this.state.releaseDate[0] = undefined;
  824. this.state.releaseDate[1] = undefined;
  825. this.loadData();
  826. },
  827. searchSwitch() {
  828. this.setState({
  829. searchMore: !this.state.searchMore
  830. });
  831. },
  832. //整行点击
  833. tableRowClick(record, index) {
  834. this.state.RowData = record;
  835. this.detailsModalOk(record);
  836. this.setState({
  837. callnub:'1',
  838. selectedRowKeys: [],
  839. rowId: record.id,
  840. })
  841. },
  842. VisitRowClick(record, index) {
  843. this.state.keys = false;
  844. this.state.RowData = record;
  845. this.visitModify(record.followId);
  846. this.setState({
  847. selectedRowKeys: [],
  848. delectId: record.followId,
  849. })
  850. },
  851. //点击整行查看详情
  852. //查看基本详情基本信息
  853. loadInformation(record) {
  854. this.RowClick;
  855. $.ajax({
  856. method: "get",
  857. dataType: "json",
  858. crossDomain: false,
  859. url: globalConfig.context + '/api/admin/customer/findOrganizationCustomerDetail',
  860. data: {
  861. uid: record
  862. },
  863. success: function(data) {
  864. let thisData = data.data;
  865. if(!thisData) {
  866. if(data.error && data.error.length) {
  867. message.warning(data.error[0].message);
  868. };
  869. thisData = {};
  870. };
  871. let ProvinceCityArr = [];
  872. let ProvinceS = thisData.locationProvince; //getprovince
  873. let citys = thisData.locationCity;
  874. let Areas = thisData.locationArea;
  875. ProvinceCityArr.push(ProvinceS, citys, Areas);
  876. let cityArea = getprovince(ProvinceS) + '/' + getprovince(citys) + '/' + getprovince(Areas)
  877. this.setState({
  878. InformationId: thisData.id,
  879. InformationUid: thisData.uid,
  880. identifyName: thisData.identifyName,
  881. listed: thisData.listed,
  882. highTechZone: thisData.highTechZone,
  883. orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],
  884. companyLogoUrl: thisData.companyLogoUrl ? splitUrl(thisData.companyLogoUrl, ',', globalConfig.avatarHost + '/upload') : [],
  885. dataInformation: thisData,
  886. ProvinceCity: ProvinceCityArr,
  887. proviceCityArea: ProvinceS ? cityArea : '',
  888. industry: String(thisData.industry) == 'null' ? undefined : String(thisData.industry),
  889. international: thisData.international,
  890. societyTag: thisData.societyTag,
  891. introduction: thisData.introduction,
  892. postalAddress: thisData.postalAddress,
  893. contactsFixedTel: thisData.contactsFixedTel,
  894. contactsFax: thisData.contactsFax,
  895. registeredCapital: thisData.registeredCapital,
  896. enterpriseScale: thisData.enterpriseScale,
  897. legalPerson: thisData.legalPerson,
  898. legalPersonIdCard: thisData.legalPersonIdCard,
  899. legalPersonTel: thisData.legalPersonTel,
  900. legalPersonEmail: thisData.legalPersonEmail,
  901. businessScope: thisData.businessScope,
  902. orgCode: thisData.orgCode,
  903. investment: thisData.investment,
  904. auditStatus: thisData.auditStatus?String(thisData.auditStatus):undefined,
  905. businessAudit: thisData.businessAudit
  906. });
  907. }.bind(this),
  908. }).always(function() {
  909. this.setState({
  910. loading: false
  911. });
  912. }.bind(this));
  913. },
  914. //tab3账户信息请求数据
  915. httpAccount(record) {
  916. this.RowClick;
  917. $.ajax({
  918. method: "get",
  919. dataType: "json",
  920. crossDomain: false,
  921. url: globalConfig.context + '/api/admin/customer/findUserAccountDetail',
  922. data: {
  923. uid: record
  924. },
  925. success: function(data) {
  926. let thisData = data.data;
  927. if(!thisData) {
  928. if(data.error && data.error.length) {
  929. message.warning(data.error[0].message);
  930. };
  931. thisData = {};
  932. };
  933. let sourcecustomer = ''
  934. switch(String(thisData.source)) {
  935. case '0':
  936. sourcecustomer = '注册客户'
  937. break;
  938. case '1':
  939. sourcecustomer = '录入客户'
  940. break;
  941. }
  942. this.setState({
  943. Accountuid: thisData.id,
  944. mobile: thisData.mobile,
  945. nickname: thisData.nickname,
  946. email: thisData.email,
  947. type: getcustomerTyp(String(thisData.type)),
  948. source: sourcecustomer,
  949. isMember: thisData.isMember,
  950. currentMemberStatus: String(thisData.currentMemberStatus),
  951. lvl: String(thisData.lvl),
  952. status: String(thisData.status),
  953. createTimes: thisData.createTimes,
  954. });
  955. }.bind(this),
  956. }).always(function() {
  957. this.setState({
  958. loading: false
  959. });
  960. }.bind(this));
  961. },
  962. detailsModalOk(e) {
  963. this.setState({ modal5Visible: true }); //需要一个请求数据
  964. this.loadInformation(e.id);
  965. this.contactLists(e.id);
  966. this.httpAccount(e.id);
  967. this.loadBfVisit(1, e.id);
  968. this.BusinessList(1, e.id);
  969. },
  970. //点击消失函数
  971. detailsModal(e) {
  972. this.setState({
  973. modal5Visible: false
  974. });
  975. },
  976. //拜访modul函数
  977. visitCancel(e) {
  978. this.setState({
  979. visitModul: false
  980. });
  981. },
  982. //tab5进入修改时
  983. //进入修改时
  984. listFollowUp(e) {
  985. $.ajax({
  986. method: "get",
  987. dataType: "json",
  988. crossDomain: false,
  989. url: globalConfig.context + "/api/admin/customer/toUpdateFollowOneBusiness",
  990. data: {
  991. ufbId: e
  992. },
  993. success: function(data) {
  994. let thedata = data.data;
  995. if(!thedata) {
  996. if(data.error && data.error.length) {
  997. message.warning(data.error[0].message);
  998. };
  999. thedata = {};
  1000. };
  1001. this.setState({
  1002. businessGlossoryIds: thedata.businessGlossoryId,
  1003. followSituations: thedata.followSituation,
  1004. customerStatuss: thedata.customerStatus,
  1005. followTimes: thedata.followTime,
  1006. createTimes: thedata.createTime,
  1007. identifyNames: thedata.identifyName,
  1008. contactTypes: parseInt(thedata.contactType),
  1009. results: thedata.result,
  1010. remarkss: thedata.remarks,
  1011. adminNames: thedata.adminName,
  1012. contactss: thedata.contacts,
  1013. contactMobiles: thedata.contactMobile,
  1014. ufbId: thedata.ufbId,
  1015. followIds: thedata.followId,
  1016. });
  1017. }.bind(this),
  1018. }).always(function() {
  1019. this.setState({
  1020. loading: false
  1021. });
  1022. }.bind(this));
  1023. },
  1024. //tab5意向业务
  1025. //意向业务查看列表单个详情
  1026. businessIntentionDetails(e) {
  1027. $.ajax({
  1028. method: "get",
  1029. dataType: "json",
  1030. crossDomain: false,
  1031. url: globalConfig.context + '/api/admin/customer/toUpdateBusiness',
  1032. data: {
  1033. businessId: e.businessId
  1034. },
  1035. success: function(data) {
  1036. let thisData = data.data;
  1037. if(!thisData) {
  1038. if(data.error && data.error.length) {
  1039. message.warning(data.error[0].message);
  1040. };
  1041. thisData = {};
  1042. };
  1043. this.setState({
  1044. businessGlossoryId: thisData.businessGlossoryId,
  1045. identifyName: thisData.identifyName,
  1046. uid: thisData.uid,
  1047. businessId: thisData.businessId,
  1048. followSituation: thisData.followSituation,
  1049. customerStatus: thisData.customerStatus,
  1050. createTime: thisData.createTime,
  1051. followTime: thisData.followTime,
  1052. adminName: thisData.adminName,
  1053. remarks: thisData.remarks,
  1054. result: thisData.result,
  1055. });
  1056. }.bind(this),
  1057. }).always(function() {
  1058. this.loadVisit();
  1059. this.setState({
  1060. loading: false
  1061. });
  1062. }.bind(this));
  1063. this.setState({
  1064. businessModul: true
  1065. })
  1066. },
  1067. //查看跟进记录列表
  1068. loadVisit(pageNo) {
  1069. this.setState({
  1070. loading: true
  1071. });
  1072. $.ajax({
  1073. method: "get",
  1074. dataType: "json",
  1075. crossDomain: false,
  1076. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1077. data: {
  1078. pageNo: pageNo || 1,
  1079. pageSize: this.state.paginations.pageSize,
  1080. uid: this.state.rowId, //名称1
  1081. businessGlossoryId: this.state.businessGlossoryId,
  1082. },
  1083. success: function(data) {
  1084. let theArr = [];
  1085. if(data.error.length || data.data.list == "") {
  1086. if(data.error && data.error.length) {
  1087. message.warning(data.error[0].message);
  1088. };
  1089. } else {
  1090. for(let i = 0; i < data.data.list.length; i++) {
  1091. let thisdata = data.data.list[i];
  1092. theArr.push({
  1093. followId: thisdata.followId,
  1094. followTime: thisdata.followTime,
  1095. identifyName: thisdata.identifyName,
  1096. contacts: thisdata.contacts,
  1097. contactMobile: thisdata.contactMobile,
  1098. result: thisdata.result,
  1099. ufbId: thisdata.ufbId,
  1100. adminName: thisdata.adminName,
  1101. followSituation: thisdata.followSituation,
  1102. customerStatus: thisdata.customerStatus,
  1103. contactType: thisdata.contactType
  1104. });
  1105. };
  1106. this.state.paginations.current = data.data.pageNo;
  1107. this.state.paginations.total = data.data.totalCount;
  1108. };
  1109. this.setState({
  1110. visitArrList: theArr,
  1111. paginations: this.state.paginations
  1112. });
  1113. }.bind(this),
  1114. }).always(function() {
  1115. this.setState({
  1116. loading: false
  1117. });
  1118. }.bind(this));
  1119. },
  1120. //tab3拜访记录
  1121. loadBfVisit(pageNo, uids) {
  1122. this.setState({
  1123. loading: true
  1124. });
  1125. $.ajax({
  1126. method: "get",
  1127. dataType: "json",
  1128. crossDomain: false,
  1129. url: globalConfig.context + '/api/admin/customer/listFollowHistory',
  1130. data: {
  1131. pageNo: pageNo || 1,
  1132. pageSize: this.state.paginationsy.pageSize,
  1133. uid: uids ? uids : this.state.rowId, //名称1
  1134. },
  1135. success: function(data) {
  1136. let theArr = [];
  1137. if(data.error.length || data.data.list == "") {
  1138. if(data.error && data.error.length) {
  1139. message.warning(data.error[0].message);
  1140. };
  1141. } else {
  1142. for(let i = 0; i < data.data.list.length; i++) {
  1143. let thisdata = data.data.list[i];
  1144. theArr.push({
  1145. followId: thisdata.followId,
  1146. followTime: thisdata.followTime,
  1147. identifyName: thisdata.identifyName,
  1148. contacts: thisdata.contacts,
  1149. contactMobile: thisdata.contactMobile,
  1150. result: thisdata.result,
  1151. ufbId: thisdata.ufbId,
  1152. adminName: thisdata.adminName,
  1153. followSituation: thisdata.followSituation,
  1154. customerStatus: thisdata.customerStatus,
  1155. contactType: thisdata.contactType
  1156. });
  1157. };
  1158. this.state.paginationsy.current = data.data.pageNo;
  1159. this.state.paginationsy.total = data.data.totalCount;
  1160. };
  1161. this.setState({
  1162. visitArrList: theArr,
  1163. paginationsy: this.state.paginationsy
  1164. });
  1165. }.bind(this),
  1166. }).always(function() {
  1167. this.setState({
  1168. loading: false
  1169. });
  1170. }.bind(this));
  1171. },
  1172. businessIntentionOk() {
  1173. this.setState({
  1174. businessGlossoryId: '',
  1175. businessModul: false
  1176. })
  1177. },
  1178. businessIntentionCancel() {
  1179. this.setState({
  1180. businessGlossoryId: '',
  1181. businessModul: false
  1182. })
  1183. },
  1184. //业务跟进查看跟多
  1185. businessFollowDetails(e) {
  1186. this.listFollowUp(e.ufbId)
  1187. this.setState({
  1188. businessFollowModul: true
  1189. })
  1190. },
  1191. businessFollowOk(e) {
  1192. this.setState({
  1193. businessFollowModul: false
  1194. })
  1195. },
  1196. businessFollowCancel(e) {
  1197. this.setState({
  1198. businessFollowModul: false
  1199. })
  1200. },
  1201. //详情tab切换数据处理
  1202. callback(e) {
  1203. if(e == '1') {
  1204. this.loadInformation(this.state.rowId)
  1205. }
  1206. if(e == '2') {
  1207. this.contactLists(this.state.rowId)
  1208. }
  1209. if(e == '3') {
  1210. this.httpAccount(this.state.rowId)
  1211. }
  1212. if(e == '4') {
  1213. this.loadBfVisit(1, this.state.rowId);
  1214. }
  1215. if(e == '5') {
  1216. this.BusinessList(1, this.state.rowId);
  1217. }
  1218. if(e == '6') {
  1219. }
  1220. if(e == '7') {
  1221. }
  1222. if(e == '8') {
  1223. }
  1224. if(e == '9') {
  1225. }
  1226. this.setState({
  1227. callnub: e,
  1228. })
  1229. },
  1230. //tab5业务意向
  1231. BusinessList(pageNo, uids) {
  1232. this.setState({
  1233. loading: true
  1234. });
  1235. $.ajax({
  1236. method: "post",
  1237. dataType: "json",
  1238. crossDomain: false,
  1239. url: globalConfig.context + '/api/admin/customer/listBusiness',
  1240. data: {
  1241. pageNo: pageNo || 1,
  1242. pageSize: this.state.paginationt.pageSize,
  1243. uid: uids ? uids : this.state.rowId
  1244. },
  1245. success: function(data) {
  1246. let theArr = [];
  1247. if(data.error.length || data.data.list == "") {
  1248. if(data.error && data.error.length) {
  1249. message.warning(data.error[0].message);
  1250. };
  1251. } else {
  1252. for(let i = 0; i < data.data.list.length; i++) {
  1253. let thisdata = data.data.list[i];
  1254. theArr.push({
  1255. key: i,
  1256. businessId: thisdata.businessId,
  1257. businessName: thisdata.businessName,
  1258. identifyName: thisdata.identifyName,
  1259. followSituation: thisdata.followSituation,
  1260. customerStatus: thisdata.customerStatus,
  1261. adminName: thisdata.adminName,
  1262. createTime: thisdata.createTime
  1263. });
  1264. };
  1265. this.state.paginationt.current = data.data.pageNo;
  1266. this.state.paginationt.total = data.data.totalCount;
  1267. };
  1268. this.setState({
  1269. dataBusiness: theArr,
  1270. paginationt: this.state.paginationt
  1271. });
  1272. }.bind(this),
  1273. }).always(function() {
  1274. this.setState({
  1275. loading: false
  1276. });
  1277. }.bind(this));
  1278. },
  1279. componentWillReceiveProps(nextProps) {
  1280. if(!this.props.visible && nextProps.visible) {
  1281. if(nextProps.data && nextProps.data.id) {
  1282. this.loadData(nextProps.data.id, nextProps.detailApiUrl);
  1283. };
  1284. this.state.data = {};
  1285. this.state.companyLogoUrl = [];
  1286. this.state.orgCodeUrl = [];
  1287. this.loadData(null);
  1288. };
  1289. },
  1290. render() {
  1291. const FormItem = Form.Item
  1292. const rowSelection = {
  1293. selectedRowKeys: this.state.selectedRowKeys,
  1294. onChange: (selectedRowKeys, selectedRows) => {
  1295. this.setState({
  1296. selectedRows: selectedRows.slice(-1),
  1297. selectedRowKeys: selectedRowKeys.slice(-1)
  1298. });
  1299. },
  1300. onSelect: (recordt, selected, selectedRows) => {
  1301. this.setState({
  1302. recordt: recordt.id
  1303. })
  1304. },
  1305. };
  1306. const rowSelections = {
  1307. selectedRowKeys: this.state.selectedRowKey,
  1308. onChange: (selectedRowKey, selectedRow) => {
  1309. this.setState({
  1310. selectedRow: selectedRow.slice(-1),
  1311. selectedRowKey: selectedRowKey.slice(-1)
  1312. });
  1313. },
  1314. onSelect: (records, selected, selectedRow) => {
  1315. this.setState({
  1316. selectedRow: selectedRow.slice(-1),
  1317. records: records.id,
  1318. })
  1319. },
  1320. };
  1321. const hasSelected = this.state.selectedRowKeys.length > 0;
  1322. const { RangePicker } = DatePicker;
  1323. const { getFieldDecorator } = this.props.form;
  1324. const formItemLayout = {
  1325. labelCol: { span: 8 },
  1326. wrapperCol: { span: 14 },
  1327. };
  1328. //const theDatak = this.state.datak || {};
  1329. const theInformation = this.state.dataInformation || {}
  1330. const contactsOption = "";
  1331. const formItemLayput = {
  1332. labelCol: { span: 10 },
  1333. wrapperCol: { span: 14 },
  1334. };
  1335. const contacts = this.state.contacts || '';
  1336. return(
  1337. <div className="user-content" >
  1338. <div className="content-title">
  1339. <span>单位客户实名认证</span>
  1340. </div>
  1341. <div className="user-search">
  1342. <Input placeholder="客户名称"
  1343. value={this.state.nameSearch}
  1344. onChange={(e) => { this.setState({ nameSearch: e.target.value }); }} />
  1345. <Select placeholder="省"
  1346. style={{ width: 80 }}
  1347. value={this.state.provinceSearch}
  1348. onChange={(e) => {this.setState({ provinceSearch: e});}}>
  1349. {this.state.Provinces}
  1350. </Select>
  1351. <span style={{marginRight:'10px'}}>
  1352. <Cascader options={this.state.City} value={this.state.addressSearch} placeholder="选择城市"
  1353. onChange={(e,pre) => { this.setState({ addressSearch: e }) }} />
  1354. </span>
  1355. <span style={{marginRight:'10px'}}>客户类型:</span>
  1356. <Select placeholder="选择客户类型"
  1357. style={{ width: 100 }}
  1358. value={this.state.shareTypeSearch}
  1359. onChange={(e) => { this.setState({ shareTypeSearch: e }) }}>
  1360. <Select.Option value="" >所有客户</Select.Option>
  1361. <Select.Option value="1" >公共客户</Select.Option>
  1362. </Select>
  1363. <Button type="primary" onClick={this.search}>搜索</Button>
  1364. <Button onClick={this.reset}>重置</Button>
  1365. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1366. disabled={!hasSelected}
  1367. onClick={this.delectRow}>审核通过</Button>:''}
  1368. {adminData.isSuperAdmin?<Button type='primary' style={{marginRight:'10px' ,marginLeft:'10px',display:adminData.isSuperAdmin?'inline-block':'none'}}
  1369. disabled={!hasSelected}
  1370. onClick={this.delectRows}>审核不通过</Button>:''}
  1371. <span style={{marginLeft:'10px',marginRight:'20px'}}>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  1372. <div className='clearfix' style={{marginTop:'5px'}}>
  1373. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1374. <RangePicker
  1375. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1376. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1377. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1378. <Select placeholder="账户状态"
  1379. style={{ width: 100 }}
  1380. value={this.state.statusSearch}
  1381. onChange={(e) => { this.setState({ statusSearch: e }) }}>
  1382. <Select.Option value="0" >正常</Select.Option>
  1383. <Select.Option value="2" >锁定</Select.Option>
  1384. </Select>
  1385. <Select placeholder="行业"
  1386. style={{ width: 100 }}
  1387. value={this.state.industrySearch}
  1388. onChange={(e) => { this.setState({ industrySearch: e }) }}>
  1389. {this.state.intentionalOption}
  1390. </Select>
  1391. <span>认证:</span>
  1392. <Select placeholder="业务认证"
  1393. style={{ width: 100 }}
  1394. value={this.state.serviceCertificationSearch}
  1395. onChange={(e) => { this.setState({ serviceCertificationSearch: e }) }}>
  1396. <Select.Option value="0" >未认证</Select.Option>
  1397. <Select.Option value="1" >已认证</Select.Option>
  1398. </Select>
  1399. <span>国际:</span>
  1400. <Select placeholder="国际"
  1401. style={{ width: 100 }}
  1402. value={this.state.internationalSearch}
  1403. onChange={(e) => { this.setState({ internationalSearch: e }) }}>
  1404. <Select.Option value="0" >否</Select.Option>
  1405. <Select.Option value="1" >是</Select.Option>
  1406. </Select>
  1407. <span>高新:</span>
  1408. <Select placeholder="高新"
  1409. style={{ width: 100 }}
  1410. value={this.state.highTechZoneSearch}
  1411. onChange={(e) => { this.setState({ highTechZoneSearch: e }) }}>
  1412. <Select.Option value="0" >否</Select.Option>
  1413. <Select.Option value="1" >是</Select.Option>
  1414. </Select>
  1415. <span>上市:</span>
  1416. <Select placeholder="上市"
  1417. style={{ width: 100 }}
  1418. value={this.state.listedSearch}
  1419. onChange={(e) => { this.setState({ listedSearch: e }) }}>
  1420. <Select.Option value="0" >否</Select.Option>
  1421. <Select.Option value="1" >是</Select.Option>
  1422. </Select>
  1423. <span>会员:</span>
  1424. <Select placeholder="会员等级"
  1425. style={{ width: 100 }}
  1426. value={this.state.lvlSearch}
  1427. onChange={(e) => { this.setState({ lvlSearch: e }) }}>
  1428. {this.state.lvlArrOption}
  1429. </Select>
  1430. <Select placeholder="会员状态"
  1431. style={{ width: 100 }}
  1432. value={this.state.currentMemberStatusSearch}
  1433. onChange={(e) => { this.setState({ currentMemberStatusSearch: e }) }}>
  1434. {this.state.currentMemberArrOption}
  1435. </Select>
  1436. <Select placeholder="社会性质"
  1437. style={{ width: 100 }}
  1438. value={this.state.societyTagSearch}
  1439. onChange={(e) => { this.setState({ societyTagSearch: e }) }}>
  1440. {
  1441. socialAttribute.map(function (item) {
  1442. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1443. })
  1444. }
  1445. </Select>
  1446. </div>
  1447. </div>
  1448. </div>
  1449. <div className="patent-table">
  1450. <Spin spinning={this.state.loading}>
  1451. <Table columns={this.state.columns}
  1452. dataSource={this.state.dataSource}
  1453. rowSelection={rowSelection}
  1454. pagination={this.state.pagination}
  1455. onRowClick={this.tableRowClick}
  1456. />
  1457. </Spin>
  1458. </div>
  1459. <Modal
  1460. className="customeDetails"
  1461. title="单位客户详情"
  1462. width='1200px'
  1463. visible={this.state.modal5Visible}
  1464. onOk={this.detailsModal}
  1465. onCancel={this.detailsModal}
  1466. footer=''
  1467. >
  1468. <Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
  1469. <TabPane tab="基本信息" key="1">
  1470. {adminData.isSuperAdmin?<Form horizontal onSubmit={this.newSubmit} id="demand-form">
  1471. <Spin spinning={this.state.loading}>
  1472. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1473. <FormItem className="half-item"
  1474. labelCol={{ span: 4 }}
  1475. wrapperCol={{ span: 18 }}
  1476. label="客户名称"
  1477. >
  1478. <span>{theInformation.identifyName}</span>
  1479. </FormItem>
  1480. </div>
  1481. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1482. <FormItem className="half-item"
  1483. labelCol={{ span: 4 }}
  1484. wrapperCol={{ span: 18 }}
  1485. label="行业">
  1486. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  1487. onChange={(e)=>{this.setState({industry:e})}}>
  1488. {
  1489. industry.map(function (item) {
  1490. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1491. })
  1492. }
  1493. </Select>
  1494. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1495. </FormItem>
  1496. <FormItem className="half-item"
  1497. labelCol={{ span: 4 }}
  1498. wrapperCol={{ span: 18 }}
  1499. label="社会属性"
  1500. >
  1501. <Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
  1502. onChange={(e)=>{this.setState({societyTag:e})}}>
  1503. {
  1504. socialAttribute.map(function (item) {
  1505. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1506. })
  1507. }
  1508. </Select>
  1509. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1510. </FormItem>
  1511. <FormItem className="half-item"
  1512. labelCol={{ span: 4 }}
  1513. wrapperCol={{ span: 18 }}
  1514. label="省-市-区"
  1515. >
  1516. <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  1517. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1518. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1519. </FormItem>
  1520. <FormItem className="half-item"
  1521. labelCol={{ span: 4 }}
  1522. wrapperCol={{ span: 18 }}
  1523. label="通信地址"
  1524. >
  1525. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1526. onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
  1527. </FormItem>
  1528. <FormItem className="half-item"
  1529. labelCol={{ span: 4 }}
  1530. wrapperCol={{ span: 18 }}
  1531. label="固定电话"
  1532. >
  1533. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1534. onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
  1535. </FormItem>
  1536. <FormItem className="half-item"
  1537. labelCol={{ span: 4 }}
  1538. wrapperCol={{ span: 18 }}
  1539. label="客户传真"
  1540. >
  1541. <Input placeholder="客户传真" value={this.state.contactsFax}
  1542. onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
  1543. </FormItem>
  1544. <FormItem className="half-item"
  1545. labelCol={{ span: 4 }}
  1546. wrapperCol={{ span: 18 }}
  1547. label="注册资本"
  1548. >
  1549. <Input placeholder="注册资本" value={this.state.registeredCapital}
  1550. onChange={(e)=>{this.setState({registeredCapital:e.target.value})}}/>
  1551. </FormItem>
  1552. <FormItem className="half-item"
  1553. labelCol={{ span: 4 }}
  1554. wrapperCol={{ span: 18 }}
  1555. label="单位规模"
  1556. >
  1557. <Input placeholder="单位规模" value={this.state.enterpriseScale}
  1558. onChange={(e)=>{this.setState({enterpriseScale:e.target.value})}}/>
  1559. </FormItem>
  1560. <FormItem className="half-item"
  1561. labelCol={{ span: 4 }}
  1562. wrapperCol={{ span: 18 }}
  1563. label="法人名称"
  1564. >
  1565. <Input placeholder="法人名称" value={this.state.legalPerson}
  1566. onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
  1567. </FormItem>
  1568. <FormItem className="half-item"
  1569. labelCol={{ span: 4 }}
  1570. wrapperCol={{ span: 18 }}
  1571. label="身份证号码"
  1572. >
  1573. <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
  1574. onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
  1575. </FormItem>
  1576. <FormItem className="half-item"
  1577. labelCol={{ span: 4 }}
  1578. wrapperCol={{ span: 18 }}
  1579. label="法人电话"
  1580. >
  1581. <Input placeholder="法人电话" value={this.state.legalPersonTel}
  1582. onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
  1583. </FormItem>
  1584. <FormItem className="half-item"
  1585. labelCol={{ span: 4 }}
  1586. wrapperCol={{ span: 18 }}
  1587. label="电子邮箱"
  1588. >
  1589. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1590. onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
  1591. </FormItem>
  1592. <FormItem className="half-item"
  1593. labelCol={{ span: 4 }}
  1594. wrapperCol={{ span: 18 }}
  1595. label="机构代码"
  1596. >
  1597. <Input placeholder="社会同意机构代码" value={this.state.orgCode}
  1598. onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
  1599. </FormItem>
  1600. <FormItem className="half-item"
  1601. labelCol={{ span: 4 }}
  1602. wrapperCol={{ span: 18 }}
  1603. label="实名认证"
  1604. >
  1605. {adminData.isSuperAdmin?<Select placeholder="实名认证"
  1606. value={this.state.auditStatus}
  1607. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  1608. {
  1609. auditStatusL.map(function (item) {
  1610. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1611. })
  1612. }
  1613. </Select>:<span>{getAuditStatus(this.state.auditStatus)}</span>}
  1614. </FormItem>
  1615. <div className="clearfix">
  1616. <FormItem className="half-item"
  1617. labelCol={{ span: 4 }}
  1618. wrapperCol={{ span: 18 }}
  1619. label="业务认证"
  1620. >
  1621. {adminData.isSuperAdmin?<Radio.Group value={this.state.businessAudit} onChange={(e) => {
  1622. this.setState({ businessAudit: e.target.value })
  1623. }}>
  1624. <Radio value={0}>未认证</Radio>
  1625. <Radio value={1}>已认证</Radio>
  1626. </Radio.Group>:<span>{this.state.businessAudit?'是':'否'}</span>}
  1627. </FormItem>
  1628. <FormItem className="half-item"
  1629. labelCol={{ span: 4 }}
  1630. wrapperCol={{ span: 18 }}
  1631. label="高新"
  1632. >
  1633. <Radio.Group value={this.state.highTechZone} onChange={(e) => {
  1634. this.setState({highTechZone:e.target.value})
  1635. }}>
  1636. <Radio value={0}>否</Radio>
  1637. <Radio value={1}>是</Radio>
  1638. </Radio.Group>
  1639. </FormItem>
  1640. <FormItem className="half-item"
  1641. labelCol={{ span: 4 }}
  1642. wrapperCol={{ span: 18 }}
  1643. label="上市"
  1644. >
  1645. <Radio.Group value={this.state.listed} onChange={(e) => {
  1646. this.setState({listed:e.target.value })
  1647. }}>
  1648. <Radio value={0}>否</Radio>
  1649. <Radio value={1}>是</Radio>
  1650. </Radio.Group>
  1651. </FormItem>
  1652. <FormItem className="half-item"
  1653. labelCol={{ span: 4 }}
  1654. wrapperCol={{ span: 18 }}
  1655. label="国际化"
  1656. >
  1657. <Radio.Group value={this.state.international} onChange={(e) => {
  1658. this.setState({international:e.target.value })
  1659. }}>
  1660. <Radio value={0}>否</Radio>
  1661. <Radio value={1}>是</Radio>
  1662. </Radio.Group>
  1663. </FormItem>
  1664. </div>
  1665. <div className="clearfix pictures">
  1666. <FormItem
  1667. labelCol={{ span: 4 }}
  1668. wrapperCol={{ span: 18 }}
  1669. label="机构证(PIC)" >
  1670. <PicturesWalls
  1671. pictureSign="PIC"
  1672. fileList={this.getOrgCodeUrl}
  1673. pictureUrl={this.state.orgCodeUrl} />
  1674. <p>图片建议:图片要清晰。</p>
  1675. </FormItem>
  1676. <FormItem
  1677. labelCol={{ span: 4 }}
  1678. wrapperCol={{ span: 18 }}
  1679. label="单位logo" >
  1680. <PicturesWalls
  1681. pictureSign="logo"
  1682. fileList={this.getCompanyLogoUrl}
  1683. pictureUrl={this.state.companyLogoUrl} />
  1684. <p>图片建议:图片要清晰。</p>
  1685. </FormItem>
  1686. </div>
  1687. <div className="clearfix">
  1688. <FormItem
  1689. labelCol={{ span: 2 }}
  1690. wrapperCol={{ span: 18 }}
  1691. label="业务范围" >
  1692. <Input type="textarea" rows={4} value={this.state.businessScope}
  1693. onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
  1694. </FormItem>
  1695. <FormItem
  1696. labelCol={{ span: 2 }}
  1697. wrapperCol={{ span: 18 }}
  1698. label="单位简介" >
  1699. <Input type="textarea" rows={4} value={this.state.introduction}
  1700. onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
  1701. </FormItem>
  1702. </div>
  1703. </div>
  1704. </Spin>
  1705. </Form> :<Form horizontal id="demand-form">
  1706. <Spin spinning={this.state.loading}>
  1707. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1708. <FormItem className="half-item"
  1709. labelCol={{ span: 4 }}
  1710. wrapperCol={{ span: 18 }}
  1711. label="客户名称"
  1712. >
  1713. <span>{theInformation.identifyName}</span>
  1714. </FormItem>
  1715. </div>
  1716. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1717. <FormItem className="half-item"
  1718. labelCol={{ span: 4 }}
  1719. wrapperCol={{ span: 18 }}
  1720. label="行业"
  1721. >
  1722. <span>{getIndustry(String(theInformation.industry))}</span>
  1723. </FormItem>
  1724. <FormItem className="half-item"
  1725. labelCol={{ span: 4 }}
  1726. wrapperCol={{ span: 18 }}
  1727. label="社会属性"
  1728. >
  1729. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  1730. </FormItem>
  1731. <FormItem className="half-item"
  1732. labelCol={{ span: 4 }}
  1733. wrapperCol={{ span: 18 }}
  1734. label="省-市-区"
  1735. >
  1736. <span>{this.state.proviceCityArea}</span>
  1737. </FormItem>
  1738. <FormItem className="half-item"
  1739. labelCol={{ span: 4 }}
  1740. wrapperCol={{ span: 18 }}
  1741. label="通信地址"
  1742. >
  1743. <span>{theInformation.postalAddress}</span>
  1744. </FormItem>
  1745. <FormItem className="half-item"
  1746. labelCol={{ span: 4 }}
  1747. wrapperCol={{ span: 18 }}
  1748. label="固定电话"
  1749. >
  1750. <span>{theInformation.contactsFixedTel}</span>
  1751. </FormItem>
  1752. <FormItem className="half-item"
  1753. labelCol={{ span: 4 }}
  1754. wrapperCol={{ span: 18 }}
  1755. label="客户传真"
  1756. >
  1757. <span>{theInformation.contactsFax}</span>
  1758. </FormItem>
  1759. <FormItem className="half-item"
  1760. labelCol={{ span: 4 }}
  1761. wrapperCol={{ span: 18 }}
  1762. label="注册资本"
  1763. >
  1764. <span>{theInformation.registeredCapital}</span>
  1765. </FormItem>
  1766. <FormItem className="half-item"
  1767. labelCol={{ span: 4 }}
  1768. wrapperCol={{ span: 18 }}
  1769. label="单位规模"
  1770. >
  1771. <span>{theInformation.enterpriseScale}</span>
  1772. </FormItem>
  1773. <FormItem className="half-item"
  1774. labelCol={{ span: 4 }}
  1775. wrapperCol={{ span: 18 }}
  1776. label="法人名称"
  1777. >
  1778. <span>{theInformation.legalPerson}</span>
  1779. </FormItem>
  1780. <FormItem className="half-item"
  1781. labelCol={{ span: 4 }}
  1782. wrapperCol={{ span: 18 }}
  1783. label="身份证号码"
  1784. >
  1785. <span>{theInformation.legalPersonIdCard}</span>
  1786. </FormItem>
  1787. <FormItem className="half-item"
  1788. labelCol={{ span: 4 }}
  1789. wrapperCol={{ span: 18 }}
  1790. label="法人电话"
  1791. >
  1792. <span>{theInformation.legalPersonTel}</span>
  1793. </FormItem>
  1794. <FormItem className="half-item"
  1795. labelCol={{ span: 4 }}
  1796. wrapperCol={{ span: 18 }}
  1797. label="电子邮箱"
  1798. >
  1799. <span>{theInformation.legalPersonEmail}</span>
  1800. </FormItem>
  1801. <FormItem className="half-item"
  1802. labelCol={{ span: 4 }}
  1803. wrapperCol={{ span: 18 }}
  1804. label="投资机构"
  1805. >
  1806. <span>{this.state.investment?'是':'否'}</span>
  1807. </FormItem>
  1808. <FormItem className="half-item"
  1809. labelCol={{ span: 4 }}
  1810. wrapperCol={{ span: 18 }}
  1811. label="高新"
  1812. >
  1813. <span>{this.state.highTechZone?'是':'否'}</span>
  1814. </FormItem>
  1815. <FormItem className="half-item"
  1816. labelCol={{ span: 4 }}
  1817. wrapperCol={{ span: 18 }}
  1818. label="上市"
  1819. >
  1820. <span>{this.state.listed?'是':'否'}</span>
  1821. </FormItem>
  1822. <FormItem className="half-item"
  1823. labelCol={{ span: 4 }}
  1824. wrapperCol={{ span: 18 }}
  1825. label="国际化"
  1826. >
  1827. <span>{this.state.international?'是':'否'}</span>
  1828. </FormItem>
  1829. <FormItem className="half-item"
  1830. labelCol={{ span: 4 }}
  1831. wrapperCol={{ span: 18 }}
  1832. label="机构代码"
  1833. >
  1834. <span>{theInformation.orgCode}</span>
  1835. </FormItem>
  1836. <div className="clearfix pictures">
  1837. <FormItem
  1838. labelCol={{ span: 4 }}
  1839. wrapperCol={{ span: 18 }}
  1840. label="机构证(PIC)" >
  1841. <div className="clearfix">
  1842. <Upload className="demandDetailShow-upload"
  1843. listType="picture-card"
  1844. fileList={this.state.orgCodeUrl}
  1845. onPreview={(file) => {
  1846. this.setState({
  1847. previewImage: file.url || file.thumbUrl,
  1848. previewVisible: true,
  1849. });
  1850. }} >
  1851. </Upload>
  1852. <Modal maskClosable={false} footer={null}
  1853. visible={this.state.previewVisible}
  1854. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1855. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  1856. </Modal>
  1857. </div>
  1858. </FormItem>
  1859. <FormItem
  1860. labelCol={{ span: 4 }}
  1861. wrapperCol={{ span: 18 }}
  1862. label="单位logo" >
  1863. <div className="clearfix">
  1864. <Upload className="demandDetailShow-upload"
  1865. listType="picture-card"
  1866. fileList={this.state.companyLogoUrl}
  1867. onPreview={(file) => {
  1868. this.setState({
  1869. previewImage: file.url || file.thumbUrl,
  1870. previewVisible: true,
  1871. });
  1872. }} >
  1873. </Upload>
  1874. <Modal maskClosable={false} footer={null}
  1875. visible={this.state.previewVisible}
  1876. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1877. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  1878. </Modal>
  1879. </div>
  1880. </FormItem>
  1881. </div>
  1882. <div className="clearfix">
  1883. <FormItem
  1884. labelCol={{ span: 2 }}
  1885. wrapperCol={{ span: 18 }}
  1886. label="业务范围" >
  1887. <span>{theInformation.businessScope}</span>
  1888. </FormItem>
  1889. <FormItem
  1890. labelCol={{ span: 2 }}
  1891. wrapperCol={{ span: 18 }}
  1892. label="单位简介" >
  1893. <span>{theInformation.introduction}</span>
  1894. </FormItem>
  1895. </div>
  1896. </div>
  1897. </Spin>
  1898. </Form>}
  1899. </TabPane>
  1900. <TabPane tab="联系人信息" key="2">
  1901. <div className="clearfix">
  1902. <Spin spinning={this.state.loading}>
  1903. <Form horizontal id="demand-form" >
  1904. <Table
  1905. pagination={false}
  1906. columns={this.state.ContactsLists}
  1907. dataSource={this.state.contactList}
  1908. />
  1909. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1910. </div>
  1911. </Form>
  1912. </Spin>
  1913. </div>
  1914. </TabPane>
  1915. <TabPane tab="账户信息" key="3">
  1916. <div className="clearfix">
  1917. <Form horizontal id="demand-form" >
  1918. <Spin spinning={this.state.loading} >
  1919. <div className="clearfix">
  1920. <FormItem className="half-item"
  1921. {...formItemLayout}
  1922. label="注册手机号" >
  1923. {adminData.isSuperAdmin?<div><Input value={this.state.mobile} disabled onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  1924. </div>:<span>{this.state.mobile}</span>}
  1925. </FormItem>
  1926. <FormItem className="half-item"
  1927. {...formItemLayout}
  1928. label="注册用户名" >
  1929. {adminData.isSuperAdmin?<Input value={this.state.nickname}
  1930. onChange={(e) => { this.setState({ nickname: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1931. </FormItem>
  1932. <FormItem className="half-item"
  1933. {...formItemLayout}
  1934. label="注册邮箱" >
  1935. {adminData.isSuperAdmin?<Input value={this.state.email}
  1936. onChange={(e) => { this.setState({ email: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1937. </FormItem>
  1938. </div>
  1939. <FormItem className="half-item"
  1940. {...formItemLayout}
  1941. label="客户来源" >
  1942. <span>{this.state.source}</span>
  1943. </FormItem>
  1944. <FormItem className="half-item"
  1945. {...formItemLayout}
  1946. label="客户类型" >
  1947. <span>{this.state.type}</span>
  1948. </FormItem>
  1949. <FormItem className="half-item"
  1950. {...formItemLayout}
  1951. label="创建时间" >
  1952. <span>{this.state.createTimes}</span>
  1953. </FormItem>
  1954. <FormItem className="half-item"
  1955. {...formItemLayout}
  1956. label="账户状态"
  1957. >
  1958. {adminData.isSuperAdmin?<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  1959. {
  1960. statuslist.map(function (item) {
  1961. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1962. })
  1963. }
  1964. </Select>:<span>{getStatuslist(this.state.status)}</span>}
  1965. </FormItem>
  1966. <div className="clearfix">
  1967. <FormItem className="half-item"
  1968. {...formItemLayout}
  1969. label="会员"
  1970. >
  1971. {adminData.isSuperAdmin?<Radio.Group value={this.state.isMember} onChange={(e) => {
  1972. this.setState({ isMember: e.target.value })
  1973. }}>
  1974. <Radio value={0}>否</Radio>
  1975. <Radio value={1}>是</Radio>
  1976. </Radio.Group>:<span>{this.state.isMember?'是':'否'}</span>}
  1977. </FormItem>
  1978. <FormItem className="half-item"
  1979. {...formItemLayout}
  1980. label="会员等级"
  1981. >
  1982. {adminData.isSuperAdmin?<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  1983. {
  1984. lvl.map(function (item) {
  1985. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1986. })
  1987. }
  1988. </Select>:<span>{getLvl(this.state.lvl)}</span>}
  1989. </FormItem>
  1990. <FormItem className="half-item"
  1991. {...formItemLayout}
  1992. label="会员状态"
  1993. >
  1994. {adminData.isSuperAdmin?<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  1995. {
  1996. currentMember.map(function (item) {
  1997. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1998. })
  1999. }
  2000. </Select>:<span>{getCurrentMember(this.state.currentMemberStatus)}</span>}
  2001. </FormItem>
  2002. </div>
  2003. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  2004. </div>
  2005. </Spin>
  2006. </Form>
  2007. </div>
  2008. </TabPane>
  2009. <TabPane tab="客户拜访" key="4">
  2010. <div className="clearfix">
  2011. <Spin spinning={this.state.loading}>
  2012. <Table
  2013. pagination={false}
  2014. columns={this.state.visitsList}
  2015. dataSource={this.state.visitArrList}
  2016. onRowClick={this.VisitRowClick}
  2017. />
  2018. </Spin>
  2019. </div>
  2020. </TabPane>
  2021. <TabPane tab="业务意向" key="5">
  2022. <div className="clearfix">
  2023. <Spin spinning={this.state.loading}>
  2024. <Table
  2025. pagination={this.state.paginationt}
  2026. columns={this.state.businessIntentionList}
  2027. dataSource={this.state.dataBusiness}
  2028. />
  2029. </Spin>
  2030. </div>
  2031. </TabPane>
  2032. <TabPane tab="业务订单" key="6">
  2033. </TabPane>
  2034. <TabPane tab="技术需求" key="7">
  2035. </TabPane>
  2036. <TabPane tab="技术成果" key="8">
  2037. </TabPane>
  2038. <TabPane tab="技术专家" key="9">
  2039. </TabPane>
  2040. </Tabs>
  2041. </Modal>
  2042. <Modal
  2043. footer=''
  2044. title="业务意向详情"
  2045. width='1000px'
  2046. visible={this.state.businessModul}
  2047. onOk={this.businessIntentionOk}
  2048. onCancel={this.businessIntentionCancel}
  2049. >
  2050. <div className="clearfix">
  2051. <Form horizontal id="demand-form">
  2052. <Spin spinning={this.state.loading}>
  2053. <div className="clearfix">
  2054. <FormItem className="half-item"
  2055. {...formItemLayout}
  2056. label="意向业务名称" >
  2057. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  2058. </FormItem>
  2059. <FormItem className="half-item"
  2060. {...formItemLayout}
  2061. label="意向时间" >
  2062. <span>{this.state.createTime}</span>
  2063. </FormItem>
  2064. <FormItem className="half-item"
  2065. {...formItemLayout}
  2066. label="客户名称" >
  2067. <span>{this.state.identifyName}</span>
  2068. </FormItem>
  2069. <FormItem className="half-item"
  2070. {...formItemLayout}
  2071. label="营销员" >
  2072. <span>{this.state.adminName}</span>
  2073. </FormItem>
  2074. <FormItem className="half-item"
  2075. {...formItemLayout}
  2076. label="意向业务进度" >
  2077. <span>{getfllowSituation(this.state.followSituation)}</span>
  2078. </FormItem>
  2079. <FormItem className="half-item"
  2080. {...formItemLayout}
  2081. label="业务客户状态" >
  2082. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  2083. </FormItem>
  2084. </div>
  2085. <div className="clearfix">
  2086. <FormItem className="half-item"
  2087. {...formItemLayout}
  2088. label="业务意向说明" >
  2089. <span>{this.state.remarks}</span>
  2090. </FormItem>
  2091. </div>
  2092. <div className="clearfix">
  2093. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  2094. <div className="clearfix">
  2095. <Spin spinning={this.state.loading}>
  2096. <Table
  2097. pagination={this.state.paginations}
  2098. columns={this.state.businessFollowList}
  2099. dataSource={this.state.visitArrList}
  2100. />
  2101. </Spin>
  2102. </div>
  2103. </div>
  2104. </Spin>
  2105. </Form>
  2106. </div>
  2107. </Modal>
  2108. <Modal
  2109. footer=''
  2110. title="业务跟进详情"
  2111. width='600px'
  2112. visible={this.state.businessFollowModul}
  2113. onOk={this.businessFollowOk}
  2114. onCancel={this.businessFollowCancel}
  2115. >
  2116. <div className="clearfix">
  2117. <Form horizontal id="demand-form" >
  2118. <Spin spinning={this.state.loading}>
  2119. <div className="clearfix">
  2120. <FormItem className="half-item"
  2121. {...formItemLayout}
  2122. label="意向业务名称" >
  2123. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  2124. </FormItem>
  2125. <FormItem className="half-item"
  2126. {...formItemLayout}
  2127. label="意向时间" >
  2128. <span>{this.state.createTimes}</span>
  2129. </FormItem>
  2130. <FormItem className="half-item"
  2131. {...formItemLayout}
  2132. label="客户名称" >
  2133. <span>{this.state.identifyNames}</span>
  2134. </FormItem>
  2135. <FormItem className="half-item"
  2136. {...formItemLayout}
  2137. label="营销员" >
  2138. <span>{this.state.adminNames}</span>
  2139. </FormItem>
  2140. <FormItem className="half-item"
  2141. {...formItemLayout}
  2142. label="意向业务进度" >
  2143. <span>{getfllowSituation(this.state.followSituations)}</span>
  2144. </FormItem>
  2145. <FormItem className="half-item"
  2146. {...formItemLayout}
  2147. label="业务客户状态" >
  2148. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  2149. </FormItem>
  2150. </div>
  2151. <div className="clearfix">
  2152. <FormItem className="half-item"
  2153. {...formItemLayout}
  2154. label="业务意向说明" >
  2155. <span>{this.state.remarkss}</span>
  2156. </FormItem>
  2157. </div>
  2158. <div className="clearfix">
  2159. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  2160. <FormItem className="half-item"
  2161. {...formItemLayout}
  2162. label="拜访方式" >
  2163. <span>{getContactType(this.state.contactTypes)}</span>
  2164. </FormItem>
  2165. <FormItem className="half-item"
  2166. {...formItemLayout}
  2167. label="联系人" >
  2168. <span>{this.state.contactss}</span>
  2169. </FormItem>
  2170. <FormItem className="half-item"
  2171. {...formItemLayout}
  2172. label="联系电话" >
  2173. <span>{this.state.contactMobiles}</span>
  2174. </FormItem>
  2175. <FormItem className="half-item"
  2176. {...formItemLayout}
  2177. label="拜访时间" >
  2178. <span>{this.state.followTimes}</span>
  2179. </FormItem>
  2180. <FormItem className="half-item"
  2181. {...formItemLayout}
  2182. label="拜访人" >
  2183. <span>{this.state.adminNames}</span>
  2184. </FormItem>
  2185. <div className="clearfix">
  2186. <FormItem className="half-item"
  2187. {...formItemLayout}
  2188. label="拜访备注" >
  2189. <span>{this.state.results}</span>
  2190. </FormItem>
  2191. </div>
  2192. </div>
  2193. </Spin>
  2194. </Form>
  2195. </div>
  2196. </Modal>
  2197. </div >
  2198. );
  2199. }
  2200. }));
  2201. const Tablees=Form.create()(React.createClass({
  2202. //详情tab切换数据处理
  2203. callbacks(e) {
  2204. this.setState({
  2205. callnubs: e,
  2206. })
  2207. if(e == '1') {
  2208. }
  2209. if(e == '2') {
  2210. }
  2211. },
  2212. getInitialState() {
  2213. return {
  2214. callnubs: "1",
  2215. }
  2216. },
  2217. render() {
  2218. return(
  2219. <div className="clearfix" style={{marginTop:'0px',marginLeft:'20px'}}>
  2220. <Tabs onChange={this.callbacks} type="card" activeKey={this.state.callnubs} style={{paddingLeft:'15px',paddingRight:'15px',marginRight:'20px'}}>
  2221. <TabPane tab="个人客户" key="1" >
  2222. <QueryCustomer />
  2223. </TabPane>
  2224. <TabPane tab="单位客户" key="2">
  2225. <PublicCustomer />
  2226. </TabPane>
  2227. </Tabs>
  2228. </div>
  2229. );
  2230. }
  2231. }));
  2232. export default Tablees;