crmApi.js 34 KB

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