companyCustomer.jsx 31 KB

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