liufumingren
|
17f7e3d87b
|
feat(print): 新增确认打印功能(confirm_print_status + confirmWavePrint/confirmPrintScan 接口)
|
2026-09-20 16:13:59 +08:00 |
|
liufumingren
|
990fcf1314
|
feat(storage): 新增维护库存效期接口 storage.inventory.updateExpiry
- systems/storage/inventory.js 新增 updateExpiry:校验 storage_id 为正整数、两个
日期至少传一个、当前仓库上下文(ctx.user.store_id);单事务 + 行锁
(SELECT ... FOR UPDATE)按 id + warehouse_id + is_enabled=1 + delete_at IS NULL
定位库存记录,跨仓库按 404 处理
- 新增模块级 helper parseStorageDateInput:undefined 视为未传、null/空串清空,
YYYY-MM-DD / YYYY/MM/DD / YYYY-MM-DD HH:mm:ss / ISO / Date 统一规范化为
YYYY-MM-DD 并校验日期真实存在,其它判非法
- 合并后(未传字段取库内现值)生产日期不能晚于到期日期;两值均与库内一致返回
changed=false,不写库、不记日志
- 成功路径写业务操作日志(operation_code=STORAGE_UPDATE_EXPIRY,记维护前后两个
日期与 storage/space/stock/batch 快照)
- systemMethods/storage/inventory.js 新增方法层包装(透传 code/message/data);
businessDict 新增 STORAGE_UPDATE_EXPIRY 操作码
|
2026-09-15 16:18:39 +08:00 |
|
liufumingren
|
b6ae8313a1
|
fix(order): 自动分配快递排除备注生效并补写跳过日志,储位分配默认禁止存储储位
订单备注命中仓库「自动分配快递排除备注」时跳过自动分配快递,并补写 ORDER_AUTO_EXPRESS_SKIP 操作日志说明原因与命中关键字
储位分配默认排除存储储位(库位类型过滤下沉到 JS 层按货主存拣分离策略逐 SKU 生效),仅当货主关闭存拣分离或前端传入 allow_storage_location=true 时放行;自动分配不再强制 allow_storage_location=true
按当前实现基准修正 order_storage_allocation 过期单测,补充排除备注与存拣分离放行用例(26/26 通过,ESLint 0 错误)
|
2026-09-05 22:42:39 +08:00 |
|
liufumingren
|
d4dc25c8e7
|
feat(pick): 整波领料 waveClaimScan 与拣货领料前置校验
- 新增 pick.waveClaimScan: 扫面单号定位订单并反查波次, 仅普通波次(source=0)支持整波领料
- 新增 getWavePickModeByWaveId 关联拣货模式查询
- query 命中大团购/非抓取散单波次时校验领料状态, 未领料提示先整波领单
- 波次存在未打印订单时禁止领料, 领料写入 ORDER_WAVE_CLAIM 操作日志
|
2026-08-21 02:20:02 +08:00 |
|
liufumingren
|
f4ed985556
|
feat: 新增退回收到模块(returnReceived)
- 新增退回收到登记表 wms_return_received 及模型、建表迁移
- 新增扫码登记/列表/详情/删除接口(systemMethods + systems 分层)
- 退回收到联动:标记运单 is_back、完结拦截工单、订单退回状态、操作记录
- 新增权限 527/528/529 + 菜单 530,授权仓库/客服角色
- 解除拦截不再清除 is_back(由退回收货流程单独管理)
- 同步 API 文档、method 路由速查
|
2026-08-13 01:58:55 +08:00 |
|
liufumingren
|
0b781a7e70
|
feat: 店铺快递绑定策略模块 + 订单创建链路集成 + 运单号分配优化
【新增模块】
- app/model/store_express_binding_policy.js: 策略数据模型(17字段,JSON数组)
- app/service/systems/store_express_binding_policy.js: CRUD+列表(含名称批量解析)
- app/service/systems/express_policy.js: 缓存优先策略查询 + 6维漏斗匹配引擎
- app/service/systemMethods/store_express_binding_policy.js: method路由层
- database/designs/store-express-binding-policy-design.md: 设计文档
【策略漏斗匹配逻辑】
- 按priority DESC逐条匹配: store_ids→shop_name→prohibited→regions→exclude→weight
- NULL/空数组=不限, 未命中自动continue到下一条
- 地区/店铺匹配使用子串包含(省/市/区/详细地址均生效)
- 违禁品匹配使用数组交集
- 输出快递编码+重量类型, 未命中返回null
【订单创建链路集成】
- addOrder→addOrderLines后触发matchPolicy(weight可用)
- 命中: 写入logistics/sys_logistics 4字段+weight_type+操作日志
- 未命中: 降级到resolveExpressSnapshot默认值+兜底DEFAULT_STORE_SUBJECT_CONFIG(STO)
- 系统快递4字段一致, 自定义映射(express_setting)分流写入
【运单号分配优化】
- pickWaybillExpressInterface两步兜底:
Step1: logistics_code仅匹配express_code(自定义编码精确)
Step2: sys_logistics_code匹配全候选码(系统编码兜底)
- 新增weight_type过滤器(接口NULL=通配, 设限须精确匹配)
- groupedOrder.options新增sys_logistics_code/weight_type传递
【操作码翻译】
- ORDER_EXPRESS_POLICY_MATCH: '策略命中'
- ORDER_EXPRESS_FALLBACK: '快递降级'
- 无策略命中时写入快递降级日志
【API文档】
- methods/system.json: 策略模块4接口+响应字段(express_name/数组类型等)
【数据库迁移】
- 13个migration: 建表→字段迭代→TEXT改JSON→prohibited改数组(dev+prod均执行)
|
2026-08-04 08:18:43 +08:00 |
|
liufumingren
|
e7fcd2549e
|
20260625
|
2026-06-25 02:01:59 +08:00 |
|
liufumingren
|
77435aeb79
|
1
|
2026-06-23 18:48:33 +08:00 |
|
liufumingren
|
0e50ff6671
|
1
|
2026-06-08 08:58:13 +08:00 |
|
liufumingren
|
99367e5043
|
1
|
2026-06-06 05:15:46 +08:00 |
|
liufumingren
|
9b2cc5fc73
|
fix(receiving): 修复获取收货单时重复定义属性的问题
|
2026-05-06 01:32:55 +08:00 |
|
liufumingren
|
3d824a3a1d
|
chore: sync lint and service fixes
|
2026-04-09 01:36:49 +08:00 |
|
|
|
63b4536766
|
chore: initialize wms project
|
2026-03-16 14:01:22 +08:00 |
|