package cn.iocoder.yudao.module.mes.enums.wm;
|
|
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
|
import cn.iocoder.yudao.module.mes.enums.MesOrderStatusConstants;
|
import lombok.AllArgsConstructor;
|
import lombok.Getter;
|
|
import java.util.Arrays;
|
|
/**
|
* MES 盘点任务状态枚举
|
*
|
* @author 芋道源码
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum MesWmStockTakingTaskStatusEnum implements ArrayValuable<Integer> {
|
|
/**
|
* 草稿
|
*
|
* 对应 MesWmStockTakingTaskService#createStockTakingTask 方法
|
*/
|
PREPARE(MesOrderStatusConstants.PREPARE, "草稿"),
|
/**
|
* 审批中
|
*
|
* 对应 MesWmStockTakingTaskService#submitStockTakingTask 方法
|
*/
|
APPROVING(MesOrderStatusConstants.APPROVING, "审批中"),
|
/**
|
* 已完成
|
*
|
* 对应 MesWmStockTakingTaskService#finishStockTakingTask 方法
|
*/
|
FINISHED(MesOrderStatusConstants.FINISHED, "已完成"),
|
/**
|
* 已取消
|
*
|
* 对应 MesWmStockTakingTaskService#cancelStockTakingTask 方法
|
*/
|
CANCELED(MesOrderStatusConstants.CANCELLED, "已取消");
|
|
public static final Integer[] ARRAYS = Arrays.stream(values())
|
.map(MesWmStockTakingTaskStatusEnum::getStatus).toArray(Integer[]::new);
|
|
/**
|
* 状态
|
*/
|
private final Integer status;
|
/**
|
* 状态名称
|
*/
|
private final String name;
|
|
@Override
|
public Integer[] array() {
|
return ARRAYS;
|
}
|
|
}
|