Commit Graph
565 Commits
Author SHA1 Message Date
Ubuntu fe4e1d70a6 fix(订单详情): 选择抵扣商品弹窗不再默认选中,点当前绑定行也能保存
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
开发者报障:弹窗打开默认高亮当前绑定行,点它只关闭不保存 ⇒ 要确认同一行必须
先点别的再点回来。

· 打开时无选中态;当前绑定行改为弱提示(左侧 2px 靛蓝细条 + aria-current);
· 点任意一行(含当前绑定行)都立即保存(后端同 SKU 走幂等分支,不重复改明细);
· 不可抵扣行仍禁用,搜索/过滤/展示/文案不变;两个入口共用同一组件,一处修复覆盖两处;
· 新增 render 测试 7 条(含"点当前已绑定且不可抵扣那行"场景与连点幂等)+ 契约测试更新;
· 设计文补 2026-10-20 修订说明。

验证:tsc 0 错;src/components/order + src/i18n 181 条、orderManagement 124 条全过;变异校验可抓住原 bug。
2026-10-20 12:29:36 +08:00
Ubuntu d52415cb78 feat(库存): 后端新增「按批次查报告」「删除报告」接口 + 前端 API(库存修改弹窗编辑/删除报告的第一步)
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-20 11:23:26 +08:00
Ubuntu 81b69e31a8 feat(库存): 列表列改名「存在报告」并显示该批次已绑定报告数量(后端返回 batch_report_count)
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-20 11:02:32 +08:00
Ubuntu 2bce30150a feat(产地): 批次级产地可录入(inventory.origin)
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
第 2 步:修改可用库存 →「批次属性」新增产地输入,只影响本批次。
- 后端 UpdateInventoryBatchInput 增 batchOrigin(批次级写 inventory.origin,'' 清空,≤200 字)
- 路由透传 batch_origin;商品档案 origin 仍写 skus(默认值)
- 前端弹窗批次区新增「产地(本批次)」,三语文案
- typecheck 前后端各 0 错;库存单测未跑(下一步补)
2026-10-20 10:47:08 +08:00
Ubuntu 13d3645cfb feat(产地): 批次级产地迁移(inventory.origin + quality_reports.origin)
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 行;「商品档案」区写 skus(含 origin)。
批次报告在 quality_reports。故批次级产地加在 inventory,批次报告携带 quality_reports.origin;
skus.origin 保留为默认值。已在本地库执行(inventory/quality_reports/skus 三处 origin 均存在)。
2026-10-20 10:44:42 +08:00
Ubuntu 57e2576b21 fix(库存): 上传报告弹窗多报告选中串选——选中状态改为按「报告id::批次id」复合键(此前只按批次id,两个报告会互相联动)
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-20 10:35:06 +08:00
Ubuntu d56c4a8bb1 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
2026-10-20 10:32:55 +08:00
Ubuntu 65649fe941 feat(库存): 批次报告上传改为「上传报告」并支持选择报告类型(批次/农残/检疫/年度),后端 report_type 透传
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-20 10:32:34 +08:00
Ubuntu 1264d0c039 fix(回写): C5 门禁恢复原始契约(无已审核价=不发价),修回归测试 —— 零价跳过保持不变
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-20 10:26:59 +08:00
Ubuntu 0fd45f6ef8 feat(主系统单): 无库存抵扣/无厂商的商品默认落自采(标记 INTERNAL + 建自采采购单,仅主系统分配单,幂等)
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-20 10:26:10 +08:00
Ubuntu bccbab34d1 fix(订单): 取消库存抵扣改用应用内对话框,去掉浏览器默认 confirm
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-20 10:23:25 +08:00
雨天 ea58103df9 fix(delivery-note): 生产时间列移到备注之后
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
列序改为 编号/产品/单位/总数量/单价/金额/备注/生产时间;
列宽 130/150 对调,合计仍 920。
2026-10-20 10:09:51 +08:00
雨天 84b69c1b1b fix(delivery-note): 无生产时间数据时整列不渲染
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
后端未下发 batch_production_dates 或整单没有日期 ⇒ 退回原 7 列
版式(列宽恢复 70/300/70/110/110/130/130);部分行有日期时
才出该列,无日期的行留空。
2026-10-20 10:09:21 +08:00
雨天 2613b8f800 fix(delivery-note): 生产时间列移到金额之后
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
列序改为 编号/产品/单位/总数量/单价/金额/生产时间/备注;列宽合计仍 920。
2026-10-20 10:07:53 +08:00
雨天 072d02b687 feat(delivery-note): 送货单图片增加生产时间列
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.production_date,跨批逐行
显示;未出库不猜批次、该格留空。订单详情只新增
batch_production_dates 字段,取数下沉到 service。
2026-10-20 10:05:12 +08:00
Ubuntu d7a9b717bd fix(订单范围): 子表归属谓词去掉写死别名 t0(修录单员详情「暂无明细」)
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
真机:录单员列表有单、详情「暂无明细」。根因是子表谓词写成
EXISTS(... o.order_code = t0.order_code ...),而网关给 order_items 的别名是 t5
⇒ PG 报 missing FROM-clause entry for table "t0" ⇒ 前端 fetchOrderItems 吞错返回 []。

