companyCustomer.jsx 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  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. selectedRowKeys:[],
  281. hids:record.id
  282. })
  283. },
  284. //点击消失函数
  285. setModal3Visiblecancel(e) {
  286. this.setState({
  287. modal3Visible:false
  288. });
  289. },
  290. setModal4Visiblecancel(e) {
  291. this.setState({
  292. modal4Visible:false
  293. });
  294. },
  295. closeDesc(e, s) {
  296. this.state.showDesc = e;
  297. if (s) {
  298. this.loadData();
  299. };
  300. },
  301. search() {
  302. this.loadData();
  303. },
  304. reset() {
  305. this.state.companyNamet='';
  306. this.state.customerTypet=undefined;
  307. this.state.id = undefined;
  308. this.state.shareTypet = undefined;
  309. this.state.companyIntentiont = undefined;
  310. this.state.followSituationt = undefined;
  311. this.state.locationProvincet = undefined;
  312. this.state.customerStatust = undefined;
  313. this.state.contactNamet = undefined;
  314. this.state.contactTelt = undefined;
  315. this.state.contactNamet = undefined;
  316. this.state.releaseDatet = [];
  317. this.loadData();
  318. },
  319. searchSwitch() {
  320. this.setState({
  321. searchMore: !this.state.searchMore
  322. });
  323. },
  324. //点击消失函数
  325. setok(e) {
  326. this.setState({
  327. visible:true
  328. });
  329. this.Detailload(e)
  330. },
  331. setcancel(e) {
  332. this.setState({
  333. visible:false
  334. });
  335. },
  336. setoks(index) {
  337. this.setState({
  338. visible1:true
  339. });
  340. this.setState({
  341. loading: true
  342. });
  343. $.ajax({
  344. method: "post",
  345. dataType: "json",
  346. crossDomain: false,
  347. url: globalConfig.context + "/api/admin/customer/findCustomerUserList",
  348. data:{
  349. cid:this.state.hids
  350. },
  351. success: function (data) {
  352. let theArr = [];
  353. let thedata=data.data;
  354. for (let i = 0; i < data.data.length; i++) {
  355. let thisdata = data.data[i];
  356. theArr.push({
  357. id:thisdata.id,//联系人ID
  358. contactName:thisdata.name,//联系人姓名
  359. sex:thisdata.sex,//联系人性别
  360. mobile:thisdata.mobile,//座机号
  361. telNum:thisdata.telNum,//手机号
  362. email:thisdata.email,//邮箱
  363. qq:thisdata.qq,//qq
  364. wechat:thisdata.wechat,//微信号
  365. depatrment:thisdata.depatrment,//部门
  366. customerPosition:thisdata.customerPosition,//职位
  367. });
  368. };
  369. this.setState({
  370. information: theArr,
  371. });
  372. }.bind(this),
  373. }).always(function () {
  374. this.setState({
  375. loading: false
  376. });
  377. }.bind(this));
  378. },
  379. setcancels(e) {
  380. this.setState({
  381. visible1:false
  382. });
  383. },
  384. setModal4VisibleOk(e) {
  385. this.setState({ modal4Visible:true });
  386. this.state.data = [];
  387. this.setState({
  388. loading: true
  389. });
  390. this.setState({
  391. selectedRowKeys:this.state.selectedRowKeys,
  392. });
  393. $.ajax({
  394. method: "get",
  395. dataType: "json",
  396. crossDomain: false,
  397. url:globalConfig.context + '/api/admin/customer/listCustomerLog',
  398. data: {
  399. customerId:this.state.record
  400. },
  401. success: function (data) {
  402. let theArr = [];
  403. let theWomanID=[];
  404. let theFollowID=[];
  405. if (!data.data) {
  406. if (data.error && data.error.length) {
  407. message.warning(data.error[0].message);
  408. };
  409. } else {
  410. data.data.map(function (item,index) {
  411. theWomanID.push(data.data[index].contactId);
  412. });
  413. data.data.map(function (item,index) {
  414. theFollowID.push(data.data[index].followId);
  415. });
  416. for (let i = 0; i < data.data.length; i++) {
  417. let thisdata = data.data[i];
  418. theArr.push({
  419. key:i,
  420. operatorName:thisdata.operatorName,//操作员姓名
  421. operatorType:thisdata.operatorType,//操作类型
  422. operatorTime:thisdata.operatorTime,//操作时间
  423. beforeCustomerStatus:thisdata.beforeCustomerStatus,//修改前客户状态
  424. afterCustomerStatus:thisdata.afterCustomerStatus,//修改后客户状态
  425. beforeCustomerIntention:thisdata.beforeCustomerIntention,//修改前客户意向
  426. afterCustomerIntention:thisdata.afterCustomerIntention,//修改后客户意向
  427. beforeFollowSituation:thisdata.beforeFollowSituation,//修改前跟进进度
  428. afterFollowSituation:thisdata.afterFollowSituation,//修改后跟进进度
  429. beforeAdminName:thisdata.beforeAdminName,//修改前跟进人
  430. afterAdminName:thisdata.afterAdminName,//修改后跟进人
  431. });
  432. };
  433. };
  434. this.setState({//导出数据
  435. journal: theArr,
  436. theWomanID:theWomanID,
  437. theFollowID:theFollowID,
  438. });
  439. }.bind(this),
  440. }).always(function () {
  441. this.setState({
  442. loading: false
  443. });
  444. }.bind(this));
  445. },
  446. //点击查看跟进记录,点击最新跟进的第一个按钮(跟进状态)执行的函数,将会出现很多跟进列表
  447. setModal3VisibleOk(e) {
  448. this.setState({ modal3Visible:true });
  449. this.state.data = [];
  450. this.setState({
  451. loading: true
  452. });
  453. this.setState({
  454. selectedRowKeys:this.state.selectedRowKeys,
  455. });
  456. $.ajax({
  457. method: "get",
  458. dataType: "json",
  459. crossDomain: false,
  460. url:globalConfig.context + '/api/admin/customer/listAllFollowUpRecord',
  461. data: {
  462. customerId:this.state.record
  463. },
  464. success: function (data) {
  465. let theArr = [];
  466. let theWomanID=[];
  467. let theFollowID=[];
  468. if (!data.data) {
  469. if (data.error && data.error.length) {
  470. message.warning(data.error[0].message);
  471. };
  472. } else {
  473. data.data.map(function (item,index) {
  474. theWomanID.push(data.data[index].contactId);
  475. });
  476. data.data.map(function (item,index) {
  477. theFollowID.push(data.data[index].followId);
  478. });
  479. for (let i = 0; i < data.data.length; i++) {
  480. let thisdata = data.data[i];
  481. theArr.push({
  482. key:i,
  483. _followDate:thisdata._followDate,//跟进时间
  484. adminName:thisdata.adminName,//跟进人
  485. contactName:thisdata.contactName, //联系人姓名
  486. contactId:thisdata.contactId, //联系人ID
  487. contactInfo:thisdata.contactInfo,//联系信息
  488. _customerStatus:thisdata._customerStatus,//客户状态
  489. _followSituation:thisdata._followSituation,//最新跟进
  490. followResult:thisdata.followResult,//跟进结果
  491. attachment:thisdata.attachment,//附件地址
  492. });
  493. };
  494. };
  495. this.setState({//导出数据
  496. datahistory: theArr,
  497. theWomanID:theWomanID,
  498. theFollowID:theFollowID,
  499. });
  500. }.bind(this),
  501. }).always(function () {
  502. this.setState({
  503. loading: false
  504. });
  505. }.bind(this));
  506. },
  507. render() {
  508. const theData = this.state.data || {};
  509. const rowSelection = {
  510. selectedRowKeys: this.state.selectedRowKeys,
  511. onChange: (selectedRowKeys, selectedRows,e) => {
  512. this.setState({
  513. selectedRows: selectedRows.slice(-1),
  514. selectedRowKeys:selectedRowKeys.slice(-1)
  515. });
  516. },
  517. onSelect: (record, selected, selectedRows) => {
  518. this.setState({
  519. record:record.id
  520. })
  521. },
  522. };
  523. const hasSelected = this.state.selectedRowKeys.length > 0;
  524. const { RangePicker } = DatePicker;
  525. return (
  526. <div className="user-content" >
  527. <div className="content-title">
  528. <span>公司客户管理</span>
  529. </div>
  530. <div className="user-search">
  531. <Input placeholder="公司名称"
  532. value={this.state.companyNamet}
  533. onChange={(e) => { this.setState({ companyNamet: e.target.value }); }} />
  534. <Select placeholder="客户类型" style={{ width: 120 }}
  535. value={this.state.customerTypet }
  536. onChange={(e) => { this.setState({ customerTypet : e }) }}>
  537. <Select.Option value="0" >个人客户</Select.Option>
  538. <Select.Option value="1" >机构单位</Select.Option>
  539. <Select.Option value="2" >团体单位</Select.Option>
  540. </Select>
  541. <Select placeholder="意向服务"
  542. style={{ width: 160 }}
  543. value={this.state.companyIntentiont}
  544. onChange={(e) => { this.setState({ companyIntentiont: e }) }}>
  545. {this.state.intentionalOption}
  546. </Select>
  547. <Select placeholder="跟进进度"
  548. style={{ width: 160 }}
  549. value={this.state.followSituationt}
  550. onChange={(e) => { this.setState({ followSituationt: e }) }}>
  551. {this.state.newOption}
  552. </Select>
  553. <Select placeholder="地区"
  554. style={{ width: 160 }}
  555. value={this.state.locationProvincet}
  556. onChange={(e) => { this.setState({ locationProvincet: e }) }}>
  557. {this.state.auditStatusOption}
  558. </Select>
  559. <Select placeholder="客户状态" style={{ width: 120 }}
  560. value={this.state.customerStatust}
  561. onChange={(e) => { this.setState({customerStatust: e }) }}>
  562. {this.state.customerStatuarr}
  563. </Select>
  564. <Button type="primary" onClick={this.search}>搜索</Button>
  565. <Button onClick={this.reset}>重置</Button>
  566. <Button onClick={this.setModal4VisibleOk} style={{marginRight:'10px'}} disabled={!hasSelected}>查看日志</Button>
  567. <Button onClick={this.setModal3VisibleOk} style={{marginRight:'10px'}} disabled={!hasSelected}>查看跟进记录</Button>
  568. <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch} /></span>
  569. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  570. <Input placeholder="联系人姓名" style={{width:'140px',marginRight:'10px'}}
  571. value={this.state.contactNamet}
  572. onChange={(e) => { this.setState({ contactNamet: e.target.value }); }} />
  573. <Input placeholder="手机号码" style={{width:'140px',marginRight:'10px'}}
  574. value={this.state.contactTelt }
  575. onChange={(e) => { this.setState({ contactTelt: e.target.value }); }} />
  576. </div>
  577. </div>
  578. <div className="patent-table">
  579. <Spin spinning={this.state.loading}>
  580. <Table columns={this.state.columns}
  581. dataSource={this.state.dataSource}
  582. rowSelection={rowSelection}
  583. pagination={this.state.pagination}
  584. onRowClick={this.tableRowClick} />
  585. </Spin>
  586. </div>
  587. <Modal maskClosable={false}
  588. visible={this.state.visible}
  589. onOk={this.setcancel}
  590. onCancel={this.setcancel}
  591. width='800px'
  592. footer={null}
  593. title="客户详情"
  594. className="demand-order-content">
  595. <Spin spinning={this.state.loading}>
  596. <Row style={{marginLeft:'100px'}}>
  597. <Col span={3}>客户类型:</Col>
  598. <Col span={6}>{theData._customerType}</Col>
  599. </Row>
  600. <Row style={{marginLeft:'100px'}}>
  601. <Col span={3}>录入时间:</Col>
  602. <Col span={6}>{theData.createTime}</Col>
  603. <Col span={3}>跟单人:</Col>
  604. <Col span={6}>{theData.adminName}</Col>
  605. </Row>
  606. <Row style={{marginLeft:'50px'}}>基本资料:</Row>
  607. <Row style={{marginLeft:'100px'}}>
  608. <Col span={3}>公司名称:</Col>
  609. <Col span={6}>{theData.companyName}</Col>
  610. <Col span={3}>公司行业:</Col>
  611. <Col span={6}>{theData.companyIndustry}</Col>
  612. </Row>
  613. <Row style={{marginLeft:'100px'}}>
  614. <Col span={3}>意向服务:</Col>
  615. <Col span={18}>{this.state.companyIntention}</Col>
  616. </Row>
  617. <Row style={{marginLeft:'100px'}}>
  618. <Col span={3}>地区:</Col>
  619. <Col span={6}>{getcityArr(theData.locationProvince)}</Col>
  620. </Row>
  621. <Row style={{marginLeft:'100px'}}>
  622. <Col span={3}>最新跟进:</Col>
  623. <Col span={6}>{theData._followSituation}</Col>
  624. <Col span={3}>客户状态:</Col>
  625. <Col span={6}>{theData._customerStatus}</Col>
  626. </Row>
  627. <Row style={{marginLeft:'100px'}}>
  628. <Col span={3}>详细地址:</Col>
  629. <Col span={6}>{theData.address}</Col>
  630. </Row>
  631. <Row style={{marginLeft:'100px'}} >
  632. <Col span={3}>备注:</Col>
  633. <Col span={18}>{theData.remarks}</Col>
  634. </Row>
  635. </Spin>
  636. </Modal>
  637. <Modal
  638. footer=''
  639. title="历史记录列表"
  640. width='800px'
  641. visible={this.state.modal3Visible}
  642. onOk={this.setModal3Visiblecancel}
  643. onCancel={this.setModal3Visiblecancel}
  644. >
  645. <Spin spinning={this.state.loading}>
  646. <Table dataSource={this.state.datahistory} >
  647. <Column
  648. title="时间"
  649. dataIndex="_followDate"
  650. key="_followDate"
  651. />
  652. <Column
  653. title="客户"
  654. dataIndex="contactName"
  655. key="contactName"
  656. />
  657. <Column
  658. title="跟进人"
  659. dataIndex="adminName"
  660. key="adminName"
  661. />
  662. <Column
  663. title="联系方式"
  664. dataIndex="contactInfo"
  665. key="contactInfo"
  666. />
  667. <Column
  668. title="最新跟进状态"
  669. dataIndex="_followSituation"
  670. key="_followSituation"
  671. />
  672. <Column
  673. title="跟进结果"
  674. dataIndex="followResult"
  675. key="followResult"
  676. />
  677. </Table>
  678. </Spin>
  679. </Modal>
  680. <Modal
  681. footer=''
  682. title="日志记录列表"
  683. width='1400px'
  684. visible={this.state.modal4Visible}
  685. onOk={this.setModal4Visiblecancel}
  686. onCancel={this.setModal4Visiblecancel}
  687. >
  688. <Spin spinning={this.state.loading}>
  689. <Table dataSource={this.state.journal} >
  690. <Column
  691. title="操作员姓名"
  692. dataIndex="operatorName"
  693. key="operatorName"
  694. />
  695. <Column
  696. title="操作类型"
  697. dataIndex="operatorType"
  698. key="operatorType"
  699. />
  700. <Column
  701. title="操作时间"
  702. dataIndex="operatorTime"
  703. key="operatorTime"
  704. />
  705. <Column
  706. title="修改前客户状态"
  707. dataIndex="beforeCustomerStatus"
  708. key="beforeCustomerStatus"
  709. />
  710. <Column
  711. title="修改后客户状态"
  712. dataIndex="afterCustomerStatus"
  713. key="afterCustomerStatus"
  714. />
  715. <Column
  716. title="修改前客户意向"
  717. dataIndex="beforeCustomerIntention"
  718. key="beforeCustomerIntention"
  719. />
  720. <Column
  721. title="修改后客户意向"
  722. dataIndex="afterCustomerIntention"
  723. key="afterCustomerIntention"
  724. />
  725. <Column
  726. title="修改前跟进进度"
  727. dataIndex="beforeFollowSituation"
  728. key="beforeFollowSituation"
  729. />
  730. <Column
  731. title="修改后跟进进度"
  732. dataIndex="afterFollowSituation"
  733. key="afterFollowSituation"
  734. />
  735. <Column
  736. title="修改前跟进人"
  737. dataIndex="beforeAdminName"
  738. key="beforeAdminName"
  739. />
  740. <Column
  741. title="修改后跟进人"
  742. dataIndex="afterAdminName"
  743. key="afterAdminName"
  744. />
  745. </Table>
  746. </Spin>
  747. </Modal>
  748. </div >
  749. );
  750. }
  751. });
  752. export default PublicCustomer;