package cn.iocoder.yudao.module.mes.enums.wm;
|
|
import cn.iocoder.yudao.framework.common.core.ArrayValuable;
|
import lombok.AllArgsConstructor;
|
import lombok.Getter;
|
|
import java.util.Arrays;
|
|
/**
|
* MES 生产领料类型枚举
|
*
|
* @author 超级管理员
|
*/
|
@Getter
|
@AllArgsConstructor
|
public enum MesWmProductIssueTypeEnum implements ArrayValuable<Integer> {
|
|
/**
|
* 正常领料:按工单 BOM 常规领用
|
*/
|
NORMAL(1, "正常领料"),
|
/**
|
* 补领辅料:生产过程中发现物料不足,补充领用(需填写补领原因)
|
*/
|
SUPPLEMENT(2, "补领辅料");
|
|
public static final Integer[] ARRAYS = Arrays.stream(values())
|
.map(MesWmProductIssueTypeEnum::getType).toArray(Integer[]::new);
|
|
/**
|
* 类型值
|
*/
|
private final Integer type;
|
/**
|
* 类型名
|
*/
|
private final String name;
|
|
@Override
|
public Integer[] array() {
|
return ARRAYS;
|
}
|
|
}
|