WMS_MAIN/test_reports/pass/017-main.md
liufumingren e73a311076 ok
2026-04-11 17:09:06 +08:00

6.3 KiB

测试结果

  • 时间: 20260410-164555
  • 范围: main
  • 文件: test/app/controller/system.storage.inventory.matchPutaway.test.js
  • 状态: pass
  • 退出码: 0

标准输出

[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 (13ms)
[egg-ts-helper] create typings\config\plugin.d.ts (1ms)
[egg-ts-helper] create typings\app\service\index.d.ts (3ms)
[egg-ts-helper] create typings\app\index.d.ts (0ms)


  test/app/controller/system.storage.inventory.matchPutaway.test.js
[SETUP] 娴嬭瘯鍟嗗搧: 娴嬭瘯鍔犺揣涓诲晢鍝?(157008), 鏂板晢鍝?156968)
[EXACT] 鏀惰揣鍗?ID: 506
[EXACT] 鏄庣粏 1: detailId=714, product=娴嬭瘯鍔犺揣涓诲晢鍝?, qty=10
[EXACT] 鏄庣粏 2: detailId=715, product=鏂板晢鍝? qty=5
[EXACT] 鍏ュ簱鍗?ID: 156, code: TEST-ENTRY-1775810833609
[EXACT] matchPutaway 鍝嶅簲: {
  "flag": "success",
  "code": 200,
  "message": "鍖归厤鍏ュ簱瀹屾垚",
  "data": {
    "matched_items": [
      {
        "stock_warehouse_id": 156968,
        "item_code": "6902226191552",
        "inbound_quantity": 5,
        "rcv_available": 5,
        "entry_planned": 5
      },
      {
        "stock_warehouse_id": 157008,
        "item_code": "6902226191553",
        "inbound_quantity": 10,
        "rcv_available": 10,
        "entry_planned": 10
      }
    ],
    "receiving_results": [
      {
        "receiving_id": 506,
        "receiving_number": "R20553028",
        "storage_status": "all"
      }
    ],
    "entry_order_results": [
      {
        "entry_order_id": 156,
        "entry_order_code": "TEST-ENTRY-1775810833609",
        "order_status": "COMPLETED",
        "source_type": "API",
        "callback_status": "SUCCESS",
        "callback_detail": {
          "success": true,
          "skipped": true
        }
      }
    ],
    "unmatched_products": []
  },
  "timestamp": 1775810834
}
[EXACT] 鏀惰揣鍗?storage_status: all
[EXACT] 鍏ュ簱鍗?order_status: COMPLETED
    鉁?should match putaway when receiving equals entry order (exact match) (5187ms)
[SURPLUS] 鏀惰揣鍗?ID: 507
[SURPLUS] 鏄庣粏 1: detailId=716, product=娴嬭瘯鍔犺揣涓诲晢鍝?, rcvQty=20
[SURPLUS] 鏄庣粏 2: detailId=717, product=鏂板晢鍝? rcvQty=15
[SURPLUS] 鍏ュ簱鍗?ID: 157, code: TEST-ENTRY-1775810838554
[SURPLUS] matchPutaway 鍝嶅簲: {
  "flag": "success",
  "code": 200,
  "message": "鍖归厤鍏ュ簱瀹屾垚",
  "data": {
    "matched_items": [
      {
        "stock_warehouse_id": 156968,
        "item_code": "6902226191552",
        "inbound_quantity": 5,
        "rcv_available": 15,
        "entry_planned": 5
      },
      {
        "stock_warehouse_id": 157008,
        "item_code": "6902226191553",
        "inbound_quantity": 10,
        "rcv_available": 20,
        "entry_planned": 10
      }
    ],
    "receiving_results": [
      {
        "receiving_id": 507,
        "receiving_number": "R20553029",
        "storage_status": "partial"
      }
    ],
    "entry_order_results": [
      {
        "entry_order_id": 157,
        "entry_order_code": "TEST-ENTRY-1775810838554",
        "order_status": "COMPLETED",
        "source_type": "API",
        "callback_status": "SUCCESS",
        "callback_detail": {
          "success": true,
          "skipped": true
        }
      }
    ],
    "unmatched_products": []
  },
  "timestamp": 1775810839
}
[SURPLUS] 鏀惰揣鍗?storage_status: partial
[SURPLUS] 鏄庣粏 716: stored=10, actual=20, status=partial
[SURPLUS] 鏄庣粏 717: stored=5, actual=15, status=partial
[SURPLUS] 鍏ュ簱鍗?order_status: COMPLETED
    鉁?should handle receiving > entry order (partial match with surplus) (4469ms)
