1
This commit is contained in:
@@ -2,7 +2,11 @@ package com.baiyue.lastleg.model;
|
||||
|
||||
/** Standard main-process statuses for a last-leg order. */
|
||||
public enum LastlegOrderStatus {
|
||||
DRAFT("草稿"),
|
||||
PENDING_REVIEW("待审核"),
|
||||
APPROVED("审核通过"),
|
||||
DESTINATION_ASSIGNED("已分配目的仓"),
|
||||
INBOUND_PLANNED("已生成入库计划"),
|
||||
INBOUND_MEASURING("入库测量中"),
|
||||
PENDING_ASSIGNMENT("待分配"),
|
||||
PENDING_INBOUND("待入库"),
|
||||
@@ -16,6 +20,7 @@ public enum LastlegOrderStatus {
|
||||
PARTIALLY_RECEIVED("部分收货"),
|
||||
RECEIVED("已收货"),
|
||||
IN_TRANSIT("运输中"),
|
||||
PROCESSING("处理中"),
|
||||
COMPLETED("已完成"),
|
||||
CANCELLED("已取消"),
|
||||
PENDING_DELIVERY("待派送"),
|
||||
@@ -31,4 +36,13 @@ public enum LastlegOrderStatus {
|
||||
public String label() {
|
||||
return label;
|
||||
}
|
||||
|
||||
public static String labelOf(String status) {
|
||||
if (status == null || status.isBlank()) return status;
|
||||
try {
|
||||
return valueOf(status).label();
|
||||
} catch (IllegalArgumentException ignored) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user