fix(store-overview): 修复重命名后的类型报错

- shopComparisons 类型修正(ShopOverview 非数组)
- Segmented options 移除 readonly约束
- 删除未使用的 toggleSort/sortIcon/route/useRoute
- 修复 profitAfterTax 可能为 undefined 的比较
- 删除废弃的 product/overview/tabs/OverviewTab.vue
This commit is contained in:
小蟑螂
2026-04-28 01:18:21 +08:00
parent 9adc8567b3
commit b25e01a15c
5 changed files with 7 additions and 203 deletions
@@ -12,7 +12,7 @@ import {
ref,
watch,
} from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useRouter } from 'vue-router';
import { Page } from '@vben/common-ui';
@@ -31,7 +31,6 @@ defineOptions({ name: 'CompanyOverview' });
// 路由
const router = useRouter();
const route = useRoute();
// 响应式数据
const loading = ref(false);
@@ -356,12 +355,13 @@ const handleExportCompanyOverview = async () => {
let dataToExport: CompanyOverviewVO.ShopComparison[] = [];
if (overviewData.value?.shopComparisons) {
const shops = overviewData.value.shopComparisons.shops;
dataToExport =
selectedExportShopIds.value.length > 0
? overviewData.value.shopComparisons.filter((s) =>
? shops.filter((s) =>
selectedExportShopIds.value.includes(s.shopId),
)
: overviewData.value.shopComparisons;
: shops;
}
let shopIds: number[] | undefined;