雨天
|
19a964ccde
|
Web验收拍照识别 + 修上传失败
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
① Web 验收拍照/拖入后自动 AI 识别(复用库存入库识别,预填
规格/生产日期/保质期/产地,只补空、切单丢弃过期响应,零新增文案)。
② 修「拍照后上传失败」:根因是照片 dataURL 内联在提交体,而全局
express.json 仅 2mb 且照片不降尺寸/质量 0.92 ⇒ 大图必 413。
甲:照片先降尺寸再画水印(≤1600px / q0.8,对齐小程序);
丙:仅把 /api/workflow/inspection/submit 体上限放宽到 20mb。
③ 小程序逐张上传单张失败不中断整批 + 汇总提示。
新增契约测试;门禁与全量回归对基线。
|
2026-10-16 18:15:08 +08:00 |
|
雨天
|
e86c6f58de
|
订单入库拍照: 免拍照也识别 + 每批9张
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
跟进开发者「可以」:① 识别触发条件由 row.photoRequired && photoCount>0 改为
只看 photoCount>0 ⇒ 免拍照行拍照后同样走识别预填(截图那两行正是免拍照);
② wx.chooseImage count 3 → 9(微信单次上限)。
不改上传/门槛/入库写路径/文案;停用的 resetAiResult 未动。
契约测试补「触发不再含 photoRequired + count 9」断言,设计文档升 v2。
|
2026-10-16 18:04:36 +08:00 |
|
雨天
|
ae818d14f7
|
订单入库拍照: 多拍一次识别全部照片
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
小程序订单入库「拍照」原来 count:3 可多选,但 uploadPhoto 每张都覆盖单一
缓存 ⇒ AI 只读最后一张(不同角度照片信息分散时其余白拍)。现新增本批 base64
数组,一次提交全部照片给 recognizeStockInboundLines,结果跨行按字段合并
(规格/产地/生产日期取第一个非空、保质期取第一个可解析的)后仍只补空。
不改上传/门槛/入库写路径/文案,count 仍 3/次;免拍照行仍不自动识别
(触发条件 photoRequired,待裁决)。
同步 inspectionInboundFields 契约测试里钉住「单图」的两处断言。
|
2026-10-16 18:01:26 +08:00 |
|
雨天
|
65a6fdce20
|
订单入库: 区域/产月选择器做成「选择框」(加边框与 ▾)
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
开发者:「区域这块要做得像一个选择框,当前还以为是纯文字」。.rate-pick 此前无边框/背景(与旁边实收 .r2-field 的灰底框不一致)⇒ 补 边框+圆角+灰底+width:100%,并在 区域/产月 后加 ▾ 箭头。
|
2026-10-16 17:43:12 +08:00 |
|
雨天
|
de9be9e398
|
订单入库: 修保质期单位选择器为空(template 需显式传 shelfLifeUnits)
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
卡片是 WXML <template>,只能看到调用处 data= 传入的变量,组件 data 里的 shelfLifeUnits 进不去 ⇒ 单位选择器弹出来是空的。两处 <template is="inboundCard"> 的 data 补上 shelfLifeUnits;契约测试加断言钉住(两处都要带)。
|
2026-10-16 17:42:26 +08:00 |
|
雨天
|
d938246e5c
|
订单入库: 保质期改为数值输入 + 年/月/日 单位选择
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
开发者:「保质期应该是一个数字输入框加一个年月日选择」(参考库存入库)⇒ 复用 miniprogram/utils/shelfLife.js:SHELF_LIFE_UNITS / applyShelfLifeFromAi / shelfLifeTextFromLine;提交时合成原文(如 6个月)落 inventory.shelf_life。识别预填也改为数值+单位。
|
2026-10-16 17:41:19 +08:00 |
|
雨天
|
deeaf2c3d5
|
订单入库: 补规格/生产日期/保质期/产地 + 拍照改识别 + 去 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
开发者:入库要填规格(商品有就带过去)/生产日期/保质期/生产地区,让仓库侧数据全;「拍照鉴别是否合格」去掉但代码别删;照片改为识别商品信息(复用库存入库那套);结果默认为合格、前端隐式。
- 卡片新增 card-r3:规格/生产日期/保质期/产地(选填);规格由商品库 skus.spec 预填(列表带出)
- 拍照改走 recognizeStockInboundLines(/mobile/inventory/recognize-lines)预填四字段(只补空)
- 去掉 AI 判定:不再调 analyzeInspectionQuality(代码/prompt 保留);去掉 ai-verdict 与结果 picker;移除 !aiDone 入库闸门
- 入库写 inventory.shelf_life + expiry_date(deriveExpiryDate);人工改过的规格/产地才回写 product_catalog.spec/skus.origin(applyArchiveWriteback,同事务)
- 新增契约测试 inspectionInboundFields
注:『合格才入库/须拍照/退回』门槛未动;SQL 无迁移(inventory.shelf_life/expiry_date 既有列)。
|
2026-10-16 17:37:02 +08:00 |
|
雨天
|
d3e8cdfe0e
|
订单入库: 批次报告上传把「拍照」「相册」拆开
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
动作菜单原为「拍照/相册」合并项,改为三项分开:拍照 / 相册 / 聊天文件(PDF)。pickReportImages 按来源传 sourceType(camera / album),相册仍可多选;附契约断言与设计文档更新。
|
2026-10-16 15:23:20 +08:00 |
|
雨天
|
6597f58ac8
|
订单入库: 免拍照与数量单位紧贴商品名(不再顶到最右)
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
.task-title 由 flex:1 1 auto 改 flex:0 1 auto(不再撑满整行)⇒ 标题行的「须/免拍照」与数量单位左移到商品名后面、间隔仅 8rpx;附契约断言并记入任务卡文档 v3。
|
2026-10-16 15:18:03 +08:00 |
|
雨天
|
30e96df1c0
|
订单入库: 退回与确认入库按钮间距拉大(防误触)
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
真机反馈两按钮挨太近。给 .btn-pass 加 margin-left:32rpx(配合行内 gap 12rpx ≈ 22px),只拉开退回↔确认入库这一处;附契约断言并记入任务卡文档 v2。
|
2026-10-16 15:16:11 +08:00 |
|
雨天
|
1332cb7b1d
|
订单入库: 上传批次报告按钮改为竖排(修并排一行)
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
微信 button[size=mini] 默认 inline-block ⇒ 两个按钮并排一行。把 .batch-btn-wrap 改为 column flex(align-items:flex-start),两按钮上下排列;提测试钉住,防再并排。
|
2026-10-16 15:14:36 +08:00 |
|
雨天
|
5232c27d21
|
订单入库: 退回前弹二次确认
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
退回是不可逆动作(按不合格退回、不入库),此前点一下即提交。现改为先弹 wx.showModal 确认:确定才置不合格并退供,取消则原地不动。退回语义、门槛、状态链一字未动;附契约测试与设计文档。Web 验收页同位置未在本次范围。
|
2026-10-16 15:13:37 +08:00 |
|
雨天
|
8ef4677f0f
|
订单入库: 一键上传批次报告并把生产日期随入库落库
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
订单入库页「一键全部合格入库」下方新增「一键上传批次报告」:多张图/PDF → 复用既有 AI-29 OCR 抽品名+生产日期 → 按商品名匹配当前待验收行 → 弹核对表(日期可改)→ 关闭后照旧合格入库 ⇒ 生产日期随该行进 inventory.production_date,报告关联到新建批次。
关键变更: 验收普通行的 inventory.production_date 由「今天」改为报告的真实日期(该列本就在写、INSERT 与 COALESCE 兜底未动,只多一个取值来源:逐行 production_date > 预包装 production_date_month > null)。
- 服务: InspectionComplianceInput 增 production_date/batch_report_id;COMMIT 后 best-effort 关联报告
- 路由: complete 映射两字段;新增 POST /mobile/inspection/batch-reports(复用既有 OCR 服务)
- 小程序: 按钮+核对表+两个提交路径带字段;loadRows 保留(刷新不丢)
- 无迁移、无新表、无新提示词;契约测试 13 例
|
2026-10-16 15:09:41 +08:00 |
|
雨天
|
c5a3550545
|
订单入库: 退回与品名换位(防误触拍照)
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
任务卡第一行由 [退回][商品名][确认入库] 改为 [商品名][退回][确认入库],让第一行左侧是商品名、不再与第二行左侧的「拍照」竖向对齐(退回是危险动作,手指瞄准拍照时易误触)。退回/入库语义、门槛、文案、样式一字未动;附契约测试与设计文档。
|
2026-10-16 14:53:36 +08:00 |
|
雨天
|
2f439026d3
|
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
Web 验收弹窗与小程序验收面板新增「存放区域」,随批次写入 inventory.storage_zone;独立进货走同一段 INSERT 一并覆盖。
默认值 = 该商品上次入库区域(同 SKU 最近一批非空区域):后端列表接口带 last_storage_zone,只拼在带 LIMIT 的列表查询上,不并入计数类查询。
区域为自由文本、无独立表:Web 复用 /inventory/storage-zones 候选 + 输入即新增;小程序原生 picker + 末尾「+ 新增区域」。不新增前端文案。称重台/Android 不做。
测试:server/tests/inspectionStorageZone.test.ts(8 例)、src/utils/inspectionStorageZone.contract.test.ts(13 例);npm run typecheck 通过;last_zone 片段已对本地库实跑。
|
2026-10-13 16:26:17 +08:00 |
|
Ubuntu
|
deb3e72750
|
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
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
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树: 09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)
按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
|
2026-10-08 17:35:43 +08:00 |
|