From 15dbd79c7d4ea9d34b6b705763f7a9ae54f9dae6 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Tue, 23 Dec 2025 13:49:39 +0800 Subject: [PATCH 01/16] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E5=88=97=E8=A1=A8=E5=88=86=E9=A1=B5=202.=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BB=A3=E5=AE=A2=E4=B8=8B=E5=8D=95=E6=96=B0=E7=89=88?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/points.ts | 12 +++++++++--- src/views/inventory/supplier/config/content.ts | 6 ++++-- src/views/tool/Instead/components/order.vue | 12 ++++++++++-- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/src/api/account/points.ts b/src/api/account/points.ts index f7c5cac..29a5ae1 100644 --- a/src/api/account/points.ts +++ b/src/api/account/points.ts @@ -1,12 +1,18 @@ import request from "@/utils/request"; -import { Account_BaseUrl } from "@/api/config"; +import { Account_BaseUrl, Market_BaseUrl } from "@/api/config"; const baseURL = Account_BaseUrl + "/admin/points"; const Api = { // 002-获取订单可用积分及抵扣金额(支付页面使用) - + // calcOrderUsablePoints(params: any) { + // return request({ + // url: `${baseURL}/memberPoints/calcUsablePoints`, + // method: "get", + // params + // }); + // }, calcOrderUsablePoints(params: any) { return request({ - url: `${baseURL}/memberPoints/calcUsablePoints`, + url: `${Market_BaseUrl}/admin/points/userPoints`, method: "get", params }); diff --git a/src/views/inventory/supplier/config/content.ts b/src/views/inventory/supplier/config/content.ts index f2c3d1d..a866a44 100644 --- a/src/views/inventory/supplier/config/content.ts +++ b/src/views/inventory/supplier/config/content.ts @@ -14,7 +14,9 @@ const contentConfig: IContentConfig = { pageSizes: [10, 20, 30, 50], }, indexAction: function (params) { - return Api.getList({}); + return Api.getList({ + ...params, + }); }, deleteAction: function (id) { return Api.delete(id); @@ -79,7 +81,7 @@ const contentConfig: IContentConfig = { fixed: "right", width: 280, templet: "tool", - operat: [{ text: "编辑", icon: 'edit', name: "edit"}, { text: "删除", icon: 'delete', type: 'danger', name: "delete"}], + operat: [{ text: "编辑", icon: 'edit', name: "edit" }, { text: "删除", icon: 'delete', type: 'danger', name: "delete" }], }, ], }; diff --git a/src/views/tool/Instead/components/order.vue b/src/views/tool/Instead/components/order.vue index c786a31..5b03107 100644 --- a/src/views/tool/Instead/components/order.vue +++ b/src/views/tool/Instead/components/order.vue @@ -421,10 +421,14 @@ async function pointsInit() { if (!carts.vipUser.id) { return; } - const res = await PointsApi.calcOrderUsablePoints({ + const { pointsConfig, pointsUser } = await PointsApi.calcOrderUsablePoints({ shopUserId: carts.vipUser.id, - orderAmount: scoreMaxMoney.value, + // orderAmount: scoreMaxMoney.value, }); + + const res = pointsConfig + carts.vipUser.accountPoints = pointsUser.id ? pointsUser.pointBalance : 0; + pointsRes.value = res; carts.pointDeductionRule.pointsPerYuan = res.equivalentPoints; if (score.sel == -1) { @@ -693,6 +697,10 @@ watch( onMounted(() => { carts.payParamsInit(); getPaytype(); + + if (carts.vipUser.id) { + pointsInit(); + } }); defineExpose({ nowPayClick, From 1d7ba844f6df899572bf7e80e015b971e6541b76 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Tue, 23 Dec 2025 14:48:13 +0800 Subject: [PATCH 02/16] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A5=97=E9=A4=90?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E7=9A=84=E7=BC=96=E8=BE=91/=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../group_booking/components/groupOrder.vue | 3 ++- src/views/marketing_center/group_booking/index.vue | 2 +- .../package_popularize/components/groupPage.vue | 9 +++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/marketing_center/group_booking/components/groupOrder.vue b/src/views/marketing_center/group_booking/components/groupOrder.vue index 6ef7723..2f6c300 100644 --- a/src/views/marketing_center/group_booking/components/groupOrder.vue +++ b/src/views/marketing_center/group_booking/components/groupOrder.vue @@ -336,7 +336,8 @@ async function confirmRefundHandle(form) { } catch (error) { console.log(error); } - tableData.loading = false + getTableData() + wareCountAjax() } // 审核退款操作 diff --git a/src/views/marketing_center/group_booking/index.vue b/src/views/marketing_center/group_booking/index.vue index b27fca3..d0ad3cf 100644 --- a/src/views/marketing_center/group_booking/index.vue +++ b/src/views/marketing_center/group_booking/index.vue @@ -42,7 +42,7 @@ const form = ref({ watch(() => form.value.isEnable, (newValue, OldValue) => { if (loading.value == false) { if (newValue == 0) { - ElMessageBox.confirm('关闭商品拼团所有未支付的订单都将自动取消,是否确定关闭?', '注意', { + ElMessageBox.confirm('关闭商品拼团所有未成团的订单都将自动取消,是否确定关闭?', '注意', { confirmButtonText: '确认关闭', type: 'danger' }).then(() => { diff --git a/src/views/marketing_center/package_popularize/components/groupPage.vue b/src/views/marketing_center/package_popularize/components/groupPage.vue index 598b950..bac7640 100644 --- a/src/views/marketing_center/package_popularize/components/groupPage.vue +++ b/src/views/marketing_center/package_popularize/components/groupPage.vue @@ -56,8 +56,13 @@ + + \ No newline at end of file diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 2d2b7b3..4876d02 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -2,26 +2,14 @@
- + - + - + @@ -156,7 +118,7 @@ @@ -192,20 +155,13 @@ @@ -105,6 +110,7 @@ function handleOutsideClick() { function toggleSidebar() { appStore.toggleSidebar(); } +function showFastMenu() {} const route = useRoute(); watch(route, () => { diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index b90fc9f..7fae218 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -33,8 +33,6 @@ export const usePermissionStore = defineStore("permission", () => { .then((data) => { if (!isTest) { const dynamicRoutes = parseDynamicRoutes(data.filter(v => v.type == 0)); - console.log('dynamicRoutes') - console.log(dynamicRoutes) dynamicRoutes.forEach((route) => { //过滤出可见子节点 let onlyOneChild = null diff --git a/src/views/admin/system/commonlyUsedMenu/index.vue b/src/views/admin/system/commonlyUsedMenu/index.vue new file mode 100644 index 0000000..63a05ba --- /dev/null +++ b/src/views/admin/system/commonlyUsedMenu/index.vue @@ -0,0 +1,5 @@ + diff --git a/src/views/tool/Instead/components/carts/list.vue b/src/views/tool/Instead/components/carts/list.vue index 84fdc76..2a61a85 100644 --- a/src/views/tool/Instead/components/carts/list.vue +++ b/src/views/tool/Instead/components/carts/list.vue @@ -4,22 +4,38 @@
以下是优惠菜品
- +
@@ -50,9 +74,14 @@
- + @@ -131,7 +187,7 @@ import { useUserStore } from "@/store/modules/user"; function isEmptyObject(obj) { // 步骤1:排除null和非对象类型 - if (obj === null || typeof obj !== 'object') { + if (obj === null || typeof obj !== "object") { return false; } // 步骤2:排除数组(数组也是对象,需单独判断) @@ -313,4 +369,4 @@ defineExpose({ margin-left: 10px; } } - \ No newline at end of file + From 01c2cbcfb43e1fbc603915ee8a225b5fe39178d7 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Tue, 30 Dec 2025 14:25:37 +0800 Subject: [PATCH 14/16] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/order.ts | 8 ++++++++ src/views/order/index/config/content.ts | 2 +- src/views/order/index/index.vue | 14 ++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/api/order/order.ts b/src/api/order/order.ts index 5ea0153..5e7cb54 100644 --- a/src/api/order/order.ts +++ b/src/api/order/order.ts @@ -64,6 +64,14 @@ const OrderApi = { data }); }, + // 订单打印 + printOrder(data: any) { + return request({ + url: `${baseURL}/print`, + method: "post", + data + }); + }, }; export default OrderApi; diff --git a/src/views/order/index/config/content.ts b/src/views/order/index/config/content.ts index 503e60a..b7f8d99 100644 --- a/src/views/order/index/config/content.ts +++ b/src/views/order/index/config/content.ts @@ -131,7 +131,7 @@ const contentConfig: IContentConfig = { label: "操作", align: "center", fixed: "right", - width: 150, + width: 180, templet: "custom", slotName: "operate", }, diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue index c4e8a8e..5595ec1 100644 --- a/src/views/order/index/index.vue +++ b/src/views/order/index/index.vue @@ -72,6 +72,7 @@ diff --git a/src/components/FastMenuConfig/index.vue b/src/components/FastMenuConfig/index.vue index 9067a52..dbec7fa 100644 --- a/src/components/FastMenuConfig/index.vue +++ b/src/components/FastMenuConfig/index.vue @@ -55,7 +55,10 @@