[INSUF] 鏀惰揣鍗?ID: 508
[INSUF] 鏄庣粏 1: detailId=718, product=娴嬭瘯鍔犺揣涓诲晢鍝?, rcvQty=5
[INSUF] 鏄庣粏 2: detailId=719, product=鏂板晢鍝? rcvQty=3
[INSUF] 鍏ュ簱鍗?ID: 158, code: TEST-ENTRY-1775810842785
[INSUF] matchPutaway 鍝嶅簲: {
  "flag": "success",
  "code": 200,
  "message": "鍖归厤鍏ュ簱瀹屾垚",
  "data": {
    "matched_items": [
      {
        "stock_warehouse_id": 156968,
        "item_code": "6902226191552",
        "inbound_quantity": 3,
        "rcv_available": 3,
        "entry_planned": 8
      },
      {
        "stock_warehouse_id": 157008,
        "item_code": "6902226191553",
        "inbound_quantity": 5,
        "rcv_available": 5,
        "entry_planned": 10
      }
    ],
    "receiving_results": [
      {
        "receiving_id": 508,
        "receiving_number": "R20553030",
        "storage_status": "all"
      }
    ],
    "entry_order_results": [
      {
        "entry_order_id": 158,
        "entry_order_code": "TEST-ENTRY-1775810842785",
        "order_status": "PARTIAL_RECEIVED",
        "source_type": "API",
        "callback_status": null
      }
    ],
    "unmatched_products": [],
    "warnings": [
      "stock_warehouse_id=156968: 鏀惰揣鍙叆搴撻噺(3) < 鍏ュ簱璁″垝閲?8)锛屾寜鏀惰揣閲忓叆搴?,
      "stock_warehouse_id=157008: 鏀惰揣鍙叆搴撻噺(5) < 鍏ュ簱璁″垝閲?10)锛屾寜鏀惰揣閲忓叆搴?,
      "鍏ュ簱鍗?TEST-ENTRY-1775810842785: 鏈叏閮ㄥ叆搴撳畬鎴?PARTIAL_RECEIVED)锛屼笉瑙﹀彂鍥炰紶锛岄渶鎵嬪伐鎿嶄綔鎴栫瓑寰呭叾浠栨敹璐у叆搴?
    ]
  },
  "timestamp": 1775810843
}
[INSUF] 鏀惰揣鍗?storage_status: all
[INSUF] 鍏ュ簱鍗?order_status: PARTIAL_RECEIVED
[INSUF] warnings: [
  'stock_warehouse_id=156968: 鏀惰揣鍙叆搴撻噺(3) < 鍏ュ簱璁″垝閲?8)锛屾寜鏀惰揣閲忓叆搴?,
  'stock_warehouse_id=157008: 鏀惰揣鍙叆搴撻噺(5) < 鍏ュ簱璁″垝閲?10)锛屾寜鏀惰揣閲忓叆搴?,
  '鍏ュ簱鍗?TEST-ENTRY-1775810842785: 鏈叏閮ㄥ叆搴撳畬鎴?PARTIAL_RECEIVED)锛屼笉瑙﹀彂鍥炰紶锛岄渶鎵嬪伐鎿嶄綔鎴栫瓑寰呭叾浠栨敹璐у叆搴?
]
    鉁?should handle receiving < entry order (insufficient receiving) (4181ms)
[TEARDOWN] 鏁版嵁搴撹繛鎺ュ凡鍏抽棴


  3 passing (15s)

[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

标准错误

(empty)