content.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. import React, { Component } from 'react';
  2. import '../content.less';
  3. import LeftTab from '../leftTab';
  4. import { getMenu } from '../publicMenu.js'
  5. import { default as SignatureStatistics } from "./operationalData/signatureStatistics";
  6. import { default as PublicStatistics } from "./publicStatistics/index";
  7. import { default as FollowUpSummary } from "./managementFollow/followUpSummary/index";
  8. class Content extends Component {
  9. constructor() {
  10. super();
  11. this.state = {
  12. loading: false,
  13. component: <div></div>,
  14. };
  15. }
  16. componentWillMount() {
  17. var ids = window.location.href.indexOf('rid=');
  18. var idk = window.location.href.substr(ids + 4);
  19. var rid = idk.split('#');
  20. let menu = getMenu(rid);
  21. let curry;
  22. if (menu[0].subMenus.length > 0) {
  23. curry = menu[0].subMenus[0].url.split('#');
  24. } else {
  25. curry = menu[0].url.split('#');
  26. };
  27. if (window.location.hash) {
  28. this.getKey(window.location.hash.substr(1));
  29. } else {
  30. this.getKey(curry[1]);
  31. };
  32. }
  33. getKey(key) {
  34. switch (key) {
  35. // //我的单位客户
  36. // case 'myOrganization':
  37. // require.ensure([], () => {
  38. // const MyClient = require('./customerData/myClient').default;
  39. // this.setState({
  40. // component: <MyClient ApiUrl={''}/>
  41. // });
  42. // });
  43. // break;
  44. // // 单位客户查询
  45. // case 'organizationQuery':
  46. // require.ensure([], () => {
  47. // const CompanyCustomer = require('./customerData/companyCustomer').default;
  48. // this.setState({
  49. // component:<CompanyCustomer ApiUrl={''}/>,
  50. // });
  51. // });
  52. // break;
  53. //我的个人客户
  54. // case 'myPersonal':
  55. // require.ensure([], () => {
  56. // const IndividualCustomer = require('./individualCustomer/individualCustomer').default;
  57. // this.setState({
  58. // component: <IndividualCustomer ApiUrl={''}/>
  59. //
  60. // });
  61. // });
  62. // break;
  63. //我的被拒绝客户
  64. case 'myReject':
  65. require.ensure([], () => {
  66. const MyReject = require('./individualCustomer/myReject').default;
  67. this.setState({
  68. component: <MyReject ApiUrl={''} />
  69. });
  70. });
  71. break;
  72. // //个人客户查询
  73. // case 'personalQuery':
  74. // require.ensure([], () => {
  75. // const QueryCustomer = require('./individualCustomer/queryCustomer').default;
  76. // this.setState({
  77. // component:<QueryCustomer ApiUrl={''}/>,
  78. // });
  79. // });
  80. // break;
  81. //专家查询
  82. case 'expertQuery':
  83. require.ensure([], () => {
  84. const ExpertQuery = require('./individualCustomer/expertQuery').default;
  85. this.setState({
  86. component: <ExpertQuery ApiUrl={''} />,
  87. });
  88. });
  89. break;
  90. //公共客户查询
  91. case 'publicQuery':
  92. require.ensure([], () => {
  93. const Qublicquery = require('./individualCustomer/publicQuery').default;
  94. this.setState({
  95. component: <Qublicquery ApiUrl={''} />,
  96. });
  97. });
  98. break;
  99. //个人客户管理
  100. case 'personalManage':
  101. require.ensure([], () => {
  102. const PersonalManage = require('./customerManagement/personalManages').default;
  103. this.setState({
  104. component: <PersonalManage ApiUrl={''} />,
  105. });
  106. });
  107. break;
  108. //专家管理
  109. case 'expertManage':
  110. require.ensure([], () => {
  111. const ExpertManage = require('./customerManagement/expertManage').default;
  112. this.setState({
  113. component: <ExpertManage ApiUrl={''} />,
  114. });
  115. });
  116. break;
  117. //专家审核
  118. case 'expertAudit':
  119. require.ensure([], () => {
  120. const ExpertReview = require('./reviewed/expertReview').default;
  121. this.setState({
  122. component: <ExpertReview ApiUrl={''} />,
  123. });
  124. });
  125. break;
  126. //实名认证审核
  127. case 'identityAudit':
  128. require.ensure([], () => {
  129. const IdentityAudits = require('./reviewed/identityAudits').default;
  130. this.setState({
  131. component: <IdentityAudits ApiUrl={''} />,
  132. });
  133. });
  134. break;
  135. //客户录入审核
  136. case 'enteringAudit':
  137. require.ensure([], () => {
  138. const EnteringAudit = require('./reviewed/enteringAudit').default;
  139. this.setState({
  140. component: <EnteringAudit ApiUrl={''} />,
  141. });
  142. });
  143. break;
  144. //专家发布
  145. case 'expertPublish':
  146. require.ensure([], () => {
  147. const ExpertRelease = require('./release/expertRelease').default;
  148. this.setState({
  149. component: <ExpertRelease ApiUrl={''} />,
  150. });
  151. });
  152. break;
  153. //专家发布新
  154. case 'releaseExpert':
  155. require.ensure([], () => {
  156. const ReleaseExpert = require('./release/releaseExpert').default;
  157. this.setState({
  158. component: <ReleaseExpert ApiUrl={''} />,
  159. });
  160. });
  161. break;
  162. //公共客户管理
  163. case 'publicManage':
  164. require.ensure([], () => {
  165. const PublicManages = require('./customerManagement/publicManages').default;
  166. this.setState({
  167. component: <PublicManages ApiUrl={''} />,
  168. });
  169. });
  170. break;
  171. //部门客户管理
  172. case 'adminCustomerStatistics':
  173. require.ensure([], () => {
  174. const AdminCustomerStatistics = require('./customerManagement/adminCustomerStatistics').default;
  175. this.setState({
  176. component: <AdminCustomerStatistics ApiUrl={''} />,
  177. });
  178. });
  179. break;
  180. //部门客户管理3
  181. // case 'adminCustomerStatistics3':
  182. // require.ensure([], () => {
  183. // const AdminCustomerStatistics3 = require('./customerManagement/adminCustomerStatistics3').default;
  184. // this.setState({
  185. // component:<AdminCustomerStatistics3 ApiUrl={''}/>,
  186. // });
  187. // });
  188. // break;
  189. //单位客户管理
  190. case 'organizationManage':
  191. require.ensure([], () => {
  192. const OrganizationManage = require('./customerManagement/organizationManages').default;
  193. this.setState({
  194. component: <OrganizationManage ApiUrl={''} />,
  195. });
  196. });
  197. break;
  198. //我的业务
  199. case 'myBusiness':
  200. require.ensure([], () => {
  201. const MyBusiness = require('./customerService/myBusiness').default;
  202. this.setState({
  203. component: <MyBusiness ApiUrl={''} />,
  204. });
  205. });
  206. break;
  207. //业务管理
  208. case 'businessMange':
  209. require.ensure([], () => {
  210. const BusinessMange = require('./customerService/businessManges').default;
  211. this.setState({
  212. component: <BusinessMange ApiUrl={''} />,
  213. });
  214. });
  215. break;
  216. //业务查询
  217. case 'businessQuery':
  218. require.ensure([], () => {
  219. const ServiceQuery = require('./customerService/serviceQuery').default;
  220. this.setState({
  221. component: <ServiceQuery ApiUrl={''} />,
  222. });
  223. });
  224. break;
  225. //客户拜访统计
  226. case 'visitStatistics':
  227. require.ensure([], () => {
  228. const VisitStatistics = require('./statistics/visitStatistics').default;
  229. this.setState({
  230. component: <VisitStatistics ApiUrl={''} />,
  231. });
  232. });
  233. break;
  234. //状态统计
  235. case 'statusStatistics':
  236. require.ensure([], () => {
  237. const StatusStatistics = require('./statistics/statusStatistics').default;
  238. this.setState({
  239. component: <StatusStatistics ApiUrl={''} />,
  240. });
  241. });
  242. break;
  243. //进度统计
  244. case 'followStatistics':
  245. require.ensure([], () => {
  246. const FollowStatistics = require('./statistics/followStatistics').default;
  247. this.setState({
  248. component: <FollowStatistics ApiUrl={''} />,
  249. });
  250. });
  251. break;
  252. /*
  253. *报表开发
  254. */
  255. case 'personalReport':
  256. require.ensure([], () => {
  257. const Jurisdiction = require('./report/personalReport').default;
  258. this.setState({
  259. component: <Jurisdiction ApiUrl={''} />
  260. });
  261. });
  262. break;
  263. case 'departmentReport':
  264. require.ensure([], () => {
  265. const DepartmentReport = require('./report/departmentReport').default;
  266. this.setState({
  267. component: <DepartmentReport ApiUrl={''} />
  268. });
  269. });
  270. break;
  271. /*拜访记录统计*/
  272. //客户营销日统计
  273. case 'diurnalStatistics':
  274. require.ensure([], () => {
  275. const DiurnalStatistics = require('./customerMarketing/diurnalStatistics').default;
  276. this.setState({
  277. component: <DiurnalStatistics ApiUrl={''} />
  278. });
  279. });
  280. break;
  281. //客户营销时段统计
  282. case 'timeStatistics':
  283. require.ensure([], () => {
  284. const TimeStatistics = require('./customerMarketing/timeStatistics').default;
  285. this.setState({
  286. component: <TimeStatistics ApiUrl={''} />
  287. });
  288. });
  289. break;
  290. /*意向客户*/
  291. //个人意向客户
  292. case 'personalIntention':
  293. require.ensure([], () => {
  294. const PersonalIntention = require('./NEW/intentionCustomer/intentionCustomer').default;
  295. this.setState({
  296. component: <PersonalIntention
  297. intentionState={1}
  298. ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  299. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  300. />
  301. });
  302. });
  303. break;
  304. //外联-(营销总监)
  305. case 'channel':
  306. require.ensure([], () => {
  307. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  308. this.setState({
  309. component: <CompanyIntention
  310. type={2} // 0营销员 1外联专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  311. channel={false} //是否能导入外联
  312. deliver={1} //是否能转交或分配 0不能 1总监分配 2经理分配
  313. followUp={true} //是否能跟进
  314. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  315. isEditGuidanceLv={false} //是否可以编辑指导
  316. recovery={false} //是否可以回收
  317. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  318. />
  319. });
  320. });
  321. break;
  322. //外联-(营销经理)
  323. case 'channelManage':
  324. require.ensure([], () => {
  325. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  326. this.setState({
  327. component: <CompanyIntention
  328. type={3} // 0营销员 1外联专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  329. channel={false} //是否能导入外联
  330. deliver={2} //是否能转交或分配 0不能 1总监分配 2经理分配
  331. followUp={true} //是否能跟进
  332. isGuidanceLv={false} //是否可查看指导 也用于判断是否为跟进管理页面
  333. isEditGuidanceLv={true} //是否可以编辑指导
  334. recovery={true} //是否可以回收
  335. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  336. />
  337. });
  338. });
  339. break;
  340. //外联-(营销员)
  341. case 'channelMarketing':
  342. require.ensure([], () => {
  343. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  344. this.setState({
  345. component: <CompanyIntention
  346. type={0} // 0营销员 1外联专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  347. channel={false} //是否能导入外联
  348. deliver={0} //是否能转交或分配 0不能 1总监分配 2经理分配
  349. followUp={true} //是否能跟进
  350. isGuidanceLv={false} //是否可查看指导 也用于判断是否为跟进管理页面
  351. isEditGuidanceLv={true} //是否可以编辑指导
  352. recovery={true} //是否可以回收
  353. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  354. />
  355. });
  356. });
  357. break;
  358. //外联-(外联专员)
  359. case 'channelCommissioner':
  360. require.ensure([], () => {
  361. const CompanyIntention = require('./NEW/intentionCustomer/channel').default;
  362. this.setState({
  363. component: <CompanyIntention
  364. type={1} // 0营销员 1外联专员 2营销总监 3营销经理 4释放 5未分配 6已分配 7已签单
  365. channel={true} //是否能导入外联
  366. deliver={0}
  367. followUp={false}
  368. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  369. isEditGuidanceLv={false} //是否可以编辑指导
  370. recovery={false} //是否可以回收
  371. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  372. />
  373. });
  374. });
  375. break;
  376. //外联统计-(外联总监)
  377. case 'channelStatistics':
  378. require.ensure([], () => {
  379. const CompanyIntention = require('./NEW/intentionCustomer/channelStatistics').default;
  380. this.setState({
  381. component: <CompanyIntention />
  382. });
  383. });
  384. break;
  385. //单位意向客户
  386. case 'companyIntention':
  387. require.ensure([], () => {
  388. const CompanyIntention = require('./NEW/intentionCustomer/intentionCustomer').default;
  389. this.setState({
  390. component: <CompanyIntention
  391. intentionState={0}
  392. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  393. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  394. />
  395. });
  396. });
  397. break;
  398. // 限定项目
  399. case 'limit':
  400. require.ensure([], () => {
  401. const Limit = require('./NEW/intentionCustomer/limit').default;
  402. this.setState({
  403. component: <Limit />
  404. });
  405. });
  406. break;
  407. //客户跟进汇总(看所有人的)
  408. case 'followUpSummaryAdmin':
  409. require.ensure([], () => {
  410. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  411. this.setState({
  412. component: <FollowUpSummary
  413. isCustomerAdmin
  414. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  415. isEditGuidanceLv={false} //是否可以编辑指导
  416. shiroType={2}
  417. />
  418. });
  419. });
  420. break;
  421. //客户跟进汇总(只能看自己的)
  422. case 'followUpSummaryOrdinary':
  423. require.ensure([], () => {
  424. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  425. this.setState({
  426. component: <FollowUpSummary
  427. isCustomerAdmin
  428. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  429. isEditGuidanceLv={false} //是否可以编辑指导
  430. shiroType={0}
  431. />
  432. });
  433. });
  434. break;
  435. //客户跟进汇总(既能看自己的也能看自己下级的)
  436. case 'followUpSummaryManager':
  437. require.ensure([], () => {
  438. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  439. this.setState({
  440. component: <FollowUpSummary
  441. isCustomerAdmin
  442. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  443. isEditGuidanceLv={false} //是否可以编辑指导
  444. shiroType={1}
  445. />
  446. });
  447. });
  448. break;
  449. //跟进管理 营销经理
  450. case 'customerFollow':
  451. require.ensure([], () => {
  452. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  453. this.setState({
  454. component: <CustomerFollow
  455. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  456. isEditGuidanceLv={true} //是否可以编辑指导
  457. />
  458. });
  459. });
  460. break;
  461. //跟进管理 营销总监 和 总裁
  462. case 'readOnlyCustomerFollow':
  463. require.ensure([], () => {
  464. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  465. this.setState({
  466. component: <CustomerFollow
  467. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  468. isEditGuidanceLv={false} //是否可以编辑指导
  469. />
  470. });
  471. });
  472. break;
  473. //部门统计 总裁账户可见
  474. case 'departmentStatistics':
  475. require.ensure([], () => {
  476. const DepartmentStatistics = require('./statistics/departmentStatistics/index').default;
  477. this.setState({
  478. component: <DepartmentStatistics />
  479. });
  480. });
  481. break;
  482. //客户资料
  483. case 'crm':
  484. require.ensure([], () => {
  485. const Crm = require('./NEW/crm/crm').default;
  486. this.setState({
  487. component: <Crm
  488. intentionState={0}
  489. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  490. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  491. />
  492. });
  493. });
  494. break;
  495. //客户资料维护(营销员)
  496. case 'crmMaintain':
  497. require.ensure([], () => {
  498. const Crm = require('./NEW/crm/crm').default;
  499. this.setState({
  500. component: <Crm
  501. isMaintain={true}
  502. intentionState={0}
  503. shiroType={1}//0 咨询师 1营销员
  504. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  505. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  506. />
  507. });
  508. });
  509. break;
  510. //客户资料维护(咨询师)
  511. case 'crmMaintainZXS':
  512. require.ensure([], () => {
  513. const Crm = require('./NEW/crm/crm').default;
  514. this.setState({
  515. component: <Crm
  516. isMaintain={true}
  517. intentionState={0}
  518. shiroType={0}//0 咨询师 1营销员
  519. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  520. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  521. />
  522. });
  523. });
  524. break;
  525. //客户资料维护(超级管理员以及客服查看)
  526. case 'crmMaintainAdmin':
  527. require.ensure([], () => {
  528. const Crm = require('./NEW/crm/crm').default;
  529. this.setState({
  530. component: <Crm
  531. isMaintain={true}
  532. intentionState={0}
  533. shiroType={2}//0 咨询师 1营销员 2管理员
  534. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  535. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  536. />
  537. });
  538. });
  539. break;
  540. //客户资料
  541. case 'crmCount':
  542. require.ensure([], () => {
  543. const CrmCount = require('./NEW/crm/crmCount').default;
  544. this.setState({
  545. component: <CrmCount
  546. intentionState={0}
  547. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  548. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  549. />
  550. });
  551. });
  552. break;
  553. //客户资料
  554. case 'crmAll':
  555. require.ensure([], () => {
  556. const CrmAll = require('./NEW/crm/crmAll').default;
  557. this.setState({
  558. component: <CrmAll
  559. intentionState={0}
  560. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  561. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  562. />
  563. });
  564. });
  565. break;
  566. //客户资料
  567. case 'patentPayment':
  568. require.ensure([], () => {
  569. const PatentPayment = require('./NEW/crm/patentPayment').default;
  570. this.setState({
  571. component: <PatentPayment
  572. intentionState={0}
  573. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  574. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  575. />
  576. });
  577. });
  578. break;
  579. //客户资料-仅读
  580. case 'patentPaymentOnlyRead':
  581. require.ensure([], () => {
  582. const PatentPayment = require('./NEW/crm/patentPayment').default;
  583. this.setState({
  584. component: <PatentPayment
  585. isOnlyRead={true}
  586. intentionState={0}
  587. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  588. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  589. />
  590. });
  591. });
  592. break;
  593. /*签单客户*/
  594. //个人签单客户
  595. case 'personalSign':
  596. require.ensure([], () => {
  597. const PersonalSign = require('./NEW/signCustomer/signCustomer').default;
  598. this.setState({
  599. component: <PersonalSign
  600. intentionState={1}
  601. ApiUrl={'/api/admin/customer/listSignPersonalCustomer'}
  602. //ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  603. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  604. />
  605. });
  606. });
  607. break;
  608. //单位签单客户
  609. case 'companySign':
  610. require.ensure([], () => {
  611. const CompanySign = require('./NEW/signCustomer/signCustomer').default;
  612. this.setState({
  613. component: <CompanySign
  614. intentionState={0}
  615. ApiUrl={'/api/admin/customer/listSignOrganizationCustomer'}
  616. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'} />
  617. });
  618. });
  619. break;
  620. //个人客户查询
  621. case 'personalQuery':
  622. require.ensure([], () => {
  623. const PersonalQuery = require('./NEW/query/queryCutomer').default;
  624. this.setState({
  625. component: <PersonalQuery
  626. intentionState={1}
  627. ApiUrl={'/api/admin/customer/listAllPersonalCustomer'}
  628. detailApi={'/api/admin/customer/getLockedProject'}
  629. />
  630. });
  631. });
  632. break;
  633. //单位客户查询
  634. case 'organizationQuery':
  635. require.ensure([], () => {
  636. const CompanyQuery = require('./NEW/query/queryCutomer').default;
  637. this.setState({
  638. component: <CompanyQuery
  639. intentionState={0}
  640. ApiUrl={'/api/admin/customer/listAllOrganizationCustomer'}
  641. detailApi={'/api/admin/customer/getLockedProject'}
  642. />
  643. });
  644. });
  645. break;
  646. //个人公共客户
  647. case 'personalPublicCustomer':
  648. require.ensure([], () => {
  649. const PersonalPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  650. this.setState({
  651. component: <PersonalPublicCustomer
  652. intentionState={1}
  653. ApiUrl={'/api/admin/customer/listPublicPersonalCustomer'}
  654. />
  655. });
  656. });
  657. break;
  658. //高新复审总数
  659. case 'reexamine':
  660. require.ensure([], () => {
  661. const Reexamine = require('./operationalData/reexamine').default;
  662. this.setState({
  663. component: <Reexamine />
  664. });
  665. });
  666. break;
  667. //客户最后跟进表
  668. case 'finalFollowup':
  669. require.ensure([], () => {
  670. const FinalFollowup = require('./operationalData/finalFollowup').default;
  671. this.setState({
  672. component: <FinalFollowup />
  673. });
  674. });
  675. break;
  676. //签单统计表
  677. case 'signatureStatistics':
  678. require.ensure([], () => {
  679. const SignatureStatistics = require('./operationalData/signatureStatistics').default;
  680. this.setState({
  681. component: <SignatureStatistics />
  682. });
  683. });
  684. break;
  685. //面谈统计表
  686. case 'interviewStatistics':
  687. require.ensure([], () => {
  688. const InterviewStatistics = require('./operationalData/interviewStatistics').default;
  689. this.setState({
  690. component: <InterviewStatistics />
  691. });
  692. });
  693. break;
  694. //全国应收款统计表
  695. case 'receivablesStatistics':
  696. require.ensure([], () => {
  697. const ReceivablesStatistics = require('./operationalData/receivablesStatistics').default;
  698. this.setState({
  699. component: <ReceivablesStatistics />
  700. });
  701. });
  702. break;
  703. //公出统计
  704. case 'publicStatistics':
  705. require.ensure([], () => {
  706. const PublicStatistics = require('./publicStatistics/index').default;
  707. this.setState({
  708. component: <PublicStatistics />
  709. });
  710. });
  711. break;
  712. //公出汇总
  713. case 'publicSummary':
  714. require.ensure([], () => {
  715. const PublicSummary = require('./publicSummary/index').default;
  716. this.setState({
  717. component: <PublicSummary />
  718. });
  719. });
  720. break;
  721. //单位公共客户
  722. case 'organizationPublicCustomer':
  723. require.ensure([], () => {
  724. const OrganizationPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  725. this.setState({
  726. component: <OrganizationPublicCustomer
  727. intentionState={0}
  728. ApiUrl={'/api/admin/customer/listPublicOrganizationCustomer'}
  729. />
  730. });
  731. });
  732. break;
  733. // 签单客户汇总
  734. case 'signCustomer':
  735. require.ensure([], () => {
  736. const SignCustomer = require('./signcustomer/index').default;
  737. this.setState({
  738. component: <SignCustomer />
  739. });
  740. });
  741. break;
  742. // 签单客户数据统计
  743. case 'signStatistics':
  744. require.ensure([], () => {
  745. const SignStatistics = require('./signcustomer/statistics').default;
  746. this.setState({
  747. component: <SignStatistics />
  748. });
  749. });
  750. break;
  751. default:
  752. require.ensure([], () => {
  753. const Module = require('../module').default;
  754. this.setState({
  755. component: <Module ApiUrl={''} />
  756. });
  757. });
  758. };
  759. window.location.hash = key;
  760. }
  761. render() {
  762. return (
  763. <div className="manage-content">
  764. <LeftTab handlekey={this.getKey.bind(this)} />
  765. <div className="content-right">
  766. {this.state.component}
  767. </div>
  768. </div>
  769. )
  770. }
  771. }
  772. export default Content;