feat(库存入库): 保质期单位默认「月」(AI 解析有条目时仍以解析结果为准)
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

This commit is contained in:
Ubuntu
2026-10-20 21:55:11 +08:00
parent 15b84002f9
commit 38002e0706
+2 -2
View File
@@ -131,7 +131,7 @@ function lineFromRecognized(item: InventoryInboundRecognizedLine): InboundLine {
// 见 src/utils/shelfLife.ts(与 server/src/utils/shelfLife.ts 逐值对拍)
...resolveRecognizedDateFields(item),
shelf_life_value: '',
shelf_life_unit: '',
shelf_life_unit: '月',
storage_zone: '',
origin: item.origin || '',
};
@@ -421,7 +421,7 @@ export const StockInboundPanel: React.FC = () => {
production_date: '',
shelf_life: '',
shelf_life_value: '',
shelf_life_unit: '',
shelf_life_unit: '月',
storage_zone: '',
origin: '',
},