WMS_MAIN/methods/changes/qimen.json
liufumingren 948f600689 feat(inbox): 回调推送、出站文档、搜索增强、日志与推送状态完善
出站回调:
- 新增 warehouse_notify.json 文档(notify.ping/notify.reply),与 warehouse.json 互跳
- 回调体统一 { method, code, data },method 放 query,body 为业务数据
- MD5 签名: sign=MD5(appSecret+timestamp+bodyJson)
- 回调响应: {code:200} 成功,非200/非code:200 视为失败
- docs 页面支持模拟推送调试

搜索增强(searchStock/searchWarehouseStock):
- 直接查 stock_warehouse,不再依赖 stock_store
- 新增字段: gross_weight/box_spec/packing_requirements/prohibited_type
- 管理标识: is_sn_mgmt/is_shelf_life_mgmt/is_batch_mgmt
- 条码关联: wms_stock_barcodes
- 图片: wms_file_reference(business_type=stock)+wms_file,返回数组
- id 修正为 stock_warehouse.id

推送状态完善:
- handleApiMessage 增加 push_status 更新(2成功/3失败)
- 未配回调地址 → push_status=3 + error 原因
- 回调异常 catch 也更新 push_status=3 + 写日志
- 出站日志写入 wms_warehouse_log 表(WN-前缀)

消息列表:
- keyword 兼容 content/keyword,支持数组
- keyword 搜索 content/group_name/user_name 三列
- 支持 where+operator 结构化查询(parseWhereConditions)
- storeId=-1 查询无货主消息; storeId=0→IS NULL
- 日期范围: startDate/endDate

其他:
- silent 动作: AI 识别无需回复时跳过回执
- ai_enabled 灰度开关(群级)
- bindCode 文档修正
- store_name 改用 StoreWarehouse.store_remask
2026-08-08 00:17:38 +08:00

74 lines
3.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"version": "2026.07.01-qimen-01",
"date": "2026-07-01",
"summary": "补充 entryorder.create 的 request body 子结构和 response 结构",
"methods": [
"entryorder.create"
],
"notes": [
"补充 request.entryOrder 子结构(entryOrderCode/warehouseCode/ownerCode/orderType)",
"补充 request.orderLines.orderLine 子结构(itemCode/itemId/itemName/planQty/orderLineNo/inventoryType)",
"补充 response 结构(entryOrderId/entryOrderCode/createTime/status)",
"参考代码:systems/entry_order.js addOrder 和 qimenMethods/entryorder.js create 返回值"
],
"type": "updated",
"module": "entryorder"
},
{
"version": "2026.04.07-qimen-01",
"date": "2026-04-07",
"summary": "初始化 qimen 文档变更记录 sidecar,后续接口文档变更将持续追加到本数组。",
"methods": [
"*"
],
"notes": [
"methods/qimen.json 仍为单一事实来源(SSOT)。",
"本文件仅记录变更历史与补充说明。"
]
},
{
"version": "2026.06.30-stockout-create-01",
"date": "2026-06-30",
"summary": "stockout.create 重构:从不可用的 deliveryOrder 旧链路迁移到 wms_order_stockout 专用表;返回字段 deliveryOrderId→stockoutOrderId/stockoutOrderCode",
"methods": [
"stockout.create"
],
"notes": [
"params 补全 deliveryOrder 和 orderLines 内部全部子字段",
"response 从空补充为 stockoutOrderId/stockoutOrderCode",
"文档与代码实现(qimenMethods/stockout.js create 方法)对齐"
]
},
{
"version": "2026.06.30-stockout-query-01",
"date": "2026-06-30",
"summary": "stockout.query 从占位(接口未完善)实现为完整查询:按 deliveryOrderCode 查 wms_order_stockout 主表+明细表",
"methods": [
"stockout.query"
],
"notes": [
"params 补全 request.deliveryOrder.deliveryOrderCode(body)",
"response 从空补充为 deliveryOrder 主单 + orderLines.orderLine 明细 + totalLines",
"文档与代码实现(qimenMethods/stockout.js query 方法)对齐"
],
"type": "updated"
},
{
"version": "2026.08.07-stockout-confirm-01",
"date": "2026-08-07",
"summary": "stockout.confirm 从入站改为出站:确认后由 WMS 出站调用 taobao.qimen.stockout.confirm 通知 ERP",
"methods": [
"stockout.confirm"
],
"notes": [
"移除 qimenMethods/stockout.js 中错误的入站 confirm 方法(stockout.confirm 是出站而非入站)",
"storage.stockout.confirm 确认后通过 qimenClient.send() 出站调用 taobao.qimen.stockout.confirm",
"出站 payload 包含 deliveryOrder/packages/orderLines,logisticsCode=OTHER",
"qimen.json 移除 stockout.confirm 入站条目"
],
"type": "changed",
"module": "stockout"
}
]