WMS_MAIN/test_reports/tmp/018-main.stdout.log
liufumingren e73a311076 ok
2026-04-11 17:09:06 +08:00

138 lines
4.4 KiB
Plaintext
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.

[egg-ts-helper] create typings\app\extend\application.d.ts (2ms)
[egg-ts-helper] create typings\app\controller\index.d.ts (2ms)
[egg-ts-helper] create typings\app\model\index.d.ts (2ms)
[egg-ts-helper] create typings\config\index.d.ts (14ms)
[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 (0ms)
test/app/controller/system.storage.inventory.quickPutaway.test.js
[SETUP] 测试商品: 测试加货主商品1(157008), 新商品(156968), 纸箱24121410yc#zy-消退(101841)
[PARTIAL] 收货单 ID: 509
[PARTIAL] 明细 1: detailId=720, product=测试加货主商品1
[PARTIAL] 明细 2: detailId=721, product=新商品
[PARTIAL] 明细 3: detailId=722, product=纸箱24121410yc#zy-消退
[PARTIAL] 只绑定了 2/3 条明细的商品
[PARTIAL] quickPutaway 响应: {
"flag": "success",
"code": 400,
"message": "以下商品未匹配系统商品,请先绑定:纸箱24121410yc#zy-消退",
"data": {
"unmatched_count": 1,
"unmatched_names": "纸箱24121410yc#zy-消退"
},
"timestamp": 1775810851
}
✔ should reject quickPutaway for partially matched receiving (3995ms)
[FULL] 收货单 ID: 510
[FULL] 明细 1: detailId=723, product=测试加货主商品1, qty=10
[FULL] 明细 2: detailId=724, product=新商品, qty=5
[FULL] quickPutaway 响应: {
"flag": "success",
"code": 200,
"message": "快捷入库完成",
"data": {
"receiving_id": 510,
"receiving_number": "R20553032",
"receiving_storage_status": "all",
"entry_order": {
"id": 159,
"entry_order_code": "SCRK17758108543901055",
"order_status": "COMPLETED"
},
"items": [
{
"detail_id": 723,
"product_name": "测试加货主商品1",
"stock_warehouse_id": 157008,
"inbound_quantity": 10,
"space_id": 1,
"storage_status": "all"
},
{
"detail_id": 724,
"product_name": "新商品",
"stock_warehouse_id": 156968,
"inbound_quantity": 5,
"space_id": 1,
"storage_status": "all"
}
]
},
"timestamp": 1775810855
}
[FULL] 入库单号: SCRK17758108543901055, 明细数: 2
[FULL] 明细 723: stored=10, actual=10, status=all
[FULL] 明细 724: stored=5, actual=5, status=all
[FULL] 重复入库响应: {
"flag": "success",
"code": 400,
"message": "该收货单已全部入库,无需重复操作",
"data": null,
"timestamp": 1775810855
}
✔ should complete quickPutaway for fully matched receiving (4274ms)
[LOCK] 测试商品 ID: 157008
[LOCK] 注意:本测试需等待服务端锁超时(约50秒),请耐心等待
[LOCK] 已锁定 wms_stock_warehouse.id = 157008
[LOCK] quickPutaway 响应 (耗时 51s): {
"flag": "success",
"code": 409,
"message": "库存记录被锁定,请稍后重试",
"data": null,
"timestamp": 1775810909
}
[LOCK] 数据库连接已关闭
✔ should return 409 when stock row is locked by concurrent transaction (53797ms)
[NOLOCK] 收货单 ID: 512
[NOLOCK] 明细 1: detailId=726, product=测试加货主商品1, qty=8
[NOLOCK] 明细 2: detailId=727, product=新商品, qty=4
[NOLOCK] quickPutaway 响应: {
"flag": "success",
"code": 200,
"message": "快捷入库完成",
"data": {
"receiving_id": 512,
"receiving_number": "R20553034",
"receiving_storage_status": "all",
"entry_order": {
"id": 161,
"entry_order_code": "SCRK17758109126565861",
"order_status": "COMPLETED"
},
"items": [
{
"detail_id": 726,
"product_name": "测试加货主商品1",
"stock_warehouse_id": 157008,
"inbound_quantity": 8,
"space_id": 1,
"storage_status": "all"
},
{
"detail_id": 727,
"product_name": "新商品",
"stock_warehouse_id": 156968,
"inbound_quantity": 4,
"space_id": 1,
"storage_status": "all"
}
]
},
"timestamp": 1775810913
}
[NOLOCK] 入库单号: SCRK17758109126565861
[NOLOCK] 入库明细数: 2
[NOLOCK] 明细 726: 入库 8, 状态 all
[NOLOCK] 明细 727: 入库 4, 状态 all
✔ should complete quickPutaway without lock contention (4082ms)
4 passing (1m)
[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