content.jsx 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  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 'followUpSummaryAdmin':
  400. require.ensure([], () => {
  401. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  402. this.setState({
  403. component: <FollowUpSummary
  404. isCustomerAdmin
  405. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  406. isEditGuidanceLv={false} //是否可以编辑指导
  407. shiroType={2}
  408. />
  409. });
  410. });
  411. break;
  412. //客户跟进汇总(只能看自己的)
  413. case 'followUpSummaryOrdinary':
  414. require.ensure([], () => {
  415. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  416. this.setState({
  417. component: <FollowUpSummary
  418. isCustomerAdmin
  419. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  420. isEditGuidanceLv={false} //是否可以编辑指导
  421. shiroType={0}
  422. />
  423. });
  424. });
  425. break;
  426. //客户跟进汇总(既能看自己的也能看自己下级的)
  427. case 'followUpSummaryManager':
  428. require.ensure([], () => {
  429. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  430. this.setState({
  431. component: <FollowUpSummary
  432. isCustomerAdmin
  433. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  434. isEditGuidanceLv={false} //是否可以编辑指导
  435. shiroType={1}
  436. />
  437. });
  438. });
  439. break;
  440. //跟进管理 营销经理
  441. case 'customerFollow':
  442. require.ensure([], () => {
  443. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  444. this.setState({
  445. component: <CustomerFollow
  446. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  447. isEditGuidanceLv={true} //是否可以编辑指导
  448. />
  449. });
  450. });
  451. break;
  452. //跟进管理 营销总监 和 总裁
  453. case 'readOnlyCustomerFollow':
  454. require.ensure([], () => {
  455. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  456. this.setState({
  457. component: <CustomerFollow
  458. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  459. isEditGuidanceLv={false} //是否可以编辑指导
  460. />
  461. });
  462. });
  463. break;
  464. //部门统计 总裁账户可见
  465. case 'departmentStatistics':
  466. require.ensure([], () => {
  467. const DepartmentStatistics = require('./statistics/departmentStatistics/index').default;
  468. this.setState({
  469. component: <DepartmentStatistics/>
  470. });
  471. });
  472. break;
  473. //客户资料
  474. case 'crm':
  475. require.ensure([], () => {
  476. const Crm = require('./NEW/crm/crm').default;
  477. this.setState({
  478. component: <Crm
  479. intentionState={0}
  480. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  481. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  482. />
  483. });
  484. });
  485. break;
  486. //客户资料维护(营销员)
  487. case 'crmMaintain':
  488. require.ensure([], () => {
  489. const Crm = require('./NEW/crm/crm').default;
  490. this.setState({
  491. component: <Crm
  492. isMaintain
  493. intentionState={0}
  494. shiroType={1}//0 咨询师 1营销员
  495. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  496. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  497. />
  498. });
  499. });
  500. break;
  501. //客户资料维护(咨询师)
  502. case 'crmMaintainZXS':
  503. require.ensure([], () => {
  504. const Crm = require('./NEW/crm/crm').default;
  505. this.setState({
  506. component: <Crm
  507. isMaintain
  508. intentionState={0}
  509. shiroType={0}//0 咨询师 1营销员
  510. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  511. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  512. />
  513. });
  514. });
  515. break;
  516. //客户资料维护(超级管理员以及客服查看)
  517. case 'crmMaintainAdmin':
  518. require.ensure([], () => {
  519. const Crm = require('./NEW/crm/crm').default;
  520. this.setState({
  521. component: <Crm
  522. isMaintain
  523. intentionState={0}
  524. shiroType={2}//0 咨询师 1营销员 2管理员
  525. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  526. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  527. />
  528. });
  529. });
  530. break;
  531. //客户资料
  532. case 'crmCount':
  533. require.ensure([], () => {
  534. const CrmCount = require('./NEW/crm/crmCount').default;
  535. this.setState({
  536. component: <CrmCount
  537. intentionState={0}
  538. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  539. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  540. />
  541. });
  542. });
  543. break;
  544. //客户资料
  545. case 'crmAll':
  546. require.ensure([], () => {
  547. const CrmAll = require('./NEW/crm/crmAll').default;
  548. this.setState({
  549. component: <CrmAll
  550. intentionState={0}
  551. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  552. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  553. />
  554. });
  555. });
  556. break;
  557. //客户资料
  558. case 'patentPayment':
  559. require.ensure([], () => {
  560. const PatentPayment = require('./NEW/crm/patentPayment').default;
  561. this.setState({
  562. component: <PatentPayment
  563. intentionState={0}
  564. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  565. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  566. />
  567. });
  568. });
  569. break;
  570. //客户资料-仅读
  571. case 'patentPaymentOnlyRead':
  572. require.ensure([], () => {
  573. const PatentPayment = require('./NEW/crm/patentPayment').default;
  574. this.setState({
  575. component: <PatentPayment
  576. isOnlyRead={true}
  577. intentionState={0}
  578. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  579. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  580. />
  581. });
  582. });
  583. break;
  584. /*签单客户*/
  585. //个人签单客户
  586. case 'personalSign':
  587. require.ensure([], () => {
  588. const PersonalSign = require('./NEW/signCustomer/signCustomer').default;
  589. this.setState({
  590. component: <PersonalSign
  591. intentionState={1}
  592. ApiUrl={'/api/admin/customer/listSignPersonalCustomer'}
  593. //ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  594. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  595. />
  596. });
  597. });
  598. break;
  599. //单位签单客户
  600. case 'companySign':
  601. require.ensure([], () => {
  602. const CompanySign = require('./NEW/signCustomer/signCustomer').default;
  603. this.setState({
  604. component: <CompanySign
  605. intentionState={0}
  606. ApiUrl={'/api/admin/customer/listSignOrganizationCustomer'}
  607. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}/>
  608. });
  609. });
  610. break;
  611. //个人客户查询
  612. case 'personalQuery':
  613. require.ensure([], () => {
  614. const PersonalQuery = require('./NEW/query/queryCutomer').default;
  615. this.setState({
  616. component: <PersonalQuery
  617. intentionState={1}
  618. ApiUrl={'/api/admin/customer/listAllPersonalCustomer'}
  619. detailApi={'/api/admin/customer/getLockedProject'}
  620. />
  621. });
  622. });
  623. break;
  624. //单位客户查询
  625. case 'organizationQuery':
  626. require.ensure([], () => {
  627. const CompanyQuery = require('./NEW/query/queryCutomer').default;
  628. this.setState({
  629. component: <CompanyQuery
  630. intentionState={0}
  631. ApiUrl={'/api/admin/customer/listAllOrganizationCustomer'}
  632. detailApi={'/api/admin/customer/getLockedProject'}
  633. />
  634. });
  635. });
  636. break;
  637. //个人公共客户
  638. case 'personalPublicCustomer':
  639. require.ensure([], () => {
  640. const PersonalPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  641. this.setState({
  642. component: <PersonalPublicCustomer
  643. intentionState={1}
  644. ApiUrl={'/api/admin/customer/listPublicPersonalCustomer'}
  645. />
  646. });
  647. });
  648. break;
  649. //高新复审总数
  650. case 'reexamine':
  651. require.ensure([], () => {
  652. const Reexamine = require('./operationalData/reexamine').default;
  653. this.setState({
  654. component: <Reexamine/>
  655. });
  656. });
  657. break;
  658. //签单统计表
  659. case 'signatureStatistics':
  660. require.ensure([], () => {
  661. const SignatureStatistics = require('./operationalData/signatureStatistics').default;
  662. this.setState({
  663. component: <SignatureStatistics/>
  664. });
  665. });
  666. break;
  667. //面谈统计表
  668. case 'interviewStatistics':
  669. require.ensure([], () => {
  670. const InterviewStatistics = require('./operationalData/interviewStatistics').default;
  671. this.setState({
  672. component: <InterviewStatistics/>
  673. });
  674. });
  675. break;
  676. //全国应收款统计表
  677. case 'receivablesStatistics':
  678. require.ensure([], () => {
  679. const ReceivablesStatistics = require('./operationalData/receivablesStatistics').default;
  680. this.setState({
  681. component: <ReceivablesStatistics/>
  682. });
  683. });
  684. break;
  685. //公出统计
  686. case 'publicStatistics':
  687. require.ensure([], () => {
  688. const PublicStatistics = require('./publicStatistics/index').default;
  689. this.setState({
  690. component: <PublicStatistics/>
  691. });
  692. });
  693. break;
  694. //公出汇总
  695. case 'publicSummary':
  696. require.ensure([], () => {
  697. const PublicSummary = require('./publicSummary/index').default;
  698. this.setState({
  699. component: <PublicSummary/>
  700. });
  701. });
  702. break;
  703. //单位公共客户
  704. case 'organizationPublicCustomer':
  705. require.ensure([], () => {
  706. const OrganizationPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  707. this.setState({
  708. component: <OrganizationPublicCustomer
  709. intentionState={0}
  710. ApiUrl={'/api/admin/customer/listPublicOrganizationCustomer'}
  711. />
  712. });
  713. });
  714. break;
  715. default:
  716. require.ensure([], () => {
  717. const Module = require('../module').default;
  718. this.setState({
  719. component:<Module ApiUrl={''}/>
  720. });
  721. });
  722. };
  723. window.location.hash = key;
  724. }
  725. render() {
  726. return (
  727. <div className="manage-content">
  728. <LeftTab handlekey={this.getKey.bind(this)} />
  729. <div className="content-right">
  730. {this.state.component}
  731. </div>
  732. </div>
  733. )
  734. }
  735. }
  736. export default Content;