statisticApi.js 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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. /**
  36. * 获取增量客户列表接口
  37. * @param {PageSize} params
  38. * @param {CurrentIndex} params
  39. * @param {EndDate} params 结束日期
  40. * @param {CompanyType} params
  41. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  42. * @param {RegionType } params
  43. * @param {StartDate} params
  44. * @param {DataType} params
  45. * @param {IsConfirm} params 是否确认续约: -1-默认全部; 0-待确认; 1-已确认
  46. * @param {CompanyAscribeId} params 归因Id
  47. * @returns
  48. */
  49. incrementalList:params => {
  50. return http.get('/statistic_report/incremental_company_list',params);
  51. },
  52. /**
  53. * 权益客户统计列表接口
  54. * @param {PageSize} params
  55. * @param {CurrentIndex} params
  56. * @param {EndDate} params 结束日期
  57. * @param {CompanyType} params
  58. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  59. * @param {RegionType } params
  60. * @param {StartDate} params
  61. * @param {DataType} params
  62. * @param {IsConfirm} params 是否确认续约: -1-默认全部; 0-待确认; 1-已确认
  63. * @param {CompanyAscribeId} params 归因Id
  64. * @returns
  65. */
  66. incrementalEquityList:params => {
  67. return http.get('/statistic_report/merge_company_list',params);
  68. },
  69. /**
  70. * 获取未续约备注列表
  71. * @param {CompanyId} params 公司ID
  72. * @param {ProductId} params 产品ID 1:FICC ,2权益
  73. * @returns
  74. */
  75. getNotRenewedRemarkList:params => {
  76. return http.get('/custom/company_no_renewed_note/list',params);
  77. },
  78. /**
  79. * 添加未续约备注
  80. * @param {CompanyId} params 公司ID
  81. * @param {ProductId} params 产品ID 1:FICC ,2权益
  82. * @param {Content} params 内容
  83. * @returns
  84. */
  85. addNotRenewedRemark:params => {
  86. return http.post('/custom/company_no_renewed_note/add',params);
  87. },
  88. /**
  89. * 获取归因列表
  90. * @param {KeyWord} params
  91. * @returns
  92. */
  93. getAscribList:params => {
  94. return http.get('/custom/company_ascribe/list',params);
  95. },
  96. /**
  97. * 新增归因
  98. * @param {KeyWord} params
  99. * @returns
  100. */
  101. addAscrib:params => {
  102. return http.post('/custom/company_ascribe/add',params);
  103. },
  104. /**
  105. * 修改归因标签
  106. * @param {CompanyId} params 公司ID
  107. * @param {ProductId} params 产品ID 1:FICC ,2权益
  108. * @param {Content} params 内容
  109. * @param {CompanyAscribeId} params 归因Id
  110. * @returns
  111. */
  112. addNoRenewedAscribe:params => {
  113. return http.post('/custom/company_no_renewed_ascribe/add',params);
  114. },
  115. /**
  116. * 归因标签详情
  117. * @param {CompanyId} params 公司ID
  118. * @param {ProductId} params 产品ID 1:FICC ,2权益
  119. * @returns
  120. */
  121. infoNoRenewedAscribe:params => {
  122. return http.get('/custom/company_no_renewed_ascribe/detail',params);
  123. },
  124. /**
  125. * 获取收入统计列表接口
  126. * @param {PageSize} params
  127. * @param {CurrentIndex} params
  128. * @param {EndDate} params 结束日期
  129. * @param {CompanyType} params
  130. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  131. * @param {RegionType } params
  132. * @returns
  133. */
  134. incomeList:params => {
  135. return http.get('/statistic_report/income_list',params);
  136. },
  137. /**
  138. * 获取合同数据报表接口
  139. * @param {PageSize} params
  140. * @param {CurrentIndex} params
  141. * @param {EndDate} params 结束日期
  142. * @param {CompanyType} params
  143. * @param {AdminId } params 销售id,多个用英文逗号隔开,空字符串为全部
  144. * @param {RegionType } params
  145. * @returns
  146. */
  147. contractList:params => {
  148. return http.get('/statistic_report/contract_list',params);
  149. },
  150. /**
  151. * 获取企业客户的合同数据报表接口
  152. * @param {CompanyId } params
  153. * @returns
  154. */
  155. companyContractList:params => {
  156. return http.get('/statistic_report/company_contract_list',params);
  157. },
  158. // 系统合同类调此接口
  159. companyContractDetailList:params => {
  160. return http.get('/statistic_report/contract_detail_list',params);
  161. },
  162. // 客户数据未续约说明更多
  163. moreRenewReason:params => {
  164. return http.get('/statistic_report/more_renew_reason',params);
  165. },
  166. // 客户数据未续约说明更多
  167. mergeCompanyPreviousDetail:params => {
  168. return http.get('/statistic_report/merge_company_previous/detail',params);
  169. },
  170. /**
  171. * // 获取图表阅读统计列表
  172. * @param {PageSize} params
  173. * @param {CurrentIndex} params
  174. * @param {ClassifyId} params 分类ID
  175. * @param {Order} params 排序
  176. * @returns
  177. */
  178. getchartCensusList:params => {
  179. return http.get('/yb/chartCensus/getVisitList',params);
  180. },
  181. /**
  182. * // 图表阅读统计详情列表
  183. * @param {PageSize} params
  184. * @param {CurrentIndex} params
  185. * @param {ClassifyId} params 分类ID
  186. * @param {Order} params 排序
  187. * @returns
  188. */
  189. getchartgetVisitDetailList:params => {
  190. return http.get('yb/chartCensus/getVisitDetailList',params);
  191. },
  192. /**
  193. * // 用户图表访问明细
  194. * @returns
  195. */
  196. getCompanyChartVisitDetail:params => {
  197. return http.get('yb/chartCensus/getCompanyChartVisitDetail',params);
  198. },
  199. /**
  200. * // 图库权限开通客户统计列表
  201. * @returns
  202. */
  203. getCompanyAuthCensusList:params => {
  204. return http.get('yb/chartCensus/getCompanyAuthCensusList',params);
  205. },
  206. /**新增客户统计
  207. * StartDate EndDate DataType
  208. * @return
  209. */
  210. newcustomStatistic: params => {
  211. return http.get('/statistic_report/report/incremental_company',params)
  212. },
  213. /**
  214. * 存量客户统计
  215. * Date
  216. * @return
  217. */
  218. stockcustomStatistic: params => {
  219. return http.get('/statistic_report/report/stack_company',params)
  220. },
  221. /**续约客户统计
  222. * StartDate 统计开始时间
  223. * EndDate 统计结束时间
  224. * DataType 统计范围类型
  225. * ProductId 项目类型 1 ficc 2 权益
  226. * @return
  227. */
  228. renewalCustomStatistic: params => {
  229. return http.get('/statistic_report/report/renew_company',params)
  230. },
  231. /**
  232. * 新增客户列表
  233. * @param {} params PageSize CurrentIndex SortParam SortType CompanyIds
  234. * @return
  235. */
  236. newcustomList: params => {
  237. return http.post('/statistic_report/report/company_list',params)
  238. },
  239. /**
  240. * 销售To do统计
  241. * DataType ProductId StartDate EndDate
  242. * @return
  243. */
  244. todoStatistic: params => {
  245. return http.get('/statistic_report/report/seller_company_todo',params)
  246. },
  247. /**
  248. * 语音播报统计
  249. * @param SectionId 板块id
  250. * @param VarietyId 品种id
  251. * @param AdminId 语音管理员id
  252. * @param ClickSort 排序 1升序 2降序
  253. * @param Title 搜索关键词
  254. */
  255. voicePlayStatistic:params=>{
  256. return http.get('/yb/voice/broadcast/list',params)
  257. },
  258. /**
  259. * 语音播报详情
  260. * @param BroadcastId
  261. */
  262. voicePlayDetailSta:params=>{
  263. return http.get('/yb/voice/broadcast/deatil',params)
  264. },
  265. /**
  266. * 价格驱动点击量-列表
  267. */
  268. priceDrivenStatisticsList:params=>{
  269. return http.get('/yb/price_driven/click_census_list',params)
  270. },
  271. /**
  272. * 价格驱动点击量-详情
  273. */
  274. priceDrivenStatisticsDetail:params=>{
  275. return http.get('/yb/price_driven/click_census_detail',params)
  276. },
  277. //ficc产品阅读统计
  278. ficcProductStatistic:params=>{
  279. return http.get('/statistic_report/report/seller_yb_log',params)
  280. },
  281. /**
  282. * 分产品阅读客户统计-- 新增客户列表
  283. * @param {} params PageSize CurrentIndex SortParam SortType SellerIds ProductId ProductType StartDate EndDate CompanyStatus
  284. * @return
  285. */
  286. newCustomProductionList: params => {
  287. return http.post('/statistic_report/report/seller_yb_log/user',params)
  288. },
  289. /**
  290. * 分产品阅读统计 -- 收藏统计
  291. * @param Datatype
  292. */
  293. collectStatistic:params=>{
  294. return http.get('/statistic_report/report/seller_collect_log',params)
  295. },
  296. /**
  297. * 分产品阅读统计 -- 收藏统计用户详情
  298. * @param Datatype
  299. */
  300. collectStatisticList:params=>{
  301. return http.post('/statistic_report/report/seller_collect_log/user',params)
  302. },
  303. /**
  304. * 分产品阅读统计 -- 收藏详情详情
  305. * @param CollectionType
  306. */
  307. collectDetailList:params=>{
  308. return http.post('/statistic_report/report/seller_collect_log/detail',params)
  309. },
  310. /**
  311. * 分产品阅读统计 -- 图收藏统计
  312. * @param Datatype
  313. */
  314. chartStatistic:params=>{
  315. return http.get('/statistic_report/report/seller_chart_collect_log',params)
  316. },
  317. /**
  318. * 分产品阅读统计 -- 图收藏统计用户详情
  319. * @param Datatype
  320. */
  321. chartStatisticList:params=>{
  322. return http.post('/statistic_report/report/seller_chart_collect_log/user',params)
  323. },
  324. /**
  325. * 分产品阅读统计 -- 图收藏详情列表
  326. * @param CollectionType
  327. */
  328. chartDetailList:params=>{
  329. return http.post('/statistic_report/report/seller_chart_collect_log/detail',params)
  330. },
  331. }
  332. export {
  333. dataMainInterface
  334. }