From 70adbd0e1b7fb9cea4cef49100513cc4384f5fd4 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Wed, 23 Apr 2025 10:03:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/think/thinkInvoice/index.ts | 47 +- src/api/think/thinkOrder/index.ts | 30 + src/api/think/thinkUsersVipBuyLog/index.ts | 106 +++ .../think/thinkUsersVipBuyLog/model/index.ts | 39 ++ .../booking/finance/components/orderList.vue | 325 +++++++++ .../booking/finance/components/search.vue | 98 +++ src/views/booking/finance/index.vue | 285 ++++++++ .../period/components/periodEdit.vue | 416 ++++++----- src/views/think/thinkInvoice/index.vue | 487 ++++++------- .../thinkOrder/components/invoiceByList.vue | 260 +++++++ .../think/thinkOrder/components/search.vue | 481 ++++++------- src/views/think/thinkOrder/index.vue | 660 +++++++++--------- .../thinkUsersVipBuyLog/components/search.vue | 42 ++ .../components/thinkUsersVipBuyLogEdit.vue | 233 +++++++ src/views/think/thinkUsersVipBuyLog/index.vue | 269 +++++++ 16 files changed, 2795 insertions(+), 987 deletions(-) create mode 100644 src/api/think/thinkUsersVipBuyLog/index.ts create mode 100644 src/api/think/thinkUsersVipBuyLog/model/index.ts create mode 100644 src/views/booking/finance/components/orderList.vue create mode 100644 src/views/booking/finance/components/search.vue create mode 100644 src/views/booking/finance/index.vue create mode 100644 src/views/think/thinkOrder/components/invoiceByList.vue create mode 100644 src/views/think/thinkUsersVipBuyLog/components/search.vue create mode 100644 src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue create mode 100644 src/views/think/thinkUsersVipBuyLog/index.vue diff --git a/.env.development b/.env.development index 92b6499..a189928 100644 --- a/.env.development +++ b/.env.development @@ -2,10 +2,10 @@ VITE_APP_NAME=后台管理系统 VITE_SOCKET_URL=wss://server.gxwebsoft.com VITE_SERVER_URL=https://gxtyzx-server.websoft.top/api VITE_API_URL=https://gxtyzx-modules.websoft.top/api -#VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api +VITE_THINK_URL=https://gxtyzx-api2.websoft.top/api #VITE_SERVER_URL=http://127.0.0.1:30000/api #VITE_API_URL=http://127.0.0.1:9002/api -VITE_THINK_URL=http://127.0.0.1:9099/api +#VITE_THINK_URL=http://127.0.0.1:9099/api #/booking/bookingItem diff --git a/src/api/think/thinkInvoice/index.ts b/src/api/think/thinkInvoice/index.ts index 0514ece..da9c47c 100644 --- a/src/api/think/thinkInvoice/index.ts +++ b/src/api/think/thinkInvoice/index.ts @@ -1,14 +1,14 @@ -import request from '@/utils/request'; -import type { ApiResult, PageResult } from '@/api'; -import type { ThinkInvoice, ThinkInvoiceParam } from './model'; -import { THINK_API_URL } from '@/config/setting'; +import request from "@/utils/request"; +import type { ApiResult, PageResult } from "@/api"; +import type { ThinkInvoice, ThinkInvoiceParam } from "./model"; +import { THINK_API_URL } from "@/config/setting"; /** * 分页查询 */ export async function pageThinkInvoice(params: ThinkInvoiceParam) { const res = await request.get>>( - THINK_API_URL + '/think/think-invoice/page', + THINK_API_URL + "/think/think-invoice/page", { params } @@ -24,7 +24,7 @@ export async function pageThinkInvoice(params: ThinkInvoiceParam) { */ export async function listThinkInvoice(params?: ThinkInvoiceParam) { const res = await request.get>( - THINK_API_URL + '/think/think-invoice', + THINK_API_URL + "/think/think-invoice", { params } @@ -40,7 +40,7 @@ export async function listThinkInvoice(params?: ThinkInvoiceParam) { */ export async function addThinkInvoice(data: ThinkInvoice) { const res = await request.post>( - THINK_API_URL + '/think/think-invoice', + THINK_API_URL + "/think/think-invoice", data ); if (res.data.code === 0) { @@ -54,7 +54,7 @@ export async function addThinkInvoice(data: ThinkInvoice) { */ export async function updateThinkInvoice(data: ThinkInvoice) { const res = await request.put>( - THINK_API_URL + '/think/think-invoice', + THINK_API_URL + "/think/think-invoice", data ); if (res.data.code === 0) { @@ -68,7 +68,7 @@ export async function updateThinkInvoice(data: ThinkInvoice) { */ export async function removeThinkInvoice(id?: number) { const res = await request.delete>( - THINK_API_URL + '/think/think-invoice/' + id + THINK_API_URL + "/think/think-invoice/" + id ); if (res.data.code === 0) { return res.data.message; @@ -81,7 +81,7 @@ export async function removeThinkInvoice(id?: number) { */ export async function removeBatchThinkInvoice(data: (number | undefined)[]) { const res = await request.delete>( - THINK_API_URL + '/think/think-invoice/batch', + THINK_API_URL + "/think/think-invoice/batch", { data } @@ -97,7 +97,17 @@ export async function removeBatchThinkInvoice(data: (number | undefined)[]) { */ export async function getThinkInvoice(id: number) { const res = await request.get>( - THINK_API_URL + '/think/think-invoice/' + id + THINK_API_URL + "/think/think-invoice/" + id + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +export async function thinkInvoiceData(params?: ThinkInvoiceParam) { + const res = await request.get>( + THINK_API_URL + "/think/think-invoice/data", { params } ); if (res.data.code === 0 && res.data.data) { return res.data.data; @@ -110,7 +120,18 @@ export async function getThinkInvoice(id: number) { */ export async function doInvoice(data: ThinkInvoice) { const res = await request.post>( - THINK_API_URL + '/think/think-invoice/doInvoice', + THINK_API_URL + "/think/think-invoice/doInvoice", + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +export async function doInvoiceByListReq(data: ThinkInvoice) { + const res = await request.post>( + THINK_API_URL + "/think/think-invoice/doInvoiceByList", data ); if (res.data.code === 0) { @@ -124,7 +145,7 @@ export async function doInvoice(data: ThinkInvoice) { */ export async function showInvoice(id: number) { const res = await request.get>( - THINK_API_URL + '/think/think-invoice/showInvoice/' + id + THINK_API_URL + "/think/think-invoice/showInvoice/" + id ); if (res.data.code === 0 && res.data.data) { return res.data.data; diff --git a/src/api/think/thinkOrder/index.ts b/src/api/think/thinkOrder/index.ts index dd72169..8b0fffe 100644 --- a/src/api/think/thinkOrder/index.ts +++ b/src/api/think/thinkOrder/index.ts @@ -129,6 +129,16 @@ export async function thinkOrderExport(params?: ThinkOrderParam) { return Promise.reject(new Error(res.data.message)); } +export async function thinkOrderExportData(params?: ThinkOrderParam) { + const res = await request.post>( + THINK_API_URL + "/think/think-order/export-data", params + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + export async function getThinkOrder(id: number) { const res = await request.get>( THINK_API_URL + "/think/think-order/" + id @@ -138,3 +148,23 @@ export async function getThinkOrder(id: number) { } return Promise.reject(new Error(res.data.message)); } + +export async function getThinkOrderExcelData(params?: ThinkOrderParam) { + const res = await request.post>( + THINK_API_URL + "/think/think-order/excel-data", params + ); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +export async function getThinkOrderExcelDataForCard(params?: ThinkOrderParam) { + const res = await request.post>( + THINK_API_URL + "/think/think-order/excel-data-for-card", params + ); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/think/thinkUsersVipBuyLog/index.ts b/src/api/think/thinkUsersVipBuyLog/index.ts new file mode 100644 index 0000000..21f5025 --- /dev/null +++ b/src/api/think/thinkUsersVipBuyLog/index.ts @@ -0,0 +1,106 @@ +import request from '@/utils/request'; +import type { ApiResult, PageResult } from '@/api'; +import type { ThinkUsersVipBuyLog, ThinkUsersVipBuyLogParam } from './model'; +import { MODULES_API_URL } from '@/config/setting'; + +/** + * 分页查询Vip购卡记录 + */ +export async function pageThinkUsersVipBuyLog(params: ThinkUsersVipBuyLogParam) { + const res = await request.get>>( + MODULES_API_URL + '/think/think-users-vip-buy-log/page', + { + params + } + ); + if (res.data.code === 0) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 查询Vip购卡记录列表 + */ +export async function listThinkUsersVipBuyLog(params?: ThinkUsersVipBuyLogParam) { + const res = await request.get>( + MODULES_API_URL + '/think/think-users-vip-buy-log', + { + params + } + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 添加Vip购卡记录 + */ +export async function addThinkUsersVipBuyLog(data: ThinkUsersVipBuyLog) { + const res = await request.post>( + MODULES_API_URL + '/think/think-users-vip-buy-log', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 修改Vip购卡记录 + */ +export async function updateThinkUsersVipBuyLog(data: ThinkUsersVipBuyLog) { + const res = await request.put>( + MODULES_API_URL + '/think/think-users-vip-buy-log', + data + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 删除Vip购卡记录 + */ +export async function removeThinkUsersVipBuyLog(id?: number) { + const res = await request.delete>( + MODULES_API_URL + '/think/think-users-vip-buy-log/' + id + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 批量删除Vip购卡记录 + */ +export async function removeBatchThinkUsersVipBuyLog(data: (number | undefined)[]) { + const res = await request.delete>( + MODULES_API_URL + '/think/think-users-vip-buy-log/batch', + { + data + } + ); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} + +/** + * 根据id查询Vip购卡记录 + */ +export async function getThinkUsersVipBuyLog(id: number) { + const res = await request.get>( + MODULES_API_URL + '/think/think-users-vip-buy-log/' + id + ); + if (res.data.code === 0 && res.data.data) { + return res.data.data; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/src/api/think/thinkUsersVipBuyLog/model/index.ts b/src/api/think/thinkUsersVipBuyLog/model/index.ts new file mode 100644 index 0000000..e869248 --- /dev/null +++ b/src/api/think/thinkUsersVipBuyLog/model/index.ts @@ -0,0 +1,39 @@ +import type { PageParam } from '@/api'; + +/** + * Vip购卡记录 + */ +export interface ThinkUsersVipBuyLog { + // + id?: number; + // + uid?: number; + // + orderNumber?: string; + // + wechetNumber?: string; + // + amount?: string; + // + payStatus?: number; + // + payTime?: string; + // 状态, 0正常, 1冻结 + status?: number; + // 是否删除, 0否, 1是 + deleted?: number; + // 租户id + tenantId?: number; + // 注册时间 + createTime?: string; + // 修改时间 + updateTime?: string; +} + +/** + * Vip购卡记录搜索条件 + */ +export interface ThinkUsersVipBuyLogParam extends PageParam { + id?: number; + keywords?: string; +} diff --git a/src/views/booking/finance/components/orderList.vue b/src/views/booking/finance/components/orderList.vue new file mode 100644 index 0000000..110a548 --- /dev/null +++ b/src/views/booking/finance/components/orderList.vue @@ -0,0 +1,325 @@ + + + + + + diff --git a/src/views/booking/finance/components/search.vue b/src/views/booking/finance/components/search.vue new file mode 100644 index 0000000..71c0693 --- /dev/null +++ b/src/views/booking/finance/components/search.vue @@ -0,0 +1,98 @@ + + + + diff --git a/src/views/booking/finance/index.vue b/src/views/booking/finance/index.vue new file mode 100644 index 0000000..0522353 --- /dev/null +++ b/src/views/booking/finance/index.vue @@ -0,0 +1,285 @@ + + + + + + diff --git a/src/views/think/thinkField/period/components/periodEdit.vue b/src/views/think/thinkField/period/components/periodEdit.vue index e3d20f9..dd3b764 100644 --- a/src/views/think/thinkField/period/components/periodEdit.vue +++ b/src/views/think/thinkField/period/components/periodEdit.vue @@ -35,12 +35,15 @@ /> - + + + 查看价格日历 + @@ -66,6 +69,7 @@ + - + @@ -114,173 +118,267 @@ + + + +
+
+
+ {{ index + 1 }}号价格 + +
+

