Files
klp-mono/apps/hand-factory/constants/wms.js
2025-10-27 13:21:43 +08:00

29 lines
809 B
JavaScript
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.

// 二维码状态枚举(含义显性化)
export const CODE_STATUS = {
UNUSED: 0, // 未使用(初始状态)
IN_STOCK: 1, // 已入库(仅入库后)
OUT_STOCK: 2 // 已出库(最终状态,不可操作)
};
// IO类型枚举与后端统一避免拼写错误
export const IO_TYPE = {
IN: 'in', // 入库
OUT: 'out', // 出库
TRANSFER: 'transfer', // 移库
WITHDRAW: 'withdraw' // 退库
};
// IO类型对应的中文文案统一格式化来源
export const IO_TYPE_LABEL = {
[IO_TYPE.IN]: '入库',
[IO_TYPE.OUT]: '出库',
[IO_TYPE.TRANSFER]: '移库',
[IO_TYPE.WITHDRAW]: '退库'
};
// 物品类型对应的中文文案
export const ITEM_TYPE_LABEL = {
'raw_material': '原材料',
'semi': '半成品',
'product': '产品'
};