· orderOwnerScope 新增别名无关的父单谓词:
  order_code IN (SELECT order_code FROM orders WHERE created_by::text = $val);
· order_items / order_item_fulfillments / picking_items 三张子表统一走父单归属(不按自身字段过滤);
  orders 本身仍按 created_by;
· 新增真库回归单测(事务造数 + ROLLBACK):自己单 头+明细+履约+分拣可见、他人单全 0、admin 不过滤;
· 设计文补 7.1 真机回归与修正。

验证:根/server tsc 0 错;orderOperatorScope* 37 条 + 相关子集 75 条全过;
全量后端 557 文件通过,1 文件(mainSystemWriteback 2 条)为 HEAD 既有失败。
设计门禁 6 通过/3 红(check-migrations、check-ai-cost、check-env-coverage,均为既有基线)。
2026-10-20 09:44:20 +08:00
Ubuntu 658506f3d6 feat(库存抵扣): 弹窗展示本行实际抵扣批次(含已扣光批次)——手动指定/FIFO分拣/出库流水三级取数,后端只读接口 + 三语文案
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-20 09:34:58 +08:00
Ubuntu 3fe891e769 feat(订单范围): 录单员(operator)只能看到/操作自己录的订单
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-19:录单员只能看自己录的单,看不到其他人订单。

· 唯一口径 orderOwnerScope.ts:isOperatorScoped(非超管、非 admin、含 operator)
  + assertOperatorOwnOrder(403 order_scope_forbidden)+ assertOrderAccess(分公司边界 + operator 归属,
  合并原先 orderWorkflowService / orderDeleteService 两份重复实现);
· 三层收口:① 订单列表 SQL(stats/count/list 共用同一 where)② 详情/写入单点
  assertOrderAccess(覆盖 Web 25 处 + 小程序 + MCP + 状态推进)③ /api/data 通用网关
  (Web 详情/明细/导出走 supabase:orders/order_items 的 select/update/delete 注入可信表达式);
· 补上原先没有 assert 的入口:散客确认、分享链接、主系统核货事实、批量动作、批量重新分配(SQL 层收窄)、
  删单/恢复/彻底删除、回收站列表、小程序录单/管理端、MCP 订单详情与改单;
· 历史 created_by 为空的单:operator 看不到;不做参与过就放行(参与制另立需求);
· 未动状态链/分配/财务口径/表结构;未加索引与迁移。

验证:根与 server tsc 0 错;orderOperatorScope 31 条 + 相关 6 文件 67 条全过;
全量后端 556 文件通过、2 条失败为 mainSystemWriteback 既有失败(HEAD 同样失败);
本地真库 CTE + PREPARE/EXPLAIN 验证三视角可见数(operator 1/4、admin 4/4、finance 4/4)。
2026-10-20 09:32:07 +08:00
Ubuntu 298d3f0393 feat(权限): 供需变更审核/待报价/验收图片复核 改为管理员按需开启(默认仅 admin)
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
· 新增三个专用码 price_qty_review / bid_quote / inspection_review(默认只授 admin),
  三个菜单项改挂专用码;inspection-review 删除写死的 roles:['operator','admin'];
· 权限目录/模块元数据登记(角色权限页可见、可勾选、有对应功能描述);
· operator 收敛白名单加这三个码:**不默认授予**,但管理员勾选后不会被下次迁移删掉(实测通过);
· 订单垃圾桶弹窗加宽(max-w-4xl → 6xl),列不再挤成竖排。
· 契约测试 19 条:三菜单项用新码、operator 默认不可见、admin 可见、只授单码可见、角色页可展示。

