Commit Graph
2 Commits
Author SHA1 Message Date
雨天andCursor e3ae7ee6e7 feat(库存入库): 按行入库 + 保质期年/月/日选择 + 弹层抬层
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
小程序识别结果逐行入库;保质期拆数值与单位(AI 三选一或人手选)落库原文;选择商品弹层 root-portal 防 tab 遮挡,并预填 AI 品名。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-15 10:43:47 +08:00
雨天 33f2f7b75a feat(库存): 修改弹窗改录保质期,有效期由生产日期+保质期派生
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
新增 inventory.shelf_life VARCHAR(32)(迁移 20261042,遍历 public/tenant_template/所有 tenant_*),存保质期原文(7天/6个月/1年)。

库存管理「修改」不再手填有效期:只要动了保质期或生产日期,就用 deriveExpiryDate 重算 expiry_date(推不出则清空)。解析与推算提到 server/src/utils/shelfLife.ts 与入库链路共用(月=30天、年=360天)。

入库链路(batchStockInboundRows)随行落 shelf_life 原文(原先算完即弃);列表行映射补 shelf_life;弹窗字段与三语文案同步。不做历史回填。
2026-10-13 13:42:15 +08:00