content.jsx 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  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. case 'clueAdmin':
  399. require.ensure([], () => {
  400. const ClueAdmin = require('./NEW/intentionCustomer/clue').default;
  401. this.setState({
  402. component: <ClueAdmin
  403. intentionState={0}
  404. />
  405. });
  406. });
  407. break;
  408. case 'clueJl':
  409. require.ensure([], () => {
  410. const ClueJl = require('./NEW/intentionCustomer/clue').default;
  411. this.setState({
  412. component: <ClueJl
  413. intentionState={1}
  414. />
  415. });
  416. });
  417. break;
  418. case 'clueYxy':
  419. require.ensure([], () => {
  420. const ClueYxy = require('./NEW/intentionCustomer/clue').default;
  421. this.setState({
  422. component: <ClueYxy
  423. intentionState={2}
  424. />
  425. });
  426. });
  427. break;
  428. // 限定项目
  429. case 'limit':
  430. require.ensure([], () => {
  431. const Limit = require('./NEW/intentionCustomer/limit').default;
  432. this.setState({
  433. component: <Limit />
  434. });
  435. });
  436. break;
  437. //客户跟进汇总(看所有人的)
  438. case 'followUpSummaryAdmin':
  439. require.ensure([], () => {
  440. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  441. this.setState({
  442. component: <FollowUpSummary
  443. isCustomerAdmin
  444. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  445. isEditGuidanceLv={false} //是否可以编辑指导
  446. shiroType={2}
  447. />
  448. });
  449. });
  450. break;
  451. //客户跟进汇总(只能看自己的)
  452. case 'followUpSummaryOrdinary':
  453. require.ensure([], () => {
  454. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  455. this.setState({
  456. component: <FollowUpSummary
  457. isCustomerAdmin
  458. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  459. isEditGuidanceLv={false} //是否可以编辑指导
  460. shiroType={0}
  461. />
  462. });
  463. });
  464. break;
  465. //客户跟进汇总(既能看自己的也能看自己下级的)
  466. case 'followUpSummaryManager':
  467. require.ensure([], () => {
  468. const FollowUpSummary = require('./managementFollow/followUpSummary/index').default;
  469. this.setState({
  470. component: <FollowUpSummary
  471. isCustomerAdmin
  472. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  473. isEditGuidanceLv={false} //是否可以编辑指导
  474. shiroType={1}
  475. />
  476. });
  477. });
  478. break;
  479. //跟进管理 营销经理
  480. case 'customerFollow':
  481. require.ensure([], () => {
  482. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  483. this.setState({
  484. component: <CustomerFollow
  485. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  486. isEditGuidanceLv={true} //是否可以编辑指导
  487. />
  488. });
  489. });
  490. break;
  491. //跟进管理 营销总监 和 总裁
  492. case 'readOnlyCustomerFollow':
  493. require.ensure([], () => {
  494. const CustomerFollow = require('./managementFollow/customerFollow/index').default;
  495. this.setState({
  496. component: <CustomerFollow
  497. isGuidanceLv={true} //是否可查看指导 也用于判断是否为跟进管理页面
  498. isEditGuidanceLv={false} //是否可以编辑指导
  499. />
  500. });
  501. });
  502. break;
  503. //部门统计 总裁账户可见
  504. case 'departmentStatistics':
  505. require.ensure([], () => {
  506. const DepartmentStatistics = require('./statistics/departmentStatistics/index').default;
  507. this.setState({
  508. component: <DepartmentStatistics />
  509. });
  510. });
  511. break;
  512. // 外呼统计
  513. case "outbound":
  514. let Outbound = require('./outbound/index').default;
  515. require.ensure([], () => {
  516. this.setState({
  517. component: <Outbound handlekey={this.getKey.bind(this)} />,
  518. });
  519. });
  520. break;
  521. // 外呼明细
  522. case "outboundDetail":
  523. let Detail = require('./outbound/detail').default;
  524. require.ensure([], () => {
  525. this.setState({
  526. component: <Detail />,
  527. });
  528. });
  529. break;
  530. //客户资料
  531. case 'crm':
  532. require.ensure([], () => {
  533. const Crm = require('./NEW/crm/crm').default;
  534. this.setState({
  535. component: <Crm
  536. intentionState={0}
  537. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  538. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  539. />
  540. });
  541. });
  542. break;
  543. // 客户档案汇总
  544. case 'customerProfile':
  545. require.ensure([], () => {
  546. const Crm = require('./NEW/crm/customerProfile').default;
  547. this.setState({
  548. component: <Crm
  549. newChannel={0}
  550. />
  551. });
  552. });
  553. break;
  554. // 渠道档案汇总
  555. case 'channelArchives':
  556. require.ensure([], () => {
  557. const Crm = require('./NEW/crm/customerProfile').default;
  558. this.setState({
  559. component: <Crm
  560. newChannel={1}
  561. />
  562. });
  563. });
  564. break;
  565. //客户资料维护(营销员)
  566. case 'crmMaintain':
  567. require.ensure([], () => {
  568. const Crm = require('./NEW/crm/crm').default;
  569. this.setState({
  570. component: <Crm
  571. isMaintain={true}
  572. intentionState={0}
  573. shiroType={1}//0 咨询师 1营销员
  574. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  575. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  576. />
  577. });
  578. });
  579. break;
  580. //客户资料维护(咨询师)
  581. case 'crmMaintainZXS':
  582. require.ensure([], () => {
  583. const Crm = require('./NEW/crm/crm').default;
  584. this.setState({
  585. component: <Crm
  586. isMaintain={true}
  587. intentionState={0}
  588. shiroType={0}//0 咨询师 1营销员
  589. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  590. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  591. />
  592. });
  593. });
  594. break;
  595. //客户资料维护(超级管理员以及客服查看)
  596. case 'crmMaintainAdmin':
  597. require.ensure([], () => {
  598. const Crm = require('./NEW/crm/crm').default;
  599. this.setState({
  600. component: <Crm
  601. isMaintain={true}
  602. intentionState={0}
  603. shiroType={2}//0 咨询师 1营销员 2管理员
  604. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  605. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  606. />
  607. });
  608. });
  609. break;
  610. //客户资料
  611. case 'crmCount':
  612. require.ensure([], () => {
  613. const CrmCount = require('./NEW/crm/crmCount').default;
  614. this.setState({
  615. component: <CrmCount
  616. intentionState={0}
  617. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  618. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  619. />
  620. });
  621. });
  622. break;
  623. //客户资料
  624. case 'crmAll':
  625. require.ensure([], () => {
  626. const CrmAll = require('./NEW/crm/crmAll').default;
  627. this.setState({
  628. component: <CrmAll
  629. intentionState={0}
  630. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  631. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  632. />
  633. });
  634. });
  635. break;
  636. //客户资料
  637. case 'patentPayment':
  638. require.ensure([], () => {
  639. const PatentPayment = require('./NEW/crm/patentPayment').default;
  640. this.setState({
  641. component: <PatentPayment
  642. intentionState={0}
  643. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  644. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  645. />
  646. });
  647. });
  648. break;
  649. //客户资料-仅读
  650. case 'patentPaymentOnlyRead':
  651. require.ensure([], () => {
  652. const PatentPayment = require('./NEW/crm/patentPayment').default;
  653. this.setState({
  654. component: <PatentPayment
  655. isOnlyRead={true}
  656. intentionState={0}
  657. ApiUrl={'/api/admin/customer/listPrivateOrganizationCustomer'}
  658. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'}
  659. />
  660. });
  661. });
  662. break;
  663. /*签单客户*/
  664. //个人签单客户
  665. case 'personalSign':
  666. require.ensure([], () => {
  667. const PersonalSign = require('./NEW/signCustomer/signCustomer').default;
  668. this.setState({
  669. component: <PersonalSign
  670. intentionState={1}
  671. ApiUrl={'/api/admin/customer/listSignPersonalCustomer'}
  672. //ApiUrl={'/api/admin/customer/listPrivatePersonalCustomer'}
  673. detailApi={'/api/admin/customer/findPersonalCustomerDetail'}
  674. />
  675. });
  676. });
  677. break;
  678. //单位签单客户
  679. case 'companySign':
  680. require.ensure([], () => {
  681. const CompanySign = require('./NEW/signCustomer/signCustomer').default;
  682. this.setState({
  683. component: <CompanySign
  684. intentionState={0}
  685. ApiUrl={'/api/admin/customer/listSignOrganizationCustomer'}
  686. detailApi={'/api/admin/customer/findOrganizationCustomerDetail'} />
  687. });
  688. });
  689. break;
  690. //个人客户查询
  691. case 'personalQuery':
  692. require.ensure([], () => {
  693. const PersonalQuery = require('./NEW/query/queryCutomer').default;
  694. this.setState({
  695. component: <PersonalQuery
  696. intentionState={1}
  697. ApiUrl={'/api/admin/customer/listAllPersonalCustomer'}
  698. detailApi={'/api/admin/customer/getLockedProject'}
  699. />
  700. });
  701. });
  702. break;
  703. //单位客户查询
  704. case 'organizationQuery':
  705. require.ensure([], () => {
  706. const CompanyQuery = require('./NEW/query/queryCutomer').default;
  707. this.setState({
  708. component: <CompanyQuery
  709. intentionState={0}
  710. ApiUrl={'/api/admin/customer/listAllOrganizationCustomer'}
  711. detailApi={'/api/admin/customer/getLockedProject'}
  712. />
  713. });
  714. });
  715. break;
  716. //个人公共客户
  717. case 'personalPublicCustomer':
  718. require.ensure([], () => {
  719. const PersonalPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  720. this.setState({
  721. component: <PersonalPublicCustomer
  722. intentionState={1}
  723. ApiUrl={'/api/admin/customer/listPublicPersonalCustomer'}
  724. />
  725. });
  726. });
  727. break;
  728. //高新复审总数
  729. case 'reexamine':
  730. require.ensure([], () => {
  731. const Reexamine = require('./operationalData/reexamine').default;
  732. this.setState({
  733. component: <Reexamine />
  734. });
  735. });
  736. break;
  737. //客户最后跟进表
  738. case 'finalFollowup':
  739. require.ensure([], () => {
  740. const FinalFollowup = require('./operationalData/finalFollowup').default;
  741. this.setState({
  742. component: <FinalFollowup />
  743. });
  744. });
  745. break;
  746. //签单统计表
  747. case 'signatureStatistics':
  748. require.ensure([], () => {
  749. const SignatureStatistics = require('./operationalData/signatureStatistics').default;
  750. this.setState({
  751. component: <SignatureStatistics />
  752. });
  753. });
  754. break;
  755. //面谈统计表
  756. case 'interviewStatistics':
  757. require.ensure([], () => {
  758. const InterviewStatistics = require('./operationalData/interviewStatistics').default;
  759. this.setState({
  760. component: <InterviewStatistics />
  761. });
  762. });
  763. break;
  764. //全国应收款统计表
  765. case 'receivablesStatistics':
  766. require.ensure([], () => {
  767. const ReceivablesStatistics = require('./operationalData/receivablesStatistics').default;
  768. this.setState({
  769. component: <ReceivablesStatistics />
  770. });
  771. });
  772. break;
  773. //公出统计
  774. case 'publicStatistics':
  775. require.ensure([], () => {
  776. const PublicStatistics = require('./publicStatistics/index').default;
  777. this.setState({
  778. component: <PublicStatistics />
  779. });
  780. });
  781. break;
  782. //公出汇总
  783. case 'publicSummary':
  784. require.ensure([], () => {
  785. const PublicSummary = require('./publicSummary/index').default;
  786. this.setState({
  787. component: <PublicSummary />
  788. });
  789. });
  790. break;
  791. //单位公共客户
  792. case 'organizationPublicCustomer':
  793. require.ensure([], () => {
  794. const OrganizationPublicCustomer = require('./NEW/publicCustomer/publicCustomer').default;
  795. this.setState({
  796. component: <OrganizationPublicCustomer
  797. intentionState={0}
  798. ApiUrl={'/api/admin/customer/listPublicOrganizationCustomer'}
  799. />
  800. });
  801. });
  802. break;
  803. // 签单客户汇总
  804. case 'signCustomer':
  805. require.ensure([], () => {
  806. const SignCustomer = require('./signcustomer/index').default;
  807. this.setState({
  808. component: <SignCustomer />
  809. });
  810. });
  811. break;
  812. // 签单客户数据统计
  813. case 'signStatistics':
  814. require.ensure([], () => {
  815. const SignStatistics = require('./signcustomer/statistics').default;
  816. this.setState({
  817. component: <SignStatistics />
  818. });
  819. });
  820. break;
  821. default:
  822. require.ensure([], () => {
  823. const Module = require('../module').default;
  824. this.setState({
  825. component: <Module ApiUrl={''} />
  826. });
  827. });
  828. };
  829. window.location.hash = key;
  830. }
  831. render() {
  832. return (
  833. <div className="manage-content">
  834. <LeftTab handlekey={this.getKey.bind(this)} />
  835. <div className="content-right">
  836. {this.state.component}
  837. </div>
  838. </div>
  839. )
  840. }
  841. }
  842. export default Content;