访客页面

This commit is contained in:
zjf committed 2025-04-16 17:31:08 +08:00
1 parent a866ac71c0
commit 40de72ee99
8 files changed
+2146 -600

No files matched your search

+95
View File
@@ -22,6 +22,101 @@ const visitorApi = {
},
}),
// 获取访客记录列表
getVisitorList: (params: {
current: number;
size: number;
checkStatus?: string;
}) =>
request({
url: "/integrated/visitors/app/sq/page",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
// 取消访客预约
cancelVisitor: (id: string) =>
request({
url: "/integrated/visitors/app/cancelVisitor",
method: "GET",
params: { id },
custom: {
showLoading: false,
},
}),
// 获取拜访原因字典
getDictListByType: (type: number) =>
request({
url: '/integrated/visitors/app/getDictListByType',
method: 'GET',
params: { type },
custom: {
showLoading: false,
},
}),
// 保存访客邀约
saveYY: (data: any) =>
request({
url: "/integrated/visitors/app/saveYY",
method: "POST",
data,
custom: {
showLoading: false,
},
}),
// 获取邀约记录列表
getVisitorYYList: (params: {
current: number;
size: number;
checkStatus?: string;
}) =>
request({
url: "/integrated/visitors/app/yy/page",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
// 接受访客邀约
acceptVisitor: (id: string) =>
request({
url: "/integrated/visitors/app/acceptYY",
method: "GET",
params: { id },
custom: {
showLoading: false,
},
}),
// 拒绝访客邀约
rejectVisitor: (id: string) =>
request({
url: "/integrated/visitors/app/rejectYY",
method: "GET",
params: { id },
custom: {
showLoading: false,
},
}),
// 更新访客邀约状态
updateCheckStatus: (params: { id: string; checkStatus: string }) =>
request({
url: "/integrated/visitors/app/updateCheckStatus",
method: "GET",
params,
custom: {
showLoading: false,
},
}),
}
export default visitorApi