feat(库存入库): 保质期单位默认「月」(AI 解析有条目时仍以解析结果为准)
This commit is contained in:
@@ -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: '',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user