李红攀:V2.0.001小程序的农业溯源

This commit is contained in:
2026-04-23 19:57:52 +08:00
parent 505fda77f0
commit 6f1f32df62
9 changed files with 935 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
export const BATCH_TYPE_LABEL_MAP: Record<string, string> = {
HARVEST: '采收批次',
SORTING: '分拣批次',
PACKING: '装箱批次',
WAREHOUSE: '仓储批次',
SHIPMENT: '发运批次'
}
export const IN_MODE_LABEL_MAP: Record<string, string> = {
BOX: '按箱入库',
PALLET: '按托入库'
}
const toOptions = (labelMap: Record<string, string>) =>
Object.entries(labelMap).map(([value, label]) => ({ label, value }))
export const BATCH_TYPE_OPTIONS = toOptions(BATCH_TYPE_LABEL_MAP)
export const IN_MODE_OPTIONS = toOptions(IN_MODE_LABEL_MAP)