fix(ecom-dmb): ShopComparisonTable的shopComparisons类型ShopComparison[]→ShopOverview匹配实际数据结构

This commit is contained in:
小蟑螂
2026-04-24 13:06:22 +08:00
parent f3ebdb7ef1
commit 4c5239237d
@@ -6,7 +6,7 @@ import { computed } from 'vue';
defineOptions({ name: 'ShopComparisonTable' });
interface Props {
shopComparisons?: CompanyOverviewVO.ShopComparison[];
shopComparisons?: CompanyOverviewVO.ShopOverview;
taxRate: number;
shopExportMode: boolean;
selectedExportShopIds: number[];
@@ -23,7 +23,7 @@ const props = defineProps<Props>();
const emit = defineEmits<Emits>();
const allShopsSelected = computed(() => {
const total = props.shopComparisons?.length || 0;
const total = props.shopComparisons?.shops?.length || 0;
return total > 0 && props.selectedExportShopIds.length === total;
});
const someShopsSelected = computed(() => {