From e037e31f7821ad37939a1aec83a08c202729d99f Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 14 Jan 2026 09:33:47 +0800 Subject: [PATCH 01/17] =?UTF-8?q?fix:bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hard/hard-third-mi-order.ts | 8 + .../hard/canteen-product-total/index.vue | 4 +- src/views/hard/hard-third-mi-order/index.vue | 188 ++++++++++++++---- 3 files changed, 158 insertions(+), 42 deletions(-) diff --git a/src/api/hard/hard-third-mi-order.ts b/src/api/hard/hard-third-mi-order.ts index 21a10f5..cbc1c75 100644 --- a/src/api/hard/hard-third-mi-order.ts +++ b/src/api/hard/hard-third-mi-order.ts @@ -1,5 +1,13 @@ import request from "/@/utils/request" +export function refundOrder(params: any) { + return request({ + url: "/hard/hard-third-mi-order/refund", + method: "get", + params, + }) +} + export function refreshOrder(params: any) { return request({ url: "/hard/hard-third-mi-order/refresh", diff --git a/src/views/hard/canteen-product-total/index.vue b/src/views/hard/canteen-product-total/index.vue index 06cbc4e..657bec2 100644 --- a/src/views/hard/canteen-product-total/index.vue +++ b/src/views/hard/canteen-product-total/index.vue @@ -15,8 +15,8 @@ :apiParams="{ parentIsNull: false, types: '1' }" /> - + {{ $t("common.queryBtn") diff --git a/src/views/hard/hard-third-mi-order/index.vue b/src/views/hard/hard-third-mi-order/index.vue index 5059908..72dc1f0 100644 --- a/src/views/hard/hard-third-mi-order/index.vue +++ b/src/views/hard/hard-third-mi-order/index.vue @@ -1,36 +1,67 @@ + From 2def98786142ae2ba5fd53e5619814086fcb23e0 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 15 Jan 2026 16:38:23 +0800 Subject: [PATCH 04/17] =?UTF-8?q?feat:=E5=85=85=E5=80=BC/=E6=89=A3?= =?UTF-8?q?=E6=AC=BE=E5=8F=91=E7=A5=A8=E7=AE=A1=E7=90=86(=E6=8C=89?= =?UTF-8?q?=E6=9C=88)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/canteenDailyDishes/index.vue | 36 +++++++++++-------- .../components/product-total-table-by-day.vue | 1 + .../product-total-table-by-month.vue | 3 +- .../hard/canteen-product-total/index.vue | 36 ++++++++++++++----- .../wallet/wallet-recharge-invoice/index.vue | 3 ++ 5 files changed, 56 insertions(+), 23 deletions(-) diff --git a/src/views/canteenDailyDishes/index.vue b/src/views/canteenDailyDishes/index.vue index 5bf53c5..3000b39 100644 --- a/src/views/canteenDailyDishes/index.vue +++ b/src/views/canteenDailyDishes/index.vue @@ -1,10 +1,8 @@ @@ -98,10 +98,10 @@ const state = reactive({ watch(() => [activeTab.value, productTotalTableByDayRef.value, productTotalTableByMonthRef.value], () => { if (activeTab.value === "DAY" && productTotalTableByDayRef.value?.doSearch) { - productTotalTableByDayRef.value.doSearch(state.queryForm) + search() } if (activeTab.value === "MONTH" && productTotalTableByMonthRef.value?.doSearch) { - productTotalTableByMonthRef.value.doSearch(state.queryForm) + search() } }) @@ -115,6 +115,7 @@ onMounted(() => { const resetQuery = () => { // 清空搜索条件 queryRef.value?.resetFields() + state.queryForm = { ...defaultQueryForm } state.queryForm.deptId = "" state.queryForm.userDeptIds = [] draggableDepTreeRef.value.resetData() @@ -152,6 +153,7 @@ const search = () => { if (activeTab.value === "MONTH") { state.queryForm.createTimeList = [] } + console.log("queryForm:", state.queryForm); switch (activeTab.value) { case "DAY": productTotalTableByDayRef.value.doSearch(state.queryForm) diff --git a/src/views/wallet/wallet-recharge-apply/index.vue b/src/views/wallet/wallet-recharge-apply/index.vue index df4a816..a661370 100644 --- a/src/views/wallet/wallet-recharge-apply/index.vue +++ b/src/views/wallet/wallet-recharge-apply/index.vue @@ -209,7 +209,7 @@ const state: BasicTableProps = reactive({ }) // table hook -const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, downBlobFile, tableStyle } = useTable(state) +const { getDataList, currentChangeHandle, sizeChangeHandle, sortChangeHandle, postDownBlobFile, tableStyle } = useTable(state) // 清空搜索条件 const resetQuery = () => { @@ -222,7 +222,7 @@ const resetQuery = () => { // 导出excel const exportExcel = () => { - downBlobFile("/wallet/walletRechargeApply/export", Object.assign(state.queryForm, { ids: selectObjs }), "充值/扣款申请.xlsx") + postDownBlobFile("/wallet/wallet-recharge-apply/export", Object.assign(state.queryForm, { ids: selectObjs }), "充值/扣款申请.xlsx") } const doApply = async (row: any) => { From 40fc2613445124322dd402035904e83027572886 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Fri, 16 Jan 2026 15:57:44 +0800 Subject: [PATCH 07/17] =?UTF-8?q?feat:=E5=95=86=E6=88=B7=E4=BA=A4=E6=98=93?= =?UTF-8?q?=E8=AE=B0=E5=BD=95(=E6=8C=89=E6=9C=88)=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hard/hard-total.ts | 12 + .../hard-sh/components/hard-sh-by-day.vue | 140 +++++++++++ .../hard-sh/components/hard-sh-by-month.vue | 122 ++++++++++ src/views/hard/hard-sh/index.vue | 217 ++++++++---------- 4 files changed, 371 insertions(+), 120 deletions(-) create mode 100644 src/views/hard/hard-sh/components/hard-sh-by-day.vue create mode 100644 src/views/hard/hard-sh/components/hard-sh-by-month.vue diff --git a/src/api/hard/hard-total.ts b/src/api/hard/hard-total.ts index bca7dd9..0f0cef4 100644 --- a/src/api/hard/hard-total.ts +++ b/src/api/hard/hard-total.ts @@ -114,3 +114,15 @@ export function pageListCs(query?: any) { data: query, }) } + +export function pageListCsByMonth(query?: any) { + return request({ + url: "/hard/hard-total/page-list-cs-by-month", + method: "post", + params: { + current: query.current, + size: query.size, + }, + data: query, + }) +} diff --git a/src/views/hard/hard-sh/components/hard-sh-by-day.vue b/src/views/hard/hard-sh/components/hard-sh-by-day.vue new file mode 100644 index 0000000..e35102e --- /dev/null +++ b/src/views/hard/hard-sh/components/hard-sh-by-day.vue @@ -0,0 +1,140 @@ + + + \ No newline at end of file diff --git a/src/views/hard/hard-sh/components/hard-sh-by-month.vue b/src/views/hard/hard-sh/components/hard-sh-by-month.vue new file mode 100644 index 0000000..7e34913 --- /dev/null +++ b/src/views/hard/hard-sh/components/hard-sh-by-month.vue @@ -0,0 +1,122 @@ + + + \ No newline at end of file diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue index 1f78747..718ca31 100644 --- a/src/views/hard/hard-sh/index.vue +++ b/src/views/hard/hard-sh/index.vue @@ -10,7 +10,7 @@ disabled: 'isLockNone', }"> @@ -108,80 +52,113 @@ From 70ae62203ab8ed2f4e6f0389c3ff5211f967fd2d Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 28 Jan 2026 11:32:32 +0800 Subject: [PATCH 08/17] =?UTF-8?q?feat:=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/act/act-coupon.ts | 40 +++++ src/hooks/dict.ts | 32 ++-- src/utils/other.ts | 2 +- src/views/act/act-coupon/form.vue | 244 +++++++++++++++++++++++++++++ src/views/act/act-coupon/index.vue | 229 +++++++++++++++++++++++++++ src/views/hard/hard-sh/index.vue | 8 +- 6 files changed, 540 insertions(+), 15 deletions(-) create mode 100644 src/api/act/act-coupon.ts create mode 100644 src/views/act/act-coupon/form.vue create mode 100644 src/views/act/act-coupon/index.vue diff --git a/src/api/act/act-coupon.ts b/src/api/act/act-coupon.ts new file mode 100644 index 0000000..6b76ccf --- /dev/null +++ b/src/api/act/act-coupon.ts @@ -0,0 +1,40 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: "/wallet/act-coupon/page", + method: "get", + params: query, + }) +} + +export function addObj(obj?: Object) { + return request({ + url: "/wallet/act-coupon", + method: "post", + data: obj, + }) +} + +export function getObj(id?: string) { + return request({ + url: "/wallet/act-coupon/" + id, + method: "get", + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: "/wallet/act-coupon", + method: "delete", + data: ids, + }) +} + +export function putObj(obj?: Object) { + return request({ + url: "/wallet/act-coupon", + method: "put", + data: obj, + }) +} diff --git a/src/hooks/dict.ts b/src/hooks/dict.ts index a7f4c9a..420a538 100644 --- a/src/hooks/dict.ts +++ b/src/hooks/dict.ts @@ -1,29 +1,35 @@ -import { dict } from '/@/stores/dict'; -import { getDicts } from '/@/api/admin/dict'; -import { ref, toRefs } from 'vue'; +import { dict } from "/@/stores/dict" +import { getDicts } from "/@/api/admin/dict" +import { ref, toRefs } from "vue" /** * 获取字典数据 */ export function useDict(...args: any): any { - const res = ref({}); + const res = ref({}) return (() => { args.forEach((dictType: String) => { // @ts-ignore - res.value[dictType] = []; - const dicts = dict().getDict(dictType); + res.value[dictType] = [] + const dicts = dict().getDict(dictType) if (dicts) { // @ts-ignore - res.value[dictType] = dicts; + res.value[dictType] = dicts } else { getDicts(dictType).then((resp) => { // @ts-ignore - res.value[dictType] = resp.data.map((p: any) => ({ label: p.label, value: p.value, elTagType: p.listClass, elTagClass: p.cssClass })); + res.value[dictType] = resp.data.map((p: any) => ({ + label: p.label, + value: p.value, + elTagType: p.listClass, + elTagClass: p.cssClass, + remarks: p.remarks, + })) // @ts-ignore - dict().setDict(dictType, res.value[dictType]); - }); + dict().setDict(dictType, res.value[dictType]) + }) } - }); - return toRefs(res.value); - })(); + }) + return toRefs(res.value) + })() } diff --git a/src/utils/other.ts b/src/utils/other.ts index 908cccb..7c0068e 100644 --- a/src/utils/other.ts +++ b/src/utils/other.ts @@ -390,7 +390,7 @@ export function handleBlobFile(response: any, fileName: string) { } } if (typeof (blob as any).text === "function") { - ;(blob as any).text().then((t: string) => handleText(t)) + (blob as any).text().then((t: string) => handleText(t)) } else { const reader = new FileReader() reader.onload = () => handleText(String(reader.result || "")) diff --git a/src/views/act/act-coupon/form.vue b/src/views/act/act-coupon/form.vue new file mode 100644 index 0000000..77362b2 --- /dev/null +++ b/src/views/act/act-coupon/form.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/act/act-coupon/index.vue b/src/views/act/act-coupon/index.vue new file mode 100644 index 0000000..2296c48 --- /dev/null +++ b/src/views/act/act-coupon/index.vue @@ -0,0 +1,229 @@ + + + diff --git a/src/views/hard/hard-sh/index.vue b/src/views/hard/hard-sh/index.vue index 718ca31..da92a6f 100644 --- a/src/views/hard/hard-sh/index.vue +++ b/src/views/hard/hard-sh/index.vue @@ -21,10 +21,16 @@ - + + + + {{ $t("common.queryBtn") }} From 7e24072ff8d40eaf38b6beb972b8dc6257da7a05 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 28 Jan 2026 20:07:54 +0800 Subject: [PATCH 09/17] =?UTF-8?q?feat:=E7=94=A8=E6=88=B7=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev-local | 2 +- src/api/act/act-coupon-record.ts | 40 ++++ src/views/act/act-coupon-record/index.vue | 225 ++++++++++++++++++++++ src/views/act/act-coupon/form.vue | 7 + src/views/act/act-coupon/index.vue | 150 ++++++--------- 5 files changed, 337 insertions(+), 87 deletions(-) create mode 100644 src/api/act/act-coupon-record.ts create mode 100644 src/views/act/act-coupon-record/index.vue diff --git a/.env.dev-local b/.env.dev-local index 82069dd..a98aee8 100644 --- a/.env.dev-local +++ b/.env.dev-local @@ -9,7 +9,7 @@ ENV = 'local' # ADMIN 服务地址 -VITE_ADMIN_PROXY_PATH = http://localhost:9999/ +VITE_ADMIN_PROXY_PATH = http://localhost:9999 # 图片访问基础地址 diff --git a/src/api/act/act-coupon-record.ts b/src/api/act/act-coupon-record.ts new file mode 100644 index 0000000..6001194 --- /dev/null +++ b/src/api/act/act-coupon-record.ts @@ -0,0 +1,40 @@ +import request from "/@/utils/request" + +export function fetchList(query?: Object) { + return request({ + url: "/wallet/act-coupon-record/page", + method: "get", + params: query, + }) +} + +export function addObj(obj?: Object) { + return request({ + url: "/wallet/act-coupon-record", + method: "post", + data: obj, + }) +} + +export function getObj(id?: string) { + return request({ + url: "/wallet/act-coupon-record/" + id, + method: "get", + }) +} + +export function delObjs(ids?: Object) { + return request({ + url: "/wallet/act-coupon-record", + method: "delete", + data: ids, + }) +} + +export function putObj(obj?: Object) { + return request({ + url: "/wallet/act-coupon-record", + method: "put", + data: obj, + }) +} diff --git a/src/views/act/act-coupon-record/index.vue b/src/views/act/act-coupon-record/index.vue new file mode 100644 index 0000000..9967b13 --- /dev/null +++ b/src/views/act/act-coupon-record/index.vue @@ -0,0 +1,225 @@ + + + diff --git a/src/views/act/act-coupon/form.vue b/src/views/act/act-coupon/form.vue index 77362b2..af4390d 100644 --- a/src/views/act/act-coupon/form.vue +++ b/src/views/act/act-coupon/form.vue @@ -97,6 +97,12 @@ + 营销相关 + + + + +