tools.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. import { message,Timeline,Select } from 'antd';
  2. import React from 'react';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import {
  6. patentTypeList,
  7. patentStateList,
  8. patentFieldList,
  9. technicalSourceList,
  10. catagoryList,
  11. intellectualGetList,
  12. conversionFormList,
  13. annualReportStateList,
  14. cognizanceStateList,
  15. technologyStateList,
  16. copyrightStateList,
  17. auditStatusList,
  18. scaleList,
  19. companyType,
  20. industryList,
  21. contractTypeList,
  22. contractStateList,
  23. demandTypeList,
  24. achievementCategoryList,
  25. techAuditStatusList,
  26. maturityList,
  27. transferModeList,
  28. innovationList,
  29. orderStatusList,
  30. activityForm,
  31. activityType,
  32. boutique,
  33. hot,
  34. customerTyp,
  35. cityArr,
  36. customerStatus,
  37. intentionalService,
  38. newFollow,
  39. sex,
  40. tag,
  41. contact,
  42. intentionalServiceOn,
  43. newFollowOn,
  44. customerStatusOn,
  45. Whether,
  46. Certification,
  47. currentMember,
  48. lvl,
  49. } from './dataDic.js';
  50. import { provinceList} from './NewDicProvinceList.js';
  51. module.exports = {
  52. splitUrl: function (string, i, url) {
  53. let theList = [];
  54. let theArr = [];
  55. if (string && string.length) {
  56. theArr = string.split(i);
  57. theArr.map(function (item, i) {
  58. theList.push({
  59. uid: -i-1,
  60. url: url + item,
  61. response: {
  62. data: item
  63. }
  64. });
  65. });
  66. }
  67. return theList;
  68. },
  69. getBase64: function (img, callback) {
  70. const reader = new FileReader();
  71. reader.addEventListener('load', () => callback(reader.result));
  72. reader.readAsDataURL(img);
  73. },
  74. beforeUpload: function (file) {
  75. // debugger
  76. // const isJPG = file.type === 'image/jpeg/document';
  77. // if (!isJPG) {
  78. // message.error('You can only upload JPG file!');
  79. // }
  80. // const isLt2M = file.size / 1024 / 1024 < 2;
  81. // if (!isLt2M) {
  82. // message.error('Image must smaller than 2MB!');
  83. // }
  84. // return isJPG && isLt2M;
  85. },
  86. beforeUploadFile: function (file) {
  87. // debugger
  88. // const isJPG = file.type === 'image/jpeg/document';
  89. // if (!isJPG) {
  90. // message.error('You can only upload JPG file!');
  91. // }
  92. // const isLt2M = file.size / 1024 / 1024 < 2;
  93. // if (!isLt2M) {
  94. // message.error('Image must smaller than 2MB!');
  95. // }
  96. // return isJPG && isLt2M;
  97. },
  98. getTime: function (e, t) {
  99. if (e && !t) {
  100. var d = new Date(e);
  101. d = d.getFullYear() + "-" +
  102. ((d.getMonth() + 1) < 10 ? '0' + (d.getMonth() + 1) : (d.getMonth() + 1)) + "-" +
  103. (d.getDate() < 10 ? '0' + d.getDate() : d.getDate()) + " ";
  104. // + (d.getHours() < 10 ? "0" + d.getHours() : d.getHours()) + ":" +
  105. // (d.getMinutes() < 10 ? "0" + d.getMinutes() : d.getMinutes()) + ":" +
  106. // (d.getSeconds() < 10 ? "0" + d.getSeconds() : d.getSeconds());
  107. return d;
  108. } else if (e && t) {
  109. var d1 = new Date(e);
  110. var d2 = new Date(e);
  111. d2 = d2.setMonth(d1.getMonth() + t);
  112. d2 = new Date(d2)
  113. d2 = d2.getFullYear() + "-" +
  114. ((d2.getMonth() + 1) < 10 ? '0' + (d2.getMonth() + 1) : (d2.getMonth() + 1)) + "-" +
  115. (d2.getDate() < 10 ? '0' + d2.getDate() : d2.getDate()) + " ";
  116. return d2;
  117. } else {
  118. return '';
  119. }
  120. },
  121. getPatentType: function (e) {
  122. if (e) {
  123. let theType = '';
  124. patentTypeList.map(function (item) {
  125. if (item.value == e) {
  126. theType = item.key;
  127. };
  128. });
  129. return theType;
  130. }
  131. },
  132. getPatentState: function (e) {
  133. if (e) {
  134. let theState = '';
  135. patentStateList.map(function (item) {
  136. if (item.value == e) {
  137. theState = item.key;
  138. };
  139. });
  140. return theState;
  141. }
  142. },
  143. getPatentField: function (e) {
  144. if (e) {
  145. let theState = '';
  146. patentFieldList.map(function (item) {
  147. if (item.value == e) {
  148. theState = item.key;
  149. };
  150. });
  151. return theState;
  152. }
  153. },
  154. getTechnicalSource: function (e) {
  155. if (e) {
  156. let theSource = '';
  157. technicalSourceList.map(function (item) {
  158. if (item.value == e) {
  159. theSource = item.key;
  160. };
  161. });
  162. return theSource;
  163. }
  164. },
  165. getCatagory: function (e) {
  166. if (e) {
  167. let theType = '';
  168. catagoryList.map(function (item) {
  169. if (item.value == e) {
  170. theType = item.key;
  171. };
  172. });
  173. return theType;
  174. }
  175. },
  176. getIntellectualObtainWay: function (e) {
  177. if (e) {
  178. let theType = '';
  179. intellectualGetList.map(function (item) {
  180. if (item.value == e) {
  181. theType = item.key;
  182. };
  183. });
  184. return theType;
  185. }
  186. },
  187. getConversionForm: function (e) {
  188. if (e) {
  189. let theType = '';
  190. conversionFormList.map(function (item) {
  191. if (item.value == e) {
  192. theType = item.key;
  193. };
  194. });
  195. return theType;
  196. }
  197. },
  198. getAnnualReportState: function (e) {
  199. if (e) {
  200. let theType = '';
  201. annualReportStateList.map(function (item) {
  202. if (item.value == e) {
  203. theType = item.key;
  204. };
  205. });
  206. return theType;
  207. }
  208. },
  209. getCognizanceState: function (e) {
  210. if (e) {
  211. let theType = '';
  212. cognizanceStateList.map(function (item) {
  213. if (item.value == e) {
  214. theType = item.key;
  215. };
  216. });
  217. return theType;
  218. }
  219. },
  220. getTechnologyState: function (e) {
  221. if (e) {
  222. let theType = '';
  223. technologyStateList.map(function (item) {
  224. if (item.value == e) {
  225. theType = item.key;
  226. };
  227. });
  228. return theType;
  229. }
  230. },
  231. //显示用户认证状态
  232. getAuditState: function (e) {
  233. if (e) {
  234. let theType = '';
  235. auditStatusList.map(function (item) {
  236. if (item.value == e) {
  237. theType = item.key;
  238. };
  239. });
  240. return theType;
  241. }
  242. },
  243. getCopyrightState: function (e) {
  244. if (e) {
  245. let theType = '';
  246. copyrightStateList.map(function (item) {
  247. if (item.value == e) {
  248. theType = item.key;
  249. };
  250. });
  251. return theType;
  252. }
  253. },
  254. downloadFile: function (path, fileName) {
  255. window.open(globalConfig.context + '/open/downloadFile?path=' + path + '&fileName=' + fileName)
  256. },
  257. techDownloadFile: function (url, id) {
  258. window.open(globalConfig.context + url + '?id=' + id)
  259. },
  260. copyrightDownloadFile: function (id, sign, url) {
  261. window.open(globalConfig.context + url + '?id=' + id + '&sign=' + sign)
  262. },
  263. newDownloadFile: function (id, sign, url,type) {
  264. if (!type ) {
  265. window.open(globalConfig.context + url + '?id=' + id + '&sign=' + sign);
  266. };
  267. if ( type ) {
  268. window.open(globalConfig.context + url + '?id=' + id + '&sign=' + sign + '&type=' + type);
  269. };
  270. },
  271. companySearch(input, option) {
  272. return option.props.children.indexOf(input) >= 0
  273. },
  274. getVacations(ccccc){
  275. let now = new Date();
  276. let theYear = now.getFullYear();
  277. $.ajax({
  278. type: "get",
  279. dataType: "json",
  280. crossDomain: false,
  281. url: globalConfig.context + '/open/html/json/vacations' + theYear,
  282. success: (data)=>{
  283. if (data) {
  284. ccccc(data);
  285. };
  286. }
  287. });
  288. },
  289. getInUrgentTime(date, inUrgent,vocations) {
  290. if ( vocations && vocations.length ){
  291. let now = new Date(date),addNum = 0;
  292. for (var i = 1; i <= inUrgent;) {
  293. now.setDate(now.getDate() + 1);
  294. let thebool = true;
  295. vocations.map((item)=>{
  296. if ( item == getKey(now)) {
  297. thebool= false;
  298. }
  299. });
  300. if ( thebool ) {
  301. i++
  302. };
  303. };
  304. return now;
  305. };
  306. function getKey(date) {
  307. var year = date.getFullYear(),
  308. month = date.getMonth() + 1,
  309. day = date.getDate();
  310. year = "" + year;
  311. month = (month > 9 ? "" : "0") + month;
  312. day = (day > 9 ? "" : "0") + day;
  313. return year + month + day;
  314. }
  315. },
  316. //各种通过接口获取下拉列表
  317. setPatentStateOption(permission) {
  318. let theArr = [];
  319. patentStateList.map(function (item) {
  320. for (let i = 0; i < permission.length; i++) {
  321. if (item.value == permission[i]) {
  322. theArr.push(item);
  323. };
  324. };
  325. });
  326. return theArr;
  327. },
  328. setUserContactsList(){
  329. let theOption = [];
  330. $.ajax({
  331. method: "get",
  332. dataType: "json",
  333. crossDomain: false,
  334. url: globalConfig.context + '/api/user/getContacts',
  335. success: function (data) {
  336. if (!data.data) {
  337. if ( data.error && data.error.length ) {
  338. message.warning(data.error[0].message);
  339. };
  340. return;
  341. };
  342. for (let item in data.data) {
  343. let theData = data.data[item];
  344. theOption.push(
  345. <Select.Option value={item} key={theData}>{theData}</Select.Option>
  346. );
  347. };
  348. }
  349. });
  350. return theOption;
  351. },
  352. setAdminContactsList(uid){
  353. let theOption = [];
  354. $.ajax({
  355. method: "get",
  356. dataType: "json",
  357. crossDomain: false,
  358. url: globalConfig.context + '/api/admin/getContacts',
  359. data:{ "uid": uid },
  360. success: function (data) {
  361. if (!data.data) {
  362. if ( data.error && data.error.length ) {
  363. message.warning(data.error[0].message);
  364. };
  365. return;
  366. };
  367. for (let item in data.data) {
  368. let theData = data.data[item];
  369. theOption.push(
  370. <Select.Option value={item} key={theData}>{theData}</Select.Option>
  371. );
  372. };
  373. }
  374. });
  375. return theOption;
  376. },
  377. //高企培育资料完成情况(比重)
  378. getProportion(uid,callback){
  379. $.ajax({
  380. method: "get",
  381. dataType: "json",
  382. crossDomain: false,
  383. url: globalConfig.context + '/api/admin/proportion',
  384. data:{ "uid": uid },
  385. success: function (data) {
  386. if (!data.data) {
  387. if ( data.error && data.error.length ) {
  388. message.warning(data.error[0].message);
  389. };
  390. data.data = {}
  391. callback(data.data);
  392. };
  393. callback(data.data);
  394. }
  395. });
  396. },
  397. //保存高企培育资料完成情况
  398. saveProportion(id,uid,sign,status){
  399. $.ajax({
  400. method: "post",
  401. dataType: "json",
  402. crossDomain: false,
  403. url: globalConfig.context + '/api/admin/confirmProportion',
  404. data:{
  405. "id": id,
  406. "uid":uid,
  407. "sign":sign,
  408. "status":status
  409. },
  410. success: function (data) {
  411. if (!data.data) {
  412. if ( data.error && data.error.length ) {
  413. message.warning(data.error[0].message);
  414. };
  415. return;
  416. };
  417. }
  418. });
  419. },
  420. //获取window.location.search传的值
  421. getSearchUrl(e){
  422. let searchURL = e;
  423. let theObj = {};
  424. searchURL = searchURL.substring(1, searchURL.length);
  425. theObj[searchURL.split("&")[0].split("=")[0]] = searchURL.split("&")[0].split("=")[1];
  426. if ( searchURL.split("&")[1] ) {
  427. theObj[searchURL.split("&")[1].split("=")[0]] = searchURL.split("&")[1].split("=")[1];
  428. if ( searchURL.split("&")[2] ) {
  429. theObj[searchURL.split("&")[2].split("=")[0]] = searchURL.split("&")[2].split("=")[1];
  430. };
  431. };
  432. return theObj;
  433. },
  434. //预览接口
  435. getPreview(id,url,sign,callback){
  436. $.ajax({
  437. method: "get",
  438. dataType: "json",
  439. crossDomain: false,
  440. url: globalConfig.context + "/api/admin/preview/" + url,
  441. data:{
  442. "id": id,
  443. "sign": sign
  444. },
  445. success: function (data) {
  446. if (!data.data) {
  447. if ( data.error && data.error.length ) {
  448. message.warning(data.error[0].message);
  449. };
  450. };
  451. callback('https://view.officeapps.live.com/op/view.aspx?src=' + encodeURIComponent(location.origin + globalConfig.context + "/open/preview?" + data.data));
  452. }
  453. });
  454. },
  455. //获取企业规模
  456. getScaleState(e) {
  457. if (e) {
  458. let theType = '';
  459. scaleList.map(function (item) {
  460. if (item.value == e) {
  461. theType = item.key;
  462. };
  463. });
  464. return theType;
  465. }
  466. },
  467. //获取企业类型
  468. getCompanyType(type1, type2) {
  469. let companyTypeList = [];
  470. for (let i = 0; i < companyType.length; i++) {
  471. companyTypeList.push({
  472. value: companyType[i].value,
  473. label: companyType[i].label
  474. });
  475. if (companyType[i].children) {
  476. for (let j = 0; j < companyType[i].children.length; j++) {
  477. companyTypeList.push({
  478. value: companyType[i].children[j].value,
  479. label: companyType[i].children[j].label
  480. });
  481. };
  482. }
  483. };
  484. companyTypeList.sort(function (a, b) {
  485. return a.value - b.value
  486. });
  487. let typeKey = "";
  488. companyTypeList.map(function (item) {
  489. if (type1 == item.value) {
  490. typeKey = item.label;
  491. };
  492. if (type2 == item.value) {
  493. typeKey = typeKey + "/" + item.label;
  494. };
  495. });
  496. return typeKey;
  497. },
  498. //获取企业行业
  499. getIndustryType(e) {
  500. if (e) {
  501. let theType = '';
  502. industryList.map(function (item) {
  503. if (item.value == e) {
  504. theType = item.key;
  505. };
  506. });
  507. return theType;
  508. }
  509. },
  510. //获取合同状态
  511. getContractType: function (e) {
  512. if (e) {
  513. let theType = '';
  514. contractTypeList.map(function (item) {
  515. if (item.value == e) {
  516. theType = item.key;
  517. };
  518. });
  519. return theType;
  520. }
  521. },
  522. //获取合同类型
  523. getContractState: function (e) {
  524. if (e) {
  525. let theType = '';
  526. contractStateList.map(function (item) {
  527. if (item.value == e) {
  528. theType = item.key;
  529. };
  530. });
  531. return theType;
  532. }
  533. },
  534. //获取需求类型
  535. getDemandType: function (e) {
  536. if (e) {
  537. let theType = '';
  538. demandTypeList.map(function (item) {
  539. if (item.value == e) {
  540. theType = item.key;
  541. };
  542. });
  543. return theType;
  544. }
  545. },
  546. //获取成果类型
  547. getAchievementCategory: function (e) {
  548. if (e) {
  549. let theType = '';
  550. achievementCategoryList.map(function (item) {
  551. if (item.value == e) {
  552. theType = item.key;
  553. };
  554. });
  555. return theType;
  556. }
  557. },
  558. //获取需求和成果审核状态
  559. getTechAuditStatus: function (e) {
  560. if (e) {
  561. let theType = '';
  562. techAuditStatusList.map(function (item) {
  563. if (item.value == e) {
  564. theType = item.key;
  565. };
  566. });
  567. return theType;
  568. }
  569. },
  570. //获取需求和成果审核状态
  571. getMaturity: function (e) {
  572. if (e) {
  573. let theType = '';
  574. maturityList.map(function (item) {
  575. if (item.value == e) {
  576. theType = item.key;
  577. };
  578. });
  579. return theType;
  580. }
  581. },
  582. //获取需求和成果审核状态
  583. getTransferMode: function (e) {
  584. if (e) {
  585. let theType = '';
  586. transferModeList.map(function (item) {
  587. if (item.value == e) {
  588. theType = item.key;
  589. };
  590. });
  591. return theType;
  592. }
  593. },
  594. //获取创新度状态
  595. getInnovation: function (e) {
  596. if (e) {
  597. let theType = '';
  598. innovationList.map(function (item) {
  599. if (item.value == e) {
  600. theType = item.key;
  601. };
  602. });
  603. return theType;
  604. }
  605. },
  606. //获取创新度状态
  607. getOrderStatus: function (e) {
  608. if (e) {
  609. let theType = '';
  610. orderStatusList.map(function (item) {
  611. if (item.value == e) {
  612. theType = item.key;
  613. };
  614. });
  615. return theType;
  616. }
  617. },
  618. //科技管理
  619. //活动圈后台管理
  620. getActivityType: function (e) {
  621. if (e) {
  622. let theType = '';
  623. activityType.map(function (item) {
  624. if (item.value == e) {
  625. theType = item.key;
  626. };
  627. });
  628. return theType;
  629. }
  630. },
  631. getActivityForm: function (e) {
  632. if (e) {
  633. let theType = '';
  634. activityForm.map(function (item) {
  635. if (item.value == e) {
  636. theType = item.key;
  637. };
  638. });
  639. return theType;
  640. }
  641. },
  642. //是否展示在首页
  643. gethot: function (e) {
  644. if (e) {
  645. let theType = '';
  646. hot.map(function (item) {
  647. if (item.value == e) {
  648. theType = item.key;
  649. };
  650. });
  651. return theType;
  652. }
  653. },
  654. //是否精品
  655. getboutique: function (e) {
  656. if (e) {
  657. let theType = '';
  658. boutique.map(function (item) {
  659. if (item.value == e) {
  660. theType = item.key;
  661. };
  662. });
  663. return theType;
  664. }
  665. },
  666. //客户类型
  667. getcustomerTyp: function (e) {
  668. if (e) {
  669. let theType = '';
  670. customerTyp.map(function (item) {
  671. if (item.value == e) {
  672. theType = item.key;
  673. };
  674. });
  675. return theType;
  676. }
  677. },
  678. //省份
  679. getcityArr: function (e) {
  680. if (e) {
  681. let theType = '';
  682. cityArr.map(function (item) {
  683. if (item.value == e) {
  684. theType = item.key;
  685. }
  686. });
  687. return theType;
  688. }
  689. },
  690. //客户状态
  691. getcustomerStatue: function (e) {
  692. if (e) {
  693. let theType = '';
  694. customerStatus.map(function (item) {
  695. if (item.value == e) {
  696. theType = item.key;
  697. };
  698. });
  699. return theType;
  700. }
  701. },
  702. //意向服务
  703. getCompanyIntention: function (e) {
  704. if (e) {
  705. let theType = '';
  706. intentionalService.map(function (item) {
  707. if (item.value == e) {
  708. theType = item.key;
  709. };
  710. });
  711. return theType;
  712. }
  713. },
  714. //客户标签
  715. getTag: function (e) {
  716. if (e) {
  717. let theType = '';
  718. tag.map(function (item) {
  719. if (item.value == e) {
  720. theType = item.key;
  721. };
  722. });
  723. return theType;
  724. }
  725. },
  726. //最新跟进
  727. getfllowSituation: function (e) {
  728. if (e) {
  729. let theType = '';
  730. newFollow.map(function (item) {
  731. if (item.value == e) {
  732. theType = item.key;
  733. };
  734. });
  735. return theType;
  736. }
  737. },
  738. //性别
  739. getsex: function (e) {
  740. if (e) {
  741. let theType = '';
  742. sex.map(function (item) {
  743. if (item.value == e) {
  744. theType = item.key;
  745. };
  746. });
  747. return theType;
  748. }
  749. },
  750. //联系方式
  751. getcontact: function (e) {
  752. if (e) {
  753. let theType = '';
  754. contact.map(function (item) {
  755. if (item.value == e) {
  756. theType = item.key;
  757. };
  758. });
  759. return theType;
  760. }
  761. },
  762. //是否文字与数字转换
  763. getWhether: function (e) {
  764. if (e) {
  765. let theType = '';
  766. Whether.map(function (item) {
  767. if (item.value == e) {
  768. theType = item.key;
  769. };
  770. });
  771. return theType;
  772. }
  773. },
  774. //是否实名认证currentMember
  775. getCertification: function (e) {
  776. if (e) {
  777. let theType = '';
  778. Certification.map(function (item) {
  779. if (item.value == e) {
  780. theType = item.key;
  781. };
  782. });
  783. return theType;
  784. }
  785. },
  786. //会员状态
  787. getCurrentMember: function (e) {
  788. if (e) {
  789. let theType = '';
  790. currentMember.map(function (item) {
  791. if (item.value == e) {
  792. theType = item.key;
  793. };
  794. });
  795. return theType;
  796. }
  797. },
  798. //会员等级
  799. getLvl: function (e) {
  800. if (e) {
  801. let theType = '';
  802. lvl.map(function (item) {
  803. if (item.value == e) {
  804. theType = item.key;
  805. };
  806. });
  807. return theType;
  808. }
  809. },
  810. //省份转换
  811. getprovince:function(e){
  812. let nub=parseInt(e);
  813. let theType = '';
  814. if (nub<=34) {
  815. provinceList.map(function (item) {
  816. if (item.name == nub) {
  817. theType = item.id;
  818. };
  819. });
  820. return theType;
  821. }else if(nub>34&&nub<=380){
  822. provinceList.map(function (item) {
  823. item.cityList.map(function (city) {
  824. if (city.name == nub) {
  825. theType = city.id;
  826. };
  827. });
  828. });
  829. return theType;
  830. } else if(nub>380){
  831. provinceList.map(function (item) {
  832. item.cityList.map(function (city) {
  833. city.areaList.map(function (areas) {
  834. if (areas.name == nub) {
  835. theType = areas.id;
  836. };
  837. });
  838. });
  839. });
  840. return theType;
  841. }
  842. },
  843. //我的业务跟进状态
  844. getStatusFollow:function(e){
  845. let theType = '';
  846. if(e){
  847. theType ='跟进中' ;
  848. }else{
  849. theType ='停止跟进';
  850. }
  851. return theType;
  852. }
  853. }