| | |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.mdm.flow.constants.FlowConstant; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.time.LocalDate; |
| | | |
| | | @Data |
| | | @Schema(description = "任务派工") |
| | | @Schema(description = "任务计划") |
| | | public class TaskAssignVO { |
| | | @Schema(description = "流程标题") |
| | | private String title; |
| | | @Schema(description = "零组件/图号") |
| | | private String drawingNo; |
| | | @Schema(description = "图号版次/设计版次") |
| | | private String drawingNoEdition; |
| | | @Schema(description = "工序号") |
| | | private String processNo; |
| | | @Schema(description = "工序名称") |
| | | private String processName; |
| | | |
| | | @Schema(description = "产品型号") |
| | | private String productModel; |
| | | @Schema(description = "工序版次") |
| | | private String processEdition; |
| | | |
| | |
| | | @Schema(description = "设备型号") |
| | | private String machineMode; |
| | | |
| | | @Schema(description = "计划锁定时间(天)") |
| | | private Integer planLockDays; |
| | | |
| | | @Schema(description = "计划开工时间") |
| | | private LocalDateTime planStartTime; |
| | | @Schema(description = "主制计划表ID") |
| | | private long producePlanId; |
| | | private LocalDate planStartTime; |
| | | |
| | | @Schema(description = "偏离单号") |
| | | private String deviation; |
| | | @Schema(description = "是否临时流程,值:Y/N") |
| | | private String isTempFlow; |
| | | |
| | | @Schema(description = "任务派工记录表id") |
| | | private Long taskDispatchId; |
| | | |
| | | @Schema(description = "人员职责表id,界面上零件号匹配不上用户指定的") |
| | | private Long producePlanId; |
| | | @Schema(description = "工序唯一码(MES推送)") |
| | | private String operationId; |
| | | @Schema(description = "工单号(MES推送)") |
| | | private String orderNumber; |
| | | @Schema(description = "派工人(手动才有)") |
| | | private String dispatchBy; |
| | | |
| | | @Schema(description = "创建人id") |
| | | private Long createUser; |
| | | /** |
| | | * 是否 未 程序补充流程(临时流程) |
| | | * @return 是否 |
| | | */ |
| | | public boolean isTemporaryFlow(){ |
| | | return FlowConstant.Y.equals(isTempFlow); |
| | | } |
| | | |
| | | /** |
| | | * 是否偏离单 |
| | | * @return 是否 |
| | | */ |
| | | public boolean isDeviationFlow(){ |
| | | return StringUtils.isNotBlank(deviation); |
| | | } |
| | | } |