refactor: 调整api和页面组件位置

This commit is contained in:
2026-08-14 15:21:11 +08:00
parent c51e13f4b4
commit 340ac54026
268 changed files with 293 additions and 929 deletions
@@ -1,11 +1,11 @@
<script setup lang="ts">
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ecommerce/brush-order';
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ec/brush-order';
import type {
ProductSkuDTO,
ProductSkuVO,
} from '#/api/ecommerce/product-sku/types';
import type { ProductDTO, ProductVO } from '#/api/ecommerce/product/types';
import type { ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/product/sku/types';
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
import type { ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, nextTick, onMounted, ref, watch } from 'vue';
@@ -28,10 +28,10 @@ import dayjs from 'dayjs';
import {
createBrushOrderApi,
updateBrushOrderApi,
} from '#/api/ecommerce/brush-order';
import { getProductPageApi } from '#/api/ecommerce/product';
import { getProductSkuPageApi } from '#/api/ecommerce/product-sku';
import { getShopPageApi } from '#/api/ecommerce/shop';
} from '#/api/ec/brush-order';
import { getProductPageApi } from '#/api/ec/product';
import { getProductSkuPageApi } from '#/api/ec/product/sku';
import { getShopPageApi } from '#/api/ec/shop';
defineOptions({ name: 'BrushOrderFormModal' });
@@ -1,8 +1,8 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ecommerce/brush-order';
import type { ProductDTO, ProductVO } from '#/api/ecommerce/product/types';
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { BrushOrderDTO, BrushOrderVO } from '#/api/ec/brush-order';
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
import type { ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, onMounted, ref, watch } from 'vue';
@@ -28,9 +28,9 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
deleteBrushOrderApi,
getBrushOrderPageApi,
} from '#/api/ecommerce/brush-order';
import { getProductPageApi } from '#/api/ecommerce/product';
import { getShopPageApi } from '#/api/ecommerce/shop/apis';
} from '#/api/ec/brush-order';
import { getProductPageApi } from '#/api/ec/product';
import { getShopPageApi } from '#/api/ec/shop/apis';
import BrushOrderFormModal from './components/BrushOrderFormModal.vue';
import {
@@ -1,12 +1,12 @@
<script setup lang="ts">
import type { OrderFieldVO } from '#/api/ecommerce/order/types';
import type { OrderFieldVO } from '#/api/ec/order/types';
import type {
ImportMappingDTO,
ImportMappingVO,
} from '#/api/ecommerce/import-mapping';
import type { ImportTaskDTO } from '#/api/ecommerce/import-task';
import type { OrderStatusVO } from '#/api/ecommerce/order-status';
import type { ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/import/mapping';
import type { ImportTaskDTO } from '#/api/ec/import/task';
import type { OrderStatusVO } from '#/api/ec/order/status';
import type { ShopVO } from '#/api/ec/shop/types';
import { computed, ref, watch } from 'vue';
@@ -23,16 +23,16 @@ import {
Steps,
} from 'ant-design-vue';
import { getOrderFieldsApi } from '#/api/ecommerce/order';
import { getOrderFieldsApi } from '#/api/ec/order';
import {
createImportMappingApi,
getImportMappingPageApi,
ImportMappingType,
updateImportMappingApi,
} from '#/api/ecommerce/import-mapping';
import { createImportTaskApi } from '#/api/ecommerce/import-task';
import { getAllOrderStatusListApi } from '#/api/ecommerce/order-status';
import { getShopPageApi } from '#/api/ecommerce/shop';
} from '#/api/ec/import/mapping';
import { createImportTaskApi } from '#/api/ec/import/task';
import { getAllOrderStatusListApi } from '#/api/ec/order/status';
import { getShopPageApi } from '#/api/ec/shop';
import { useImportTaskStore } from '#/store';
import { uploadFileToOss } from '#/utils/oss-upload';
import { createPatchedFile } from '../utils/skuCodePatch';
@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { PromotionFeeFieldVO } from '#/api/ecommerce/promotion-fee/types';
import type { ImportMappingVO } from '#/api/ecommerce/import-mapping';
import type { ImportTaskDTO } from '#/api/ecommerce/import-task';
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { PromotionFeeFieldVO } from '#/api/ec/promotion-fee/types';
import type { ImportMappingVO } from '#/api/ec/import/mapping';
import type { ImportTaskDTO } from '#/api/ec/import/task';
import type { ShopVO } from '#/api/ec/shop/types';
import { computed, ref } from 'vue';
@@ -15,10 +15,10 @@ import {
getImportMappingPageApi,
ImportMappingType,
updateImportMappingApi,
} from '#/api/ecommerce/import-mapping';
import { getPromotionFeeFieldsApi } from '#/api/ecommerce/promotion-fee/apis';
import { getShopPageApi } from '#/api/ecommerce/shop';
import { createImportTaskApi } from '#/api/ecommerce/import-task';
} from '#/api/ec/import/mapping';
import { getPromotionFeeFieldsApi } from '#/api/ec/promotion-fee/apis';
import { getShopPageApi } from '#/api/ec/shop';
import { createImportTaskApi } from '#/api/ec/import/task';
import { useImportTaskStore } from '#/store';
import { uploadFileToOss } from '#/utils/oss-upload';
import dayjs from 'dayjs';
@@ -11,12 +11,12 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
import ImportTaskWizard from './components/ImportTaskWizard.vue';
import FileUploadArea from './components/FileUploadArea.vue';
import { parseFileToRawData } from '#/views/ec/import/order/utils/fileParser';
import { getActivePromotionFeeTypeListApi } from '#/api/ecommerce/promotion-fee-type/apis';
import { getCategoryTreeApi } from '#/api/ecommerce/category/apis';
import { getProductPageApi } from '#/api/ecommerce/product/apis';
import type { PromotionFeeTypeVO } from '#/api/ecommerce/promotion-fee-type/types';
import type { CategoryVO } from '#/api/ecommerce/category/types';
import type { ProductVO } from '#/api/ecommerce/product/types';
import { getActivePromotionFeeTypeListApi } from '#/api/ec/promotion-fee/type/apis';
import { getCategoryTreeApi } from '#/api/ec/product/category/apis';
import { getProductPageApi } from '#/api/ec/product/apis';
import type { PromotionFeeTypeVO } from '#/api/ec/promotion-fee/type/types';
import type { CategoryVO } from '#/api/ec/product/category/types';
import type { ProductVO } from '#/api/ec/product/types';
defineOptions({ name: 'PromotionFeeImport' });
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { OrderItemVO, OrderVO } from '#/api/ecommerce/order';
import type { OrderItemVO, OrderVO } from '#/api/ec/order';
import { computed, ref } from 'vue';
@@ -13,7 +13,7 @@ import {
message,
} from 'ant-design-vue';
import { getOrderByIdApi } from '#/api/ecommerce/order';
import { getOrderByIdApi } from '#/api/ec/order';
import PlatformTag from '#/components/platform/PlatformTag.vue';
import {
getOrderPayAmount,
@@ -1,11 +1,11 @@
<script lang="ts" setup>
import type { OrderDTO, OrderVO } from '#/api/ecommerce/order';
import type { OrderDTO, OrderVO } from '#/api/ec/order';
import type {
ProductSkuDTO,
ProductSkuVO,
} from '#/api/ecommerce/product-sku/types';
import type { ProductDTO, ProductVO } from '#/api/ecommerce/product/types';
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/product/sku/types';
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
import type { ShopDTO, ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { ref } from 'vue';
@@ -26,11 +26,11 @@ import dayjs from 'dayjs';
import {
createOrderApi,
updateOrderApi,
} from '#/api/ecommerce/order';
import { ORDER_STATUS_OPTIONS } from '#/api/ecommerce/order/types/types.enum';
import { getProductPageApi } from '#/api/ecommerce/product';
import { getProductSkuPageApi } from '#/api/ecommerce/product-sku';
import { getShopPageApi } from '#/api/ecommerce/shop';
} from '#/api/ec/order';
import { ORDER_STATUS_OPTIONS } from '#/api/ec/order/types/types.enum';
import { getProductPageApi } from '#/api/ec/product';
import { getProductSkuPageApi } from '#/api/ec/product/sku';
import { getShopPageApi } from '#/api/ec/shop';
import {
getFirstOrderItem,
getOrderPayAmount,
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { OrderDTO, OrderVO } from '#/api/ecommerce/order';
import { ORDER_STATUS_OPTIONS } from '#/api/ecommerce/order/types/types.enum';
import type { ProductDTO, ProductVO } from '#/api/ecommerce/product/types';
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
import type { OrderDTO, OrderVO } from '#/api/ec/order';
import { ORDER_STATUS_OPTIONS } from '#/api/ec/order/types/types.enum';
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
import type { ShopDTO, ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, onMounted, ref } from 'vue';
@@ -29,10 +29,10 @@ import {
batchDeleteOrdersApi,
deleteOrderApi,
getOrderPageApi,
} from '#/api/ecommerce/order';
import { getProductPageApi } from '#/api/ecommerce/product';
import { getPlatformListApi } from '#/api/ecommerce/platform';
import { getShopPageApi } from '#/api/ecommerce/shop';
} from '#/api/ec/order';
import { getProductPageApi } from '#/api/ec/product';
import { getPlatformListApi } from '#/api/ec/platform';
import { getShopPageApi } from '#/api/ec/shop';
import PlatformTag from '#/components/platform/PlatformTag.vue';
import {
getFirstOrderItem,
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { CategoryDTO, CategoryVO } from '#/api/ecommerce/category';
import type { CategoryDTO, CategoryVO } from '#/api/ec/product/category';
import { ref, watch } from 'vue';
@@ -11,7 +11,7 @@ import {
createCategoryApi,
getCategoryListApi,
updateCategoryApi,
} from '#/api/ecommerce/category';
} from '#/api/ec/product/category';
const emit = defineEmits<{
cancel: [];
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { CategoryVO } from '#/api/ecommerce/category';
import type { CategoryVO } from '#/api/ec/product/category';
import { computed, ref } from 'vue';
@@ -13,7 +13,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
deleteCategoryApi,
getCategoryTreeApi,
} from '#/api/ecommerce/category';
} from '#/api/ec/product/category';
import CategoryFormModal from './components/CategoryFormModal.vue';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ProductSkuVO } from '#/api/ecommerce/product-sku/types';
import type { ProductSkuVO } from '#/api/ec/product/sku/types';
import { onUnmounted, ref, watch } from 'vue';
@@ -11,7 +11,7 @@ import {
batchSyncCostsToOrdersApi,
countOrdersForCostSyncApi,
getProductSkusByIdsApi,
} from '#/api/ecommerce/product-sku/apis';
} from '#/api/ec/product/sku/apis';
defineOptions({ name: 'ProductCostSyncToOrdersModal' });
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ProductVO } from '#/api/ecommerce/product/types';
import type { ProductVO } from '#/api/ec/product/types';
import { computed, h, ref } from 'vue';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ProductDTO, ProductVO } from '#/api/ecommerce/product/types';
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
import type { DropdownRender } from 'ant-design-vue/es/vc-select/BaseSelect';
import { computed, h, onUnmounted, ref } from 'vue';
@@ -19,8 +19,8 @@ import {
} from 'ant-design-vue';
import dayjs from 'dayjs';
import { getCategoryTreeApi } from '#/api/ecommerce/category';
import { createProductApi, updateProductApi } from '#/api/ecommerce/product';
import { getCategoryTreeApi } from '#/api/ec/product/category';
import { createProductApi, updateProductApi } from '#/api/ec/product';
import { uploadFileToOss } from '#/utils/oss-upload';
import CategoryFormModal from '#/views/ecommerce/config/category-config/components/CategoryFormModal.vue';
import ProductCostSyncToOrdersModal from '#/views/ecommerce/product/components/ProductCostSyncToOrdersModal.vue';
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { ProductDTO, ProductVO } from '#/api/ecommerce/product/types';
import type { ProductDTO, ProductVO } from '#/api/ec/product/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, ref } from 'vue';
@@ -13,7 +13,7 @@ import { createIconifyIcon } from '@vben/icons';
import { Button, Image, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { deleteProductApi, getProductPageApi } from '#/api/ecommerce/product';
import { deleteProductApi, getProductPageApi } from '#/api/ec/product';
import ProductDetailModal from './components/ProductDetailModal.vue';
import ProductFormModal from './components/ProductFormModal.vue';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ProductOverviewVO } from '#/api/ecommerce/product-overview';
import type { ProductOverviewVO } from '#/api/ec/product/overview';
import { computed } from 'vue';
@@ -14,11 +14,11 @@ import StatCards from './components/StatCards.vue';
import SalesTrendChart from './components/SalesTrendChart.vue';
import SkuSalesTop10Panel from './components/SkuSalesTop10Panel.vue';
import SkuSummaryTable from './components/SkuSummaryTable.vue';
import { getProductPageApi } from '#/api/ecommerce/product/apis';
import type { ProductVO } from '#/api/ecommerce/product/types';
import { getProductOverviewApi } from '#/api/ecommerce/product-overview';
import { getShopPageApi } from '#/api/ecommerce/shop/apis';
import type { ShopVO } from '#/api/ecommerce/shop/types';
import { getProductPageApi } from '#/api/ec/product/apis';
import type { ProductVO } from '#/api/ec/product/types';
import { getProductOverviewApi } from '#/api/ec/product/overview';
import { getShopPageApi } from '#/api/ec/shop/apis';
import type { ShopVO } from '#/api/ec/shop/types';
import {
applyOverviewDateRangeFromUrl,
buildOverviewRouteQuery,
@@ -1,11 +1,11 @@
<script setup lang="ts">
import type { PromotionFeeTypeVO } from '#/api/ecommerce/promotion-fee-type';
import type { PromotionFeeTypeVO } from '#/api/ec/promotion-fee/type';
import type {
PromotionFeeDTO,
PromotionFeeVO,
} from '#/api/ecommerce/promotion-fee/types';
import type { ProductVO } from '#/api/ecommerce/product/types';
import type { ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/promotion-fee/types';
import type { ProductVO } from '#/api/ec/product/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { computed, nextTick, onMounted, ref, watch } from 'vue';
@@ -27,11 +27,11 @@ import {
import {
createPromotionFeeApi,
updatePromotionFeeApi,
} from '#/api/ecommerce/promotion-fee';
import { getCategoryTreeApi } from '#/api/ecommerce/category';
import { getActivePromotionFeeTypeListApi } from '#/api/ecommerce/promotion-fee-type';
import { getProductPageApi } from '#/api/ecommerce/product';
import { getShopPageApi } from '#/api/ecommerce/shop';
} from '#/api/ec/promotion-fee';
import { getCategoryTreeApi } from '#/api/ec/product/category';
import { getActivePromotionFeeTypeListApi } from '#/api/ec/promotion-fee/type';
import { getProductPageApi } from '#/api/ec/product';
import { getShopPageApi } from '#/api/ec/shop';
defineOptions({ name: 'PromotionFeeFormModal' });
@@ -3,8 +3,8 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
import type {
PromotionFeeDTO,
PromotionFeeVO,
} from '#/api/ecommerce/promotion-fee/types';
import type { ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/promotion-fee/types';
import type { ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, onMounted, ref, watch } from 'vue';
@@ -29,9 +29,9 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
deletePromotionFeeApi,
getPromotionFeePageApi,
} from '#/api/ecommerce/promotion-fee';
import { getShopPageApi } from '#/api/ecommerce/shop/apis';
import { getAllPromotionFeeTypeListApi } from '#/api/ecommerce/promotion-fee-type/apis';
} from '#/api/ec/promotion-fee';
import { getShopPageApi } from '#/api/ec/shop/apis';
import { getAllPromotionFeeTypeListApi } from '#/api/ec/promotion-fee/type/apis';
import PromotionFeeFormModal from './components/PromotionFeeFormModal.vue';
import {
@@ -2,7 +2,7 @@
import type {
PromotionFeeTypeDTO,
PromotionFeeTypeVO,
} from '#/api/ecommerce/promotion-fee-type';
} from '#/api/ec/promotion-fee/type';
import { ref, watch } from 'vue';
@@ -20,7 +20,7 @@ import {
import {
createPromotionFeeTypeApi,
updatePromotionFeeTypeApi,
} from '#/api/ecommerce/promotion-fee-type';
} from '#/api/ec/promotion-fee/type';
const emit = defineEmits<{
cancel: [];
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { PromotionFeeTypeVO } from '#/api/ecommerce/promotion-fee-type';
import type { PromotionFeeTypeVO } from '#/api/ec/promotion-fee/type';
import { computed, ref } from 'vue';
@@ -13,7 +13,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
import {
deletePromotionFeeTypeApi,
getAllPromotionFeeTypeListApi,
} from '#/api/ecommerce/promotion-fee-type';
} from '#/api/ec/promotion-fee/type';
import PromotionFeeTypeFormModal from './components/PromotionFeeTypeFormModal.vue';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { computed, onMounted, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
@@ -8,7 +8,7 @@ import { Page } from '@vben/common-ui';
import { Descriptions, Spin, Tag, message } from 'ant-design-vue';
import { getShopDetailApi } from '#/api/ecommerce/shop';
import { getShopDetailApi } from '#/api/ec/shop';
import {
getPlatformLabel,
getPlatformTagColor,
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { PddOrderSyncVO } from '#/api/ecommerce/pdd/order-sync';
import type { ShopVO } from '#/api/ec/shop/types';
import type { PddOrderSyncVO } from '#/api/channel/pdd/order-sync';
import type { Dayjs } from 'dayjs';
import { computed, onBeforeUnmount, ref } from 'vue';
@@ -35,7 +35,7 @@ import {
resumePddFullSyncTaskApi,
syncPddOrdersIncrementalApi,
togglePddIncrementalSyncApi,
} from '#/api/ecommerce/pdd/order-sync';
} from '#/api/channel/pdd/order-sync';
import { RealtimeSseEvent } from '#/api/notify/sse';
import { useRealtimeStore } from '#/store';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { PddShopInfo } from '#/api/ecommerce/shop/types';
import type { PddShopInfo } from '#/api/ec/shop/types';
import { computed, ref } from 'vue';
@@ -7,7 +7,7 @@ import { useVbenModal } from '@vben/common-ui';
import { Descriptions, Spin, Tag, message } from 'ant-design-vue';
import { getPddShopDetailApi } from '#/api/ecommerce/pdd/shop';
import { getPddShopDetailApi } from '#/api/channel/pdd/shop';
const MERCHANT_TYPE_MAP: Record<number, string> = {
1: '个人',
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopDTO, ShopVO } from '#/api/ec/shop/types';
import { computed, onUnmounted, ref } from 'vue';
@@ -8,8 +8,8 @@ import { createIconifyIcon } from '@vben/icons';
import { Button, Form, Input, message, Select } from 'ant-design-vue';
import { createShopApi, updateShopApi } from '#/api/ecommerce/shop';
import { getPlatformListApi } from '#/api/ecommerce/platform';
import { createShopApi, updateShopApi } from '#/api/ec/shop';
import { getPlatformListApi } from '#/api/ec/platform';
import { uploadFileToOss } from '#/utils/oss-upload';
interface Emits {
@@ -1,8 +1,8 @@
<script lang="ts" setup>
import type { VxeGridProps } from '#/adapter/vxe-table';
import type { PlatformVO } from '#/api/ecommerce/platform/types';
import type { PddOrderSyncVO } from '#/api/ecommerce/pdd/order-sync';
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
import type { PlatformVO } from '#/api/ec/platform/types';
import type { PddOrderSyncVO } from '#/api/channel/pdd/order-sync';
import type { ShopDTO, ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, onMounted, onUnmounted, ref } from 'vue';
@@ -14,10 +14,10 @@ import { Button, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import dayjs from 'dayjs';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getPddAuthorizeUrlApi } from '#/api/ecommerce/pdd/auth';
import { batchPddOrderSyncStatusApi } from '#/api/ecommerce/pdd/order-sync';
import { getPlatformListApi } from '#/api/ecommerce/platform';
import { deleteShopApi, getShopPageApi } from '#/api/ecommerce/shop';
import { getPddAuthorizeUrlApi } from '#/api/channel/pdd/auth';
import { batchPddOrderSyncStatusApi } from '#/api/channel/pdd/order-sync';
import { getPlatformListApi } from '#/api/ec/platform';
import { deleteShopApi, getShopPageApi } from '#/api/ec/shop';
import {
getPlatformLabel,
getPlatformTagColor,
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopDTO, ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopDTO, ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { onMounted, ref } from 'vue';
@@ -19,9 +19,9 @@ import {
Tag,
} from 'ant-design-vue';
import { deleteShopApi, getShopPageApi } from '#/api/ecommerce/shop';
import { getPlatformListApi } from '#/api/ecommerce/platform/apis';
import type { PlatformVO } from '#/api/ecommerce/platform/types';
import { deleteShopApi, getShopPageApi } from '#/api/ec/shop';
import { getPlatformListApi } from '#/api/ec/platform/apis';
import type { PlatformVO } from '#/api/ec/platform/types';
import ShopFormModal from '../list/components/ShopFormModal.vue';
@@ -2,8 +2,8 @@
import type {
ShopMonthlyTargetDTO,
ShopMonthlyTargetVO,
} from '#/api/ecommerce/shop-monthly-target';
import type { ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/shop/monthly-target';
import type { ShopVO } from '#/api/ec/shop/types';
import { computed, nextTick, onMounted, ref, watch } from 'vue';
@@ -19,11 +19,11 @@ import {
} from 'ant-design-vue';
import dayjs from 'dayjs';
import { getShopPageApi } from '#/api/ecommerce/shop';
import { getShopPageApi } from '#/api/ec/shop';
import {
createShopMonthlyTargetApi,
updateShopMonthlyTargetApi,
} from '#/api/ecommerce/shop-monthly-target';
} from '#/api/ec/shop/monthly-target';
defineOptions({ name: 'ShopMonthlyTargetFormModal' });
@@ -3,8 +3,8 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
import type {
ShopMonthlyTargetDTO,
ShopMonthlyTargetVO,
} from '#/api/ecommerce/shop-monthly-target';
import type { ShopVO } from '#/api/ecommerce/shop/types';
} from '#/api/ec/shop/monthly-target';
import type { ShopVO } from '#/api/ec/shop/types';
import type { PageQueryDTO } from '#/types/common';
import { computed, onMounted, ref, watch } from 'vue';
@@ -25,11 +25,11 @@ import {
} from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getShopPageApi } from '#/api/ecommerce/shop/apis';
import { getShopPageApi } from '#/api/ec/shop/apis';
import {
deleteShopMonthlyTargetApi,
getShopMonthlyTargetPageApi,
} from '#/api/ecommerce/shop-monthly-target';
} from '#/api/ec/shop/monthly-target';
import ShopMonthlyTargetFormModal from './components/ShopMonthlyTargetFormModal.vue';
import {
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { formatFeeRatioPercent } from '#/utils/overview-fee-ratio';
import { formatIntCell, formatNumberCell } from '#/utils/overview-table-cells';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { ref, watch } from 'vue';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { createIconifyIcon } from '@vben/icons';
import { useRoute, useRouter } from 'vue-router';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { formatCurrencyZhFromApiOptional } from '#/utils/shop-overview-display';
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import { formatFeeRatioPercent } from '#/utils/overview-fee-ratio';
import {
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import type { ShopVO } from '#/api/ecommerce/shop/types';
import type { ShopVO } from '#/api/ec/shop/types';
import type { Dayjs } from 'dayjs';
import {
@@ -16,7 +16,7 @@ import { Page } from '@vben/common-ui';
import { message, Spin } from 'ant-design-vue';
import dayjs from 'dayjs';
import { getShopOverviewApi, getShopPageApi } from '#/api/ecommerce/shop/apis';
import { getShopOverviewApi, getShopPageApi } from '#/api/ec/shop/apis';
import { exportByPost } from '#/utils/export';
import {
applyOverviewDateRangeFromUrl,