60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
|
import request from '@/config/axios'
|
||
|
|
||
|
// 人员管理 VO
|
||
|
export interface LitemallTechnicianVO {
|
||
|
id: number // id
|
||
|
techSn: string // 人员编号
|
||
|
type: number // 人员类型
|
||
|
technicianName: string // 人员名称
|
||
|
brandId: number // 门店id
|
||
|
brandName: string
|
||
|
sex: number // 性别
|
||
|
photo: string // 照片
|
||
|
serviceTime: string // 服务时间段
|
||
|
serviceScope: string // 服务范围
|
||
|
phone: 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`})
|
||
|
},
|
||
|
}
|