拜访记录接口

功能

拜访记录

地址

/api/record/follow

GET请求方法查询

参数说明

| 名称

| 类型

| 说明

| 备注

| 是否必须

| | —- | —- | —- | —- | —- | | protent_id | int | 大的拜访记录id,可以查询这条大记录下的所有小拜访记录 | | 否 | | organization_id | int | 客户单位id |

| 否,没有传的时候返回所有单位的跟进记录 | | director_id | int | 负责人id |
| 否 | | follower_id | int | 协作人id | | 否 | | start_time | string | 开始时间:2020-01-01 00:00:00 | | 否,默认一周前 | | end_time | string | 结束时间:2021-01-01 00:00:00 | | 否,默认现在 | | page | int | 第几页 | | 否,默认1 | | count | int | 每页的个数 | | 否,默认20 |

新增:follower_id

返回格式

  1. {
  2. "status": 0,
  3. "data": [
  4. {
  5. "id": 6,
  6. "user_id": 1,
  7. "type": 1,
  8. "recordTime": "2022-03-17 17:16:39",
  9. "title": "2022.03.17-汪小嘉-",
  10. "effect": "测试必填项目",
  11. "problems": null,
  12. "suggestion": null,
  13. "workplan": null,
  14. "createTime": "2022-03-17 17:16:39",
  15. "updateTime": "2022-03-17 17:16:39",
  16. "status": 1,
  17. "note": null,
  18. "user_name": "汪小嘉",
  19. "comment": [[
  20. {
  21. "id": 4,
  22. "user_id": 1,
  23. "createTime": "2022-03-18 11:21:55",
  24. "content": "哈哈",
  25. "user_name": "汪小嘉"
  26. }
  27. ]],
  28. "reading": [
  29. {
  30. "user_id": 1,
  31. "createTime": "2022-03-21 10:59:20",
  32. "username": "汪小嘉"
  33. }
  34. ]
  35. },
  36. {
  37. "id": 3,
  38. "user_id": 1,
  39. "type": 1,
  40. "recordTime": "2022-03-14 11:21:17",
  41. "title": "2022.03.14-汪小嘉-",
  42. "effect": "3.14新增员工需求是否已读功能",
  43. "problems": "无",
  44. "suggestion": "无建议",
  45. "workplan": "暂无",
  46. "createTime": "2022-03-14 11:21:18",
  47. "updateTime": "2022-03-18 15:37:27",
  48. "status": 1,
  49. "note": null,
  50. "user_name": "汪小嘉",
  51. "comment": [
  52. {
  53. "id": 5,
  54. "user_id": 1,
  55. "createTime": "2022-03-18 14:35:03",
  56. "content": "315曝光的土坑酸菜,不少方便面品牌遭受负面影响,可是白象方便面却意外火出圈。据企查查显示,白象近期食品安全抽检",
  57. "user_name": "汪小嘉"
  58. },
  59. {
  60. "id": 3,
  61. "user_id": 1,
  62. "createTime": "2022-03-16 17:26:11",
  63. "content": "测试评论发布",
  64. "user_name": "汪小嘉"
  65. },
  66. {
  67. "id": 2,
  68. "user_id": 1,
  69. "createTime": "2022-03-16 17:26:03",
  70. "content": "测试评论发布",
  71. "user_name": "汪小嘉"
  72. }
  73. ],
  74. "reading": []
  75. }
  76. ],
  77. "page_info": {
  78. "total": 6,
  79. "page": 1,
  80. "count": 20
  81. }
  82. }

POST请求方法创建、修改

参数说明

名称 类型 说明 备注 是否必须
protent_id int 大的拜访记录id 创建:必须

修改:不传
follow_id int 创建:不传

修改:必须
customers_id array 客户id的数组
[1,2,3] 里面是客户id

organization_id int 客户单位id 不启用
follower_id array 跟进者id的数组 哪些员工跟进了客户
例如:[1,2,3] :id为1、2、3的员工
record_time string 拜访时间、需求变更的时间
event 跟进的事件
1:接入
2:走访拜访
3:电话拜访
4:签约
5:售后
有拜访跟进记录的时候传
gain string 这次跟进的收获
event_attach string 附件url地址,
比如聊天截图等
event_note string 跟进备注
cost float 费用支出
cost_note string 费用支出说明

*cost 为12月23日新增

返回格式

  1. {
  2. status: 0,
  3. msg: '创建成功'
  4. }
  5. {
  6. status: 1,
  7. msg: '失败描述'
  8. }