43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import request from "@/sheep/utils/request"
|
|
|
|
export default {
|
|
// 获取拜访原因字典
|
|
getDictListByType: (type: number | string): Promise<any> =>
|
|
request({
|
|
url: `/integrated/visitors/getDictListByType?type=${type}`,
|
|
method: "GET",
|
|
}),
|
|
|
|
// 保存访客邀约
|
|
saveInvitation: (data: any): Promise<any> =>
|
|
request({
|
|
url: `/integrated/visitors/app/saveYY`,
|
|
method: "POST",
|
|
data,
|
|
}),
|
|
|
|
// 获取访客邀约列表
|
|
// type为1:主动申请 type为2:邀约 type为3:后台创建
|
|
getInvitationRecord: (params: { current: number; size: number; checkStatus?: string; type?: number }): Promise<any> =>
|
|
request({
|
|
url: `/integrated/visitors/app/yy/page`,
|
|
method: "GET",
|
|
params,
|
|
}),
|
|
|
|
// 更新审核状态通过 2:通过 3:拒绝
|
|
updateCheckStatus: (params: { id: string; checkStatus: number | string }): Promise<any> =>
|
|
request({
|
|
url: `/integrated/visitors/app/updateCheckStatus`,
|
|
method: "GET",
|
|
params,
|
|
}),
|
|
|
|
// 查看邀约详情
|
|
getInvitationDetail: (id: string): Promise<any> =>
|
|
request({
|
|
url: `/integrated/visitors/${id}`,
|
|
method: "GET",
|
|
}),
|
|
}
|