未动后端接口权限(避免突然 403);直连 URL 仍可达(本次只隐藏菜单)。
2026-10-20 09:31:19 +08:00
Ubuntu 6b799ff13d feat(分拣): 销售价为 0 的商品不允许完成分拣,提示前往订单管理设置销售价(后端拦截,小程序零改动;独立进货/散客豁免)
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-20 09:08:38 +08:00
Ubuntu d7bf5bbb2e revert(回写): 恢复「销售价≤0 不发送」(主系统成本价 0 会拒绝完成);保留待审改价不下发价格的门禁
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-20 08:12:03 +08:00
Ubuntu 39a5dd749b fix(回写): 存在待审改价/改量申请时不下发价格——防止主系统成本价在审批通过前被定时重试强制改写
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-20 08:08:52 +08:00
Ubuntu de15530ddd feat(回写): 销售价为 0 也照常回写备货完成(方案A)——分拣完成必须让主系统知道,价格是否接受由主系统判断,被拒进台账按轮重试
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-20 08:04:10 +08:00
Ubuntu 56fe7de7a2 feat(客户列表): 主系统绑定客户隐藏「上门取货」开关;后端改该开关返回 409(待取货只由主系统免入库决定)
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-19 20:42:45 +08:00
Ubuntu dac43897bb fix(回写): 回写价格永不省略——有审核价用审核价,否则用本行销售价(=配送系统采购价),修待取货单被拒「供货价格必须大于 0」
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-19 20:31:36 +08:00
Ubuntu 2c5e6c9a6b fix(回写): 无可审核价时按本行销售价(=供货价)回写主系统——修待取货单被拒「供货价格必须大于 0」导致一直待备货
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-19 20:30:36 +08:00
Ubuntu 230facb813 fix(配送): 撤回误用的厂商级免入库判定,统一按「待取货」语义(主系统免入库 ⇒ 骑手上门取货);保留备货台账级判定与其任务清理
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-19 20:22:08 +08:00
Ubuntu b18d791c34 fix(配送): 供应商免入库订单不得生成配送任务(promote 前清理未完成任务)——生产 bug:待取货单出现配送任务
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-19 20:16:00 +08:00
Ubuntu 23cb69b6b7 fix(报价单): 提交配送商审核的成功提示改为按实际结果报数(提交 N 个 / 跳过 M 个无变化)
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-19 20:02:30 +08:00
Ubuntu 411cffec8d fix(报价单): 提交基准改为「最近一次已通过价」;superseded/pending 不再导致全量重发,仅 rejected 强制重发
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-19 19:58:39 +08:00
Ubuntu 9aa783546c fix(报价单): 提交配送商审核的基准改为「上次已通过且价未变才跳过」;被驳回的行即使未改价也可重发
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-19 19:56:13 +08:00
Ubuntu 819af0752d feat(报价单): 提交配送商审核只提交相比上次提交有变动的价格;全无变动返回 no_price_change 并说明原因(方案A)
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-19 19:54:56 +08:00
Ubuntu 6f4c656bef fix(编辑报价单): 本单客户查询为空时回退使用请求客户,避免 500「请至少选择一个客户」(线上未部署的补发)
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-19 18:54:12 +08:00
Ubuntu c6e16640ec fix(编辑报价单): RLS 上下文改事务级 set_config(true) 且单出口 COMMIT——修「报价单不存在」500(会话级残留 '' 污染连接池)
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-19 18:52:22 +08:00
Ubuntu 9bf1fe89e7 fix(编辑报价单): resolveEditCustomerSplit 补 RLS 租户上下文——生产 500(无 app.branch_code 查到 0 客户→传空客户给编辑服务)
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-19 18:49:05 +08:00
Ubuntu b95eb2a654 fix(报价单): 提交配送商审核后不再跳转到不存在的 /customers/supply-review(生产 bug:被兜底重定向到看板),改为留在列表并刷新
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-19 18:37:54 +08:00
Ubuntu 2ee38fb400 fix(拆单脚本): 互斥旧生效单时排除源单自身(生产演练发现源单被误置 status=3)
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-19 18:26:17 +08:00
Ubuntu a180ee7320 fix(报价单): 修红队 #5 幂等并发(advisory 锁双检)、#4b hash 覆盖自动定价并规范化排序;锁移入 service 保持路由层零 SQL
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-19 18:23:20 +08:00
Ubuntu bb8acfc0ba fix(报价单): 修红队二轮高危——拆单预检排除源单(防静默删客户)、版本行显式挂新单号、锁键带分公司、幂等SQL移入service、按建立时间保留首客户
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-19 18:09:30 +08:00
Ubuntu 9922d20240 feat(报价单): 批量建单返回失败清单(b) + Idempotency-Key 幂等去重(c)(红队 #4)
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-19 18:01:13 +08:00
Ubuntu 5040e30ba8 fix(报价单): 建单加 (branch,客户) advisory 锁堵并发重复;拆分脚本复制版本行/强制生效/跳过已有生效单/按建立顺序保留
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-19 17:48:53 +08:00
雨天 22be54affe 财务页清理说明性小字(概览/毛利/采购成本)
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
经营总览、商品毛利、订单采购成本(全部 Tab)与 AI 成本深度分析
移除说明性小字,只保留标题/数值/空态/告警/按钮/tooltip。
- FinanceOverview:KPI 提示、空态提示条、模块卡描述、成本结构说明
- CostAccountingPanel:各 Tab 的 KPI/结构/排行/其他成本/商品成本 Tab 说明
- CostRootCausePanel:副标题与空态说明
仅展示层,未改任何取数/口径/计算;i18n 词条保留未删。
2026-10-19 17:47:56 +08:00
Ubuntu 8a08686e1a test(回归): 按新裁决更新 SEC-4 边界用例与散客入口契约;路由裸 SQL 移入 service
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-19 17:44:46 +08:00
Ubuntu 35213fd2a0 fix(quotes): createQuoteSheetApi 返回类型补 created_count/sheets(verifier S2 类型缺口)
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-19 17:42:34 +08:00
Ubuntu 53a6714dd3 fix(报价单拆分脚本): 每张单独立事务、提交后才计数(修 verifier S7 虚报)、workflowApi 补 created_count 类型
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-19 17:41:57 +08:00
Ubuntu 82bc0af32f fix(报价单拆分): 修 verifier 阻断项——后端 tsc 类型、编辑只回传本单客户(防本单变多客户/追加客户挂两张单)、拆分脚本排除主键并改提交后计数
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-19 17:38:59 +08:00
Ubuntu 375a32b6d8 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
2026-10-19 17:33:55 +08:00
雨天 c8eefca8de 修迁移20261053: U+0130 折 i 不依赖 lower()
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
本地迁移实跑报 P0001「U+0130 未折成 i(实际 İ箱12瓶)」。
根因:该迁移假设 PG lower(\x27İ\x27)=\x27i\x27,但这一行为随数据库 ctype 变化 ——
本机 Windows/libc(Chinese_China.936)下 lower(\x27İ\x27) 原样返回 \x27İ\x27。
修法:norm_spec 内显式 translate(..., chr(304) || chr(775), \x27i\x27),
İ 与 i+U+0307 都收敛为单个 i;与原 UTF-8 locale 下的行为等价,
对已应用该迁移的环境是 no-op。并补组合点 U+0307 守卫。
本地已验证:20261053–20261064 全部应用成功。
2026-10-19 17:16:29 +08:00
Ubuntu 5fa2bbfd55 fix(audit-20261019): T1-T9 审计修复、存储归属与审计日志列宽
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
- T1 资金/库存/报价/自采 P1(BIZ-1/2/3/4/10/13/14)
- T2 主系统反向事件墓碑/改派/孤儿处理(BIZ-6/8/9)
- T3 选分公司 ticket、trust proxy、角色权限收口(SEC-2/3/4)
- T4 缺列/RLS/tenant 名单/FK/迁移执行器(DATA-1..8)
- T5 401 登出/分页/映射口径/blob/ZIP 中文名(FE-1..4/BIZ-15)
- T6 测试脚本目标守卫/config fail-fast/容器配置(OPS-2..8)
- T7 前后端测试与 lint 门禁清零
- T8 应付卡片按关联订单日(口径 A)
- T9 存储对象全链路归属校验、敏感列禁写、审计 target_id 超长修复
2026-10-19 16:16:51 +08:00
Ubuntu 601a207b1e style(商品): 表格内下拉统一 compact(对齐配送,避免控件撑破列宽)
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
14 列 + 全尺寸下拉放不下;配送做法是 compact。给搜索型下拉统一加 compact。
2026-10-19 15:51:03 +08:00