Commit Graph
545 Commits
Author SHA1 Message Date
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
Ubuntu fc364eeb66 style(商品): 表头单行截断(对齐配送「单…/税…/预警数…」效果)
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 列,表头之前会竖排。参照配送:th 加 whitespace-nowrap + truncate,超长表头显示省略号而不是换行。
2026-10-19 15:45:42 +08:00
Ubuntu 7fd1b782b3 style(商品): 单元格统一 overflow-hidden(对齐配送做法),去掉 min-width 兜底
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
- 参照配送:列宽百分比 + 单元格 overflow-hidden;供应商这页控件多,之前缺的就是单元格裁剪
- 移除上一版 min-w-[1320px](改回自适应,窄屏靠单元格裁剪+横向滚动)
2026-10-19 15:38:46 +08:00
Ubuntu da6747ee6c style(商品): 表格加 min-width 1320px,避免百分比列宽在窄屏被压扁
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
上一版 table-fixed+w-full 把 14 列压在容器宽度内,每列不足控件最小宽度 ⇒ 状态/操作溢出。
加 min-w-[1320px]:容器不足时横向滚动,列宽保持可读。
2026-10-19 15:32:49 +08:00
Ubuntu 00688458fc style(商品): 列表改 table-fixed + 显式百分比列宽(14 列合计 100%)
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
上一个版本改用 table-fixed 但只写了 4 列宽度、其余由浏览器均分 ⇒ 14 列每列约 5%,
控件溢出、文字竖排(用户截图反馈)。本次为**每一列**显式百分比且合计 100%:
3/3/17/5/8/9/8/5/5/8/12/6/6/5。
验证:tsc 0 错;products 测试 19 passed。
2026-10-19 15:31:39 +08:00
Ubuntu 2a7495c4a5 Revert "style(商品): 列表改 table-fixed + 百分比列宽(UI 对齐配送系统 · 第 1/7 页)"
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 reverts commit e59fba0dce.
2026-10-19 15:28:42 +08:00
Ubuntu a56ce76e4b Revert "style(分类): 列表改 table-fixed + 满宽(UI 对齐配送系统 · 第 2/7 页)"
This reverts commit c7747ca34e.
2026-10-19 15:28:42 +08:00
Ubuntu c7747ca34e style(分类): 列表改 table-fixed + 满宽(UI 对齐配送系统 · 第 2/7 页)
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
- 分类管理列表:min-w-full → w-full table-fixed,窄屏不再横向溢出
- 验证:tsc 0 错;products 测试 19 passed
2026-10-19 15:27:40 +08:00
Ubuntu e59fba0dce style(商品): 列表改 table-fixed + 百分比列宽(UI 对齐配送系统 · 第 1/7 页)
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
用户要求:供应商系统 7 个列表页参考配送系统做界面优化(只改 UI,不动业务)。
- 商品管理列表:table-fixed + 列宽百分比(选择/序号 3%、商品 20%、单位 6%、规格 8%),
  其余列由 table-fixed 均分剩余宽度,窄屏不再把控件挤到竖排
