statisticApi.js 8.7 KB

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