{{ dayjs(`${month}-${(index + 1)}`).format("YYYY-MM-DD") }} + {{ weekStr[dayjs(`${month}-${(index + 1)}`).format("d")] }}的价格,温馨提示:如价格填写0则代表当日免费。

+
+
+
+ {{ index + 1 }}号半场价格 + +
+

{{ dayjs(`${month}-${(index + 1)}`).format("YYYY-MM-DD") }} + {{ weekStr[dayjs(`${month}-${(index + 1)}`).format("d")] + }}的半场价格,温馨提示:如价格填写0则代表当日免费。

+
+ +
+
diff --git a/src/views/think/thinkInvoice/index.vue b/src/views/think/thinkInvoice/index.vue index 48d11c1..1db59e9 100644 --- a/src/views/think/thinkInvoice/index.vue +++ b/src/views/think/thinkInvoice/index.vue @@ -19,6 +19,7 @@ @add="openEdit" @remove="removeBatch" @batchMove="openMove" + :openedData="openedData" /> @@ -76,256 +76,267 @@ diff --git a/src/views/think/thinkOrder/components/invoiceByList.vue b/src/views/think/thinkOrder/components/invoiceByList.vue new file mode 100644 index 0000000..759b96b --- /dev/null +++ b/src/views/think/thinkOrder/components/invoiceByList.vue @@ -0,0 +1,260 @@ + + + + diff --git a/src/views/think/thinkOrder/components/search.vue b/src/views/think/thinkOrder/components/search.vue index 230c472..cfb32f2 100644 --- a/src/views/think/thinkOrder/components/search.vue +++ b/src/views/think/thinkOrder/components/search.vue @@ -1,265 +1,248 @@ diff --git a/src/views/think/thinkOrder/index.vue b/src/views/think/thinkOrder/index.vue index ee1f287..7cdcf41 100644 --- a/src/views/think/thinkOrder/index.vue +++ b/src/views/think/thinkOrder/index.vue @@ -20,6 +20,7 @@ @add="openEdit" @remove="removeBatch" @batchMove="openMove" + @invoice="openInvoiceByList" /> @@ -237,15 +229,16 @@ 详情 - 退款 + + @@ -255,325 +248,340 @@ + diff --git a/src/views/think/thinkUsersVipBuyLog/components/search.vue b/src/views/think/thinkUsersVipBuyLog/components/search.vue new file mode 100644 index 0000000..82fea9d --- /dev/null +++ b/src/views/think/thinkUsersVipBuyLog/components/search.vue @@ -0,0 +1,42 @@ + + + + diff --git a/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue b/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue new file mode 100644 index 0000000..adf1771 --- /dev/null +++ b/src/views/think/thinkUsersVipBuyLog/components/thinkUsersVipBuyLogEdit.vue @@ -0,0 +1,233 @@ + + + + diff --git a/src/views/think/thinkUsersVipBuyLog/index.vue b/src/views/think/thinkUsersVipBuyLog/index.vue new file mode 100644 index 0000000..17c0ced --- /dev/null +++ b/src/views/think/thinkUsersVipBuyLog/index.vue @@ -0,0 +1,269 @@ + + + + + + +