- 验证:tsc 0 错;products 测试 19 passed
2026-10-19 15:26:34 +08:00
Ubuntu 0f5f992f9c fix(报价单): 补 quote_price_proposals.applied 列(逐行审批进度)
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
本地报 column "applied" does not exist:逐行通过/驳回用 applied 存 approved_codes/rejected_codes,
但租户表没有该列。迁移:tenant_template + 所有 tenant_% schema 加 applied JSONB(可重放)。
2026-10-19 14:30:39 +08:00
Ubuntu dd57b0286b 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
用户要求:每行商品可单独驳回;部分同意 = 只处理选中的行。
- approve/reject 接 included_supplier_sku_codes:只处理选中行,其余保持待审
- 全部处理完才终态;有通过⇒已通过(被驳回行记 rejected_codes),全驳回⇒已驳回
- 明细行新增「驳回」按钮(按我方 SKU);通过/驳回都支持传选中行
- 测试:后端 34 passed、面板 7 passed
2026-10-19 14:22:38 +08:00
Ubuntu e5bd52de33 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
用户要求:供应商侧审核时要能调整我方商品(自动配对之后仍可改)。
- 面板:所有行(含已映射/自动匹配)显示「改映射」,复用选择器
- 服务:绑定前先把同一配送 SKU 的旧镜像行清空(partial unique 要求)
2026-10-19 14:11:12 +08:00
Ubuntu c9ef2597a8 style(审核): 审核明细里商品名与金额加粗(供应商侧)
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 14:08:06 +08:00
Ubuntu 8dc56d8409 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
用户指出目标就是既有「供需变更审核」页,不是新建同名菜单。
- PriceQtyRequestsPage(/orders/price-qty-requests)新增三档 Tab:改价改量申请 / 待我审核 / 我提出的
- 新组件 PriceQtyProposalReview 承载 useAuth(避免既有翻页边界测试无 AuthProvider 抛错)
- 删除上一轮误建的 /customers/supply-review 独立页与菜单项;?view=deliveryPrice 跳既有审核页
- 面板 direction 过滤;i18n 三语补 tab 文案、移除 supplyReview.* 键
2026-10-19 14:04:24 +08:00
Ubuntu e277303070 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
用户要求:把供应商与配送商的价格审核收拢到一个界面(用户选定:两个系统都加、合并成一页两 Tab)。
- 新增 /customers/supply-review(SupplyReview):Tab 待我审核 / 我提出的
- 面板新增 direction 过滤(from_delivery / to_delivery)
- 报价管理移除「配送商销售价确认」页签;?view=deliveryPrice 自动跳新页
- 菜单注册 + 菜单布局默认项 + 契约测试同步
2026-10-19 13:52:35 +08:00
Ubuntu b5807cc3df feat(报价单): 未映射行按商品名自动匹配我方商品(建议可改)
- 服务端:未映射行用配送侧传来的商品名精确匹配我方 skus(同名唯一才建议,多个不猜)
- 面板:显示「自动匹配:<商品名>」+ [采用] / [换一个];采用即建映射并刷新
- i18n 三语
2026-10-19 13:27:54 +08:00
Ubuntu 9eecc6bdef feat(报价单): 配送发来的未映射提议可就地「选择商品」,映射建到配送侧
- 新增对接端点配置 skuMappingBind + API bindDeliverySkuMapping
- 服务 bindMappingForDeliverySku:校验我方 SKU → 让配送侧建映射 → 刷新本地镜像
- 路由 GET /quote/sku-candidates、POST /quote/sku-mappings/bind
- 面板未映射行显示「选择商品」,选完刷新明细即可通过(不再被未映射卡住)
2026-10-19 11:44:36 +08:00
Ubuntu 492ae97cc6 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
原来展开只显示摘要(提交人/时间/N 个商品),看不到具体哪些商品在待审。
· 后端新增只读 GET /api/workflow/quote/price-proposals/:id(权限同列表、开关关 503、
  404/400 齐备、全程只 SELECT,不触发审批动作),返回 lines[](商品名/我方售价/建议售价/差额/状态);
· 前端展开 A 方向时按 id 取明细并渲染表格:差额=建议−我方(4 位小数、涨红跌绿),
  max-h-72 内部滚动、显示「共 N 条」、加载中/加载失败三态,失败不白屏、摘要仍在;
· 三语仅新增 5 个文案键(商品名/我方售价/建议售价/共 N 条/加载中…/加载失败);
· 用例:前端 14 条(渲染/滚动/加载中/失败/B 方向不额外请求)+ 后端路由 7 条;
  tsc(根+server)0 错、后端 quotePriceProposal 相关 57 通过。

注:src/pages/customers 里 QuoteVersionManagement.priceProposal.contract.test.ts 有 1 条既有失败
(HEAD 上页面 view 白名单与测试就不一致),非本次引入,未动。
2026-10-19 11:17:05 +08:00
Ubuntu c7dac8d257 chore(本地联调): 拉取生产库后自动重接线(--with-main 可同时拉主系统库)
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
覆盖生产库会把对接客户端变成生产值(webhook 指向 supplier.xdjchuanhui.com、client_id/secret/webhook_secret 都是生产),
直接覆盖后本地推送发去生产、轮询 invalid_client、验签 401。脚本在恢复数据后自动:
① 本地主系统 client.webhook_url 指回 127.0.0.1:3022;② 本地 .env 对齐 client_id/secret/webhook_secret;
③ 重启本地 API 并自检 token + 拉单。
2026-10-19 09:58:49 +08:00
Ubuntu e3a7d9535c fix(报价单): 拉取对方提议时保留 sku_name(界面显示配送商品名) 2026-10-18 22:58:49 +08:00
Ubuntu db704b5b19 feat(报价单): 提交提议时携带商品名;明细优先用对方给的名字
- D1 payload items 增加 sku_name(原来 HTTP body 里被丢掉 ⇒ 对方只能看到 SKU)
- 列表明细:我方商品名取本地 skus,配送商品名优先用 payload 里的名字,映射镜像兜底
- 测试同步
2026-10-18 22:45:48 +08:00