companyCustomer.jsx 31 KB

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