Files
assets/consts/stock/inventory_detail_status.go
2026-03-18 10:18:03 +08:00

30 lines
777 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package stock
// InventoryDetailStatus 库存盘点明细状态枚举
type InventoryDetailStatus int
const (
InventoryDetailStatusPending InventoryDetailStatus = 1 // 待盘点(创建时默认)
InventoryDetailStatusCompleted InventoryDetailStatus = 2 // 已完成Excel导入后
)
// GetAllInventoryDetailStatuses 获取所有明细状态
func GetAllInventoryDetailStatuses() []InventoryDetailStatus {
return []InventoryDetailStatus{
InventoryDetailStatusPending,
InventoryDetailStatusCompleted,
}
}
// String 获取明细状态字符串表示
func (i InventoryDetailStatus) String() string {
switch i {
case InventoryDetailStatusPending:
return "待盘点"
case InventoryDetailStatusCompleted:
return "已完成"
default:
return "未知"
}
}