statisticApi.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. import http from "@/api/http.js"
  2. /* 数据报表模块 */
  3. const dataMainInterface = {
  4. /* 工作台 */
  5. workdata: params => {
  6. return http.get('/statistic_report/home')
  7. },
  8. /**
  9. * 获取即将过期的客户列表接口
  10. * @param {PageSize } params
  11. * @param {CurrentIndex } params
  12. * @param {EndDate } params 结束日期
  13. * @param {CompanyType} params
  14. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  15. * @param {RegionType } params
  16. * @returns
  17. */
  18. expireList:params => {
  19. return http.get('/statistic_report/will_expire_list',params);
  20. },
  21. /**
  22. * 获取存量客户列表接口
  23. * @param {PageSize } params
  24. * @param {CurrentIndex } params
  25. * @param {CompanyType} params
  26. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  27. * @param {RegionType } params
  28. * @param {Date} params
  29. * @param {DataType} params
  30. * @returns
  31. */
  32. stackList:params => {
  33. return http.get('/statistic_report/stack_company_list',params);
  34. },
  35. raiStackList:params => {
  36. return http.get('/statistic_report/stack_company_list_rai',params);
  37. },
  38. /**
  39. * 获取增量客户列表接口
  40. * @param {PageSize} params
  41. * @param {CurrentIndex} params
  42. * @param {EndDate} params 结束日期
  43. * @param {CompanyType} params
  44. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  45. * @param {RegionType } params
  46. * @param {StartDate} params
  47. * @param {DataType} params
  48. * @param {IsConfirm} params 是否确认续约: -1-默认全部; 0-待确认; 1-已确认
  49. * @param {CompanyAscribeId} params 归因Id
  50. * @returns
  51. */
  52. incrementalList:params => {
  53. return http.get('/statistic_report/incremental_company_list',params);
  54. },
  55. /**
  56. * 权益客户统计列表接口
  57. * @param {PageSize} params
  58. * @param {CurrentIndex} params
  59. * @param {EndDate} params 结束日期
  60. * @param {CompanyType} params
  61. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  62. * @param {RegionType } params
  63. * @param {StartDate} params
  64. * @param {DataType} params
  65. * @param {IsConfirm} params 是否确认续约: -1-默认全部; 0-待确认; 1-已确认
  66. * @param {CompanyAscribeId} params 归因Id
  67. * @returns
  68. */
  69. incrementalEquityList:params => {
  70. return http.get('/statistic_report/merge_company_list',params);
  71. },
  72. /**
  73. * 获取未续约备注列表
  74. * @param {CompanyId} params 公司ID
  75. * @param {ProductId} params 产品ID 1:FICC ,2权益
  76. * @returns
  77. */
  78. getNotRenewedRemarkList:params => {
  79. return http.get('/custom/company_no_renewed_note/list',params);
  80. },
  81. /**
  82. * 添加未续约备注
  83. * @param {CompanyId} params 公司ID
  84. * @param {ProductId} params 产品ID 1:FICC ,2权益
  85. * @param {Content} params 内容
  86. * @returns
  87. */
  88. addNotRenewedRemark:params => {
  89. return http.post('/custom/company_no_renewed_note/add',params);
  90. },
  91. /**
  92. * 获取归因列表
  93. * @param {KeyWord} params
  94. * @returns
  95. */
  96. getAscribList:params => {
  97. return http.get('/custom/company_ascribe/list',params);
  98. },
  99. /**
  100. * 新增归因
  101. * @param {KeyWord} params
  102. * @returns
  103. */
  104. addAscrib:params => {
  105. return http.post('/custom/company_ascribe/add',params);
  106. },
  107. /**
  108. * 合同通过归因添加确认不续约接口
  109. * @param {KeyWord} params
  110. * @returns
  111. */
  112. addAscribContract:params => {
  113. return http.post('/custom/company_contract_no_renewed_ascribe/add',params);
  114. },
  115. /**
  116. * 修改归因标签
  117. * @param {CompanyId} params 公司ID
  118. * @param {ProductId} params 产品ID 1:FICC ,2权益
  119. * @param {Content} params 内容
  120. * @param {CompanyAscribeId} params 归因Id
  121. * @returns
  122. */
  123. addNoRenewedAscribe:params => {
  124. return http.post('/custom/company_no_renewed_ascribe/add',params);
  125. },
  126. /**
  127. * 归因标签详情
  128. * @param {CompanyId} params 公司ID
  129. * @param {ProductId} params 产品ID 1:FICC ,2权益
  130. * @returns
  131. */
  132. infoNoRenewedAscribe:params => {
  133. return http.get('/custom/company_no_renewed_ascribe/detail',params);
  134. },
  135. /**
  136. * 合同确认归因不续约详情接口
  137. * @param {CompanyContractId} params 合同ID
  138. * @returns
  139. */
  140. contractInfoNoRenewedAscribe:params => {
  141. return http.get('/custom/company_contract_no_renewed_ascribe/detail',params);
  142. },
  143. /**
  144. * 获取收入统计列表接口
  145. * @param {PageSize} params
  146. * @param {CurrentIndex} params
  147. * @param {EndDate} params 结束日期
  148. * @param {CompanyType} params
  149. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  150. * @param {RegionType } params
  151. * @returns
  152. */
  153. incomeList:params => {
  154. return http.get('/statistic_report/income_list',params);
  155. },
  156. /**
  157. * 获取合同数据报表接口
  158. * @param {PageSize} params
  159. * @param {CurrentIndex} params
  160. * @param {EndDate} params 结束日期
  161. * @param {CompanyType} params
  162. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  163. * @param {RegionType } params
  164. * @returns
  165. */
  166. contractList:params => {
  167. return http.get('/statistic_report/contract_list',params);
  168. },
  169. /**
  170. * 获取企业客户的合同数据报表接口
  171. * @param {CompanyId } params
  172. * @returns
  173. */
  174. companyContractList:params => {
  175. return http.get('/statistic_report/company_contract_list',params);
  176. },
  177. // 系统合同类调此接口
  178. companyContractDetailList:params => {
  179. return http.get('/statistic_report/contract_detail_list',params);
  180. },
  181. // 客户数据未续约说明更多
  182. moreRenewReason:params => {
  183. return http.get('/statistic_report/more_renew_reason',params);
  184. },
  185. // 客户数据未续约说明更多
  186. mergeCompanyPreviousDetail:params => {
  187. return http.get('/statistic_report/merge_company_previous/detail',params);
  188. },
  189. // 客户数据未续约说明更多上一年
  190. mergeCompanyPreviousDetailYear:params => {
  191. return http.get('/statistic_report/merge_company_previous/last_year',params);
  192. },
  193. /**
  194. * // 获取图表阅读统计列表
  195. * @param {PageSize} params
  196. * @param {CurrentIndex} params
  197. * @param {ClassifyId} params 分类ID
  198. * @param {Order} params 排序
  199. * @returns
  200. */
  201. getchartCensusList:params => {
  202. return http.get('/yb/chartCensus/getVisitList',params);
  203. },
  204. /**
  205. * // 图表阅读统计详情列表
  206. * @param {PageSize} params
  207. * @param {CurrentIndex} params
  208. * @param {ClassifyId} params 分类ID
  209. * @param {Order} params 排序
  210. * @returns
  211. */
  212. getchartgetVisitDetailList:params => {
  213. return http.get('yb/chartCensus/getVisitDetailList',params);
  214. },
  215. /**
  216. * // 用户图表访问明细
  217. * @returns
  218. */
  219. getCompanyChartVisitDetail:params => {
  220. return http.get('yb/chartCensus/getCompanyChartVisitDetail',params);
  221. },
  222. /**
  223. * // 图库权限开通客户统计列表
  224. * @returns
  225. */
  226. getCompanyAuthCensusList:params => {
  227. return http.get('yb/chartCensus/getCompanyAuthCensusList',params);
  228. },
  229. /**新增客户统计
  230. * StartDate EndDate DataType
  231. * @return
  232. */
  233. newcustomStatistic: params => {
  234. return http.get('/statistic_report/report/incremental_company',params)
  235. },
  236. /**
  237. * 存量客户统计
  238. * Date
  239. * @return
  240. */
  241. stockcustomStatistic: params => {
  242. return http.get('/statistic_report/report/stack_company',params)
  243. },
  244. /**续约客户统计
  245. * StartDate 统计开始时间
  246. * EndDate 统计结束时间
  247. * DataType 统计范围类型
  248. * ProductId 项目类型 1 ficc 2 权益
  249. * @return
  250. */
  251. renewalCustomStatistic: params => {
  252. return http.get('/statistic_report/report/renew_company',params)
  253. },
  254. // 续约异常客户统计
  255. unusualRenewalCustomStatistic: params => {
  256. return http.get('/statistic_report/report/unusual_renew_company',params)
  257. },
  258. //续约异常客户统计图表数据
  259. unusualRenewalCustomStatisticChartData:params=>{
  260. return http.get('/statistic_report/report/unusual_renew_company/chart',params)
  261. },
  262. /**
  263. * 新增客户列表
  264. * @param {} params PageSize CurrentIndex SortParam SortType CompanyIds
  265. * @return
  266. */
  267. newcustomList: params => {
  268. return http.post('/statistic_report/report/company_list',params)
  269. },
  270. /**
  271. * 销售To do统计
  272. * DataType ProductId StartDate EndDate
  273. * @return
  274. */
  275. todoStatistic: params => {
  276. return http.get('/statistic_report/report/seller_company_todo',params)
  277. },
  278. /**
  279. * 语音播报统计
  280. * @param SectionId 板块id
  281. * @param VarietyId 品种id
  282. * @param AdminId 语音管理员id
  283. * @param ClickSort 排序 1升序 2降序
  284. * @param Title 搜索关键词
  285. */
  286. voicePlayStatistic:params=>{
  287. return http.get('/yb/voice/broadcast/list',params)
  288. },
  289. /**
  290. * 语音播报详情
  291. * @param BroadcastId
  292. */
  293. voicePlayDetailSta:params=>{
  294. return http.get('/yb/voice/broadcast/deatil',params)
  295. },
  296. /**
  297. * 价格驱动点击量-列表
  298. */
  299. priceDrivenStatisticsList:params=>{
  300. return http.get('/yb/price_driven/click_census_list',params)
  301. },
  302. /**
  303. * 价格驱动点击量-详情
  304. */
  305. priceDrivenStatisticsDetail:params=>{
  306. return http.get('/yb/price_driven/click_census_detail',params)
  307. },
  308. //ficc产品阅读统计
  309. ficcProductStatistic:params=>{
  310. return http.get('/statistic_report/report/seller_yb_log',params)
  311. },
  312. /**
  313. * 分产品阅读客户统计-- 新增客户列表
  314. * @param {} params PageSize CurrentIndex SortParam SortType SellerIds ProductId ProductType StartDate EndDate CompanyStatus
  315. * @return
  316. */
  317. newCustomProductionList: params => {
  318. return http.post('/statistic_report/report/seller_yb_log/user',params)
  319. },
  320. /**
  321. * 分产品阅读统计 -- 收藏统计
  322. * @param Datatype
  323. */
  324. collectStatistic:params=>{
  325. return http.get('/statistic_report/report/seller_collect_log',params)
  326. },
  327. /**
  328. * 分产品阅读统计 -- 收藏统计用户详情
  329. * @param Datatype
  330. */
  331. collectStatisticList:params=>{
  332. return http.post('/statistic_report/report/seller_collect_log/user',params)
  333. },
  334. /**
  335. * 分产品阅读统计 -- 收藏详情详情
  336. * @param CollectionType
  337. */
  338. collectDetailList:params=>{
  339. return http.post('/statistic_report/report/seller_collect_log/detail',params)
  340. },
  341. /**
  342. * 分产品阅读统计 -- 图收藏统计
  343. * @param Datatype
  344. */
  345. chartStatistic:params=>{
  346. return http.get('/statistic_report/report/seller_chart_collect_log',params)
  347. },
  348. /**
  349. * 分产品阅读统计 -- 图收藏统计用户详情
  350. * @param Datatype
  351. */
  352. chartStatisticList:params=>{
  353. return http.post('/statistic_report/report/seller_chart_collect_log/user',params)
  354. },
  355. /**
  356. * 分产品阅读统计 -- 图收藏详情列表
  357. * @param CollectionType
  358. */
  359. chartDetailList:params=>{
  360. return http.post('/statistic_report/report/seller_chart_collect_log/detail',params)
  361. },
  362. /**
  363. * 权益客户统计列表接口
  364. * @param {PageSize} params
  365. * @param {CurrentIndex} params
  366. * @param {EndDate} params 结束日期
  367. * @param {CompanyType} params
  368. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  369. * @param {RegionType } params
  370. * @param {StartDate} params
  371. * @param {DataType} params
  372. * @param {IsConfirm} params 是否确认续约: -1-默认全部; 0-待确认; 1-已确认
  373. * @param {CompanyAscribeId} params 归因Id
  374. * @returns
  375. */
  376. incrementalCompanyContractPermissionList:params => {
  377. return http.get('/statistic_report/merge_company/company_contract_permission/list',params);
  378. },
  379. /**
  380. * 权益客户续约率统计
  381. * @param {PageSize} params
  382. * @param {CurrentIndex} params
  383. * @param {EndDate} params 结束日期
  384. * @param {StartDate} params 开始日期
  385. * @param {ContractDataType} params 到期合同
  386. * @param {AdminId} params 销售id
  387. * @returns
  388. */
  389. incrementalCompanyContractPercentageList:params => {
  390. return http.get('/statistic_report/merge_company/company_contract_percentage/list',params);
  391. },
  392. incrementalCompanyContractPercentageListV2:params => {
  393. return http.get('/statistic_report/merge_company/company_contract_percentage/listV2',params);
  394. },
  395. /**
  396. * 权益客户续约率统计所能查询的年份
  397. * @returns
  398. */
  399. incrementalCompanyContractGetYearList:params => {
  400. return http.get('/statistic_report/merge_company/get_year_list',params);
  401. },
  402. /**
  403. * 权益服务统计列表接口
  404. * @returns
  405. */
  406. getRaiServeList:params => {
  407. return http.get('/cygx/rai_serve/list',params);
  408. },
  409. /**
  410. * 标签搜索接口
  411. * @returns
  412. */
  413. getRaiServeSearchTag:params => {
  414. return http.get('/cygx/rai_serve/search_tag',params);
  415. },
  416. /**
  417. * 近四周覆盖率
  418. * @returns
  419. */
  420. getRaiServeCoverageRate:params => {
  421. return http.get('/cygx/rai_serve/coverage_rate',params);
  422. },
  423. /**
  424. * 明细列表接口
  425. * @returns
  426. */
  427. getRaiServeBillList:params => {
  428. return http.get('/cygx/rai_serve/bill_list',params);
  429. },
  430. /**
  431. * 服务类型列表接口
  432. * @returns
  433. */
  434. getRaiServeTypeList:params => {
  435. return http.get('/cygx/rai_serve/type_list',params);
  436. },
  437. /**
  438. * 获取权益服务组销售列表
  439. * @returns
  440. */
  441. getRaiServeCustomSellerList:params => {
  442. return http.get('/custom/seller/rai_serve/list',params);
  443. },
  444. /**
  445. * 历史备注列表
  446. * @returns
  447. */
  448. getRaiServeRemarkList:params => {
  449. return http.get('/cygx/rai_serve/remark/list',params);
  450. },
  451. /**
  452. * 新增历史备注
  453. * @returns
  454. */
  455. getRaiServeRemarkAdd:params => {
  456. return http.post('/cygx/rai_serve/remark/add',params);
  457. },
  458. }
  459. export {
  460. dataMainInterface
  461. }