content.jsx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  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 'customerProfile':
  497. require.ensure([], () => {
  498. const Crm = require('./NEW/crm/customerProfile').default;
  499. this.setState({
  500. component: <Crm
  501. newChannel={0}
  502. />
  503. });
  504. });
  505. break;
  506. // 渠道档案汇总
  507. case 'channelArchives':
  508. require.ensure([], () => {
  509. const Crm = require('./NEW/crm/customerProfile').default;
  510. this.setState({
  511. component: <Crm
  512. newChannel={1}
  513. />
  514. });
  515. });
  516. break;
  517. //客户资料维护(营销员)
  518. case 'crmMaintain':
  519. require.ensure([], () => {
  520. const Crm = require('./NEW/crm/crm').default;
  521. this.setState({
  522. component: <Crm
  523. isMaintain={true}
  524. intentionState={0}
  525. shiroType={1}//0 咨询师 1营销员
  526. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  527. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  528. />
  529. });
  530. });
  531. break;
  532. //客户资料维护(咨询师)
  533. case 'crmMaintainZXS':
  534. require.ensure([], () => {
  535. const Crm = require('./NEW/crm/crm').default;
  536. this.setState({
  537. component: <Crm
  538. isMaintain={true}
  539. intentionState={0}
  540. shiroType={0}//0 咨询师 1营销员
  541. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  542. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  543. />
  544. });
  545. });
  546. break;
  547. //客户资料维护(超级管理员以及客服查看)
  548. case 'crmMaintainAdmin':
  549. require.ensure([], () => {
  550. const Crm = require('./NEW/crm/crm').default;
  551. this.setState({
  552. component: <Crm
  553. isMaintain={true}
  554. intentionState={0}
  555. shiroType={2}//0 咨询师 1营销员 2管理员
  556. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  557. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  558. />
  559. });
  560. });
  561. break;
  562. //客户资料
  563. case 'crmCount':
  564. require.ensure([], () => {
  565. const CrmCount = require('./NEW/crm/crmCount').default;
  566. this.setState({
  567. component: <CrmCount
  568. intentionState={0}
  569. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  570. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  571. />
  572. });
  573. });
  574. break;
  575. //客户资料
  576. case 'crmAll':
  577. require.ensure([], () => {
  578. const CrmAll = require('./NEW/crm/crmAll').default;
  579. this.setState({
  580. component: <CrmAll
  581. intentionState={0}
  582. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  583. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  584. />
  585. });
  586. });
  587. break;
  588. //客户资料
  589. case 'patentPayment':
  590. require.ensure([], () => {
  591. const PatentPayment = require('./NEW/crm/patentPayment').default;
  592. this.setState({
  593. component: <PatentPayment
  594. intentionState={0}
  595. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  596. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  597. />
  598. });
  599. });
  600. break;
  601. //客户资料-仅读
  602. case 'patentPaymentOnlyRead':
  603. require.ensure([], () => {
  604. const PatentPayment = require('./NEW/crm/patentPayment').default;
  605. this.setState({
  606. component: <PatentPayment
  607. isOnlyRead={true}
  608. intentionState={0}
  609. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  610. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  611. />
  612. });
  613. });
  614. break;
  615. /*签单客户*/
  616. //个人签单客户
  617. case 'personalSign':
  618. require.ensure([], () => {
  619. const PersonalSign = require('./NEW/signCustomer/signCustomer').default;
  620. this.setState({
  621. component: <PersonalSign
  622. intentionState={1}
  623. ApiUrl={'/api/admin/customer/listSignPersonalCustomer'}
  624. //ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  625. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  626. />
  627. });
  628. });
  629. break;
  630. //单位签单客户
  631. case 'companySign':
  632. require.ensure([], () => {
  633. const CompanySign = require('./NEW/signCustomer/signCustomer').default;
  634. this.setState({
  635. component: <CompanySign
  636. intentionState={0}
  637. ApiUrl={'/api/admin/customer/listSignOrganizationCustomer'}
  638. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'} />
  639. });
  640. });
  641. break;
  642. //个人客户查询
  643. case 'personalQuery':
  644. require.ensure([], () => {
  645. const PersonalQuery = require('./NEW/query/queryCutomer').default;
  646. this.setState({
  647. component: <PersonalQuery
  648. intentionState={1}
  649. ApiUrl={'/api/admin/customer/listAllPersonalCustomer'}
  650. detailApi={'/api/admin/customer/getLockedProject'}
  651. />
  652. });
  653. });
  654. break;
  655. //单位客户查询
  656. case 'organizationQuery':
  657. require.ensure([], () => {
  658. const CompanyQuery = require('./NEW/query/queryCutomer').default;
  659. this.setState({
  660. component: <CompanyQuery
  661. intentionState={0}
  662. ApiUrl={'/api/admin/customer/listAllOrganizationCustomer'}
  663. detailApi={'/api/admin/customer/getLockedProject'}
  664. />
  665. });
  666. });
  667. break;
  668. //个人公共客户
  669. case 'personalPublicCustomer':
  670. require.ensure([], () => {
  671. const PersonalPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  672. this.setState({
  673. component: <PersonalPublicCustomer
  674. intentionState={1}
  675. ApiUrl={'/api/admin/customer/listPublicPersonalCustomer'}
  676. />
  677. });
  678. });
  679. break;
  680. //高新复审总数
  681. case 'reexamine':
  682. require.ensure([], () => {
  683. const Reexamine = require('./operationalData/reexamine').default;
  684. this.setState({
  685. component: <Reexamine />
  686. });
  687. });
  688. break;
  689. //客户最后跟进表
  690. case 'finalFollowup':
  691. require.ensure([], () => {
  692. const FinalFollowup = require('./operationalData/finalFollowup').default;
  693. this.setState({
  694. component: <FinalFollowup />
  695. });
  696. });
  697. break;
  698. //签单统计表
  699. case 'signatureStatistics':
  700. require.ensure([], () => {
  701. const SignatureStatistics = require('./operationalData/signatureStatistics').default;
  702. this.setState({
  703. component: <SignatureStatistics />
  704. });
  705. });
  706. break;
  707. //面谈统计表
  708. case 'interviewStatistics':
  709. require.ensure([], () => {
  710. const InterviewStatistics = require('./operationalData/interviewStatistics').default;
  711. this.setState({
  712. component: <InterviewStatistics />
  713. });
  714. });
  715. break;
  716. //全国应收款统计表
  717. case 'receivablesStatistics':
  718. require.ensure([], () => {
  719. const ReceivablesStatistics = require('./operationalData/receivablesStatistics').default;
  720. this.setState({
  721. component: <ReceivablesStatistics />
  722. });
  723. });
  724. break;
  725. //公出统计
  726. case 'publicStatistics':
  727. require.ensure([], () => {
  728. const PublicStatistics = require('./publicStatistics/index').default;
  729. this.setState({
  730. component: <PublicStatistics />
  731. });
  732. });
  733. break;
  734. //公出汇总
  735. case 'publicSummary':
  736. require.ensure([], () => {
  737. const PublicSummary = require('./publicSummary/index').default;
  738. this.setState({
  739. component: <PublicSummary />
  740. });
  741. });
  742. break;
  743. //单位公共客户
  744. case 'organizationPublicCustomer':
  745. require.ensure([], () => {
  746. const OrganizationPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  747. this.setState({
  748. component: <OrganizationPublicCustomer
  749. intentionState={0}
  750. ApiUrl={'/api/admin/customer/listPublicOrganizationCustomer'}
  751. />
  752. });
  753. });
  754. break;
  755. // 签单客户汇总
  756. case 'signCustomer':
  757. require.ensure([], () => {
  758. const SignCustomer = require('./signcustomer/index').default;
  759. this.setState({
  760. component: <SignCustomer />
  761. });
  762. });
  763. break;
  764. // 签单客户数据统计
  765. case 'signStatistics':
  766. require.ensure([], () => {
  767. const SignStatistics = require('./signcustomer/statistics').default;
  768. this.setState({
  769. component: <SignStatistics />
  770. });
  771. });
  772. break;
  773. default:
  774. require.ensure([], () => {
  775. const Module = require('../module').default;
  776. this.setState({
  777. component: <Module ApiUrl={''} />
  778. });
  779. });
  780. };
  781. window.location.hash = key;
  782. }
  783. render() {
  784. return (
  785. <div className="manage-content">
  786. <LeftTab handlekey={this.getKey.bind(this)} />
  787. <div className="content-right">
  788. {this.state.component}
  789. </div>
  790. </div>
  791. )
  792. }
  793. }
  794. export default Content;