65 lines
1.9 KiB
TypeScript
Raw Normal View History

2024-09-29 20:43:59 +08:00
import request from '@/config/axios'
// 预约订单 VO
export interface LitemallReservationVO {
id: number // id
userId: number // 用户id
nickname: string
2024-10-23 23:13:47 +08:00
// type: number // 预约类型
2024-09-29 20:43:59 +08:00
brandId: string // 门店id
technicianId: string // 人员id
2024-10-23 23:13:47 +08:00
name: string
phone: string
brandName: string
porjectName: string
2024-09-29 20:43:59 +08:00
technicianName: string
2024-10-23 23:13:47 +08:00
days: string
timeQuantum: string
// reAddTime: Date // 预约时间
// hsstr: string // 预约时间段
2024-09-29 20:43:59 +08:00
reStatus: number // 预约状态
status: number // 审核状态
remark: string // 备注
}
// 预约订单 API
export const LitemallReservationApi = {
// 查询预约订单分页
getLitemallReservationPage: async (params: any) => {
return await request.get({ url: `/subscribe/litemall-reservation/page`, params })
},
// 查询预约订单详情
getLitemallReservation: async (id: number) => {
return await request.get({ url: `/subscribe/litemall-reservation/get?id=` + id })
},
// 新增预约订单
createLitemallReservation: async (data: LitemallReservationVO) => {
return await request.post({ url: `/subscribe/litemall-reservation/create`, data })
},
// 修改预约订单
updateLitemallReservation: async (data: LitemallReservationVO) => {
return await request.put({ url: `/subscribe/litemall-reservation/update`, data })
},
// 删除预约订单
deleteLitemallReservation: async (id: number) => {
return await request.delete({ url: `/subscribe/litemall-reservation/delete?id=` + id })
},
// 导出预约订单 Excel
exportLitemallReservation: async (params) => {
return await request.download({ url: `/subscribe/litemall-reservation/export-excel`, params })
},
// 删除预约订单
checkLitemallReservation: async (id: number,check: number) => {
return await request.get({ url: `/subscribe/litemall-reservation/check?id=` + id + `&check=` + check })
},
2024-09-29 20:43:59 +08:00
}