From efc0d6fbd275b43015b30abf2e1be9bea7cb61cb Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 19 Dec 2025 21:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order.ts | 6 -- src/api/store.ts | 49 +++++++++++++++ src/api/user.ts | 1 - src/bundle/finance/detail.vue | 70 +++++++++++++-------- src/bundle/finance/finance.vue | 106 ++++++++++++++++++++------------ src/bundle/user/bill-detail.vue | 83 +++++++++++++++++-------- src/bundle/user/user-detail.vue | 84 ++++++++++++++++++++----- src/bundle/user/user-list.vue | 54 +++++++++++----- src/pages/index/index.vue | 30 +++++++-- src/pages/order/order.vue | 7 ++- 10 files changed, 351 insertions(+), 139 deletions(-) diff --git a/src/api/order.ts b/src/api/order.ts index d0e1304..1ff9c5c 100644 --- a/src/api/order.ts +++ b/src/api/order.ts @@ -99,12 +99,6 @@ export function getTeaSpecialistOrderPackageDetail(group_id: number) { /** * 套餐列表 */ -export interface IGetStoreOrderListParams { - page: number - size: number - status: number -} - export function getTeaSpecialistOrderPackageList(data) { return http.Post('/storeapi/Group/groupLists', data) } diff --git a/src/api/store.ts b/src/api/store.ts index 3856f02..21cf09a 100644 --- a/src/api/store.ts +++ b/src/api/store.ts @@ -1,5 +1,12 @@ import { http } from '@/http/alova' +/** + * 首页统计数据 + */ +export function getStoreStatistics(store_id: number) { + return http.Post('/storeapi/user/checkMoth', { store_id }) +} + /** * 获取门店列表 */ @@ -168,4 +175,46 @@ export interface IGetStoreMemberListParams { export function getStoreMemberList(data: IGetStoreMemberListParams) { return http.Post('/storeapi/user/checkStoreUserList', data) +} + +/** + * 门店用户详情 + */ +export function getStoreMemberDetails(store_id: number, user_id: number) { + return http.Post('/storeapi/user/checkStoreUserDetails', { store_id, user_id }) +} + +/** + * 编辑门店用户备注 + */ +export function editStoreMemberMark(id: number, remark: string) { + return http.Post('/storeapi/user/editStoreUserRemark', { id, remark }) +} + +/** + * 门店会员流水明细 + */ +export interface IGetStoreMemberTransactionListParams { + page: number + size: number + store_id: number + user_id: number +} + +export function getStoreMemberTransactionList(data: IGetStoreMemberTransactionListParams) { + return http.Post('/storeapi/user/checkStoreUserBuyList', data) +} + +/** + * 财务管理收入明细列表 + */ +export interface IGetStoreIncomeListParams { + page: number + size: number + times?: string + store_id: number +} + +export function getStoreIncomeList(data: IGetStoreIncomeListParams) { + return http.Post('/storeapi/user/checkStoreAccountList', data) } \ No newline at end of file diff --git a/src/api/user.ts b/src/api/user.ts index b6b6ef4..c80eed7 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -11,7 +11,6 @@ export function getUserInfo() { return http.Post('/storeapi/user/info') } - /** * 修改用户信息 */ diff --git a/src/bundle/finance/detail.vue b/src/bundle/finance/detail.vue index 85dc077..4cec50b 100644 --- a/src/bundle/finance/detail.vue +++ b/src/bundle/finance/detail.vue @@ -15,54 +15,55 @@ - 团购 - - 【榻榻米双人包间】惬意茶室商务洽谈会议室这是里团购名称 + 团购 + 直营 + 【{{ bill?.room?.title }}】{{ bill?.order?.group?.title || '' }} - +¥128.00 + +¥{{ bill.amount }} - 核销成功 + 核销成功 + 结算成功 - + 总收入 - ¥148.00 + ¥{{ bill?.order?.order_amount }} 优惠券 - -¥20 + -¥{{ bill?.order?.coupon_price }} @@ -74,46 +75,46 @@ 订单编号 - 7327328627526903 + {{ bill?.order?.order_sn }} - 复制 + 复制 - + {{ bill?.order?.pay_way_title }} + 创建时间 - 2025-05-16 12:20:26 + {{ bill?.order?.dtime }} - + 验券时间 - 2025-05-16 12:20:26 + {{ bill?.order?.group?.yanquan_dtime }} 验券门店 - 茶址.24小时智能茶室(中新店) + {{ bill?.store?.name }} 券号 - 8408669398 + {{ bill?.order?.group?.qr_sn }} - + {{ bill?.order?.dtime }} + @@ -123,11 +124,28 @@