From d76831c2432a58c667fe964dd6ed639c28d57f2d Mon Sep 17 00:00:00 2001 From: zxy Date: Thu, 14 May 2026 17:25:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(biz):=20=E6=B7=BB=E5=8A=A0=E6=88=90?= =?UTF-8?q?=E5=93=81=E5=BA=93=E5=AD=98=E5=92=8C=E9=94=80=E5=94=AE=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 + .../order/vo/OrderItemWithOrderRespVO.java | 185 ++++++++++++++++++ .../biz/saledelivery/OrderSelectDialog.vue | 21 +- 3 files changed, 202 insertions(+), 7 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 mes-module-chemmes/mes-module-chemmes-biz/src/main/java/com/ningxia/yunxi/chemmes/module/biz/controller/admin/order/vo/OrderItemWithOrderRespVO.java diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7b016a8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.compile.nullAnalysis.mode": "automatic" +} \ No newline at end of file diff --git a/mes-module-chemmes/mes-module-chemmes-biz/src/main/java/com/ningxia/yunxi/chemmes/module/biz/controller/admin/order/vo/OrderItemWithOrderRespVO.java b/mes-module-chemmes/mes-module-chemmes-biz/src/main/java/com/ningxia/yunxi/chemmes/module/biz/controller/admin/order/vo/OrderItemWithOrderRespVO.java new file mode 100644 index 0000000..be4a71f --- /dev/null +++ b/mes-module-chemmes/mes-module-chemmes-biz/src/main/java/com/ningxia/yunxi/chemmes/module/biz/controller/admin/order/vo/OrderItemWithOrderRespVO.java @@ -0,0 +1,185 @@ +package com.ningxia.yunxi.chemmes.module.biz.controller.admin.order.vo; + +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; +import com.alibaba.excel.annotation.ExcelProperty; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.math.BigDecimal; +import java.time.LocalDate; +import java.time.LocalDateTime; + +@Schema(description = "管理后台 - 销售订单子项关联主表 Response VO") +@Data +@ExcelIgnoreUnannotated +public class OrderItemWithOrderRespVO { + + // ==================== 子表字段 (tso_order_item) ==================== + + @Schema(description = "子表自增字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "26357") + @ExcelProperty("子表ID") + private Integer itemId; + + @Schema(description = "销售订单主表id", example = "9457") + @ExcelProperty("销售订单主表id") + private Integer saleOrdId; + + @Schema(description = "物料id", example = "9604") + @ExcelProperty("物料id") + private Integer materialId; + + @Schema(description = "物料编码") + @ExcelProperty("物料编码") + private String materialCode; + + @Schema(description = "物料名称", example = "王五") + @ExcelProperty("物料名称") + private String materialName; + + @Schema(description = "规格型号") + @ExcelProperty("规格型号") + private String spec; + + @Schema(description = "单位") + @ExcelProperty("单位") + private String unit; + + @Schema(description = "订单数量") + @ExcelProperty("订单数量") + private BigDecimal ordQty; + + @Schema(description = "含税单价") + @ExcelProperty("含税单价") + private BigDecimal priceTax; + + @Schema(description = "用途(1 用途1 2 用途2 3 用途3)") + @ExcelProperty("用途") + private String materialUse; + + @Schema(description = "已发货数量") + @ExcelProperty("已发货数量") + private BigDecimal deliveriedQty; + + @Schema(description = "备注", example = "随便") + @ExcelProperty("备注") + private String itemRemark; + + @Schema(description = "已转生产数量") + @ExcelProperty("已转生产数量") + private BigDecimal produceQty; + + @Schema(description = "行状态(0 正常 1部分转产 2-全部转产 9关闭)", example = "2") + @ExcelProperty("行状态") + private String ordItemStatus; + + @Schema(description = "子表创建时间", requiredMode = Schema.RequiredMode.REQUIRED) + @ExcelProperty("子表创建时间") + private LocalDateTime itemCreateTime; + + // ==================== 主表字段 (tso_order) ==================== + + @Schema(description = "销售订单编号(SO+年份+月份+3位流水号)") + @ExcelProperty("销售订单编号") + private String saleOrdNo; + + @Schema(description = "下单日期") + @ExcelProperty("下单日期") + private LocalDate ordDate; + + @Schema(description = "客户id", example = "23476") + @ExcelProperty("客户id") + private Integer custId; + + @Schema(description = "客户名称", example = "王五") + @ExcelProperty("客户名称") + private String custName; + + @Schema(description = "联系人") + @ExcelProperty("联系人") + private String contact; + + @Schema(description = "联系电话") + @ExcelProperty("联系电话") + private String conPhone; + + @Schema(description = "业务员id") + @ExcelProperty("业务员id") + private Long saleMan; + + @Schema(description = "业务部门id", example = "11778") + @ExcelProperty("业务部门id") + private Long saleDeptId; + + @Schema(description = "订单类型(1 备库订单 2 销售订单)", example = "1") + @ExcelProperty("订单类型") + private String ordType; + + @Schema(description = "付款方式(1 款到发货 2月结 3承兑)") + @ExcelProperty("付款方式") + private String paymentTerms; + + @Schema(description = "税率") + @ExcelProperty("税率") + private BigDecimal taxRate; + + @Schema(description = "含税总金额") + @ExcelProperty("含税总金额") + private BigDecimal totalAmount; + + @Schema(description = "要求交货日期") + @ExcelProperty("要求交货日期") + private LocalDate reqDeliveryDate; + + @Schema(description = "是否急单(0 是 1 否)") + @ExcelProperty("是否急单") + private String isUrgent; + + @Schema(description = "是否变更(0 是 1否)") + @ExcelProperty("是否变更") + private String isChange; + + @Schema(description = "订单状态(1 已创建 2 已送审 3 已审批 5 打回 8已关闭9作废 )", example = "2") + @ExcelProperty("订单状态") + private String ordStatus; + + @Schema(description = "合同编号") + @ExcelProperty("合同编号") + private String contractNo; + + @Schema(description = "包装要求") + @ExcelProperty("包装要求") + private String packReq; + + @Schema(description = "质量要求") + @ExcelProperty("质量要求") + private String qualityReq; + + @Schema(description = "主表备注", example = "你猜") + @ExcelProperty("主表备注") + private String orderRemark; + + @Schema(description = "审核人id", example = "17447") + @ExcelProperty("审核人id") + private String auditId; + + @Schema(description = "审核时间") + @ExcelProperty("审核时间") + private LocalDateTime auditTime; + + @Schema(description = "附件信息") + @ExcelProperty("附件信息") + private String attFile; + + @Schema(description = "生产状态(0 正常 1 部分转生产 2 全部转生产)", example = "1") + @ExcelProperty("生产状态") + private String proStatus; + + @Schema(description = "发货状态(1 未发货 2 部分发货 3 全部发货)", example = "2") + @ExcelProperty("发货状态") + private String deliveryStatus; + + @Schema(description = "主表创建时间") + @ExcelProperty("主表创建时间") + private LocalDateTime orderCreateTime; + +} diff --git a/mes-ui/mes-ui-admin-vue3/src/views/biz/saledelivery/OrderSelectDialog.vue b/mes-ui/mes-ui-admin-vue3/src/views/biz/saledelivery/OrderSelectDialog.vue index a1fad44..2af171a 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/biz/saledelivery/OrderSelectDialog.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/biz/saledelivery/OrderSelectDialog.vue @@ -39,25 +39,32 @@ > - + - - + + - - - + + + - + + + + + +