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 |
|
雨天
|
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
|
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
|
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 |
|
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
|
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 |
|
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
|
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
|
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
|
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 |
|
Ubuntu
|
c677908267
|
fix(主系统对接): order.cancelled 按主系统单号反查我方单(原来查不到 ⇒ ignored,订单与商品残留)
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
生产真机:载荷 order_code=ORD_WEB_…(主系统单号),旧实现按 our_order_code=该值查台账 ⇒ 0 行 ⇒ ignored。
改为 main_order_code=载荷单号(兼容传我方单号)反查到我方单(可能多张合并单),再逐单清行+停用+台账 cancelled。
|
2026-10-18 22:41:12 +08:00 |
|
Ubuntu
|
71fde6de39
|
feat(报价单): 报价同步(成本价同步/改价审核/双向价格传递)+ 待报价软删除
合并 feat/quote-price-sync 的报价单与竞价台账改动,补齐类型(includeDeleted/deletedAt)与缺失文件
(mainSystem/api/quotePriceProposals.ts、迁移 20261058)。
|
2026-10-18 22:22:23 +08:00 |
|
Ubuntu
|
3ce0773272
|
fix(报价单): 明细显示双边的商品名(我方商品 + 配送商品),不再只显示 SKU
- 根因:新「按分类提交」的提议 items 用的是我方 SKU,旧代码按配送 SKU 反查映射 ⇒ 名字/原价全空
- 现在兼容两种约定(我方 SKU 直接用 / 配送 SKU 才反查),并从本系统 skus + 映射镜像取双边名称
- 面板明细改为:我方商品 | 配送商品 | 单位 | 原价 → 新价
|
2026-10-18 21:51:06 +08:00 |
|
Ubuntu
|
5cfd722630
|
feat(客户): 绑定建客户用主系统分公司真名;已有客户时订单导入不再新建
- main_supplier_bindings 新增 main_branch_name(迁移 20261021)
- 绑定推送/回读接受 main_branch_name / branch_name,建客户直接用真名(缺省仍兜底)
- 重新绑定把停用(40)客户恢复启用(10)
- 测试钉住:ensureImportCustomer 先查后插 + ON CONFLICT DO NOTHING(已有客户不重复建)
|
2026-10-18 21:03:49 +08:00 |
|
Ubuntu
|
9e58332cc6
|
feat(客户): 绑定即建客户、解绑即删(有订单则停用),修复报价单选客户有时无
用户要求:供应商编码被某配送商分公司绑定后,该分公司客户应立刻出现在客户列表,不等派单;
解绑后消失。
- 根因:MAIN_<主系统分公司> 客户此前只在订单导入时创建;且 /api/data 客户缓存未失效 → 时有时无
- 新增 mainSystemCustomerBindingService:绑定建客户(status 10、缓存失效)、解绑删除;
有历史订单删不掉 ⇒ 停用 status=40(保住历史归属);重新绑定恢复启用
- 接入 upsertBinding / unbindBinding(含改绑时清理旧分公司客户);通配 * 跳过
|
2026-10-18 20:59:23 +08:00 |
|
Ubuntu
|
83274ddf5d
|
fix(报价单): 后台/系统触发传递时补最小 ctx,避免 branch_required 静默失败
|
2026-10-18 20:48:57 +08:00 |
|
Ubuntu
|
f587b22047
|
test(报价单): 删除内部改价审核已废弃用例(特性已移除)
|
2026-10-18 20:47:16 +08:00 |
|
Ubuntu
|
fc337ff44d
|
fix(报价单): 去掉已删除的内部改价审核前置检查(否则 A 发起会 42P01)
|
2026-10-18 20:47:08 +08:00 |
|