| | |
| | | package cn.iocoder.yudao.module.mes.controller.admin.pro.task.vo; |
| | | |
| | | import cn.iocoder.yudao.framework.excel.core.convert.JsonConvert; |
| | | import cn.idev.excel.annotation.ExcelIgnoreUnannotated; |
| | | import cn.idev.excel.annotation.ExcelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Schema(description = "管理后台 - MES 生产任务 Response VO") |
| | | @Data |
| | | @ExcelIgnoreUnannotated |
| | | public class MesProTaskRespVO { |
| | | |
| | | @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| | |
| | | @Schema(description = "工序编号", example = "1") |
| | | private Long processId; |
| | | |
| | | @Schema(description = "工艺参数模板编号", example = "1") |
| | | private Long paramTemplateId; |
| | | |
| | | @Schema(description = "工序名称", example = "注塑") |
| | | private String processName; |
| | | |
| | |
| | | |
| | | @Schema(description = "不良品数量", example = "2.00") |
| | | private BigDecimal unqualifyQuantity; |
| | | |
| | | @Schema(description = "待报工数量", example = "50.00") |
| | | private BigDecimal pendingQuantity; |
| | | |
| | | @Schema(description = "在途报工数量", example = "20.00") |
| | | private BigDecimal inTransitQuantity; |
| | | |
| | | @Schema(description = "可报工数量", example = "30.00") |
| | | private BigDecimal reportableQuantity; |
| | | |
| | | @Schema(description = "报工完成率(%)", example = "50.00") |
| | | private BigDecimal feedbackRate; |
| | | |
| | | @Schema(description = "调整数量", example = "0") |
| | | private BigDecimal changedQuantity; |
| | |
| | | @Schema(description = "是否质检(派生自工艺路线工序 checkFlag)", example = "true") |
| | | private Boolean checkFlag; |
| | | |
| | | @Schema(description = "是否倒冲(派生自工艺路线工序 backflushFlag)", example = "true") |
| | | private Boolean backflushFlag; |
| | | |
| | | @Schema(description = "备注", example = "备注") |
| | | private String remark; |
| | | |
| | | @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | private LocalDateTime createTime; |
| | | |
| | | @Schema(description = "停工历史记录") |
| | | // 导出 Excel 时不支持 List 字段,这里改用 JsonConvert 转成 JSON 文本,避免导出接口 500 |
| | | @ExcelProperty(value = "停工历史记录", converter = JsonConvert.class) |
| | | private List<MesProTaskPauseRecordRespVO> pauseRecords; |
| | | |
| | | @Schema(description = "指定报工人员 ID 集合") |
| | | @ExcelProperty(value = "指定报工人员ID", converter = JsonConvert.class) |
| | | private List<Long> assigneeUserIds; |
| | | |
| | | @Schema(description = "指定报工人员姓名集合") |
| | | @ExcelProperty(value = "指定报工人员姓名", converter = JsonConvert.class) |
| | | private List<String> assigneeUserNames; |
| | | |
| | | @Schema(description = "是否报工审批") |
| | | private Boolean feedbackApprove; |
| | | } |