23 Commits

Author SHA1 Message Date
liufumingren
358fef0f71 chore: apply ESLint auto-fixes, JSDoc additions, and CRLF→LF normalization (no logic changes) 2026-08-08 20:28:18 +08:00
liufumingren
510b87632a feat(stock): 库存/仓库模块货主侧查询与报表增强
- stock/warehouse: 新增 externalList/externalExport(外仓/货主维度查询)

- storeWarehouse/store: 新增货主侧接口(list/get 等)

- stock_store: getWarehouseStock 支持 externalWarehouseId/externalStoreId

- store_warehouse: 合同关系改为单向维度查询(不再 OR 两边)

- storage/report: 库存报表支持 store 维度 + stockIds/keyword 精确筛选

- stock/transaction: storeList/exportStore store_id 从 ctx 获取防越权

- stock_warehouse: getStockDetails 支持显式传 null 跳过仓库过滤

- storage/management: 储位分配待处理排除待审核(step=1)订单
2026-07-27 03:48:06 +08:00
liufumingren
a1f5c5d532 fix(storeWarehouse): list 查询使用 OR 两边匹配,兼容新旧签约数据
- serializeRelation: 根据 currentSubject.id 匹配 store_id/warehouse_id 判定对方主体

- listForStore/listForWarehouse: 使用 store_id/warehouse_id OR 查询替代 buildListWhereByStoreId

- remask/use_status: 基于实际所在侧判定而非 isWarehouse 角色

- 修复仓库用户看不到签约货主方信息的问题
2026-07-09 11:54:53 +08:00
liufumingren
b9ead1fba2 refactor(storeWarehouse): 签约体系重构 — 统一主体维度、移除角色校验、list 拆分
- sign: 统一当前主体→store_id(货主方/消费方),对方→warehouse_id(仓库方/提供方)

- getCounterparty: 移除 expectedRole 角色校验,仓库可签仓库、货主可签货主

- list: 拆分为 listForStore/listForWarehouse,warehouse 侧支持查询外部合作仓库

- 新增 buildListWhereByStoreId 统一按 store_id 维度构建查询条件

- 响应新增 counterparty_role / needs_my_confirm / has_qimen_config 字段
2026-07-09 03:36:09 +08:00
liufumingren
88df30c862 refactor: 签约列表精简输出,仅保留 id/store_id/warehouse_id/counterparty_name/remask/use_status/auth_status/auth_end/print_quantity/policy_config/has_qimen_config 2026-07-06 22:41:52 +08:00
liufumingren
91d3a4f5b3 fix: counterparty_name 改为取 store 表 company_name 主体名称,不取 remask 备注名 2026-07-06 22:38:21 +08:00
liufumingren
72d759964d fix: use_status=0 被 || 跳过导致筛选和状态更新失效,改用 !== undefined 显式判断 2026-07-06 22:33:05 +08:00
liufumingren
2ff17a54dc fix: buildListWhere 货主侧查询按 store_use_status 过滤,仓库侧按 warehouse_use_status 2026-07-06 22:26:38 +08:00
liufumingren
c954a4bb26 fix: serializeRelation 补回 use_status 兼容字段,按当前主体身份取对应仓库/货主侧状态 2026-07-06 22:24:20 +08:00
liufumingren
76c52fa268 use_status 重命名为 warehouse_use_status,新增 store_use_status;仓库/货主侧独立控制签约使用状态,unbind 按身份分派字段 2026-07-06 22:12:23 +08:00
liufumingren
77435aeb79 1 2026-06-23 18:48:33 +08:00
liufumingren
d743e67b9d 1 2026-06-17 01:18:55 +08:00
liufumingren
025184904a 1 2026-06-14 19:03:58 +08:00
liufumingren
99367e5043 1 2026-06-06 05:15:46 +08:00
liufumingren
150e2977d4 修改快递接口配置,拼多多取号,未完成 2026-05-22 08:39:07 +08:00
liufumingren
608d7741c1 1 2026-05-17 23:36:18 +08:00
liufumingren
5ce689d771 1
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 19:20:31 +08:00
liufumingren
0ffe290a21 chore: commit all current workspace changes 2026-04-27 16:09:26 +08:00
liufumingren
622869787a feat: sync workspace changes 2026-04-17 19:21:57 +08:00
liufumingren
e73a311076 ok 2026-04-11 17:09:06 +08:00
liufumingren
57f1f44bae feat: sync wms updates 2026-04-09 15:45:14 +08:00
liufumingren
3d824a3a1d chore: sync lint and service fixes 2026-04-09 01:36:49 +08:00
liufumingren
920d201c0e feat: refine setting role/account/permission auth and tests 2026-04-05 09:03:50 +08:00