companyCustomer.jsx 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. import React from 'react';
  2. import { AutoComplete, Icon, Button, Input, InputNumber, Select, Spin, Table, message, Modal, Row, Col, DatePicker,Switch,Upload} 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. const { Column, ColumnGroup } = Table;
  8. import { orderStatusList,cityArr,customerStatus,intentionalService,newFollow} from '../../dataDic.js';
  9. import { beforeUploadFile,getOrderStatus, getSearchUrl,getcustomerTyp,getcityArr,getcustomerStatue,getCompanyIntention,getfllowSituation,getsex} from '../../tools.js';
  10. //查询功能和初始列表
  11. const PublicCustomer = React.createClass({
  12. loadData(pageNo, detailApiUrl) {
  13. this.state.data = [];
  14. this.setState({
  15. loading: true
  16. });
  17. $.ajax({
  18. method: "post",
  19. dataType: "json",
  20. crossDomain: false,
  21. url:globalConfig.context +'/api/admin/customer/listCompanyCustomer',
  22. data: {
  23. pageNo: pageNo || 1,
  24. pageSize: this.state.pagination.pageSize,
  25. companyName: this.state.companyNamet, //名称1
  26. customerType: this.state.customerTypet, //客户类型1
  27. locationProvince:this.state.locationProvincet,//地区
  28. customerStatus:this.state.customerStatust,//客户状态1
  29. contactName:this.state.contactNamet,//联系人姓名1
  30. contactTel:this.state.contactTelt,//联系人手机
  31. companyIntention:this.state.companyIntentiont,//意向服务
  32. followSituation:this.state.followSituationt,//最新跟进进度
  33. //releaseDateStartDate: this.state.releaseDate[0],
  34. //releaseDateEndDate: this.state.releaseDate[1],
  35. },
  36. success: function (data) {
  37. let theArr = [];
  38. if (!data.data || !data.data.list) {
  39. if (data.error && data.error.length) {
  40. message.warning(data.error[0].message);
  41. };
  42. } else {
  43. for (let i = 0; i < data.data.list.length; i++) {
  44. let thisdata = data.data.list[i];
  45. theArr.push({
  46. key: i,
  47. id: thisdata.id,
  48. companyName:thisdata.companyName,//公司名称
  49. customerType:thisdata.customerType,
  50. _customerType:thisdata._customerType,//客户类型
  51. locationProvince:thisdata.locationProvince,//地区
  52. contactName:thisdata.contactName, //联系人姓名
  53. telNum:thisdata.telNum,//手机号
  54. _customerStatus:thisdata._customerStatus,//客户状态
  55. _companyIntention:thisdata._companyIntention,//意向服务
  56. _followSituation:thisdata._followSituation,//最新跟进
  57. customerStatus:thisdata.customerStatus,//客户状态
  58. companyIntention:thisdata.companyIntention,//意向服务
  59. followSituation:thisdata.followSituation,//最新跟进
  60. adminName:thisdata.adminName, //跟进人
  61. followDate:thisdata.followDate,
  62. });
  63. };
  64. this.state.pagination.current = data.data.pageNo;
  65. this.state.pagination.total = data.data.totalCount;
  66. };
  67. this.setState({
  68. dataSource: theArr,
  69. pagination: this.state.pagination
  70. });
  71. }.bind(this),
  72. }).always(function () {
  73. this.setState({
  74. loading: false
  75. });
  76. }.bind(this));
  77. },
  78. //查看详情
  79. Detailload(deletedIds){
  80. $.ajax({
  81. method: "post",
  82. dataType: "json",
  83. crossDomain: false,
  84. url: globalConfig.context + '/api/admin/customer/findAllCustomerDetails',
  85. data: {
  86. id: deletedIds
  87. },
  88. success: function (data) {
  89. let thisData = data.data;
  90. let companyArr=[];
  91. let companyText=[];
  92. let companyString=thisData.companyIntention;
  93. companyArr=companyString.split(",")
  94. for(var i=0;i<companyArr.length;i++){
  95. companyText+=getCompanyIntention(companyArr[i])+"-"
  96. }
  97. if (!thisData) {
  98. if (data.error && data.error.length) {
  99. message.warning(data.error[0].message);
  100. };
  101. thisData = {};
  102. };
  103. this.setState({
  104. companyIntention:companyText,
  105. data: thisData,
  106. followSituation:thisData.followSituation,
  107. customerStatus:thisData.customerStatus,
  108. });
  109. }.bind(this),
  110. }).always(function () {
  111. this.setState({
  112. loading: false
  113. });
  114. }.bind(this));
  115. },
  116. getInitialState() {
  117. return {
  118. searchMore: true,
  119. searchType: 0,
  120. validityPeriodDate: [],
  121. releaseDate: [],
  122. selectedRowKeys: [],
  123. selectedRows: [],
  124. loading: false,
  125. pagination: {
  126. defaultCurrent: 1,
  127. defaultPageSize: 10,
  128. showQuickJumper: true,
  129. pageSize: 10,
  130. onChange: function (page) {
  131. this.loadData(page);
  132. }.bind(this),
  133. showTotal: function (total) {
  134. return '共' + total + '条数据';
  135. }
  136. },
  137. contactInformation:[
  138. {
  139. title: '姓名',
  140. dataIndex: 'contactName',
  141. key: 'contactName'
  142. },{
  143. title: '性别',
  144. dataIndex: 'sex',
  145. key: 'sex',
  146. render: text => { return getsex(text); }
  147. },
  148. {
  149. title: '手机号码',
  150. dataIndex: 'telNum',
  151. key: 'telNum'
  152. },{
  153. title: '座机号',
  154. dataIndex: 'mobile',
  155. key: 'mobile'
  156. },{
  157. title: 'QQ号码',
  158. dataIndex: 'qq',
  159. key: 'qq'
  160. },{
  161. title: '邮箱号',
  162. dataIndex: 'email',
  163. key: 'email'
  164. },{
  165. title: '微信',
  166. dataIndex: 'wechat',
  167. key: 'wechat'
  168. },{
  169. title: '部门',
  170. dataIndex: 'depatrment',
  171. key: 'depatrment'
  172. },{
  173. title: '职位',
  174. dataIndex: 'customerPosition',
  175. key: 'customerPosition'
  176. },
  177. ],
  178. columns: [
  179. {
  180. title: '公司名称',
  181. dataIndex: 'companyName',
  182. key: 'companyName',
  183. }, {
  184. title: '客户类型',
  185. dataIndex: '_customerType',
  186. key: '_customerType',
  187. //render: text => { return getcustomerTyp(text); }
  188. }, {
  189. title: '地区',
  190. dataIndex: 'locationProvince',
  191. key: 'locationProvince',
  192. render: text => { return getcityArr(text); }
  193. }, {
  194. title: '联系人姓名',
  195. dataIndex: 'contactName',
  196. key: 'contactName',
  197. },
  198. {
  199. title: '手机号',
  200. dataIndex: 'telNum',
  201. key:'telNum',
  202. },
  203. {
  204. title: '客户状态',
  205. dataIndex: '_customerStatus',
  206. key: '_customerStatus',
  207. //render: text => { return getcustomerStatue(text) }
  208. },
  209. {
  210. title: '意向服务',
  211. dataIndex: '_companyIntention',
  212. key: '_companyIntention',
  213. //render: text => { return getCompanyIntention(text) }
  214. },
  215. {
  216. title: '最新跟进',
  217. dataIndex: '_followSituation',
  218. key: '_followSituation',
  219. //render: text => { return getfllowSituation(text) }
  220. },
  221. {
  222. title: '跟单人',
  223. dataIndex: 'adminName',
  224. key: 'adminName',
  225. },
  226. {
  227. title: '时间',
  228. dataIndex: 'followDate',
  229. key: 'followDate',
  230. }
  231. ],
  232. dataSource: [],
  233. searchTime: [],
  234. };
  235. },
  236. componentWillMount() {
  237. let theArr = [];
  238. customerStatus.map(function (item) {
  239. theArr.push(
  240. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  241. )
  242. });
  243. let intentionalArr = [];
  244. intentionalService.map(function (item) {
  245. intentionalArr.push(
  246. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  247. )
  248. });
  249. let newArr = [];
  250. newFollow.map(function (item) {
  251. newArr.push(
  252. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  253. )
  254. });
  255. let auditArr = [];
  256. cityArr.map(function (item) {
  257. auditArr.push(
  258. <Select.Option value={item.value} key={item.key}>{item.key}</Select.Option>
  259. )
  260. });
  261. this.state.customerStatuarr = theArr;
  262. this.state.intentionalOption = intentionalArr;
  263. this.state.newOption = newArr;
  264. this.state.auditStatusOption = auditArr;
  265. if (window.location.search) {
  266. let theObj = getSearchUrl(window.location.search);
  267. if (theObj.rid) {
  268. theObj.id = theObj.rid;
  269. if (theObj.rid != 'null') {
  270. this.tableRowClick(theObj);
  271. };
  272. };
  273. };
  274. this.loadData();
  275. },
  276. tableRowClick(record) {
  277. this.state.RowData = record;
  278. this.setok(record.id);
  279. this.setState({
  280. hids:record.id
  281. })
  282. },
  283. //点击消失函数
  284. setModal3Visiblecancel(e) {
  285. this.setState({
  286. modal3Visible:false
  287. });
  288. },
  289. setModal4Visiblecancel(e) {
  290. this.setState({
  291. modal4Visible:false
  292. });
  293. },
  294. closeDesc(e, s) {
  295. this.state.showDesc = e;
  296. if (s) {
  297. this.loadData();
  298. };
  299. },
  300. search() {
  301. this.loadData();
  302. },
  303. reset() {
  304. this.state.companyNamet='';
  305. this.state.customerTypet=undefined;
  306. this.state.id = undefined;
  307. this.state.shareTypet = undefined;
  308. this.state.companyIntentiont = undefined;
  309. this.state.followSituationt = undefined;
  310. this.state.locationProvincet = undefined;
  311. this.state.customerStatust = undefined;
  312. this.state.contactNamet = undefined;
  313. this.state.contactTelt = undefined;
  314. this.state.contactNamet = undefined;
  315. this.state.releaseDatet = [];
  316. this.loadData();
  317. },
  318. searchSwitch() {
  319. this.setState({
  320. searchMore: !this.state.searchMore
  321. });
  322. },
  323. //点击消失函数
  324. setok(e) {
  325. this.setState({
  326. visible:true
  327. });
  328. this.Detailload(e)
  329. },
  330. setcancel(e) {
  331. this.setState({
  332. visible:false
  333. });
  334. },
  335. setoks(index) {
  336. this.setState({
  337. visible1:true
  338. });
  339. this.setState({
  340. loading: true
  341. });
  342. $.ajax({
  343. method: "post",
  344. dataType: "json",
  345. crossDomain: false,
  346. url: globalConfig.context + "/api/admin/customer/findCustomerUserList",
  347. data:{
  348. cid:this.state.hids
  349. },
  350. success: function (data) {
  351. let theArr = [];
  352. let thedata=data.data;
  353. for (let i = 0; i < data.data.length; i++) {
  354. let thisdata = data.data[i];
  355. theArr.push({
  356. id:thisdata.id,//联系人ID
  357. contactName:thisdata.name,//联系人姓名
  358. sex:thisdata.sex,//联系人性别
  359. mobile:thisdata.mobile,//座机号
  360. telNum:thisdata.telNum,//手机号
  361. email:thisdata.email,//邮箱
  362. qq:thisdata.qq,//qq
  363. wechat:thisdata.wechat,//微信号
  364. depatrment:thisdata.depatrment,//部门
  365. customerPosition:thisdata.customerPosition,//职位
  366. });
  367. };
  368. this.setState({
  369. information: theArr,
  370. });
  371. }.bind(this),
  372. }).always(function () {
  373. this.setState({
  374. loading: false
  375. });
  376. }.bind(this));
  377. },
  378. setcancels(e) {
  379. this.setState({
  380. visible1:false
  381. });
  382. },
  383. setModal4VisibleOk(e) {
  384. this.setState({ modal4Visible:true });
  385. this.state.data = [];
  386. this.setState({
  387. loading: true
  388. });
  389. this.setState({
  390. selectedRowKeys:[],
  391. });
  392. let deletedIds=this.state.rowId;
  393. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  394. let rowItem = this.state.selectedRows[idx];
  395. if (rowItem.id) {
  396. deletedIds=rowItem.id;
  397. };
  398. };
  399. $.ajax({
  400. method: "get",
  401. dataType: "json",
  402. crossDomain: false,
  403. url:globalConfig.context + '/api/admin/customer/listCustomerLog',
  404. data: {
  405. customerId:deletedIds
  406. },
  407. success: function (data) {
  408. let theArr = [];
  409. let theWomanID=[];
  410. let theFollowID=[];
  411. if (!data.data) {
  412. if (data.error && data.error.length) {
  413. message.warning(data.error[0].message);
  414. };
  415. } else {
  416. data.data.map(function (item,index) {
  417. theWomanID.push(data.data[index].contactId);
  418. });
  419. data.data.map(function (item,index) {
  420. theFollowID.push(data.data[index].followId);
  421. });
  422. for (let i = 0; i < data.data.length; i++) {
  423. let thisdata = data.data[i];
  424. theArr.push({
  425. key:i,
  426. operatorName:thisdata.operatorName,//操作员姓名
  427. operatorType:thisdata.operatorType,//操作类型
  428. operatorTime:thisdata.operatorTime,//操作时间
  429. beforeCustomerStatus:thisdata.beforeCustomerStatus,//修改前客户状态
  430. afterCustomerStatus:thisdata.afterCustomerStatus,//修改后客户状态
  431. beforeCustomerIntention:thisdata.beforeCustomerIntention,//修改前客户意向
  432. afterCustomerIntention:thisdata.afterCustomerIntention,//修改后客户意向
  433. beforeFollowSituation:thisdata.beforeFollowSituation,//修改前跟进进度
  434. afterFollowSituation:thisdata.afterFollowSituation,//修改后跟进进度
  435. beforeAdminName:thisdata.beforeAdminName,//修改前跟进人
  436. afterAdminName:thisdata.afterAdminName,//修改后跟进人
  437. });
  438. };
  439. };
  440. this.setState({//导出数据
  441. journal: theArr,
  442. theWomanID:theWomanID,
  443. theFollowID:theFollowID,
  444. });
  445. }.bind(this),
  446. }).always(function () {
  447. this.setState({
  448. loading: false
  449. });
  450. }.bind(this));
  451. },
  452. //点击查看跟进记录,点击最新跟进的第一个按钮(跟进状态)执行的函数,将会出现很多跟进列表
  453. setModal3VisibleOk(e) {
  454. this.setState({ modal3Visible:true });
  455. this.state.data = [];
  456. this.setState({
  457. loading: true
  458. });
  459. this.setState({
  460. selectedRowKeys:[],
  461. });
  462. let deletedIds=this.state.rowId;
  463. for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
  464. let rowItem = this.state.selectedRows[idx];
  465. if (rowItem.id) {
  466. deletedIds=rowItem.id;
  467. };
  468. };
  469. $.ajax({
  470. method: "get",
  471. dataType: "json",
  472. crossDomain: false,
  473. url:globalConfig.context + '/api/admin/customer/listAllFollowUpRecord',
  474. data: {
  475. customerId:deletedIds
  476. },
  477. success: function (data) {
  478. let theArr = [];
  479. let theWomanID=[];
  480. let theFollowID=[];
  481. if (!data.data) {
  482. if (data.error && data.error.length) {
  483. message.warning(data.error[0].message);
  484. };
  485. } else {
  486. data.data.map(function (item,index) {
  487. theWomanID.push(data.data[index].contactId);
  488. });
  489. data.data.map(function (item,index) {
  490. theFollowID.push(data.data[index].followId);
  491. });
  492. for (let i = 0; i < data.data.length; i++) {
  493. let thisdata = data.data[i];
  494. theArr.push({
  495. key:i,
  496. _followDate:thisdata._followDate,//跟进时间
  497. adminName:thisdata.adminName,//跟进人
  498. contactName:thisdata.contactName, //联系人姓名
  499. contactId:thisdata.contactId, //联系人ID
  500. contactInfo:thisdata.contactInfo,//联系信息
  501. _customerStatus:thisdata._customerStatus,//客户状态
  502. _followSituation:thisdata._followSituation,//最新跟进
  503. followResult:thisdata.followResult,//跟进结果
  504. attachment:thisdata.attachment,//附件地址
  505. });
  506. };
  507. };
  508. this.setState({//导出数据
  509. datahistory: theArr,
  510. theWomanID:theWomanID,
  511. theFollowID:theFollowID,
  512. });
  513. }.bind(this),
  514. }).always(function () {
  515. this.setState({
  516. loading: false
  517. });
  518. }.bind(this));
  519. },
  520. render() {
  521. const theData = this.state.data || {};
  522. const rowSelection = {
  523. selectedRowKeys: this.state.selectedRowKeys,
  524. onChange: (selectedRowKeys, selectedRows) => {
  525. this.setState({
  526. selectedRows: selectedRows.slice(-1),
  527. selectedRowKeys: selectedRowKeys.slice(-1)
  528. });
  529. }
  530. };
  531. const hasSelected = this.state.selectedRowKeys.length > 0;
  532. const { RangePicker } = DatePicker;
  533. return (
  534. <div className="user-content" >
  535. <div className="content-title">
  536. <span>公司客户管理</span>
  537. </div>
  538. <div className="user-search">
  539. <Input placeholder="公司名称"
  540. value={this.state.companyNamet}
  541. onChange={(e) => { this.setState({ companyNamet: e.target.value }); }} />
  542. <Select placeholder="客户类型" style={{ width: 120 }}
  543. value={this.state.customerTypet }
  544. onChange={(e) => { this.setState({ customerTypet : e }) }}>
  545. <Select.Option value="0" >个人客户</Select.Option>
  546. <Select.Option value="1" >机构单位</Select.Option>
  547. <Select.Option value="2" >团体单位</Select.Option>
  548. </Select>
  549. <Select placeholder="意向服务"
  550. style={{ width: 160 }}
  551. value={this.state.companyIntentiont}
  552. onChange={(e) => { this.setState({ companyIntentiont: e }) }}>
  553. {this.state.intentionalOption}
  554. </Select>
  555. <Select placeholder="跟进进度"
  556. style={{ width: 160 }}
  557. value={this.state.followSituationt}
  558. onChange={(e) => { this.setState({ followSituationt: e }) }}>
  559. {this.state.newOption}
  560. </Select>
  561. <Select placeholder="地区"
  562. style={{ width: 160 }}
  563. value={this.state.locationProvincet}
  564. onChange={(e) => { this.setState({ locationProvincet: e }) }}>
  565. {this.state.auditStatusOption}
  566. </Select>
  567. <Select placeholder="客户状态" style={{ width: 120 }}
  568. value={this.state.customerStatust}
  569. onChange={(e) => { this.setState({customerStatust: e }) }}>
  570. {this.state.customerStatuarr}
  571. </Select>
  572. <Button type="primary" onClick={this.search}>搜索</Button>
  573. <Button onClick={this.reset}>重置</Button>
  574. <Button onClick={this.setModal4VisibleOk} style={{marginRight:'10px'}} disabled={!hasSelected}>查看日志</Button>
  575. <Button onClick={this.setModal3VisibleOk} style={{marginRight:'10px'}} disabled={!hasSelected}>查看跟进记录</Button>
  576. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  577. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  578. <Input placeholder="联系人姓名" style={{width:'140px',marginRight:'10px'}}
  579. value={this.state.contactNamet}
  580. onChange={(e) => { this.setState({ contactNamet: e.target.value }); }} />
  581. <Input placeholder="手机号码" style={{width:'140px',marginRight:'10px'}}
  582. value={this.state.contactTelt }
  583. onChange={(e) => { this.setState({ contactTelt: e.target.value }); }} />
  584. </div>
  585. </div>
  586. <div className="patent-table">
  587. <Spin spinning={this.state.loading}>
  588. <Table columns={this.state.columns}
  589. dataSource={this.state.dataSource}
  590. rowSelection={rowSelection}
  591. pagination={this.state.pagination}
  592. onRowClick={this.tableRowClick} />
  593. </Spin>
  594. </div>
  595. <Modal maskClosable={false}
  596. visible={this.state.visible}
  597. onOk={this.setcancel}
  598. onCancel={this.setcancel}
  599. width='800px'
  600. footer={null}
  601. title="客户详情"
  602. className="demand-order-content">
  603. <Spin spinning={this.state.loading}>
  604. <Row style={{marginLeft:'100px'}}>
  605. <Col span={3}>客户类型:</Col>
  606. <Col span={6}>{theData._customerType}</Col>
  607. </Row>
  608. <Row style={{marginLeft:'100px'}}>
  609. <Col span={3}>录入时间:</Col>
  610. <Col span={6}>{theData.createTime}</Col>
  611. <Col span={3}>跟单人:</Col>
  612. <Col span={6}>{theData.adminName}</Col>
  613. </Row>
  614. <Row style={{marginLeft:'50px'}}>基本资料:</Row>
  615. <Row style={{marginLeft:'100px'}}>
  616. <Col span={3}>公司名称:</Col>
  617. <Col span={6}>{theData.companyName}</Col>
  618. <Col span={3}>公司行业:</Col>
  619. <Col span={6}>{theData.companyIndustry}</Col>
  620. </Row>
  621. <Row style={{marginLeft:'100px'}}>
  622. <Col span={3}>意向服务:</Col>
  623. <Col span={18}>{this.state.companyIntention}</Col>
  624. </Row>
  625. <Row style={{marginLeft:'100px'}}>
  626. <Col span={3}>地区:</Col>
  627. <Col span={6}>{getcityArr(theData.locationProvince)}</Col>
  628. </Row>
  629. <Row style={{marginLeft:'100px'}}>
  630. <Col span={3}>最新跟进:</Col>
  631. <Col span={6}>{theData._followSituation}</Col>
  632. <Col span={3}>客户状态:</Col>
  633. <Col span={6}>{theData._customerStatus}</Col>
  634. </Row>
  635. <Row style={{marginLeft:'100px'}}>
  636. <Col span={3}>详细地址:</Col>
  637. <Col span={6}>{theData.address}</Col>
  638. </Row>
  639. <Row style={{marginLeft:'100px'}} >
  640. <Col span={3}>备注:</Col>
  641. <Col span={18}>{theData.remarks}</Col>
  642. </Row>
  643. </Spin>
  644. </Modal>
  645. <Modal
  646. footer=''
  647. title="历史记录列表"
  648. width='800px'
  649. visible={this.state.modal3Visible}
  650. onOk={this.setModal3Visiblecancel}
  651. onCancel={this.setModal3Visiblecancel}
  652. >
  653. <Spin spinning={this.state.loading}>
  654. <Table dataSource={this.state.datahistory} >
  655. <Column
  656. title="时间"
  657. dataIndex="_followDate"
  658. key="_followDate"
  659. />
  660. <Column
  661. title="客户"
  662. dataIndex="contactName"
  663. key="contactName"
  664. />
  665. <Column
  666. title="跟进人"
  667. dataIndex="adminName"
  668. key="adminName"
  669. />
  670. <Column
  671. title="联系方式"
  672. dataIndex="contactInfo"
  673. key="contactInfo"
  674. />
  675. <Column
  676. title="最新跟进状态"
  677. dataIndex="_followSituation"
  678. key="_followSituation"
  679. />
  680. <Column
  681. title="跟进结果"
  682. dataIndex="followResult"
  683. key="followResult"
  684. />
  685. </Table>
  686. </Spin>
  687. </Modal>
  688. <Modal
  689. footer=''
  690. title="日志记录列表"
  691. width='1400px'
  692. visible={this.state.modal4Visible}
  693. onOk={this.setModal4Visiblecancel}
  694. onCancel={this.setModal4Visiblecancel}
  695. >
  696. <Spin spinning={this.state.loading}>
  697. <Table dataSource={this.state.journal} >
  698. <Column
  699. title="操作员姓名"
  700. dataIndex="operatorName"
  701. key="operatorName"
  702. />
  703. <Column
  704. title="操作类型"
  705. dataIndex="operatorType"
  706. key="operatorType"
  707. />
  708. <Column
  709. title="操作时间"
  710. dataIndex="operatorTime"
  711. key="operatorTime"
  712. />
  713. <Column
  714. title="修改前客户状态"
  715. dataIndex="beforeCustomerStatus"
  716. key="beforeCustomerStatus"
  717. />
  718. <Column
  719. title="修改后客户状态"
  720. dataIndex="afterCustomerStatus"
  721. key="afterCustomerStatus"
  722. />
  723. <Column
  724. title="修改前客户意向"
  725. dataIndex="beforeCustomerIntention"
  726. key="beforeCustomerIntention"
  727. />
  728. <Column
  729. title="修改后客户意向"
  730. dataIndex="afterCustomerIntention"
  731. key="afterCustomerIntention"
  732. />
  733. <Column
  734. title="修改前跟进进度"
  735. dataIndex="beforeFollowSituation"
  736. key="beforeFollowSituation"
  737. />
  738. <Column
  739. title="修改后跟进进度"
  740. dataIndex="afterFollowSituation"
  741. key="afterFollowSituation"
  742. />
  743. <Column
  744. title="修改前跟进人"
  745. dataIndex="beforeAdminName"
  746. key="beforeAdminName"
  747. />
  748. <Column
  749. title="修改后跟进人"
  750. dataIndex="afterAdminName"
  751. key="afterAdminName"
  752. />
  753. </Table>
  754. </Spin>
  755. </Modal>
  756. </div >
  757. );
  758. }
  759. });
  760. export default PublicCustomer;