crmApi.js 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257
  1. import http from "@/api/http.js";
  2. /* 客户管理模块 */
  3. const customInterence = {
  4. // 销售今日待办
  5. sellerTodayList:params=>{
  6. return http.get('/custom/getTryOutCompanyList',params)
  7. },
  8. // 销售待办填写续约说明
  9. sellerTodayListRemark:params=>{
  10. return http.post('/custom/editTryOutCompanyReason',params)
  11. },
  12. //销售代办中历史记录
  13. sellerTodayHistoryList:params=>{
  14. return http.get('/custom/renewReasonList',params)
  15. },
  16. //累计试用天数详情
  17. tryOutDeail:params=>{
  18. return http.get("/custom/company/tryOutDayList",params)
  19. },
  20. /*
  21. 关闭客户
  22. CompanyId
  23. Remark
  24. */
  25. closeCustom:params=>{
  26. return http.post('/custom/close',params)
  27. },
  28. /**
  29. * 关闭客户转流失
  30. * CompanyId
  31. */
  32. turnLose:params=>{
  33. return http.post('/custom/close2loss',params)
  34. },
  35. // 客户系统合同搜索
  36. contractSearch: (params) => {
  37. return http.get("/custom/system_contract/list", params);
  38. },
  39. // 系统合同详情
  40. sysContractDetail: (params) => {
  41. return http.get("/custom/system_contract/detail", params);
  42. },
  43. // 通过系统合同申请转正/服务更新接口
  44. sysCustomeApply: (params) => {
  45. return http.post("/custom/apply/systemContract", params);
  46. },
  47. /**
  48. * 获取客户大于今天的最后一份有效合同详情
  49. * CompanyId
  50. */
  51. lastContractInfo: (params) => {
  52. return http.get("/custom/company/last_contract/detail", params);
  53. },
  54. //补全客户信息
  55. /**
  56. * City
  57. * CompanyId 客户id
  58. * CompanyName
  59. * CreditCode
  60. * IndustryId 所属行业id
  61. * IndustryName
  62. * Province
  63. * Source 来源
  64. */
  65. completeInfo: (params) => {
  66. return http.post("/custom/company_info/edit", params);
  67. },
  68. //获取客户名下联系人数量(根据当前账号角色区分)
  69. //CompanyId 客户id
  70. companyUserTotal: (params) => {
  71. return http.get("/custom/company_user/total", params);
  72. },
  73. //获取客户申请转正的合同类型
  74. applyTurnContractType: (params) => {
  75. return http.get("/custom/apply/contract/getApplyTurnContractType", params);
  76. },
  77. //客户来源
  78. customerSourceList: (params) => {
  79. return http.get("/custom/getCompanySourceList", params);
  80. },
  81. // 获取客户名下所有销售列表
  82. companySellerList: (params) => {
  83. return http.get("/custom/getCompanySellerList", params);
  84. },
  85. // 移动联系人
  86. moveCustom: (params) => {
  87. return http.post("/custom/user/move", params);
  88. },
  89. /* 上传图片接口 file */
  90. upload: (params) => {
  91. return http.post("/resource/image/upload", params);
  92. },
  93. /* 代办消息列表 */
  94. noticeList: (params) => {
  95. return http.get("/custom/message/listV2", params);
  96. },
  97. /* 消息已读接口 Id */
  98. readNotice: (params) => {
  99. return http.post("/custom/message/read", params);
  100. },
  101. /* 客户列表
  102. PageSize * integer
  103. CurrentIndex * integer
  104. Status *string 状态:’传空字符串或者不传为全部’,’试用’,’永续’,’冻结’,’流失’,’正式’
  105. CompanyType *string 客户类型:传空字符串或者不传为全部,’ficc’,’权益’
  106. IndustryId *integer
  107. AdminId string 销售id,多个用英文逗号隔开,空字符串为全部
  108. ChartPermissionIds *string 品种id,多个用英文逗号分开,空字符串为全部
  109. StartDate *
  110. EndDate *
  111. KeyWord * 搜索关键词
  112. TryStage 试用子标签 0全部、1未分类、2 推进、3 跟踪、4 预备
  113. */
  114. customList: (params) => {
  115. return http.get("/custom/list", params);
  116. },
  117. /* 获取指定权限的销售列表 */
  118. getSale: (params) => {
  119. // return http.get('/custom/seller/check/list',params)
  120. return http.get("/custom/seller/check/listV2", params);
  121. },
  122. /* 客户详情
  123. CompanyId
  124. */
  125. customDetail: (params) => {
  126. return http.get("/custom/detail", params);
  127. },
  128. /* 新增客户
  129. Province: string
  130. City:string
  131. 省市
  132. CompanyCode: string
  133. 客户编码
  134. CompanyName: string
  135. 客户名称
  136. CompanyType: string
  137. 客户类型,ficc,权益
  138. CreditCode: string
  139. 社会统一信用码
  140. IndustryId: integer ($int64)
  141. 所属行业id
  142. PermissionIds: string
  143. 权限id,多个用英文逗号隔开
  144. Reasons: string
  145. 新增理由
  146. SellsId: integer ($int64)
  147. 销售员id
  148. Source: string
  149. 来源
  150. Status: string
  151. 客户状态,试用,永续
  152. */
  153. customAdd: (params) => {
  154. return http.post("/custom/add", params);
  155. },
  156. /* 编辑客户
  157. "City": "string",
  158. "CompanyId": 0,
  159. "CompanyName": "string",
  160. "CreditCode": "string",
  161. "Products": [
  162. {
  163. "CompanyProductId": 0,
  164. "CompanyType": "string",
  165. "IndustryId": 0,
  166. "IndustryName": "string",
  167. "PermissionIds": "string",
  168. "Reasons": "string",
  169. "SellsId": 0,
  170. "Source": "string",
  171. "Status": "string"
  172. }
  173. ],
  174. "Province": "string"
  175. */
  176. customEdit: (params) => {
  177. return http.post("/custom/edit", params);
  178. },
  179. /* 删除客户 CompanyId*/
  180. customDel: (params) => {
  181. return http.post("/custom/delete", params);
  182. },
  183. /* 新增编辑客户名称检索 KeyWord*/
  184. customSea: (params) => {
  185. return http.get("/custom/fuzzy/search", params);
  186. },
  187. /* 获取销售接口 */
  188. /**
  189. *
  190. * @param {
  191. * SellerType - 销售类型 - 0:所有; 1:FICC; 2:权益
  192. * } params
  193. * @returns
  194. */
  195. saleslist: (params) => {
  196. return http.get("/custom/seller/list", params);
  197. },
  198. /* 联系人列表
  199. PageSize
  200. CurrentIndex
  201. CompanyId *integer
  202. KeyWord
  203. */
  204. concactList: (params) => {
  205. return http.get("/custom/user/list", params);
  206. },
  207. /* 新增联系人
  208. DepartmentName
  209. BusinessCardUrl: string名片地址
  210. CompanyId: integer ($int64)客户id
  211. Email: string邮箱
  212. IsMaker: integer ($int64) 是否决策人,1:是,0:否
  213. MobileOne: string手机号1
  214. MobileTwo: string手机号2
  215. Position: string职位
  216. RealName: string姓名
  217. Sex: integer ($int64)用户性别,1为男性,2为女性
  218. */
  219. concactAdd: (params) => {
  220. return http.post("/custom/user/add", params);
  221. },
  222. /* 删除联系人 UserId int*/
  223. concactDel: (params) => {
  224. return http.post("/custom/user/delete", params);
  225. },
  226. /* 编辑联系人
  227. DepartmentName
  228. "BusinessCardUrl": "string",
  229. "CompanyId": 0,
  230. "Email": "string",
  231. "IsMaker": 0,
  232. "MobileOne": "string",
  233. "MobileTwo": "string",
  234. "Position": "string",
  235. "RealName": "string",
  236. "Sex": 0,
  237. "UserId": 0
  238. */
  239. concactEdit: (params) => {
  240. return http.post("/custom/user/edit", params);
  241. },
  242. /* 获取权限基本信息 */
  243. authList: (params) => {
  244. return http.get("/custom/permission/list", params);
  245. },
  246. /* 查看权限 CompanyId */
  247. lookauth: (params) => {
  248. return http.get("/custom/permission/look", params);
  249. },
  250. /* 根据客户类型获取行业列表接口
  251. Classify string
  252. */
  253. getindustry: (params) => {
  254. return http.get("/custom/industry/list", params);
  255. },
  256. /*
  257. 品种列表 客户列表筛选
  258. */
  259. getvariety: (params) => {
  260. return http.get("/custom/permission/variety", params);
  261. },
  262. /* 客户检索列表
  263. KeyWord
  264. */
  265. searchList: (params) => {
  266. return http.get("/custom/search/list", params);
  267. },
  268. /* 潜在用户列表
  269. PageSize * 每页数据条数
  270. CurrentIndex *
  271. ApplyMethod * int 申请方式,0:全部,1:未申请,2:已付费客户申请试用,3:非客户申请试用
  272. KeyWord *
  273. */
  274. potentialList: (params) => {
  275. return http.get("/custom/potential/user/list", params);
  276. },
  277. /* 获取试用用户列表 */
  278. trialList: (params) => {
  279. return http.get("/custom/official/user/list", params);
  280. // return http.get('/api/adminapi/custom/official/user/list?PageSize=10&CurrentIndex=1&SourceType=中文官网', params)
  281. },
  282. /* 试用用户确认已处理接口 */
  283. trialStatus: (params) => {
  284. return http.post("/custom/official/user/confirm", params);
  285. },
  286. /* 标记研报申请分组
  287. ApplyRecordId
  288. GroupName
  289. UserId
  290. */
  291. markApplyUser:(params)=>{
  292. return http.post('/yb/apply_record/mark_group',params)
  293. },
  294. /**
  295. * 标记官网试用申请
  296. * Id
  297. * GroupName
  298. */
  299. markOfficialUser:(params)=>{
  300. return http.post('/custom/official/user/mark_group',params)
  301. },
  302. /* 搜索公司 KeyWord */
  303. companySearch: (params) => {
  304. return http.get("/custom/potential/company/search", params);
  305. },
  306. /* 搜索公司qcc KeyWord */
  307. companyQccSearch: (params) => {
  308. return http.get("/custom/potential/company/qccSearch", params);
  309. },
  310. /* 检查公司名称或是信用码 CompanyName CreditCode */
  311. checkCompany: (params) => {
  312. return http.get("/custom/check/companyInfo", params);
  313. },
  314. /* 检查公司名称或是信用码 CompanyName CreditCode */
  315. checkCompanyInfo: (params) => {
  316. return http.get("/custom/check/RepeatCompanyInfo", params);
  317. },
  318. /* 移动潜在用户
  319. "BusinessCardUrl":string名片地址
  320. "CompanyId": int,
  321. "DepartmentName":string联系人部门
  322. "Email": "string",
  323. "IsMaker":int是否决策人,1:是,0:否
  324. "Mobile": "string",
  325. "Position": string职位
  326. "RegionType":string 区域,枚举值:国内、海外
  327. "RealName": "string",
  328. "Remark": "string",
  329. "SellerId":int 需要移动到的销售id
  330. "Sex":int 用户性别,1为男性,2为女性
  331. "UserId": int
  332. */
  333. moveUser: (params) => {
  334. return http.post("/custom/potential/user/move", params);
  335. },
  336. /* 删除潜在用户
  337. "UserId": int
  338. */
  339. potentialDel: (params) => {
  340. return http.post("/custom/potential/user/delete", params);
  341. },
  342. //给用户打标记
  343. potentialDeal: (params) => {
  344. return http.post("/custom/potential/user/deal", params);
  345. },
  346. /* 客户创建周期
  347. CompanyId int
  348. */
  349. processList: (params) => {
  350. return http.get("/custom/process/list", params);
  351. },
  352. /* 服务更新 历史签约列表 CompanyId CompanyType */
  353. historydeal: (params) => {
  354. return http.get("/custom/apply/contract/history/list", params);
  355. },
  356. /* 服务更新
  357. "CompanyId": 0,
  358. "CompanyType": "string",
  359. "EndDate": "string",
  360. "ImgUrl": "string",
  361. "Money": 0,
  362. "PayChannel": "string",
  363. "PayMethod": "string",
  364. "PermissionIds": "string",
  365. "StartDate": "string"
  366. */
  367. Update: (params) => {
  368. return http.post("/custom/apply/service/update", params);
  369. },
  370. /* 冻结客户
  371. "CompanyId": 0,
  372. "CompanyType":*/
  373. Freez: (params) => {
  374. return http.post("/custom/freeze", params);
  375. },
  376. /* 申请转正
  377. "CompanyId": 0,
  378. "EndDate": "string",
  379. "ImgUrl": "string",
  380. "Money": 0,
  381. "PayChannel": "string",
  382. "PayMethod": "string",
  383. "PermissionIds": "string",
  384. "StartDate": "string"
  385. */
  386. applyTurn: (params) => {
  387. return http.post("/custom/apply/turn/positive", params);
  388. },
  389. /* 申请延期
  390. "ApplyRemark": "string",
  391. "CompanyId": 0
  392. CompanyApprovalId
  393. PermissionIds
  394. */
  395. applyDelay: (params) => {
  396. return http.post("/custom/apply/delay", params);
  397. },
  398. /* 申请领取
  399. "ApplyRemark": "string",
  400. "CompanyId": 0
  401. */
  402. applyPick: (params) => {
  403. return http.post("/custom/apply/receive", params);
  404. },
  405. /* 申请解冻
  406. "ApplyRemark": "string",
  407. "CompanyId": 0
  408. */
  409. applyThaw: (params) => {
  410. return http.post("/custom/apply/thaw", params);
  411. },
  412. /* 修改所属销售 "CompanyId": 0,"SellsId": 0*/
  413. moveSale: (params) => {
  414. return http.post("/custom/move/seller", params);
  415. },
  416. /* 暂停/启用 CompanyId */
  417. Suspend: (params) => {
  418. return http.post("/custom/suspend", params);
  419. },
  420. /* 领取列表
  421. PageSize *
  422. CurrentIndex *
  423. IndustryId 行业id,0为全部
  424. ChartPermissionIds
  425. StartDate *
  426. EndDate *
  427. KeyWord *
  428. */
  429. pickList: (params) => {
  430. return http.get("/custom/receive/list", params);
  431. },
  432. /* 领取客户 ——领取列表
  433. "CompanyId": 0,
  434. "IndustryId": 0,
  435. "PermissionIds": "string",
  436. "Reasons": "string",
  437. "SellsId": 0,
  438. "Source": "string",
  439. "Status": "string"
  440. CompanyType
  441. */
  442. Pick: (params) => {
  443. return http.post("/custom/receive", params);
  444. },
  445. /* 设置共享/取消共享
  446. CompanyId
  447. IsShare 0-取消共享 1-共享
  448. */
  449. setCustomShare: (params) => {
  450. return http.post("/custom/share", params);
  451. },
  452. /**
  453. * 正式客户共享
  454. */
  455. /**
  456. * 获取 共享客户组 里面的销售列表
  457. */
  458. salesShareList: (params) => {
  459. return http.get("/custom/seller/share/list", params);
  460. },
  461. /**
  462. * 获取 共享客户列表
  463. * SortParam 排序字段
  464. * SortType 排序类型 `asc 正序`,`desc 倒叙`
  465. * PageSize CurrentIndex
  466. * SellerId 选择的销售id
  467. * Keyword
  468. * ListParam 0:全部 、 1:已分配 、 2:未分配
  469. *
  470. */
  471. getShareCustomList: (params) => {
  472. return http.get("/custom/share/list", params);
  473. },
  474. /**
  475. * 共享客户列表 - 分配销售
  476. * CompanyId 公司Id
  477. * SellsId 销售Id
  478. *
  479. */
  480. assignShareSeller: (params) => {
  481. return http.post("/custom/share/moveSeller", params);
  482. },
  483. /**
  484. * 新增服务记录
  485. * CompanyId 公司Id
  486. * Content 服务描述
  487. */
  488. addRecord:(params)=>{
  489. return http.post("/custom/service_record/add",params)
  490. },
  491. /**
  492. * 服务记录列表
  493. * CompanyId 公司Id
  494. */
  495. getRecordList:(params)=>{
  496. return http.get("/custom/service_record/list",params)
  497. },
  498. /**
  499. * 删除服务记录
  500. * CompanyServiceRecordId 服务记录id
  501. */
  502. deleteRecord:(params)=>{
  503. return http.post("/custom/service_record/del",params)
  504. },
  505. /**
  506. * 正式客户共享-添加备注
  507. * CompanyId
  508. * Remark
  509. */
  510. addCustomRemark:(params)=>{
  511. return http.post("/custom/share/remark/add",params)
  512. },
  513. /**
  514. * 客户列表,正式客户共享-删除备注
  515. * RemarkId
  516. */
  517. deleteRemark:(params)=>{
  518. return http.post("/custom/remark/del",params)
  519. },
  520. /*
  521. * 标记服务记录
  522. * CompanyServiceRecordId
  523. * Status 0取消标记 1标记
  524. */
  525. markRecord:(params)=>{
  526. return http.post('/custom/share/mark',params)
  527. },
  528. /**
  529. * 同城客户列表
  530. */
  531. getCustomCityList:(params)=>{
  532. return http.get('/custom/share/list/city',params)
  533. },
  534. /* 审批列表
  535. PageSize *
  536. CurrentIndex *
  537. Status *
  538. KeyWord *
  539. */
  540. approvalList: (params) => {
  541. return http.get("/custom/approval/listV2", params);
  542. },
  543. /* 审批
  544. "CompanyId": 0,
  545. "Remark": "string",
  546. "Status": 0
  547. */
  548. Approval: (params) => {
  549. return http.post("/custom/approval/approve", params);
  550. },
  551. /* 撤回 CompanyId*/
  552. Revoke: (params) => {
  553. return http.post("/custom/apply/revoke", params);
  554. },
  555. /* 删除审批单 CompanyApprovalId CompanyId */
  556. approvalDel: (params) => {
  557. return http.post("/custom/approval/delete", params);
  558. },
  559. /* 审批页面详情
  560. CompanyId * *
  561. */
  562. approvalDetail: (params) => {
  563. return http.get("/custom/apply/contract/detail", params);
  564. },
  565. /* 重新申请合同详情 */
  566. reapplyDetail: (params) => {
  567. return http.get("/custom/apply/contract", params);
  568. },
  569. /* 阅读报告记录 UserId*/
  570. readList: (params) => {
  571. return http.get("/custom/view/report/list", params);
  572. },
  573. /* 获取导入联系人列表 File CompanyId*/
  574. getimportList: (params) => {
  575. return http.post("/custom/import/list", params);
  576. },
  577. /* 导入联系人 File CompanyId*/
  578. importUser: (params) => {
  579. return http.post("/custom/import", params);
  580. },
  581. /* 增加试用 "ChartPermissionId" "CompanyId"*/
  582. addTryout: (params) => {
  583. return http.post("/custom/permission/add/try/out", params);
  584. },
  585. /* 申请解冻 申请领取权限列表 */
  586. allAuth: (params) => {
  587. return http.get("/custom/getCompanyPermission", params);
  588. },
  589. /**
  590. * 获取审批单中的权限列表
  591. * @param {ApprovalId } params 审批单id
  592. * @returns
  593. */
  594. approvalPermission: (params) => {
  595. return http.get("/custom/approval/getApprovalPermissionList", params);
  596. },
  597. /**
  598. * 查看客户权限接口(主观客观)
  599. * @param {CompanyId } params 客户id
  600. * @param {LookType } params 调用类型:1增开试用,0其他
  601. * @returns
  602. */
  603. permissionLookSando: (params) => {
  604. return http.get("/custom/permission/lookSando", params);
  605. },
  606. // 获取联系人配置图库权限详情
  607. chartPermissionInfo: (params) => {
  608. return http.get("/custom/user/getChartClassifyPermissionDetail", params);
  609. },
  610. // 联系人图库权限设置
  611. chartPermissionSet: (params) => {
  612. return http.post("/custom/user/addChartClassifyPermission", params);
  613. },
  614. // 联系人图库权限编辑
  615. chartPermissionEdit: (params) => {
  616. return http.post("/custom/user/editChartClassifyPermission", params);
  617. },
  618. // 销售待办添加未续约说明
  619. sellerAddListRemark: (params) => {
  620. return http.post("/custom/addTryOutCompanyReason", params);
  621. },
  622. // 正式转试用添加说明
  623. addTryOutRenewalReason: (params) => {
  624. return http.post("/custom/addRenewalReason", params);
  625. },
  626. // 导出
  627. companyExportList: (params) => {
  628. return http.get("/cygx/company/exportList", params);
  629. },
  630. /* 查看备注 */
  631. lookRemarkAuth: (params) => {
  632. return http.get("/custom/remark", params);
  633. },
  634. /* 新增备注 */
  635. lookRemarkAuthAdd: (params) => {
  636. return http.post("/custom/remark/add", params);
  637. },
  638. //路演的弹框
  639. roadShowList: (params) => {
  640. return http.get("/custom/roadShowList", params);
  641. },
  642. /**
  643. * 销售ToDo
  644. */
  645. //新建任务
  646. addToDoItem: (params) => {
  647. return http.post("/custom/company_todo/add", params);
  648. },
  649. //编辑任务
  650. editToDoItem: (params) => {
  651. return http.post("/custom/company_todo/edit", params);
  652. },
  653. //正在进行的任务
  654. getToDoItem: (params) => {
  655. return http.get("custom/company_todo/edit_list", params);
  656. },
  657. //历史记录
  658. getHistory: (params) => {
  659. return http.get("/custom/company_todo/list", params);
  660. },
  661. //确认完成
  662. checkToDo: (params) => {
  663. return http.post("/custom/company_todo/approve", params);
  664. },
  665. // 设置试用子标签
  666. // "CompanyId":6802,"ProductId":1, "TryStage": 2
  667. setTrialTag: (params) => {
  668. return http.post("/custom/update/tryStage", params);
  669. },
  670. /**
  671. * 销售添加客户管理
  672. */
  673. //销售分组列表
  674. getSales: (params) => {
  675. return http.get("/custom/receive/seller/group", params);
  676. },
  677. //销售列表
  678. getSalesData: (params) => {
  679. return http.get("/custom/receive/seller", params);
  680. },
  681. //权益销售列表
  682. getSalesRaiData: (params) => {
  683. return http.get("/custom/seller/check/list_rai", params);
  684. },
  685. //启用/禁用权限
  686. changeSaleAuth: (params) => {
  687. return http.post("/custom/receive/permission/change", params);
  688. },
  689. /**
  690. * 分产品阅读统计
  691. */
  692. /*
  693. 用户阅读统计:
  694. UserId:联系人ID;ClickSort:点击量排序:1-升序 2-降序
  695. CurrentIndex,pageSize
  696. */
  697. getYbProductReadInfo:(params)=>{
  698. return http.get("/yb/product_census/user/visit_count",params)
  699. },
  700. /*
  701. 用户阅读统计详情:
  702. UserId:联系人ID;ClickSort:点击量排序:1-升序 2-降序
  703. ProductType:产品类型:1-语音播报 2-视频社区 3-问答社区
  704. ProductId:产品ID:产品类型为1-语音播报时必填
  705. CurrentIndex,pageSize
  706. */
  707. getYbProductReadDetail:(params)=>{
  708. return http.get("/yb/product_census/user/visit_count_detail",params)
  709. },
  710. /**
  711. * 获取分产品列表
  712. * @param {*} params
  713. * @returns
  714. */
  715. getSubProduct: params => {
  716. return http.get('/custom/user/otherProductList',params)
  717. },
  718. /**
  719. * 客户区域统计
  720. */
  721. /**
  722. * 获取客户区域统计列表
  723. * @param {*} params
  724. * @returns Date 当天 ProductId=1
  725. */
  726. getRegionCustom: params => {
  727. return http.get('/custom/customerAreaStatistics',params)
  728. },
  729. /**
  730. * --------开票到款统计
  731. */
  732. /**
  733. * 获取简易的套餐列表(用于搜索下拉框)
  734. * @returns
  735. */
  736. getSimpleServiceList: () => {
  737. return http.get('/statistic_report/contract/service/simple')
  738. },
  739. /**
  740. * 获取客户合同商品到款列表
  741. * @param data.page_size - 每页数据量 - 必填
  742. * @param data.current - 页码 - 必填
  743. * @param data.keyword - 关键词-客户名称/销售
  744. * @param data.service_types - 套餐
  745. * @param data.start_date - 开始时间
  746. * @param data.end_date - 结束时间
  747. * @param data.time_type - 时间类型:1-开票时间; 2-到款时间
  748. * @param data.sort_type - desc:降序 asc:升序
  749. * @param data.sort_param - invoice_time:开票日 payment_date:到款日
  750. * @returns
  751. */
  752. getCTContractStatistics: params => {
  753. return http.get('/statistic_report/census/invoice_payment/list',params)
  754. },
  755. // ----------------------------------------------------英文客户
  756. /**
  757. * 设置英文客户权限
  758. * @param {*} params
  759. * @returns
  760. */
  761. setENCustomReportVariety:params=>{
  762. return http.post('/english_report/company/save_permission',params)
  763. },
  764. // 获取英文客户列表
  765. /**
  766. *
  767. * @param {
  768. * PageSize - 每页数据量 - 必填
  769. * CurrentIndex - 当前页数 - 必填
  770. * Keywords - 客户名称
  771. * SortType - 点击量排序方式: 1-倒序;2-正序
  772. * } params
  773. * @returns
  774. */
  775. getCustomListEn: params => {
  776. return http.get('/english_report/company/list',params)
  777. },
  778. // 新增英文客户
  779. /**
  780. *
  781. * @param {
  782. * CompanyId - 客户ID 大于0为编辑
  783. * CompanyName - 客户名称 - 必填
  784. * CountryCode - 国家代码 - 必填
  785. * Country - 国家 - 必填
  786. * SellerId - 销售ID - 必填
  787. * } params
  788. * @returns
  789. */
  790. addCustomEn: (params) => {
  791. return http.post("/english_report/company/save", params);
  792. },
  793. // 删除英文客户
  794. /**
  795. *
  796. * @param {
  797. * CompanyId - 客户ID
  798. * } params
  799. * @returns
  800. */
  801. delCustomEn: (params) => {
  802. return http.post("/english_report/company/del", params);
  803. },
  804. // 英文客户点击量详情
  805. /**
  806. *
  807. * @param {
  808. * PageSize - 每页数据量 - 必填
  809. * CurrentIndex - 当前页数 - 必填
  810. * CompanyId - 客户ID - 必填
  811. * SortParam - 点击量排序字段 - 1-点击量;2-点击时间
  812. * SortType - 点击量排序方式: 1-倒序;2-正序
  813. * } params
  814. * @returns
  815. */
  816. customEnHitNumber: (params) => {
  817. return http.get("/english_report/company/view_list", params);
  818. },
  819. // 英文客户详情
  820. /**
  821. *
  822. * @param {
  823. * CompanyId - 客户ID
  824. * } params
  825. * @returns
  826. */
  827. customDetailEn: (params) => {
  828. return http.get("/english_report/company/detail", params);
  829. },
  830. // ---------英文客户todo
  831. // 新建to do
  832. /**
  833. *
  834. * @param {
  835. * CompanyId - 客户ID
  836. * Description - 任务描述
  837. * EndTime - 截止日期
  838. * } params
  839. * @returns
  840. */
  841. addCustomToDoEn: (params) => {
  842. return http.post("/english_report/company_todo/add", params);
  843. },
  844. // 编辑todo的列表
  845. /**
  846. *
  847. * @param {
  848. * CompanyId - 客户ID - 必填
  849. * } params
  850. * @returns
  851. */
  852. todoEditListEn: (params) => {
  853. return http.get("/english_report/company_todo/edit_list", params);
  854. },
  855. // 编辑todo
  856. /**
  857. *
  858. * @param {
  859. * Id - 任务Id - 必填
  860. * CompanyId - 客户ID - 必填
  861. * Description - 任务描述 - 必填
  862. * } params
  863. * @returns
  864. */
  865. editCustomToDoEn: (params) => {
  866. return http.post("/english_report/company_todo/edit", params);
  867. },
  868. // 完成todo
  869. /**
  870. *
  871. * @param {
  872. * Id - 任务Id - 必填
  873. * } params
  874. * @returns
  875. */
  876. finishCustomToDoEn: (params) => {
  877. return http.post("/english_report/company_todo/approve", params);
  878. },
  879. // to do历史记录
  880. /**
  881. * @param {
  882. * PageSize - 每页数据量 - 必填
  883. * CurrentIndex - 当前页数 - 必填
  884. * CompanyId - 客户ID
  885. * SortType - 点击量排序方式: 1-倒序;2-正序
  886. * } params
  887. * @returns
  888. */
  889. getTodoListEn: (params) => {
  890. return http.get("/english_report/company_todo/list", params);
  891. },
  892. //----------------------------英文联系人列表
  893. /**
  894. * @param {
  895. * PageSize - 每页数据量 - 必填
  896. * CurrentIndex - 当前页数 - 必填
  897. * CompanyId - 客户ID
  898. * Keywords - 搜索关键词,客户名称/邮箱
  899. * SortType - 点击量排序方式: 1-倒序;2-正序
  900. * } params
  901. * @returns
  902. */
  903. getContactsListEn: (params) => {
  904. return http.get("/english_report/email/list", params);
  905. },
  906. // 保存联系人 新增/编辑
  907. /**
  908. *
  909. * @param {
  910. * Id - 联系人ID,大于0为编辑
  911. * CompanyId - 客户Id
  912. * Name - 联系人名称
  913. * Email - 邮箱地址
  914. * } params
  915. * @returns
  916. */
  917. contactsSaveEn: (params) => {
  918. return http.post("/english_report/email/save", params);
  919. },
  920. // 移动联系人
  921. /**
  922. *
  923. * @param {
  924. * EmailId - 邮箱ID
  925. * CompanyId - 客户Id
  926. * } params
  927. * @returns
  928. */
  929. contactsMoveEn: (params) => {
  930. return http.post("/english_report/email/moveToCurrent", params);
  931. },
  932. // 英文联系人批量导入
  933. /**
  934. *
  935. * @param { formData
  936. * File - Excel文件
  937. * CompanyId - 客户ID
  938. * } params
  939. * @returns
  940. */
  941. importContactsEn: (params) => {
  942. return http.post("/english_report/email/import", params);
  943. },
  944. // 删除英文联系人
  945. /**
  946. *
  947. * @param {
  948. * EmailId - 联系人Id
  949. * } params
  950. * @returns
  951. */
  952. delContactsEn: (params) => {
  953. return http.post("/english_report/email/del", params);
  954. },
  955. //启用禁用英文联系人
  956. /**
  957. *
  958. * @param {*
  959. * EmailId
  960. * Enabled
  961. * } params
  962. * @returns
  963. */
  964. editEnabledEn:(params)=>{
  965. return http.post('/english_report/email/editEnabled',params)
  966. },
  967. //批量启用,禁用英文联系人
  968. /**
  969. *
  970. * @param {*
  971. * CompanyId
  972. * Enabled
  973. * } params
  974. * @returns
  975. */
  976. editEnabledAll:(params)=>{
  977. return http.post('/english_report/company/edit_enabled',params)
  978. },
  979. // 英文联系人点击量详情
  980. /**
  981. *
  982. * @param {
  983. * PageSize - 每页数据量 - 必填
  984. * CurrentIndex - 当前页数 - 必填
  985. * EmailId - 联系人ID - 必填
  986. * SortParam - 点击量排序字段 - 1-点击量;2-点击时间
  987. * SortType - 点击量排序方式: 1-倒序;2-正序
  988. * } params
  989. * @returns
  990. */
  991. contactsEnHitNumber: (params) => {
  992. return http.get("/english_report/email/view_list", params);
  993. },
  994. //英文客户-未完成todo统计
  995. /**
  996. *
  997. * @param {
  998. * PageSize - 每页数据量
  999. * CurrentIndex - 当前页数
  1000. * SortType - 截止日期排序方式: 1-正序; 2-倒序
  1001. * } params
  1002. * @returns
  1003. */
  1004. getUnDoList:(params)=>{
  1005. return http.get("/english_report/company_todo/doing_list",params)
  1006. },
  1007. //英文客户-获取to-do编辑框信息
  1008. getToDoEditData:(params)=>{
  1009. return http.get("/english_report/company_todo/last_public_todo",params)
  1010. },
  1011. //英文客户-新增to-do编辑框信息
  1012. /**
  1013. *
  1014. * @param {* Description 任务描述} params
  1015. * @returns
  1016. */
  1017. saveToDoEditData:(params)=>{
  1018. return http.post("/english_report/company_todo/add_public",params)
  1019. },
  1020. //新增开通或者关闭用户研选权限新建接口
  1021. /**
  1022. *
  1023. * @param {* UserId 用户ID} params
  1024. * @param {* Type 类型 } params
  1025. * @returns
  1026. */
  1027. yananxuanPermissionOpen:(params)=>{
  1028. return http.post("/custom/update/user/yananxuan/permission",params)
  1029. }
  1030. };
  1031. /*
  1032. 权益联系人列表模块
  1033. */
  1034. const equityContacts = {
  1035. //状态搜索栏接口
  1036. getUserStatusTable: (params) => {
  1037. return http.get("/cygx/user/status/table", params);
  1038. },
  1039. // 用户列表接口
  1040. getCygxContactsList: (params) => {
  1041. return http.get("/cygx/user/list", params);
  1042. },
  1043. //备注列表接口
  1044. getCygxRemarkList: (params) => {
  1045. return http.get("/cygx/user/remark/list", params);
  1046. },
  1047. // 新增备注
  1048. getCygxAddRemarks: (params) => {
  1049. return http.post("/cygx/user/addRemarks", params);
  1050. },
  1051. //获取用户标签详情接口
  1052. getCygxLabelDetail: (params) => {
  1053. return http.get("/cygx/user/label/detail", params);
  1054. },
  1055. //产业、标的模糊查询接口
  1056. industrialManagementSearch: (params) => {
  1057. return http.get("/cygx/industrialManagement/search", params);
  1058. },
  1059. //互动详情table栏接口
  1060. getCygxMutualList: (params) => {
  1061. return http.get("/cygx/user/table/list", params);
  1062. },
  1063. //互动详情table栏接口
  1064. getCygxMutualDetail: (params) => {
  1065. return http.get("/cygx/user/interaction/detail", params);
  1066. },
  1067. //用户相关互动接口
  1068. getInteractionRelevant: (params) => {
  1069. return http.get("/cygx/user/interaction/relevant", params);
  1070. },
  1071. //机构状态搜索栏互助
  1072. getInteractionNum: (params) => {
  1073. return http.get("/cygx/user/interactionNum", params);
  1074. },
  1075. //机构互动详情table栏接口
  1076. getCompanyTableList: (params) => {
  1077. return http.get("/cygx/user/company/table/list", params);
  1078. },
  1079. //机构互动详情table栏接口
  1080. getCompanyInteractionDetail: (params) => {
  1081. return http.get("/cygx/user/company/interaction/detail", params);
  1082. },
  1083. //添加/取消用户提醒
  1084. postUserRemind: (params) => {
  1085. return http.post("/cygx/user/remind", params);
  1086. },
  1087. //全机构互动列表接口
  1088. getUserCompanyList: (params) => {
  1089. return http.get("cygx/user/company/list", params);
  1090. },
  1091. //机构列表互动详情table栏接口
  1092. getUserTableCompanyList: (params) => {
  1093. return http.get("/cygx/user/table/companyList", params);
  1094. },
  1095. };
  1096. /*
  1097. crm12.4 ETA试用列表模块
  1098. */
  1099. const etaTrialInterence={
  1100. /**ETA试用客户列表
  1101. * PageSize,CurrentIndex,KeyWord
  1102. * SortParam
  1103. * SortType : asc正序 desc倒序
  1104. */
  1105. getETATrialList:(params)=>{
  1106. return http.get('/eta_trial/list',params)
  1107. },
  1108. /**非管理员-我的审批列表
  1109. *
  1110. */
  1111. getApprovalAllList:(params)=>{
  1112. return http.get('/eta_trial/apply/myList',params)
  1113. },
  1114. /**非管理员-账号列表
  1115. *
  1116. */
  1117. getApprovalList:(params)=>{
  1118. return http.get('/eta_trial/apply/accountlist',params)
  1119. },
  1120. /**非管理员-删除申请
  1121. * ApprovalId
  1122. */
  1123. deleteApproval:(params)=>{
  1124. return http.post('/eta_trial/apply/del',params)
  1125. },
  1126. /**非管理员-撤回申请
  1127. * Mobile
  1128. */
  1129. withdrawApproval:(params)=>{
  1130. return http.post('/eta_trial/apply/revoke',params)
  1131. },
  1132. /**非管理员-申请启用
  1133. * UserName,CompanyName,Position,Mobile
  1134. * ApplyReasons 申请理由
  1135. */
  1136. applyEnable:(params)=>{
  1137. return http.post('/eta_trial/apply/enable',params)
  1138. },
  1139. /**非管理员-新增申请
  1140. * List[]
  1141. * List[].UserName 姓名
  1142. * List[].CompanyName 公司名称
  1143. * List[].Position 职位
  1144. * List[].Mobile 手机号
  1145. */
  1146. addApproval:(params)=>{
  1147. return http.post('/eta_trial/add',params)
  1148. },
  1149. /**管理员-审批列表
  1150. * ApprovalStatus
  1151. */
  1152. getAdminApprovalList:(params)=>{
  1153. return http.get('/eta_trial/apply/list',params)
  1154. },
  1155. /**管理员-同意申请
  1156. * ApprovalId
  1157. */
  1158. agreeApply:(params)=>{
  1159. return http.post('/eta_trial/apply/approval',params)
  1160. },
  1161. /**管理员-驳回申请
  1162. * ApprovalId
  1163. * RejectReason
  1164. */
  1165. rejectApply:(params)=>{
  1166. return http.post('/eta_trial/apply/reject',params)
  1167. },
  1168. // -------------ETA试用 1.1
  1169. // 问卷调查
  1170. /**统计结果列表
  1171. * ListParam 1-全部 2-选择题 3-简答题
  1172. */
  1173. getQuestionDataList:(params)=>{
  1174. return http.get('/eta_trial/questionnaire/statistical',params)
  1175. },
  1176. /**简答题详情列表
  1177. * CurrentIndex PageSize QuestionnaireId
  1178. */
  1179. getTextDetailList:(params)=>{
  1180. return http.get('/eta_trial/questionnaire/answerList',params)
  1181. },
  1182. /**详细数据列表
  1183. * PageSize CurrentIndex
  1184. */
  1185. getDetailDataList:(params)=>{
  1186. return http.get('/eta_trial/questionnaire/detailList',params)
  1187. },
  1188. /**详细数据 - 详情
  1189. * Mobile
  1190. */
  1191. getDetailDataDetail:(params)=>{
  1192. return http.get('/eta_trial/questionnaire/detail',params)
  1193. },
  1194. /**问卷列表
  1195. */
  1196. getQuestionOptionList:()=>{
  1197. return http.get('/eta_trial/questionnaire/list')
  1198. },
  1199. /**保存题目配置
  1200. * List - 题目列表
  1201. */
  1202. questionOptionSave:(params)=>{
  1203. return http.post('/eta_trial/questionnaire/save',params)
  1204. },
  1205. /**删除题目
  1206. * QuestionnaireId - 题目Id
  1207. */
  1208. questionOptionDelete:(params)=>{
  1209. return http.post('/eta_trial/questionnaire/del',params)
  1210. },
  1211. }
  1212. /* 全量客户相关 */
  1213. const customAllInterence = {
  1214. //客户列表
  1215. customList:(params)=>{
  1216. return http.get("/custom/full/list",params)
  1217. },
  1218. //客户详情
  1219. customDetail:(params)=>{
  1220. return http.get("/custom/full/detail", params);
  1221. },
  1222. //查看权限
  1223. lookauth: (params) => {
  1224. return http.get("/custom/full/permission/look", params);
  1225. },
  1226. }
  1227. export { customInterence,customAllInterence, equityContacts,etaTrialInterence};