companyCustomer.jsx 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214
  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. style={{
  1268. cursor: 'pointer',
  1269. }}
  1270. pagination={this.state.pagination}
  1271. onRowClick={this.tableRowClick}
  1272. />
  1273. </Spin>
  1274. </div>
  1275. <Modal
  1276. maskClosable={false}
  1277. className="customeDetails"
  1278. title="单位客户详情"
  1279. width='1200px'
  1280. visible={this.state.modal5Visible}
  1281. onOk={this.detailsModal}
  1282. onCancel={this.detailsModal}
  1283. footer=''
  1284. >
  1285. <Tabs defaultActiveKey="1" onChange={this.callback} activeKey={this.state.callnub}>
  1286. <TabPane tab="基本信息" key="1">
  1287. {adminData.isSuperAdmin?<Form horizontal id="demand-form">
  1288. <Spin spinning={this.state.loading}>
  1289. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1290. <FormItem className="half-item"
  1291. labelCol={{ span: 4 }}
  1292. wrapperCol={{ span: 18 }}
  1293. label="客户名称"
  1294. >
  1295. <span>{theInformation.identifyName}</span>
  1296. </FormItem>
  1297. </div>
  1298. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1299. <FormItem className="half-item"
  1300. labelCol={{ span: 4 }}
  1301. wrapperCol={{ span: 18 }}
  1302. label="行业">
  1303. <Select placeholder="选择行业" value={this.state.industry} style={{width:'300px'}}
  1304. onChange={(e)=>{this.setState({industry:e})}}>
  1305. {
  1306. industry.map(function (item) {
  1307. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1308. })
  1309. }
  1310. </Select>
  1311. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1312. </FormItem>
  1313. <FormItem className="half-item"
  1314. labelCol={{ span: 4 }}
  1315. wrapperCol={{ span: 18 }}
  1316. label="社会属性"
  1317. >
  1318. <Select placeholder="客户社会属性(必填项)" value={this.state.societyTag} style={{width:'300px'}}
  1319. onChange={(e)=>{this.setState({societyTag:e})}}>
  1320. {
  1321. socialAttribute.map(function (item) {
  1322. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1323. })
  1324. }
  1325. </Select>
  1326. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1327. </FormItem>
  1328. <FormItem className="half-item"
  1329. labelCol={{ span: 4 }}
  1330. wrapperCol={{ span: 18 }}
  1331. label="省-市-区"
  1332. >
  1333. <Cascader options={this.state.Area} value={this.state.ProvinceCity} placeholder="选择城市" style={{width:'300px'}}
  1334. onChange={(e,pre) => { this.setState({ ProvinceCity: e }) }} />
  1335. <span style={{color:'red',marginLeft:'15px'}}>*</span>
  1336. </FormItem>
  1337. <FormItem className="half-item"
  1338. labelCol={{ span: 4 }}
  1339. wrapperCol={{ span: 18 }}
  1340. label="通信地址"
  1341. >
  1342. <Input placeholder="客户通信地址" value={this.state.postalAddress}
  1343. onChange={(e)=>{this.setState({postalAddress:e.target.value})}}/>
  1344. </FormItem>
  1345. <FormItem className="half-item"
  1346. labelCol={{ span: 4 }}
  1347. wrapperCol={{ span: 18 }}
  1348. label="固定电话"
  1349. >
  1350. <Input placeholder="客户固定电话" value={this.state.contactsFixedTel}
  1351. onChange={(e)=>{this.setState({contactsFixedTel:e.target.value})}}/>
  1352. </FormItem>
  1353. <FormItem className="half-item"
  1354. labelCol={{ span: 4 }}
  1355. wrapperCol={{ span: 18 }}
  1356. label="客户传真"
  1357. >
  1358. <Input placeholder="客户传真" value={this.state.contactsFax}
  1359. onChange={(e)=>{this.setState({contactsFax:e.target.value})}}/>
  1360. </FormItem>
  1361. <FormItem className="half-item"
  1362. labelCol={{ span: 4 }}
  1363. wrapperCol={{ span: 18 }}
  1364. label="注册资本"
  1365. >
  1366. <Input placeholder="注册资本" value={this.state.registeredCapital}
  1367. onChange={(e)=>{this.setState({registeredCapital:e.target.value})}}/>
  1368. </FormItem>
  1369. <FormItem className="half-item"
  1370. labelCol={{ span: 4 }}
  1371. wrapperCol={{ span: 18 }}
  1372. label="单位规模"
  1373. >
  1374. <Input placeholder="单位规模" value={this.state.enterpriseScale}
  1375. onChange={(e)=>{this.setState({enterpriseScale:e.target.value})}}/>
  1376. </FormItem>
  1377. <FormItem className="half-item"
  1378. labelCol={{ span: 4 }}
  1379. wrapperCol={{ span: 18 }}
  1380. label="法人名称"
  1381. >
  1382. <Input placeholder="法人名称" value={this.state.legalPerson}
  1383. onChange={(e)=>{this.setState({legalPerson:e.target.value})}}/>
  1384. </FormItem>
  1385. <FormItem className="half-item"
  1386. labelCol={{ span: 4 }}
  1387. wrapperCol={{ span: 18 }}
  1388. label="身份证号码"
  1389. >
  1390. <Input placeholder="法人身份证号码" value={this.state.legalPersonIdCard}
  1391. onChange={(e)=>{this.setState({legalPersonIdCard:e.target.value})}}/>
  1392. </FormItem>
  1393. <FormItem className="half-item"
  1394. labelCol={{ span: 4 }}
  1395. wrapperCol={{ span: 18 }}
  1396. label="法人电话"
  1397. >
  1398. <Input placeholder="法人电话" value={this.state.legalPersonTel}
  1399. onChange={(e)=>{this.setState({legalPersonTel:e.target.value})}}/>
  1400. </FormItem>
  1401. <FormItem className="half-item"
  1402. labelCol={{ span: 4 }}
  1403. wrapperCol={{ span: 18 }}
  1404. label="电子邮箱"
  1405. >
  1406. <Input placeholder="法人电子邮箱" value={this.state.legalPersonEmail}
  1407. onChange={(e)=>{this.setState({legalPersonEmail:e.target.value})}}/>
  1408. </FormItem>
  1409. <FormItem className="half-item"
  1410. labelCol={{ span: 4 }}
  1411. wrapperCol={{ span: 18 }}
  1412. label="机构代码"
  1413. >
  1414. <Input placeholder="社会同意机构代码" value={this.state.orgCode}
  1415. onChange={(e)=>{this.setState({orgCode:e.target.value})}}/>
  1416. </FormItem>
  1417. <FormItem className="half-item"
  1418. labelCol={{ span: 4 }}
  1419. wrapperCol={{ span: 18 }}
  1420. label="实名认证"
  1421. >
  1422. {adminData.isSuperAdmin?<Select placeholder="实名认证"
  1423. value={this.state.auditStatus}
  1424. onChange={(e) => { this.setState({ auditStatus: e }) }}>
  1425. {
  1426. auditStatusL.map(function (item) {
  1427. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1428. })
  1429. }
  1430. </Select>:<span>{getAuditStatus(this.state.auditStatus)}</span>}
  1431. </FormItem>
  1432. <div className="clearfix">
  1433. <FormItem className="half-item"
  1434. labelCol={{ span: 4 }}
  1435. wrapperCol={{ span: 18 }}
  1436. label="业务认证"
  1437. >
  1438. {adminData.isSuperAdmin?<Radio.Group value={this.state.businessAudit} onChange={(e) => {
  1439. this.setState({ businessAudit: e.target.value })
  1440. }}>
  1441. <Radio value={0}>未认证</Radio>
  1442. <Radio value={1}>已认证</Radio>
  1443. </Radio.Group>:<span>{this.state.businessAudit?'是':'否'}</span>}
  1444. </FormItem>
  1445. <FormItem className="half-item"
  1446. labelCol={{ span: 4 }}
  1447. wrapperCol={{ span: 18 }}
  1448. label="高新"
  1449. >
  1450. <Radio.Group value={this.state.highTechZone} onChange={(e) => {
  1451. this.setState({highTechZone:e.target.value})
  1452. }}>
  1453. <Radio value={0}>否</Radio>
  1454. <Radio value={1}>是</Radio>
  1455. </Radio.Group>
  1456. </FormItem>
  1457. <FormItem className="half-item"
  1458. labelCol={{ span: 4 }}
  1459. wrapperCol={{ span: 18 }}
  1460. label="上市"
  1461. >
  1462. <Radio.Group value={this.state.listed} onChange={(e) => {
  1463. this.setState({listed:e.target.value })
  1464. }}>
  1465. <Radio value={0}>否</Radio>
  1466. <Radio value={1}>是</Radio>
  1467. </Radio.Group>
  1468. </FormItem>
  1469. <FormItem className="half-item"
  1470. labelCol={{ span: 4 }}
  1471. wrapperCol={{ span: 18 }}
  1472. label="国际化"
  1473. >
  1474. <Radio.Group value={this.state.international} onChange={(e) => {
  1475. this.setState({international:e.target.value })
  1476. }}>
  1477. <Radio value={0}>否</Radio>
  1478. <Radio value={1}>是</Radio>
  1479. </Radio.Group>
  1480. </FormItem>
  1481. </div>
  1482. <div className="clearfix pictures">
  1483. <FormItem
  1484. labelCol={{ span: 4 }}
  1485. wrapperCol={{ span: 18 }}
  1486. label="机构证(PIC)" >
  1487. <PicturesWall
  1488. pictureSign="PIC"
  1489. fileList={this.getOrgCodeUrl}
  1490. pictureUrl={this.state.orgCodeUrl} />
  1491. <p>图片建议:图片要清晰。</p>
  1492. </FormItem>
  1493. <FormItem
  1494. labelCol={{ span: 4 }}
  1495. wrapperCol={{ span: 18 }}
  1496. label="单位logo" >
  1497. <PicturesWall
  1498. pictureSign="logo"
  1499. fileList={this.getCompanyLogoUrl}
  1500. pictureUrl={this.state.companyLogoUrl} />
  1501. <p>图片建议:图片要清晰。</p>
  1502. </FormItem>
  1503. </div>
  1504. <div className="clearfix">
  1505. <FormItem
  1506. labelCol={{ span: 2 }}
  1507. wrapperCol={{ span: 18 }}
  1508. label="业务范围" >
  1509. <Input type="textarea" rows={4} value={this.state.businessScope}
  1510. onChange={(e)=>{this.setState({businessScope:e.target.value})}}/>
  1511. </FormItem>
  1512. <FormItem
  1513. labelCol={{ span: 2 }}
  1514. wrapperCol={{ span: 18 }}
  1515. label="单位简介" >
  1516. <Input type="textarea" rows={4} value={this.state.introduction}
  1517. onChange={(e)=>{this.setState({introduction:e.target.value})}}/>
  1518. </FormItem>
  1519. </div>
  1520. </div>
  1521. </Spin>
  1522. </Form> :<Form horizontal id="demand-form">
  1523. <Spin spinning={this.state.loading}>
  1524. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1525. <FormItem className="half-item"
  1526. labelCol={{ span: 4 }}
  1527. wrapperCol={{ span: 18 }}
  1528. label="客户名称"
  1529. >
  1530. <span>{theInformation.identifyName}</span>
  1531. </FormItem>
  1532. </div>
  1533. <div className="clearfix" style={{paddingLeft:'60px'}}>
  1534. <FormItem className="half-item"
  1535. labelCol={{ span: 4 }}
  1536. wrapperCol={{ span: 18 }}
  1537. label="行业"
  1538. >
  1539. <span>{getIndustry(String(theInformation.industry))}</span>
  1540. </FormItem>
  1541. <FormItem className="half-item"
  1542. labelCol={{ span: 4 }}
  1543. wrapperCol={{ span: 18 }}
  1544. label="社会属性"
  1545. >
  1546. <span>{getSocialAttribute(theInformation.societyTag)}</span>
  1547. </FormItem>
  1548. <FormItem className="half-item"
  1549. labelCol={{ span: 4 }}
  1550. wrapperCol={{ span: 18 }}
  1551. label="省-市-区"
  1552. >
  1553. <span>{this.state.proviceCityArea}</span>
  1554. </FormItem>
  1555. <FormItem className="half-item"
  1556. labelCol={{ span: 4 }}
  1557. wrapperCol={{ span: 18 }}
  1558. label="通信地址"
  1559. >
  1560. <span>{theInformation.postalAddress}</span>
  1561. </FormItem>
  1562. <FormItem className="half-item"
  1563. labelCol={{ span: 4 }}
  1564. wrapperCol={{ span: 18 }}
  1565. label="固定电话"
  1566. >
  1567. <span>{theInformation.contactsFixedTel}</span>
  1568. </FormItem>
  1569. <FormItem className="half-item"
  1570. labelCol={{ span: 4 }}
  1571. wrapperCol={{ span: 18 }}
  1572. label="客户传真"
  1573. >
  1574. <span>{theInformation.contactsFax}</span>
  1575. </FormItem>
  1576. <FormItem className="half-item"
  1577. labelCol={{ span: 4 }}
  1578. wrapperCol={{ span: 18 }}
  1579. label="注册资本"
  1580. >
  1581. <span>{theInformation.registeredCapital}</span>
  1582. </FormItem>
  1583. <FormItem className="half-item"
  1584. labelCol={{ span: 4 }}
  1585. wrapperCol={{ span: 18 }}
  1586. label="单位规模"
  1587. >
  1588. <span>{theInformation.enterpriseScale}</span>
  1589. </FormItem>
  1590. <FormItem className="half-item"
  1591. labelCol={{ span: 4 }}
  1592. wrapperCol={{ span: 18 }}
  1593. label="法人名称"
  1594. >
  1595. <span>{theInformation.legalPerson}</span>
  1596. </FormItem>
  1597. <FormItem className="half-item"
  1598. labelCol={{ span: 4 }}
  1599. wrapperCol={{ span: 18 }}
  1600. label="身份证号码"
  1601. >
  1602. <span>{theInformation.legalPersonIdCard}</span>
  1603. </FormItem>
  1604. <FormItem className="half-item"
  1605. labelCol={{ span: 4 }}
  1606. wrapperCol={{ span: 18 }}
  1607. label="法人电话"
  1608. >
  1609. <span>{theInformation.legalPersonTel}</span>
  1610. </FormItem>
  1611. <FormItem className="half-item"
  1612. labelCol={{ span: 4 }}
  1613. wrapperCol={{ span: 18 }}
  1614. label="电子邮箱"
  1615. >
  1616. <span>{theInformation.legalPersonEmail}</span>
  1617. </FormItem>
  1618. <FormItem className="half-item"
  1619. labelCol={{ span: 4 }}
  1620. wrapperCol={{ span: 18 }}
  1621. label="投资机构"
  1622. >
  1623. <span>{this.state.investment?'是':'否'}</span>
  1624. </FormItem>
  1625. <FormItem className="half-item"
  1626. labelCol={{ span: 4 }}
  1627. wrapperCol={{ span: 18 }}
  1628. label="高新"
  1629. >
  1630. <span>{this.state.highTechZone?'是':'否'}</span>
  1631. </FormItem>
  1632. <FormItem className="half-item"
  1633. labelCol={{ span: 4 }}
  1634. wrapperCol={{ span: 18 }}
  1635. label="上市"
  1636. >
  1637. <span>{this.state.listed?'是':'否'}</span>
  1638. </FormItem>
  1639. <FormItem className="half-item"
  1640. labelCol={{ span: 4 }}
  1641. wrapperCol={{ span: 18 }}
  1642. label="国际化"
  1643. >
  1644. <span>{this.state.international?'是':'否'}</span>
  1645. </FormItem>
  1646. <FormItem className="half-item"
  1647. labelCol={{ span: 4 }}
  1648. wrapperCol={{ span: 18 }}
  1649. label="机构代码"
  1650. >
  1651. <span>{theInformation.orgCode}</span>
  1652. </FormItem>
  1653. <div className="clearfix pictures">
  1654. <FormItem
  1655. labelCol={{ span: 4 }}
  1656. wrapperCol={{ span: 18 }}
  1657. label="机构证(PIC)" >
  1658. <div className="clearfix">
  1659. <Upload className="demandDetailShow-upload"
  1660. listType="picture-card"
  1661. fileList={this.state.orgCodeUrl}
  1662. onPreview={(file) => {
  1663. this.setState({
  1664. previewImage: file.url || file.thumbUrl,
  1665. previewVisible: true,
  1666. });
  1667. }} >
  1668. </Upload>
  1669. <Modal maskClosable={false} footer={null}
  1670. visible={this.state.previewVisible}
  1671. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1672. <img alt="" style={{ width: '100%' }} src={this.state.orgCodeUrl || ''} />
  1673. </Modal>
  1674. </div>
  1675. </FormItem>
  1676. <FormItem
  1677. labelCol={{ span: 4 }}
  1678. wrapperCol={{ span: 18 }}
  1679. label="单位logo" >
  1680. <div className="clearfix">
  1681. <Upload className="demandDetailShow-upload"
  1682. listType="picture-card"
  1683. fileList={this.state.companyLogoUrl}
  1684. onPreview={(file) => {
  1685. this.setState({
  1686. previewImage: file.url || file.thumbUrl,
  1687. previewVisible: true,
  1688. });
  1689. }} >
  1690. </Upload>
  1691. <Modal maskClosable={false} footer={null}
  1692. visible={this.state.previewVisible}
  1693. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1694. <img alt="" style={{ width: '100%' }} src={this.state.companyLogoUrl || ''} />
  1695. </Modal>
  1696. </div>
  1697. </FormItem>
  1698. </div>
  1699. <div className="clearfix">
  1700. <FormItem
  1701. labelCol={{ span: 2 }}
  1702. wrapperCol={{ span: 18 }}
  1703. label="业务范围" >
  1704. <span>{theInformation.businessScope}</span>
  1705. </FormItem>
  1706. <FormItem
  1707. labelCol={{ span: 2 }}
  1708. wrapperCol={{ span: 18 }}
  1709. label="单位简介" >
  1710. <span>{theInformation.introduction}</span>
  1711. </FormItem>
  1712. </div>
  1713. </div>
  1714. </Spin>
  1715. </Form>}
  1716. </TabPane>
  1717. <TabPane tab="联系人信息" key="2">
  1718. <div className="clearfix">
  1719. <Spin spinning={this.state.loading}>
  1720. <Form horizontal id="demand-form" >
  1721. <Table
  1722. pagination={false}
  1723. columns={this.state.ContactsLists}
  1724. dataSource={this.state.contactList}
  1725. />
  1726. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1727. </div>
  1728. </Form>
  1729. </Spin>
  1730. </div>
  1731. </TabPane>
  1732. <TabPane tab="账户信息" key="3">
  1733. <div className="clearfix">
  1734. <Form horizontal id="demand-form" >
  1735. <Spin spinning={this.state.loading} >
  1736. <div className="clearfix">
  1737. <FormItem className="half-item"
  1738. {...formItemLayout}
  1739. label="注册手机号" >
  1740. {adminData.isSuperAdmin?<div><Input value={this.state.mobile} disabled onChange={(e) => { this.setState({ mobile: e.target.value }); }} style={{width:'200px',marginRight:'50px'}}/>
  1741. </div>:<span>{this.state.mobile}</span>}
  1742. </FormItem>
  1743. <FormItem className="half-item"
  1744. {...formItemLayout}
  1745. label="注册用户名" >
  1746. {adminData.isSuperAdmin?<Input value={this.state.nickname}
  1747. onChange={(e) => { this.setState({ nickname: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1748. </FormItem>
  1749. <FormItem className="half-item"
  1750. {...formItemLayout}
  1751. label="注册邮箱" >
  1752. {adminData.isSuperAdmin?<Input value={this.state.email}
  1753. onChange={(e) => { this.setState({ email: e.target.value }); }} />:<span>{this.state.nickname}</span>}
  1754. </FormItem>
  1755. </div>
  1756. <FormItem className="half-item"
  1757. {...formItemLayout}
  1758. label="客户来源" >
  1759. <span>{this.state.source}</span>
  1760. </FormItem>
  1761. <FormItem className="half-item"
  1762. {...formItemLayout}
  1763. label="客户类型" >
  1764. <span>{this.state.type}</span>
  1765. </FormItem>
  1766. <FormItem className="half-item"
  1767. {...formItemLayout}
  1768. label="创建时间" >
  1769. <span>{this.state.createTimes}</span>
  1770. </FormItem>
  1771. <FormItem className="half-item"
  1772. {...formItemLayout}
  1773. label="账户状态"
  1774. >
  1775. {adminData.isSuperAdmin?<Select placeholder="账户状态" value={this.state.status} onChange={(e) => { this.setState({ status: e }); }} >
  1776. {
  1777. statuslist.map(function (item) {
  1778. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1779. })
  1780. }
  1781. </Select>:<span>{getStatuslist(this.state.status)}</span>}
  1782. </FormItem>
  1783. <div className="clearfix">
  1784. <FormItem className="half-item"
  1785. {...formItemLayout}
  1786. label="会员"
  1787. >
  1788. {adminData.isSuperAdmin?<Radio.Group value={this.state.isMember} onChange={(e) => {
  1789. this.setState({ isMember: e.target.value })
  1790. }}>
  1791. <Radio value={0}>否</Radio>
  1792. <Radio value={1}>是</Radio>
  1793. </Radio.Group>:<span>{this.state.isMember?'是':'否'}</span>}
  1794. </FormItem>
  1795. <FormItem className="half-item"
  1796. {...formItemLayout}
  1797. label="会员等级"
  1798. >
  1799. {adminData.isSuperAdmin?<Select placeholder="客户状态" value={this.state.lvl} onChange={(e) => { this.setState({ lvl: e }); }} >
  1800. {
  1801. lvl.map(function (item) {
  1802. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1803. })
  1804. }
  1805. </Select>:<span>{getLvl(this.state.lvl)}</span>}
  1806. </FormItem>
  1807. <FormItem className="half-item"
  1808. {...formItemLayout}
  1809. label="会员状态"
  1810. >
  1811. {adminData.isSuperAdmin?<Select placeholder="会员状态" value={this.state.currentMemberStatus} onChange={(e) => { this.setState({ currentMemberStatus: e }); }} >
  1812. {
  1813. currentMember.map(function (item) {
  1814. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1815. })
  1816. }
  1817. </Select>:<span>{getCurrentMember(this.state.currentMemberStatus)}</span>}
  1818. </FormItem>
  1819. </div>
  1820. <div className="clearfix" style={{display:adminData.isSuperAdmin?'inline-block':'none'}}>
  1821. </div>
  1822. </Spin>
  1823. </Form>
  1824. </div>
  1825. </TabPane>
  1826. <TabPane tab="客户拜访" key="4">
  1827. <div className="clearfix">
  1828. <Spin spinning={this.state.loading}>
  1829. <Table
  1830. pagination={false}
  1831. style={{
  1832. cursor: 'pointer',
  1833. }}
  1834. columns={this.state.visitsList}
  1835. dataSource={this.state.visitArrList}
  1836. onRowClick={this.VisitRowClick}
  1837. />
  1838. </Spin>
  1839. </div>
  1840. </TabPane>
  1841. <TabPane tab="业务意向" key="5">
  1842. <div className="clearfix">
  1843. <Spin spinning={this.state.loading}>
  1844. <Table
  1845. pagination={this.state.paginationt}
  1846. columns={this.state.businessIntentionList}
  1847. dataSource={this.state.dataBusiness}
  1848. />
  1849. </Spin>
  1850. </div>
  1851. </TabPane>
  1852. <TabPane tab="业务订单" key="6">
  1853. </TabPane>
  1854. <TabPane tab="技术需求" key="7">
  1855. </TabPane>
  1856. <TabPane tab="技术成果" key="8">
  1857. </TabPane>
  1858. <TabPane tab="技术专家" key="9">
  1859. </TabPane>
  1860. </Tabs>
  1861. </Modal>
  1862. <Modal
  1863. maskClosable={false}
  1864. className="customeDetails"
  1865. footer=''
  1866. title="拜访详情"
  1867. width='1000px'
  1868. visible={this.state.visitModul}
  1869. onOk={this.visitOk}
  1870. onCancel={this.visitCancel}
  1871. >
  1872. <Form horizontal id="demand-form" >
  1873. {adminData.isSuperAdmin?<Spin spinning={this.state.loading}>
  1874. <div className="clearfix">
  1875. <FormItem className="half-item"
  1876. {...formItemLayout}
  1877. label="拜访方式" >
  1878. <Radio.Group value={this.state.contactType} onChange={(e) => {
  1879. this.setState({ contactType: e.target.value })
  1880. }}>
  1881. <Radio value={0}>外出</Radio>
  1882. <Radio value={1}>电话</Radio>
  1883. <Radio value={2}>QQ</Radio>
  1884. <Radio value={3}>微信</Radio>
  1885. <Radio value={4}>邮箱</Radio>
  1886. </Radio.Group>
  1887. </FormItem>
  1888. <FormItem className="half-item"
  1889. {...formItemLayout}
  1890. >
  1891. <Button type="primary" onClick={this.newContacts} style={{marginLeft:'100px',display:this.state.keys?'inline-block':'none'}}>添加新联系人</Button>
  1892. </FormItem>
  1893. <div className="clearfix">
  1894. <FormItem className="half-item"
  1895. {...formItemLayout}
  1896. label="客户名称"
  1897. >
  1898. <span>{this.state.identifyName}</span>
  1899. </FormItem>
  1900. <FormItem className="half-item"
  1901. {...formItemLayout}
  1902. label="拜访人"
  1903. >
  1904. <span>{this.state.adminName}</span>
  1905. </FormItem>
  1906. <FormItem className="half-item"
  1907. {...formItemLayout}
  1908. label="当前联系人"
  1909. >
  1910. <span>{this.state.contacts}</span>
  1911. </FormItem>
  1912. {this.state.contacts?<span></span>:
  1913. <FormItem className="half-item"
  1914. {...formItemLayout}
  1915. label="联系人"
  1916. >
  1917. <Select placeholder="选择联系人" style={{ width: 140 }}
  1918. value={this.state.lastName}
  1919. onChange={this.hundleName}>
  1920. {this.state.orderStatusOption}
  1921. </Select>
  1922. </FormItem>
  1923. }
  1924. <FormItem className="half-item"
  1925. {...formItemLayout}
  1926. label="拜访时间"
  1927. >
  1928. <span>{this.state.followTime}</span>
  1929. </FormItem>
  1930. <FormItem className="half-item"
  1931. {...formItemLayout}
  1932. label="联系电话"
  1933. >
  1934. <span>{this.state.nub}</span>
  1935. </FormItem>
  1936. </div>
  1937. <div className="clearfix">
  1938. <FormItem
  1939. labelCol={{ span: 4 }}
  1940. wrapperCol={{ span: 16 }}
  1941. label="拜访备注" >
  1942. <Input type="textarea" rows={4} value={this.state.result}
  1943. onChange={(e)=>{this.setState({result:e.target.value})}}/>
  1944. </FormItem>
  1945. </div>
  1946. <div className="clearfix">
  1947. <div style={{fontSize:'18px',marginLeft:'100px',marginTop:'15px',marginBottom:'10px'}}>业务意向<Button style={{marginLeft:'420px',background:'green',color:'#ffffff'}}>添加新业务</Button></div>
  1948. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  1949. <Spin spinning={this.state.loading}>
  1950. <Table
  1951. rowKey={record => record.id}
  1952. pagination={false}
  1953. columns={this.state.intentionList}
  1954. dataSource={this.state.data}
  1955. />
  1956. </Spin>
  1957. </div>
  1958. </div>
  1959. </div>
  1960. </Spin>:<Spin spinning={this.state.loading}>
  1961. <div className="clearfix">
  1962. <FormItem className="half-item"
  1963. {...formItemLayout}
  1964. label="拜访方式" >
  1965. <span>{getContactType(String(this.state.contactType))}</span>
  1966. </FormItem>
  1967. <div className="clearfix">
  1968. <FormItem className="half-item"
  1969. {...formItemLayout}
  1970. label="客户名称"
  1971. >
  1972. <span>{this.state.identifyName}</span>
  1973. </FormItem>
  1974. <FormItem className="half-item"
  1975. {...formItemLayout}
  1976. label="拜访人"
  1977. >
  1978. <span>{this.state.adminName}</span>
  1979. </FormItem>
  1980. <FormItem className="half-item"
  1981. {...formItemLayout}
  1982. label="当前联系人"
  1983. >
  1984. <span>{this.state.contacts}</span>
  1985. </FormItem>
  1986. <FormItem className="half-item"
  1987. {...formItemLayout}
  1988. label="拜访时间"
  1989. >
  1990. <span>{this.state.followTime}</span>
  1991. </FormItem>
  1992. <FormItem className="half-item"
  1993. {...formItemLayout}
  1994. label="联系电话"
  1995. >
  1996. <span>{this.state.nub}</span>
  1997. </FormItem>
  1998. </div>
  1999. <div className="clearfix">
  2000. <FormItem
  2001. labelCol={{ span: 4 }}
  2002. wrapperCol={{ span: 16 }}
  2003. label="拜访备注" >
  2004. <span>{this.state.result}</span>
  2005. </FormItem>
  2006. </div>
  2007. <div className="clearfix">
  2008. <div className="clearfix" style={{paddingLeft:'50px',paddingRight:'50px'}}>
  2009. <Spin spinning={this.state.loading}>
  2010. <Table
  2011. rowKey={record => record.id}
  2012. pagination={false}
  2013. columns={this.state.intentionList}
  2014. dataSource={this.state.data}
  2015. />
  2016. </Spin>
  2017. </div>
  2018. </div>
  2019. </div>
  2020. </Spin>}
  2021. </Form>
  2022. </Modal>
  2023. <Modal
  2024. maskClosable={false}
  2025. footer=''
  2026. title="业务意向详情"
  2027. width='1000px'
  2028. visible={this.state.businessModul}
  2029. onOk={this.businessIntentionOk}
  2030. onCancel={this.businessIntentionCancel}
  2031. >
  2032. <div className="clearfix">
  2033. <Form horizontal id="demand-form" >
  2034. <Spin spinning={this.state.loading}>
  2035. <div className="clearfix">
  2036. <FormItem className="half-item"
  2037. {...formItemLayout}
  2038. label="意向业务名称" >
  2039. <span>{getCompanyIntention(this.state.businessGlossoryId)}</span>
  2040. </FormItem>
  2041. <FormItem className="half-item"
  2042. {...formItemLayout}
  2043. label="意向时间" >
  2044. <span>{this.state.createTime}</span>
  2045. </FormItem>
  2046. <FormItem className="half-item"
  2047. {...formItemLayout}
  2048. label="客户名称" >
  2049. <span>{this.state.identifyName}</span>
  2050. </FormItem>
  2051. <FormItem className="half-item"
  2052. {...formItemLayout}
  2053. label="营销员" >
  2054. <span>{this.state.adminName}</span>
  2055. </FormItem>
  2056. <FormItem className="half-item"
  2057. {...formItemLayout}
  2058. label="意向业务进度" >
  2059. <span>{getfllowSituation(this.state.followSituation)}</span>
  2060. </FormItem>
  2061. <FormItem className="half-item"
  2062. {...formItemLayout}
  2063. label="业务客户状态" >
  2064. <span>{getcustomerStatue(this.state.customerStatus)}</span>
  2065. </FormItem>
  2066. </div>
  2067. <div className="clearfix">
  2068. <FormItem className="half-item"
  2069. {...formItemLayout}
  2070. label="业务意向说明" >
  2071. <span>{this.state.remarks}</span>
  2072. </FormItem>
  2073. </div>
  2074. <div className="clearfix">
  2075. <div style={{fontSize:'18px',lineHeight:'24px',marginBottom:'10px'}}>业务跟进</div>
  2076. <div className="clearfix">
  2077. <Spin spinning={this.state.loading}>
  2078. <Table
  2079. pagination={this.state.paginations}
  2080. columns={this.state.businessFollowList}
  2081. dataSource={this.state.visitArrList}
  2082. />
  2083. </Spin>
  2084. </div>
  2085. </div>
  2086. </Spin>
  2087. </Form>
  2088. </div>
  2089. </Modal>
  2090. <Modal
  2091. maskClosable={false}
  2092. footer=''
  2093. title="业务跟进详情"
  2094. width='600px'
  2095. visible={this.state.businessFollowModul}
  2096. onOk={this.businessFollowOk}
  2097. onCancel={this.businessFollowCancel}
  2098. >
  2099. <div className="clearfix">
  2100. <Form horizontal id="demand-form" >
  2101. <Spin spinning={this.state.loading}>
  2102. <div className="clearfix">
  2103. <FormItem className="half-item"
  2104. {...formItemLayout}
  2105. label="意向业务名称" >
  2106. <span>{getCompanyIntention(this.state.businessGlossoryIds)}</span>
  2107. </FormItem>
  2108. <FormItem className="half-item"
  2109. {...formItemLayout}
  2110. label="意向时间" >
  2111. <span>{this.state.createTimes}</span>
  2112. </FormItem>
  2113. <FormItem className="half-item"
  2114. {...formItemLayout}
  2115. label="客户名称" >
  2116. <span>{this.state.identifyNames}</span>
  2117. </FormItem>
  2118. <FormItem className="half-item"
  2119. {...formItemLayout}
  2120. label="营销员" >
  2121. <span>{this.state.adminNames}</span>
  2122. </FormItem>
  2123. <FormItem className="half-item"
  2124. {...formItemLayout}
  2125. label="意向业务进度" >
  2126. <span>{getfllowSituation(this.state.followSituations)}</span>
  2127. </FormItem>
  2128. <FormItem className="half-item"
  2129. {...formItemLayout}
  2130. label="业务客户状态" >
  2131. <span>{getcustomerStatue(this.state.customerStatuss)}</span>
  2132. </FormItem>
  2133. </div>
  2134. <div className="clearfix">
  2135. <FormItem className="half-item"
  2136. {...formItemLayout}
  2137. label="业务意向说明" >
  2138. <span>{this.state.remarkss}</span>
  2139. </FormItem>
  2140. </div>
  2141. <div className="clearfix">
  2142. <div style={{fontSize:'18px',lineHeight:'30px'}}>拜访情况</div>
  2143. <FormItem className="half-item"
  2144. {...formItemLayout}
  2145. label="拜访方式" >
  2146. <span>{getContactType(this.state.contactTypes)}</span>
  2147. </FormItem>
  2148. <FormItem className="half-item"
  2149. {...formItemLayout}
  2150. label="联系人" >
  2151. <span>{this.state.contactss}</span>
  2152. </FormItem>
  2153. <FormItem className="half-item"
  2154. {...formItemLayout}
  2155. label="联系电话" >
  2156. <span>{this.state.contactMobiles}</span>
  2157. </FormItem>
  2158. <FormItem className="half-item"
  2159. {...formItemLayout}
  2160. label="拜访时间" >
  2161. <span>{this.state.followTimes}</span>
  2162. </FormItem>
  2163. <FormItem className="half-item"
  2164. {...formItemLayout}
  2165. label="拜访人" >
  2166. <span>{this.state.adminNames}</span>
  2167. </FormItem>
  2168. <div className="clearfix">
  2169. <FormItem className="half-item"
  2170. {...formItemLayout}
  2171. label="拜访备注" >
  2172. <span>{this.state.results}</span>
  2173. </FormItem>
  2174. </div>
  2175. </div>
  2176. </Spin>
  2177. </Form>
  2178. </div>
  2179. </Modal>
  2180. </div >
  2181. );
  2182. }
  2183. }));
  2184. export default PublicCustomer