金五联管理系统PC前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jwl-manage-web/src/api/zs/clue.js

221 lines
3.6 KiB

2 years ago
import request from '@/utils/request';
2 years ago
// 查询线索列表
export function getClueList(query) {
return request({
url: '/zs/clue/list',
method: 'get',
params: query
2 years ago
});
2 years ago
}
2 years ago
// 查询线索列表
export function getClueInfo(id) {
return request({
url: '/zs/clue/' + id,
method: 'get',
});
}
2 years ago
// 新增线索
export function addClue(data) {
return request({
url: '/zs/clue',
method: 'post',
data: data
2 years ago
});
2 years ago
}
// 修改线索
export function updateClue(data) {
return request({
url: '/zs/clue',
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 删除
2 years ago
export function deleteClue(data) {
return request({
url: '/zs/clue',
method: 'delete',
params: data
2 years ago
});
2 years ago
}
// 导出
export function exportData(query) {
return request({
url: '/zs/clue/export',
2 years ago
method: 'post',
data: query
2 years ago
});
2 years ago
}
// 导入模板
export function importTemplate(param) {
return request({
url: '/zs/clue/importTemplate',
method: 'get',
params: param
2 years ago
});
2 years ago
}
// 导入
export function importData(data) {
return request({
url: '/zs/clue/importData',
method: 'post',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 查询登记getSign
2 years ago
export function getSign(query) {
return request({
url: '/zs/clue/sign',
method: 'get',
params: query
2 years ago
});
2 years ago
}
2 years ago
// 保存登记
2 years ago
export function saveSign(data) {
return request({
url: '/zs/clue/sign',
method: 'post',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 甩单
2 years ago
export function saveDistribute(data) {
return request({
url: '/zs/clue/distribute',
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 驳回
2 years ago
export function refuse(data) {
return request({
url: '/zs/clue/refuse',
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 查询甩单记录
2 years ago
export function getDistributeRecord(param) {
return request({
url: '/zs/clue/distributerecord',
method: 'get',
params: param
2 years ago
});
2 years ago
}
2 years ago
// 查询跟踪记录
2 years ago
export function getFollowRecord(param) {
return request({
2 years ago
url: '/zs/followrecord/list',
2 years ago
method: 'get',
params: param
2 years ago
});
2 years ago
}
2 years ago
//查询咨询记录
2 years ago
export function getConsultRecord(param) {
return request({
2 years ago
url: '/zs/consultrecord/list',
2 years ago
method: 'get',
params: param
2 years ago
});
2 years ago
}
// 获取已过期
export function getClueCountBadge() {
return request({
url: `/zs/clue/badgeCount`,
method: 'get'
2 years ago
});
2 years ago
}
// 批量更新
export function batchUpdate(data) {
return request({
url: `/zs/clue/batchUpdate`,
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 公海线索 getPublicList
2 years ago
export function getPublicList(param) {
return request({
url: `/zs/clue/public/list`,
method: 'get',
params: param
2 years ago
});
2 years ago
}
2 years ago
// 拾取线索
2 years ago
export function pickupClue(data) {
return request({
url: `/zs/clue/public/pickup`,
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 丢弃线索
2 years ago
export function discardClue(data) {
return request({
url: `/zs/clue/public/discard`,
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
// 查询接收
2 years ago
export function getAccept() {
return request({
url: `/zs/clue/accept`,
method: 'get'
2 years ago
});
2 years ago
}
2 years ago
// 丢弃线索
2 years ago
export function updateAccept(data) {
return request({
url: `/zs/clue/accept`,
method: 'put',
data: data
2 years ago
});
2 years ago
}
2 years ago
//查询线索分发信息
export function getCluePlaceList(data) {
return request({
url: `/zs/clue/place/info`,
method: 'get',
params: data
});
}
//保存线索分发信息
export function saveCluePlace(data) {
return request({
url: `/zs/clue/place`,
method: 'post',
data: data
});
}
2 years ago
export function getFollowCount() {
return request({
url: `/zs/clue/follow/count`,
method: 'get'
});
}