2024-09-29 20:43:59 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
// 人员管理 VO
|
|
|
|
export interface LitemallTechnicianVO {
|
|
|
|
id: number // id
|
2024-10-21 15:51:14 +08:00
|
|
|
projectId: number // 项目id
|
|
|
|
brandName: string //项目名称
|
2024-09-29 20:43:59 +08:00
|
|
|
photo: string // 照片
|
|
|
|
serviceTime: string // 服务时间段
|
|
|
|
serviceScope: string // 服务范围
|
|
|
|
ym: number // 约满标记
|
|
|
|
status: number // 状态
|
|
|
|
content: string // 介绍
|
|
|
|
remark: string // 备注
|
|
|
|
serviceTimeArray: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 人员管理 API
|
|
|
|
export const LitemallTechnicianApi = {
|
|
|
|
// 查询人员管理分页
|
|
|
|
getLitemallTechnicianPage: async (params: any) => {
|
|
|
|
return await request.get({ url: `/subscribe/litemall-technician/page`, params })
|
|
|
|
},
|
|
|
|
|
|
|
|
// 查询人员管理详情
|
|
|
|
getLitemallTechnician: async (id: number) => {
|
|
|
|
return await request.get({ url: `/subscribe/litemall-technician/get?id=` + id })
|
|
|
|
},
|
|
|
|
|
|
|
|
// 新增人员管理
|
|
|
|
createLitemallTechnician: async (data: LitemallTechnicianVO) => {
|
|
|
|
return await request.post({ url: `/subscribe/litemall-technician/create`, data })
|
|
|
|
},
|
|
|
|
|
|
|
|
// 修改人员管理
|
|
|
|
updateLitemallTechnician: async (data: LitemallTechnicianVO) => {
|
|
|
|
return await request.put({ url: `/subscribe/litemall-technician/update`, data })
|
|
|
|
},
|
|
|
|
|
|
|
|
// 删除人员管理
|
|
|
|
deleteLitemallTechnician: async (id: number) => {
|
|
|
|
return await request.delete({ url: `/subscribe/litemall-technician/delete?id=` + id })
|
|
|
|
},
|
|
|
|
|
|
|
|
// 导出人员管理 Excel
|
|
|
|
exportLitemallTechnician: async (params) => {
|
|
|
|
return await request.download({ url: `/subscribe/litemall-technician/export-excel`, params })
|
|
|
|
},
|
|
|
|
|
|
|
|
// 查询机构名称数据
|
|
|
|
getTechnicianName: async () => {
|
|
|
|
return await request.get({ url: `/subscribe/litemall-technician/getTechnicianName`})
|
|
|
|
},
|
|
|
|
}
|