companyCustomer.jsx 88 KB

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