companyCustomer.jsx 88 KB

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