diff --git a/src/api/order.ts b/src/api/order.ts index e0931a0..d0e1304 100644 --- a/src/api/order.ts +++ b/src/api/order.ts @@ -65,4 +65,63 @@ export function cancelTeaRoomOrder(id: number) { */ export function deleteTeaRoomOrder(id: number) { return http.Post('/storeapi/order/delOrderStore', {id}) -} \ No newline at end of file +} + +/** + * 获取订单详情 + * @param id 订单ID + */ +export function getOrderStoreDetail(id: number) { + return http.Post('/storeapi/order/orderStoreDetails', { id }) +} + +/** + * 添加套餐接口 + */ +export function addTeaSpecialistOrderPackage(data) { + return http.Post('/storeapi/Group/addGroup', data) +} + +/** + * 编辑套餐接口 + */ +export function editTeaSpecialistOrderPackage(data) { + return http.Post('/storeapi/Group/editGroup', data) +} + +/** + * 套餐详情 + */ +export function getTeaSpecialistOrderPackageDetail(group_id: number) { + return http.Post('/storeapi/Group/groupDetails', { group_id }) +} + +/** + * 套餐列表 + */ +export interface IGetStoreOrderListParams { + page: number + size: number + status: number +} + +export function getTeaSpecialistOrderPackageList(data) { + return http.Post('/storeapi/Group/groupLists', data) +} + +/** + * 上下架套餐 + * @param group_id 套餐ID + * @param status 状态 0下架 1上架 2草稿箱 + */ +export function toggleTeaSpecialistOrderPackageStatus(group_id: number, status: number) { + return http.Post('/storeapi/Group/operateGroup', { group_id, status }) +} + +/** + * 删除套餐 + * @param group_id 套餐ID + */ +export function deleteTeaSpecialistOrderPackage(group_id: number) { + return http.Post('/storeapi/Group/delGroup', { group_id }) +} diff --git a/src/api/store.ts b/src/api/store.ts index afce69c..3856f02 100644 --- a/src/api/store.ts +++ b/src/api/store.ts @@ -156,3 +156,16 @@ export function reserveRoom(data: IReserveRoomParams) { export function getStoreOrderDetails(id: number) { return http.Post('/storeapi/store/roomDetails', { id }) } + +/** + * 门店会员 + */ +export interface IGetStoreMemberListParams { + page: number + size: number + store_id: number +} + +export function getStoreMemberList(data: IGetStoreMemberListParams) { + return http.Post('/storeapi/user/checkStoreUserList', data) +} \ No newline at end of file diff --git a/src/api/types/tea.ts b/src/api/types/tea.ts index 9655d4b..279ec0c 100644 --- a/src/api/types/tea.ts +++ b/src/api/types/tea.ts @@ -97,6 +97,7 @@ export interface ITeaSpecialistOrderDetailsResult { order_amount: string order_sn: string store_id: number + mobile: string room_msg: { id: number price: number @@ -126,7 +127,8 @@ export interface ITeaSpecialistOrderDetailsResult { pay_way_title: string dtime: string update_dtime: string - renew_price: number, + renew_price: number + renew_hour: number renew_dtime: { start_time: string end_time: string diff --git a/src/bundle/order/tea-room/order-detail.vue b/src/bundle/order/tea-room/order-detail.vue index acf7042..98aa002 100644 --- a/src/bundle/order/tea-room/order-detail.vue +++ b/src/bundle/order/tea-room/order-detail.vue @@ -483,6 +483,7 @@ dtime: '', update_dtime: '', renew_price: 0, + renew_hour: 0, renew_dtime: { start_time: '', end_time: '', diff --git a/src/bundle/setmeal/add.vue b/src/bundle/setmeal/add.vue index df0b1dd..7810fc8 100644 --- a/src/bundle/setmeal/add.vue +++ b/src/bundle/setmeal/add.vue @@ -7,18 +7,18 @@