From f2a5bc522d0049e8672b213983fe03aaec2276e2 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 7 Jun 2026 00:31:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(mall):=20=E4=BF=AE=E5=A4=8D=E5=A4=9A?= =?UTF-8?q?=E7=AB=AF=E5=95=86=E5=9F=8E=E6=A8=A1=E5=9D=97=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8E=E7=BB=84=E4=BB=B6=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复商城统计时间参数、客服消息类型导入等类型错误 - 对齐 web-antd、web-ele、web-antdv-next 的商城促销组件类型定义 - 修复 DIY 装修、组合活动、积分活动、运费模板等组件兼容问题 --- apps/web-antd/src/api/mall/statistics/trade.ts | 2 +- .../views/mall/promotion/banner/modules/form.vue | 3 +-- .../combination/components/table-select.vue | 16 ++++++---------- .../components/component-container-property.vue | 11 +++++------ .../hot-zone-edit-dialog/controller.ts | 4 ++-- .../components/mobile/magic-cube/config.ts | 7 ++----- .../components/mobile/navigation-bar/config.ts | 7 ++----- .../components/mobile/notice-bar/property.vue | 2 +- .../promotion/components/diy-editor/index.vue | 2 -- .../mall/promotion/kefu/modules/message-list.vue | 4 ++-- .../promotion/point/components/table-select.vue | 15 ++++++--------- .../src/api/mall/statistics/trade.ts | 2 +- .../promotion/components/diy-editor/index.vue | 2 -- apps/web-ele/src/api/mall/statistics/trade.ts | 2 +- .../views/mall/promotion/banner/modules/form.vue | 3 +-- .../combination/components/table-select.vue | 16 ++++++---------- .../components/component-container-property.vue | 5 ++++- .../hot-zone-edit-dialog/controller.ts | 4 ++-- .../components/mobile/magic-cube/config.ts | 7 ++----- .../components/mobile/navigation-bar/config.ts | 7 ++----- .../promotion/components/diy-editor/index.vue | 10 ++++------ .../mall/promotion/kefu/modules/message-list.vue | 4 ++-- .../promotion/point/components/table-select.vue | 15 ++++++--------- .../expressTemplate/modules/charge-item-form.vue | 1 - .../expressTemplate/modules/free-item-form.vue | 1 - 25 files changed, 59 insertions(+), 93 deletions(-) diff --git a/apps/web-antd/src/api/mall/statistics/trade.ts b/apps/web-antd/src/api/mall/statistics/trade.ts index 05dc7f3ef..fea420b75 100644 --- a/apps/web-antd/src/api/mall/statistics/trade.ts +++ b/apps/web-antd/src/api/mall/statistics/trade.ts @@ -7,7 +7,7 @@ import { requestClient } from '#/api/request'; export namespace MallTradeStatisticsApi { /** 交易状况 Request */ export interface TradeTrendReqVO { - times: [Date, Date]; + times?: string[]; } /** 交易统计 Response */ diff --git a/apps/web-antd/src/views/mall/promotion/banner/modules/form.vue b/apps/web-antd/src/views/mall/promotion/banner/modules/form.vue index 818380589..cc2b194c3 100644 --- a/apps/web-antd/src/views/mall/promotion/banner/modules/form.vue +++ b/apps/web-antd/src/views/mall/promotion/banner/modules/form.vue @@ -1,6 +1,5 @@ diff --git a/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue b/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue index e420c7837..38d9a30e0 100644 --- a/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue +++ b/apps/web-antd/src/views/mall/promotion/components/diy-editor/index.vue @@ -44,7 +44,6 @@ const emits = defineEmits(['reset', 'save', 'update:modelValue']); // 工具栏 // margin: 4, // }); // 预览二维码 -const componentLibrary = ref(); // 左侧组件库 const pageConfigComponent = ref>( cloneDeep(PAGE_CONFIG_COMPONENT), ); // 页面设置组件 @@ -336,7 +335,6 @@ onMounted(() => { diff --git a/apps/web-antd/src/views/mall/promotion/kefu/modules/message-list.vue b/apps/web-antd/src/views/mall/promotion/kefu/modules/message-list.vue index b888ee66d..3817a0cb2 100644 --- a/apps/web-antd/src/views/mall/promotion/kefu/modules/message-list.vue +++ b/apps/web-antd/src/views/mall/promotion/kefu/modules/message-list.vue @@ -4,9 +4,9 @@ import type { Emoji } from './tools/emoji'; import type { MallKefuConversationApi } from '#/api/mall/promotion/kefu/conversation'; import type { MallKefuMessageApi } from '#/api/mall/promotion/kefu/message'; -import { computed, KeFuMessageContentTypeEnum, reactive, ref, toRefs, unref, watch } from 'vue'; +import { computed, reactive, ref, toRefs, unref, watch } from 'vue'; -import { UserTypeEnum } from '@vben/constants'; +import { KeFuMessageContentTypeEnum, UserTypeEnum } from '@vben/constants'; import { IconifyIcon } from '@vben/icons'; import { formatDate, isEmpty, jsonParse } from '@vben/utils'; diff --git a/apps/web-antd/src/views/mall/promotion/point/components/table-select.vue b/apps/web-antd/src/views/mall/promotion/point/components/table-select.vue index d4c1a2a27..f6926513b 100644 --- a/apps/web-antd/src/views/mall/promotion/point/components/table-select.vue +++ b/apps/web-antd/src/views/mall/promotion/point/components/table-select.vue @@ -196,12 +196,10 @@ const [Modal, modalApi] = useVbenModal({ >(); if (props.multiple && Array.isArray(data) && data.length > 0) { setTimeout(() => { - const tableData = gridApi.grid.getTableData().fullData; + const tableData = gridApi.grid.getTableData() + .fullData as MallPointActivityApi.PointActivity[]; data.forEach((activity) => { - const row = tableData.find( - (item: MallPointActivityApi.PointActivity) => - item.id === activity.id, - ); + const row = tableData.find((item) => item.id === activity.id); if (row) { gridApi.grid.setCheckboxRow(row, true); } @@ -209,10 +207,9 @@ const [Modal, modalApi] = useVbenModal({ }, 300); } else if (!props.multiple && data && !Array.isArray(data)) { setTimeout(() => { - const tableData = gridApi.grid.getTableData().fullData; - const row = tableData.find( - (item: MallPointActivityApi.PointActivity) => item.id === data.id, - ); + const tableData = gridApi.grid.getTableData() + .fullData as MallPointActivityApi.PointActivity[]; + const row = tableData.find((item) => item.id === data.id); if (row) { gridApi.grid.setRadioRow(row); } diff --git a/apps/web-antdv-next/src/api/mall/statistics/trade.ts b/apps/web-antdv-next/src/api/mall/statistics/trade.ts index 05dc7f3ef..fea420b75 100644 --- a/apps/web-antdv-next/src/api/mall/statistics/trade.ts +++ b/apps/web-antdv-next/src/api/mall/statistics/trade.ts @@ -7,7 +7,7 @@ import { requestClient } from '#/api/request'; export namespace MallTradeStatisticsApi { /** 交易状况 Request */ export interface TradeTrendReqVO { - times: [Date, Date]; + times?: string[]; } /** 交易统计 Response */ diff --git a/apps/web-antdv-next/src/views/mall/promotion/components/diy-editor/index.vue b/apps/web-antdv-next/src/views/mall/promotion/components/diy-editor/index.vue index 0772629b7..c1b8c27a8 100644 --- a/apps/web-antdv-next/src/views/mall/promotion/components/diy-editor/index.vue +++ b/apps/web-antdv-next/src/views/mall/promotion/components/diy-editor/index.vue @@ -44,7 +44,6 @@ const emits = defineEmits(['reset', 'save', 'update:modelValue']); // 工具栏 // margin: 4, // }); // 预览二维码 -const componentLibrary = ref(); // 左侧组件库 const pageConfigComponent = ref>( cloneDeep(PAGE_CONFIG_COMPONENT), ); // 页面设置组件 @@ -332,7 +331,6 @@ onMounted(() => { diff --git a/apps/web-ele/src/api/mall/statistics/trade.ts b/apps/web-ele/src/api/mall/statistics/trade.ts index 05dc7f3ef..fea420b75 100644 --- a/apps/web-ele/src/api/mall/statistics/trade.ts +++ b/apps/web-ele/src/api/mall/statistics/trade.ts @@ -7,7 +7,7 @@ import { requestClient } from '#/api/request'; export namespace MallTradeStatisticsApi { /** 交易状况 Request */ export interface TradeTrendReqVO { - times: [Date, Date]; + times?: string[]; } /** 交易统计 Response */ diff --git a/apps/web-ele/src/views/mall/promotion/banner/modules/form.vue b/apps/web-ele/src/views/mall/promotion/banner/modules/form.vue index d2267a3bc..723696b79 100644 --- a/apps/web-ele/src/views/mall/promotion/banner/modules/form.vue +++ b/apps/web-ele/src/views/mall/promotion/banner/modules/form.vue @@ -1,6 +1,5 @@