diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/common/welcome/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/common/welcome/index.vue index 24ee429d..49d50be5 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/common/welcome/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/common/welcome/index.vue @@ -17,8 +17,8 @@ const LoadingIcon = createIconifyIcon('line-md:loading-twotone-loop'); const ChartIcon = createIconifyIcon('solar:chart-2-linear'); const DownloadIcon = createIconifyIcon('solar:file-download-linear'); -const goOverview = () => { - router.push('/store-overview'); +const goWorkbench = () => { + router.push('/dashboard/workbench'); }; const goImportTask = () => { @@ -76,7 +76,7 @@ const goImportTask = () => {
- 首次进入本 Tab 时按当前筛选与税率分别请求区间 A、区间 B;上方为双柱对比(万元)与相对 A 的增幅条形图,下方为明细表(与「多维度经营明细汇总」店铺表合计行同源)。 + 首次进入本 Tab 时按当前筛选与税率分别请求区间 A、区间 B;上方为双柱对比(万元)与相对 A 的增幅条形图,下方为明细表(与「多维度经营明细汇总」店铺表合计行同源)。差额、增幅及增幅图:绿色=上升,红色=下降(按 B−A 数值正负,与指标好坏无关)。
+ {{ props.headingSubtitle }} +
+| + c.categoryId!) + ) + " + /> + | ++ {{ props.firstColumnLabel }} + | ++ 经营规模维度 + | ++ 成本费用维度 + | ++ 盈利分析维度 + | +|||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+ |||
| + { + const checked = (e.target as HTMLInputElement).checked; + emit( + 'update:selectedExportCategoryIds', + checked + ? [...selectedExportCategoryIds, cat.categoryId!] + : selectedExportCategoryIds.filter((id) => id !== cat.categoryId) + ); + } + " + /> + | ++ + {{ cat.categoryName }} + + | +{{ formatAmount(cat.salesAmount) }} | +{{ formatIntCell(cat.orderCount) }} | ++ {{ cellMoney(cat.averageOrderValue) }} + | +{{ cellMoney(cat.productCost) }} | +{{ cellMoney(cat.shippingCost) }} | +{{ cellMoney(cat.otherCost) }} | ++ {{ cellMoney(cat.totalCost) }} + | ++ {{ cellMoney(cat.refundAmount) }} + | +{{ cellMoney(cat.totalPromotionFee) }} | ++ {{ cellMoney(cat.brushFee) }} + | ++ {{ cat.feeRatio !== undefined ? formatFeeRatioPercent(cat.feeRatio) : '-' }} + | ++ {{ cellMoney(cat.totalProfitBeforeTax) }} + | ++ {{ cellMoney(cat.salesTaxAmount) }} + | ++ {{ cellRoi(cat.roi) }} + | ++ {{ cellMoney(cat.profitAfterTax) }} + | +|
| + 暂无数据 + | +|||||||||||||||||
| 合计 | + +{{ cellMoney(categorySummary?.total?.salesAmount) }} | +{{ formatIntCell(categorySummary?.total?.orderCount) }} | ++ {{ cellMoney(categorySummary?.total?.averageOrderValue) }} + | + +{{ cellMoney(categorySummary?.total?.productCost) }} | +{{ cellMoney(categorySummary?.total?.shippingCost) }} | +{{ cellMoney(categorySummary?.total?.otherCost) }} | +{{ cellMoney(categorySummary?.total?.totalCost) }} | +{{ cellMoney(categorySummary?.total?.refundAmount) }} | +{{ cellMoney(categorySummary?.total?.totalPromotionFee) }} | +{{ cellMoney(categorySummary?.total?.brushFee) }} | +{{ categorySummary?.total?.feeRatio !== undefined ? formatFeeRatioPercent(categorySummary?.total?.feeRatio) : '-' }} | + +{{ cellMoney(categorySummary?.total?.totalProfitBeforeTax) }} | +{{ cellMoney(categorySummary?.total?.salesTaxAmount) }} | +{{ cellRoi(categorySummary?.total?.roi) }} | +{{ cellMoney(categorySummary?.total?.profitAfterTax) }} | +||
- 下列表格与「全店概览」使用相同组件;四表数据由工作台接口按订单、推广费、刷单与店铺月度目标等口径汇总(与全店概览后端计算一致)。若接口未返回汇总表字段,则回退为按维度行估算(部分列为「-」)。 + 四张汇总表数据由工作台接口按订单、推广费、刷单与店铺月度目标等口径汇总(与全店概览后端计算一致)。若接口未返回汇总表字段,则回退为按维度行估算(部分列为「-」)。
+ {{ props.headingSubtitle }} +
+| + { + if ((e.target as HTMLInputElement).checked) { + emit( + 'update:selectedExportPlatformIds', + platformData.map((p) => p.platformId) || [], + ); + } else { + emit('update:selectedExportPlatformIds', []); + } + } + " + /> + | + ++ 平台 + | + ++ 目标达成维度 + | + ++ 经营规模维度 + | + ++ 成本费用维度 + | + ++ 盈利分析维度 + | +||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
+ |
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+ |
+
+ |
+ |||
| + { + const checked = (e.target as HTMLInputElement).checked; + const newIds = checked + ? [...selectedExportPlatformIds, p.platformId] + : selectedExportPlatformIds.filter((id) => id !== p.platformId); + emit('update:selectedExportPlatformIds', newIds); + } + " + /> + | + ++ + {{ p.platformName }} + + | + +{{ p.targetOrderCount.toLocaleString('zh-CN') }} | +{{ formatPercentPlain(p.orderCountAchievementRate) }} | +{{ formatAmount(p.targetAmount) }} | +{{ formatPercentPlain(p.salesAmountAchievementRate) }} | + +{{ formatAmount(p.salesAmount) }} | +{{ p.orderCount.toLocaleString('zh-CN') }} | +{{ formatAmount(p.averageOrderValue) }} | + +{{ formatAmount(p.productCost) }} | +{{ formatAmount(p.shippingCost) }} | +{{ formatAmount(p.otherCost) }} | +{{ formatAmount(p.totalCost) }} | +{{ formatAmount(p.refundAmount) }} | +{{ formatAmount(p.totalPromotionFee) }} | +{{ formatAmount(p.brushFee) }} | +{{ formatFeeRatioPercent(p.feeRatio) }} | + ++ {{ formatAmount(p.totalProfitBeforeTax) }} + | +{{ formatAmount(p.salesTaxAmount) }} | +{{ p.roi.toFixed(2) }} | ++ {{ formatAmount(p.profitAfterTax) }} + | +|
| 合计 | + +{{ formatIntCell(totalData.targetOrderCount) }} | ++ {{ totalData.orderCountAchievementRate !== undefined ? formatPercentPlain(totalData.orderCountAchievementRate) : '-' }} + | +{{ cellMoney(totalData.targetAmount) }} | ++ {{ totalData.salesAmountAchievementRate !== undefined ? formatPercentPlain(totalData.salesAmountAchievementRate) : '-' }} + | + +{{ cellMoney(totalData.salesAmount) }} | +{{ formatIntCell(totalData.orderCount) }} | ++ {{ cellMoney(totalData.averageOrderValue) }} + | + +{{ cellMoney(totalData.productCost) }} | +{{ cellMoney(totalData.shippingCost) }} | +{{ cellMoney(totalData.otherCost) }} | +{{ cellMoney(totalData.totalCost) }} | +{{ cellMoney(totalData.refundAmount) }} | +{{ cellMoney(totalData.totalPromotionFee) }} | +{{ cellMoney(totalData.brushFee) }} | ++ {{ totalData.feeRatio !== undefined ? formatFeeRatioPercent(totalData.feeRatio) : '-' }} + | + ++ {{ cellMoney(totalData.totalProfitBeforeTax) }} + | ++ {{ cellMoney(totalData.salesTaxAmount) }} + | ++ {{ cellRoi(totalData.roi) }} + | ++ {{ cellMoney(totalData.profitAfterTax) }} + | +||
| 暂无数据 | +|||||||||||||||||||||
+ {{ props.headingSubtitle }} +
+| + { + if ((e.target as HTMLInputElement).checked) { + emit( + 'update:selectedExportShopIds', + shopSummary?.shops?.map((s) => s.shopId) || [], + ); + } else { + emit('update:selectedExportShopIds', []); + } + } + " + /> + | ++ 店铺 + | ++ 目标达成维度 + | ++ 经营规模维度 + | ++ 成本费用维度 + | ++ 盈利分析维度 + | +||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
+ |
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+
+ |
+
+ |
+
+ |
+
+ |
+ |||
| + { + const checked = (e.target as HTMLInputElement).checked; + const newIds = checked + ? [...selectedExportShopIds, shop.shopId] + : selectedExportShopIds.filter((id) => id !== shop.shopId); + emit('update:selectedExportShopIds', newIds); + } + " + /> + | +
+
+ {{ shop.shopName }}
+ |
+
+ + {{ formatIntCell(shop.targetOrderCount) }} + | ++ {{ + shop.orderCountAchievementRate !== undefined + ? formatPercentPlain(shop.orderCountAchievementRate) + : '-' + }} + | ++ {{ cellMoney(shop.targetAmount) }} + | ++ {{ + shop.salesAmountAchievementRate !== undefined + ? formatPercentPlain(shop.salesAmountAchievementRate) + : '-' + }} + | + ++ {{ formatAmount(shop.salesAmount) }} + | ++ {{ formatIntCell(shop.orderCount) }} + | ++ {{ cellMoney(shop.averageOrderValue) }} + | + ++ {{ cellMoney(shop.productCost) }} + | ++ {{ cellMoney(shop.shippingCost) }} + | ++ {{ cellMoney(shop.otherCost) }} + | ++ {{ cellMoney(shop.totalCost) }} + | ++ {{ cellMoney(shop.refundAmount) }} + | ++ {{ cellMoney(shop.totalPromotionFee) }} + | ++ {{ cellMoney(shop.brushFee) }} + | ++ {{ + shop.feeRatio !== undefined + ? formatFeeRatioPercent(shop.feeRatio) + : '-' + }} + | + ++ {{ cellMoney(shop.totalProfitBeforeTax) }} + | ++ {{ cellMoney(shop.salesTaxAmount) }} + | ++ {{ cellRoi(shop.roi) }} + | ++ {{ cellMoney(shop.profitAfterTax) }} + | +|
| + 暂无数据 + | +|||||||||||||||||||||
| 合计 | + +{{ formatIntCell(shopSummary?.total?.targetOrderCount) }} | ++ {{ + shopSummary?.total?.orderCountAchievementRate !== undefined + ? formatPercentPlain(shopSummary?.total?.orderCountAchievementRate) + : '-' + }} + | +{{ cellMoney(shopSummary?.total?.targetAmount) }} | ++ {{ + shopSummary?.total?.salesAmountAchievementRate !== undefined + ? formatPercentPlain(shopSummary?.total?.salesAmountAchievementRate) + : '-' + }} + | + +{{ cellMoney(shopSummary?.total?.salesAmount) }} | +{{ formatIntCell(shopSummary?.total?.orderCount) }} | ++ {{ cellMoney(shopSummary?.total?.averageOrderValue) }} + | + +{{ cellMoney(shopSummary?.total?.productCost) }} | +{{ cellMoney(shopSummary?.total?.shippingCost) }} | +{{ cellMoney(shopSummary?.total?.otherCost) }} | +{{ cellMoney(shopSummary?.total?.totalCost) }} | +{{ cellMoney(shopSummary?.total?.refundAmount) }} | +{{ cellMoney(shopSummary?.total?.totalPromotionFee) }} | +{{ cellMoney(shopSummary?.total?.brushFee) }} | +{{ shopSummary?.total?.feeRatio !== undefined ? formatFeeRatioPercent(shopSummary?.total?.feeRatio) : '-' }} | + +{{ cellMoney(shopSummary?.total?.totalProfitBeforeTax) }} | +{{ cellMoney(shopSummary?.total?.salesTaxAmount) }} | +{{ cellRoi(shopSummary?.total?.roi) }} | +{{ cellMoney(shopSummary?.total?.profitAfterTax) }} | +||