7 天以前 85156554438bb13930c89072ee0b7fa93192a7fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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 销售出库单状态枚举
 *
 * 对应字典 mes_wm_product_sales_status
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum MesWmProductSalesStatusEnum implements ArrayValuable<Integer> {
 
    /**
     * 草稿
     *
     * 对应 MesWmProductSalesService#createProductSales 方法
     */
    PREPARE(MesOrderStatusConstants.PREPARE, "草稿"),
    /**
     * 待检测(需要 OQC 检验时),对接 qc 模块的 MesQcOqcDO 后续流程
     *
     * 对应 MesWmProductSalesService#submitProductSales 方法
     */
    CONFIRMED(MesOrderStatusConstants.CONFIRMED, "待检测"),
    /**
     * 待拣货
     *
     * 对应方法:
     * 1. 不需要 OQC 检验时:MesWmProductSalesService#submitProductSales 方法
     * 2. 或 OQC 检验完成时:MesWmProductSalesService#confirmProductSales 方法
     */
    APPROVING(MesOrderStatusConstants.APPROVING, "待拣货"),
    /**
     * 待填写运单
     *
     * 对应 MesWmProductSalesService#shippingProductSales 方法
     */
    SHIPPING(10, "待填写运单"), // 10 是一个特殊的状态值,不在 MesOrderStatusConstants 中,单独定义
    /**
     * 待执行出库
     *
     * 对应 MesWmProductSalesService#stockProductSales 方法
     */
    APPROVED(MesOrderStatusConstants.APPROVED, "待执行出库"),
    /**
     * 已完成
     *
     * 对应 MesWmProductSalesService#finishProductSales 方法
     */
    FINISHED(MesOrderStatusConstants.FINISHED, "已完成"),
    /**
     * 已取消
     *
     * 对应 MesWmProductSalesService#cancelProductSales 方法
     */
    CANCELED(MesOrderStatusConstants.CANCELLED, "已取消");
 
    public static final Integer[] ARRAYS = Arrays.stream(values()).map(MesWmProductSalesStatusEnum::getStatus).toArray(Integer[]::new);
 
    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;
 
    @Override
    public Integer[] array() {
        return ARRAYS;
    }
 
}