diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/CreateOrderDTO.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/CreateOrderDTO.java index e0b34658..013848ab 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/CreateOrderDTO.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/CreateOrderDTO.java @@ -42,12 +42,6 @@ public class CreateOrderDTO { @NotNull(message = "商家实收金额不能为空") private BigDecimal receivedAmount; - /** - * 运费 - */ - @Schema(description = "运费", example = "10.00") - private BigDecimal shippingFee; - /** * 下单时间 */ @@ -102,11 +96,4 @@ public class CreateOrderDTO { @Schema(description = "成本价", example = "8000.00", required = true) @NotNull(message = "成本价不能为空") private BigDecimal costPrice; - - /** - * 成本小计 - */ - @Schema(description = "成本小计", example = "8000.00", required = true) - @NotNull(message = "成本小计不能为空") - private BigDecimal costTotal; } diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/UpdateOrderDTO.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/UpdateOrderDTO.java index a3905dc4..59dd7958 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/UpdateOrderDTO.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/dto/order/UpdateOrderDTO.java @@ -40,12 +40,6 @@ public class UpdateOrderDTO { @NotNull(message = "商家实收金额不能为空") private BigDecimal receivedAmount; - /** - * 运费 - */ - @Schema(description = "运费", example = "10.00") - private BigDecimal shippingFee; - /** * 下单时间 */ @@ -94,10 +88,4 @@ public class UpdateOrderDTO { */ @Schema(description = "成本价", example = "8000.00") private BigDecimal costPrice; - - /** - * 成本小计 - */ - @Schema(description = "成本小计", example = "8000.00") - private BigDecimal costTotal; } diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/po/OrderPO.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/po/OrderPO.java index da572a42..130cbbaa 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/po/OrderPO.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/po/OrderPO.java @@ -87,24 +87,12 @@ public class OrderPO { @TableField("cost_price") private BigDecimal costPrice; - /** - * 成本小计 - */ - @TableField("cost_total") - private BigDecimal costTotal; - /** * 商家实收金额 */ @TableField("received_amount") private BigDecimal receivedAmount; - /** - * 运费 - */ - @TableField("shipping_fee") - private BigDecimal shippingFee; - /** * 下单时间 */ diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/vo/OrderVO.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/vo/OrderVO.java index d3ad2334..e2bf1a4b 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/vo/OrderVO.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/model/vo/OrderVO.java @@ -61,12 +61,6 @@ public class OrderVO { @Schema(description = "商家实收金额", example = "9999.00") private BigDecimal receivedAmount; - /** - * 运费 - */ - @Schema(description = "运费", example = "10.00") - private BigDecimal shippingFee; - /** * 下单时间 */ @@ -138,10 +132,4 @@ public class OrderVO { */ @Schema(description = "成本价", example = "8000.00") private BigDecimal costPrice; - - /** - * 成本小计 - */ - @Schema(description = "成本小计", example = "8000.00") - private BigDecimal costTotal; } diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderServiceImpl.java b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderServiceImpl.java index d1faf180..7cd36a43 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderServiceImpl.java +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/modules/ecom/service/impl/OrderServiceImpl.java @@ -106,9 +106,7 @@ public class OrderServiceImpl extends ServiceImpl implemen order.setQuantity(createOrderDTO.getQuantity()); order.setUnitPrice(createOrderDTO.getUnitPrice()); order.setCostPrice(createOrderDTO.getCostPrice()); - order.setCostTotal(createOrderDTO.getCostTotal()); order.setReceivedAmount(createOrderDTO.getReceivedAmount()); - order.setShippingFee(createOrderDTO.getShippingFee() != null ? createOrderDTO.getShippingFee() : java.math.BigDecimal.ZERO); order.setOrderDate(createOrderDTO.getOrderDate()); order.setCreateBy(currentUserContext.getCurrentUserId()); diff --git a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/sql/ec_design.sql b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/sql/ec_design.sql index d6bb0f95..3ee01c20 100644 --- a/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/sql/ec_design.sql +++ b/ecom-dmb-backend/src/main/java/top/xyquan/ecomdmbbackend/sql/ec_design.sql @@ -96,18 +96,16 @@ CREATE TABLE `ec_order` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '订单ID', `company_id` BIGINT UNSIGNED NOT NULL COMMENT '公司ID', `shop_id` BIGINT UNSIGNED NOT NULL COMMENT '店铺ID', - `platform_order_no` VARCHAR(100) DEFAULT NULL COMMENT '平台订单号', - `status_id` BIGINT UNSIGNED NOT NULL COMMENT '订单状态ID', `product_id` BIGINT UNSIGNED NOT NULL COMMENT '商品ID', `product_spec_id` BIGINT UNSIGNED DEFAULT NULL COMMENT '商品规格ID', + `status_id` BIGINT UNSIGNED NOT NULL COMMENT '订单状态ID', + `platform_order_no` VARCHAR(100) DEFAULT NULL COMMENT '平台订单号', `product_name` VARCHAR(255) NOT NULL COMMENT '商品名称(冗余存储)', `spec_name` VARCHAR(200) DEFAULT NULL COMMENT '规格名称(冗余存储)', + `received_amount` DECIMAL(10,2) NOT NULL DEFAULT 0.00 COMMENT '商家实收金额', `quantity` INT NOT NULL DEFAULT 1 COMMENT '数量', `unit_price` DECIMAL(10,2) NOT NULL DEFAULT 0.00 COMMENT '销售单价', `cost_price` DECIMAL(10,2) NOT NULL DEFAULT 0.00 COMMENT '成本价(下单时快照)', - `cost_total` DECIMAL(10,2) NOT NULL DEFAULT 0.00 COMMENT '成本小计', - `received_amount` DECIMAL(10,2) NOT NULL DEFAULT 0.00 COMMENT '商家实收金额', - `shipping_fee` DECIMAL(10,2) NOT NULL DEFAULT 0.00 COMMENT '运费', `order_date` TIMESTAMP NOT NULL COMMENT '下单时间', `create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.dto.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.dto.ts index f69ce79b..803d7783 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.dto.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.dto.ts @@ -13,8 +13,6 @@ export namespace OrderDTO { statusId: number; /** 商家实收金额 */ receivedAmount: number; - /** 运费 */ - shippingFee?: number; /** 下单时间 */ orderDate: string; /** 商品ID */ @@ -31,8 +29,6 @@ export namespace OrderDTO { unitPrice: number; /** 成本价(下单时快照) */ costPrice: number; - /** 成本小计 */ - costTotal: number; } /** 更新订单参数 */ @@ -45,8 +41,6 @@ export namespace OrderDTO { statusId?: number; /** 商家实收金额 */ receivedAmount: number; - /** 运费 */ - shippingFee?: number; /** 下单时间 */ orderDate: string; /** 商品ID */ @@ -63,22 +57,24 @@ export namespace OrderDTO { unitPrice?: number; /** 成本价(下单时快照) */ costPrice?: number; - /** 成本小计 */ - costTotal?: number; } /** 订单过滤条件 */ export interface Filters { /** 店铺ID */ shopId?: number; - /** 商品规格ID */ - productSpecId?: number; + /** 平台订单号(模糊查询) */ + platformOrderNo?: string; /** 订单状态ID */ - orderStatusId?: number; - /** 订单编号(模糊查询) */ - orderNumber?: string; - /** 商品名称(模糊查询) */ - productName?: string; + statusId?: number; + /** 实收金额范围-最小值 */ + minReceivedAmount?: number; + /** 实收金额范围-最大值 */ + maxReceivedAmount?: number; + /** 下单时间范围-开始时间 */ + startOrderDate?: string; + /** 下单时间范围-结束时间 */ + endOrderDate?: string; } /** 批量导入订单参数 */ diff --git a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.vo.ts b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.vo.ts index cf57a228..3c0ef775 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.vo.ts +++ b/ecom-dmb-frontend/apps/web-antd/src/api/ecommerce/order/types/types.vo.ts @@ -21,8 +21,6 @@ export namespace OrderVO { statusName: string; /** 商家实收金额 */ receivedAmount: number; - /** 运费 */ - shippingFee: number; /** 下单时间 */ orderDate: string; /** 创建时间 */ @@ -47,8 +45,6 @@ export namespace OrderVO { unitPrice: number; /** 成本价(下单时快照) */ costPrice: number; - /** 成本小计 */ - costTotal: number; } } diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/EntityCreationModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/EntityCreationModal.vue deleted file mode 100644 index 9d41f6ad..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/EntityCreationModal.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FieldMapping.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FieldMapping.vue deleted file mode 100644 index 829201e8..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FieldMapping.vue +++ /dev/null @@ -1,220 +0,0 @@ - - - - - diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FieldMappingModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FieldMappingModal.vue deleted file mode 100644 index 0096cdf1..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FieldMappingModal.vue +++ /dev/null @@ -1,498 +0,0 @@ - - - - - diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FileUploadArea.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FileUploadArea.vue index 8901262b..67c9f661 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FileUploadArea.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/FileUploadArea.vue @@ -3,14 +3,24 @@ import { ref } from 'vue'; import { createIconifyIcon } from '@vben/icons'; -import { Button, message } from 'ant-design-vue'; +import { Button, message, Spin } from 'ant-design-vue'; defineOptions({ name: 'FileUploadArea' }); +const props = withDefaults( + defineProps<{ + loading?: boolean; + }>(), + { + loading: false, + }, +); + const emit = defineEmits(); // 创建图标组件 const UploadIcon = createIconifyIcon('lucide:upload'); +const LoaderIcon = createIconifyIcon('lucide:loader-2'); // Emits interface Emits { @@ -40,6 +50,7 @@ const validateFile = (file: File): boolean => { // 处理文件 const processFile = (file: File) => { + if (props.loading) return; if (!validateFile(file)) return; emit('fileSelected', file); }; @@ -88,31 +99,61 @@ const handleFileSelect = (e: Event) => { diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/MatchSwitchModal.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/MatchSwitchModal.vue deleted file mode 100644 index 03e71fc1..00000000 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/components/MatchSwitchModal.vue +++ /dev/null @@ -1,446 +0,0 @@ - - - - - diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/index.vue index 5b6e8478..579da817 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/ecommerce/data-import/index.vue @@ -1,157 +1,65 @@ diff --git a/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue b/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue index e43b0420..534fdb18 100644 --- a/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue +++ b/ecom-dmb-frontend/apps/web-antd/src/views/shop/order/index.vue @@ -35,7 +35,6 @@ const orderStatusOptions = ref<{ label: string; value: number }[]>([]); // 搜索表单 const searchForm = ref({ platformOrderNo: '', - productName: '', shopId: undefined as number | undefined, statusId: undefined as number | undefined, }); @@ -75,11 +74,6 @@ const gridOptions: VxeGridProps = { minWidth: 'auto', slots: { default: 'receivedAmount' }, }, - { - title: '运费', - minWidth: 'auto', - slots: { default: 'shippingFee' }, - }, { title: '订单状态', minWidth: 'auto', @@ -146,10 +140,9 @@ const gridOptions: VxeGridProps = { page: page.currentPage, pageSize: page.pageSize, filters: { - orderNumber: searchForm.value.platformOrderNo || undefined, - productName: searchForm.value.productName || undefined, + platformOrderNo: searchForm.value.platformOrderNo || undefined, shopId: searchForm.value.shopId, - orderStatusId: searchForm.value.statusId, + statusId: searchForm.value.statusId, }, }; const data = await getOrderPageApi(params); @@ -183,14 +176,6 @@ const formOptions = computed(() => ({ fieldName: 'platformOrderNo', label: '平台订单号', }, - { - component: 'Input', - componentProps: { - placeholder: '请输入商品名称', - }, - fieldName: 'productName', - label: '商品名称', - }, { component: 'Select', componentProps: { @@ -349,13 +334,6 @@ onMounted(async () => { - - -