65 lines
1.9 KiB
TypeScript
65 lines
1.9 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 预约订单 VO
|
|
export interface LitemallReservationVO {
|
|
id: number // id
|
|
userId: number // 用户id
|
|
nickname: string
|
|
// type: number // 预约类型
|
|
brandId: string // 门店id
|
|
technicianId: string // 人员id
|
|
|
|
name: string
|
|
phone: string
|
|
brandName: string
|
|
porjectName: string
|
|
technicianName: string
|
|
days: string
|
|
timeQuantum: string
|
|
|
|
|
|
// reAddTime: Date // 预约时间
|
|
// hsstr: string // 预约时间段
|
|
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 })
|
|
},
|
|
}
|