[egg-ts-helper] create typings\app\extend\application.d.ts (3ms) [egg-ts-helper] create typings\app\controller\index.d.ts (2ms) [egg-ts-helper] create typings\app\model\index.d.ts (3ms) [egg-ts-helper] create typings\config\index.d.ts (13ms) [egg-ts-helper] create typings\config\plugin.d.ts (1ms) [egg-ts-helper] create typings\app\service\index.d.ts (4ms) [egg-ts-helper] create typings\app\index.d.ts (1ms) test/app/controller/system.storage.transaction.test.js [SETUP] 测试商品: 测试加货主商品1(157008), 新商品(156968) [TX] 收货单 ID: 524 [TX] 明细 1: detailId=732, product=测试加货主商品1(157008), qty=7 [TX] 明细 2: detailId=733, product=新商品(156968), qty=3 [TX] 入库前 wms_stock_transaction max_id: 34 [TX] quickPutaway 响应: { "flag": "success", "code": 200, "message": "快捷入库完成", "data": { "receiving_id": 524, "receiving_number": "R20553045", "receiving_storage_status": "all", "entry_order": { "id": 162, "entry_order_code": "SCRK17758109440121590", "order_status": "COMPLETED" }, "items": [ { "detail_id": 732, "product_name": "测试加货主商品1", "stock_warehouse_id": 157008, "inbound_quantity": 7, "space_id": 1, "storage_status": "all" }, { "detail_id": 733, "product_name": "新商品", "stock_warehouse_id": 156968, "inbound_quantity": 3, "space_id": 1, "storage_status": "all" } ] }, "timestamp": 1775810944 } [TX] 入库单: id=162, code=SCRK17758109440121590 [TX] 新增 transaction 记录数: 2 [TX] record id=35: type=INBOUND, order_type=SCRK, stock_id=157008, qty=7, entry_order_id=162, warehouse_id=100000, store_id=1000000 [TX] record id=36: type=INBOUND, order_type=SCRK, stock_id=156968, qty=3, entry_order_id=162, warehouse_id=100000, store_id=1000000 [TX] ✓ stock_id=157008 数量匹配: 7 === 7 [TX] ✓ stock_id=156968 数量匹配: 3 === 3 [TX] ✓ 全部断言通过,共 2 条 INBOUND/SCRK 记录 ✔ should write INBOUND/SCRK records to wms_stock_transaction after quickPutaway (4302ms) [TEARDOWN] 数据库连接已关闭 1 passing (5s) [mochawesome] Report JSON saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.json [mochawesome] Report HTML saved to D:\wms\node_modules\.mochawesome-reports\mochawesome.html