companyCustomer.jsx 31 KB

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