feat:组盘PC

This commit is contained in:
2026-07-21 14:57:03 +08:00
parent 736618cefa
commit 6380b93774
4 changed files with 29 additions and 3 deletions

View File

@@ -29,6 +29,8 @@ import cn.code.nl.module.wms.controller.admin.groupplate.vo.*;
import cn.code.nl.module.wms.dal.dataobject.groupplate.GroupPlateDO; import cn.code.nl.module.wms.dal.dataobject.groupplate.GroupPlateDO;
import cn.code.nl.module.wms.service.groupplate.GroupPlateService; import cn.code.nl.module.wms.service.groupplate.GroupPlateService;
import org.dromara.core.trans.anno.TransMethodResult;
@Tag(name = "管理后台 - 组盘记录") @Tag(name = "管理后台 - 组盘记录")
@RestController @RestController
@RequestMapping("/wms/group-plate") @RequestMapping("/wms/group-plate")
@@ -82,6 +84,7 @@ public class GroupPlateController {
@GetMapping("/page") @GetMapping("/page")
@Operation(summary = "获得组盘记录分页") @Operation(summary = "获得组盘记录分页")
@TransMethodResult
@PreAuthorize("@ss.hasPermission('wms:group-plate:query')") @PreAuthorize("@ss.hasPermission('wms:group-plate:query')")
public CommonResult<PageResult<GroupPlateRespVO>> getGroupPlatePage(@Valid GroupPlatePageReqVO pageReqVO) { public CommonResult<PageResult<GroupPlateRespVO>> getGroupPlatePage(@Valid GroupPlatePageReqVO pageReqVO) {
PageResult<GroupPlateDO> pageResult = groupPlateService.getGroupPlatePage(pageReqVO); PageResult<GroupPlateDO> pageResult = groupPlateService.getGroupPlatePage(pageReqVO);

View File

@@ -1,5 +1,7 @@
package cn.code.nl.module.wms.controller.admin.groupplate.vo; package cn.code.nl.module.wms.controller.admin.groupplate.vo;
import cn.code.nl.module.system.api.user.AdminUserApi;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*; import lombok.*;
import java.util.*; import java.util.*;
@@ -8,10 +10,17 @@ import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import cn.idev.excel.annotation.*; import cn.idev.excel.annotation.*;
import org.dromara.core.trans.anno.Trans;
import org.dromara.core.trans.constant.TransType;
import org.dromara.core.trans.vo.VO;
@Schema(description = "管理后台 - 组盘记录 Response VO") @Schema(description = "管理后台 - 组盘记录 Response VO")
@Data @Data
@ExcelIgnoreUnannotated @ExcelIgnoreUnannotated
public class GroupPlateRespVO { public class GroupPlateRespVO implements VO {
@TableId
private Long groupId;
@Schema(description = "载具编码") @Schema(description = "载具编码")
@ExcelProperty("载具编码") @ExcelProperty("载具编码")
@@ -71,18 +80,26 @@ public class GroupPlateRespVO {
@Schema(description = "创建者") @Schema(description = "创建者")
@ExcelProperty("创建者") @ExcelProperty("创建者")
@Trans(type = TransType.AUTO_TRANS, key = AdminUserApi.PREFIX, fields = "nickname", ref = "creatorName")
private String creator; private String creator;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间") @ExcelProperty("创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "创建者名称")
private String creatorName;
@Schema(description = "更新者") @Schema(description = "更新者")
@ExcelProperty("更新者") @ExcelProperty("更新者")
@Trans(type = TransType.AUTO_TRANS, key = AdminUserApi.PREFIX, fields = "nickname", ref = "updaterName")
private String updater; private String updater;
@Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED) @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("更新时间") @ExcelProperty("更新时间")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@Schema(description = "更新者名称")
private String updaterName;
} }

View File

@@ -20,6 +20,8 @@ export namespace WmsGroupPlateApi {
extDtlCode: string; // 来源单据明细号 extDtlCode: string; // 来源单据明细号
md5: string; // md5 md5: string; // md5
materialCode?: string; // 物料编码 materialCode?: string; // 物料编码
creatorName?: string; // 创建者名称
updaterName?: string; // 更新者名称
} }
} }

View File

@@ -272,6 +272,10 @@ export function useGridColumns(): VxeTableGridOptions<WmsGroupPlateApi.GroupPlat
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 120, minWidth: 120,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.WMS_GROUP_PLATE_STATUS },
},
}, },
{ {
field: 'materialId', field: 'materialId',
@@ -324,7 +328,7 @@ export function useGridColumns(): VxeTableGridOptions<WmsGroupPlateApi.GroupPlat
minWidth: 120, minWidth: 120,
}, },
{ {
field: 'creator', field: 'creatorName',
title: '创建者', title: '创建者',
minWidth: 120, minWidth: 120,
}, },
@@ -335,7 +339,7 @@ export function useGridColumns(): VxeTableGridOptions<WmsGroupPlateApi.GroupPlat
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'updater', field: 'updaterName',
title: '更新者', title: '更新者',
minWidth: 120, minWidth: 120,
}, },