companyCustomer.jsx 87 KB

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