boundBill.log 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. [2025-04-29 17:17:31,595][wms.boundBill.post():82] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  2. [2025-04-29 17:17:31,615][wms.boundBill.success():29] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  3. [2025-04-29 18:05:58,793][wms.boundBill.post():82] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  4. [2025-04-29 18:05:58,818][wms.boundBill.success():29] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  5. [2025-04-29 18:06:01,387][wms.boundBill.post():82] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  6. [2025-04-29 18:06:01,411][wms.boundBill.success():29] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  7. [2025-04-29 18:17:56,184][wms.boundBill.post():84] [INFO] 生产入库申请请求 | 原始数据: {'billId': 14, 'number': 'BC01-2025-04-0001', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  8. [2025-04-29 18:17:56,206][wms.boundBill.success():31] [INFO] 成功响应 | 数据: {'billId': 14, 'number': 'BC01-2025-04-0001', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  9. [2025-04-29 19:28:01,616][wms.boundBill.post():84] [INFO] 生产入库申请请求 | 原始数据: {'billId': 10, 'number': 'BC01-2025-04-0010', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  10. [2025-04-29 19:28:01,638][wms.boundBill.success():31] [INFO] 成功响应 | 数据: {'billId': 10, 'number': 'BC01-2025-04-0010', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪1敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  11. [2025-04-29 20:22:04,661][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  12. [2025-04-29 20:22:26,620][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  13. [2025-04-29 20:23:35,604][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 5, 'number': 'BC01-2025-04-0054', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  14. [2025-04-29 20:23:35,626][wms.boundBill.success():33] [INFO] 成功响应 | 数据: {'billId': 5, 'number': 'BC01-2025-04-0054', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  15. [2025-04-29 20:23:36,918][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 5, 'number': 'BC01-2025-04-0054', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  16. [2025-04-29 20:23:36,944][wms.boundBill.success():33] [INFO] 成功响应 | 数据: {'billId': 5, 'number': 'BC01-2025-04-0054', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  17. [2025-04-29 20:23:38,780][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 5, 'number': 'BC01-2025-04-0054', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  18. [2025-04-29 20:23:38,803][wms.boundBill.success():33] [INFO] 成功响应 | 数据: {'billId': 5, 'number': 'BC01-2025-04-0054', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  19. [2025-04-29 20:23:57,551][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  20. [2025-04-29 20:23:57,582][wms.boundBill.success():33] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  21. [2025-04-29 20:24:14,022][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  22. [2025-04-29 20:24:14,044][wms.boundBill.success():33] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  23. [2025-04-29 20:24:26,247][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  24. [2025-04-29 20:24:26,266][wms.boundBill.success():33] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  25. [2025-04-29 21:35:40,529][wms.boundBill.post():78] [INFO] 生产入库申请请求 | 原始数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  26. [2025-04-29 21:35:40,554][wms.boundBill.success():34] [INFO] 成功响应 | 数据: {'billId': 4, 'number': 'BC01-2025-04-0004', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  27. [2025-04-29 21:38:17,636][wms.boundBill.post():314] [ERROR] 入库单生成异常 | billId: 4
  28. Traceback (most recent call last):
  29. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 290, in post
  30. with transaction.atomic():
  31. NameError: name 'transaction' is not defined
  32. [2025-04-29 21:39:45,038][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4
  33. Traceback (most recent call last):
  34. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 286, in post
  35. bill_obj, bound_list = self.validate_and_lock(bill_id)
  36. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 325, in validate_and_lock
  37. existing_bound = BoundListModel.objects.filter(
  38. File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
  39. return getattr(self.get_queryset(), name)(*args, **kwargs)
  40. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1420, in filter
  41. return self._filter_or_exclude(False, args, kwargs)
  42. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1438, in _filter_or_exclude
  43. clone._filter_or_exclude_inplace(negate, args, kwargs)
  44. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1445, in _filter_or_exclude_inplace
  45. self._query.add_q(Q(*args, **kwargs))
  46. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1532, in add_q
  47. clause, _ = self._add_q(q_object, self.used_aliases)
  48. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1562, in _add_q
  49. child_clause, needed_inner = self.build_filter(
  50. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1388, in build_filter
  51. return self._add_q(
  52. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1562, in _add_q
  53. child_clause, needed_inner = self.build_filter(
  54. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1407, in build_filter
  55. lookups, parts, reffed_expression = self.solve_lookup_type(arg)
  56. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1217, in solve_lookup_type
  57. _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
  58. File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1709, in names_to_path
  59. raise FieldError(
  60. django.core.exceptions.FieldError: Cannot resolve keyword 'source_bill_id' into field. Choices are: base_type, bound_bs_type, bound_code, bound_code_type, bound_date, bound_department, bound_desc, bound_detail, bound_month, bound_status, bound_type, containerwcsmodel, create_time, creater, id, is_delete, note, openid, out_bound_detail, relate_bill, relate_bill_id, update_time
  61. [2025-04-29 21:41:34,815][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4
  62. Traceback (most recent call last):
  63. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 289, in post
  64. bound_list = self.create_bound_list(bill_obj)
  65. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 415, in create_bound_list
  66. return BoundListModel.objects.create(
  67. File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
  68. return getattr(self.get_queryset(), name)(*args, **kwargs)
  69. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 671, in create
  70. obj.save(force_insert=True, using=self.db)
  71. File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 812, in save
  72. self.save_base(
  73. File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 863, in save_base
  74. updated = self._save_table(
  75. File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 1006, in _save_table
  76. results = self._do_insert(
  77. File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 1047, in _do_insert
  78. return manager._insert(
  79. File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
  80. return getattr(self.get_queryset(), name)(*args, **kwargs)
  81. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert
  82. return query.get_compiler(using=using).execute_sql(returning_fields)
  83. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1659, in execute_sql
  84. for sql, params in self.as_sql():
  85. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1583, in as_sql
  86. value_rows = [
  87. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1584, in <listcomp>
  88. [
  89. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1585, in <listcomp>
  90. self.prepare_value(field, self.pre_save_val(field, obj))
  91. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1523, in prepare_value
  92. value = field.get_db_prep_save(value, connection=self.connection)
  93. File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 925, in get_db_prep_save
  94. return self.get_db_prep_value(value, connection=connection, prepared=False)
  95. File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 1438, in get_db_prep_value
  96. value = self.get_prep_value(value)
  97. File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 1433, in get_prep_value
  98. return self.to_python(value)
  99. File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 1399, in to_python
  100. raise exceptions.ValidationError(
  101. django.core.exceptions.ValidationError: ['“2025-04-27 17:51:08”的值有一个错误的日期格式。它的格式应该是YYYY-MM-DD']
  102. [2025-04-29 21:43:56,691][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4
  103. Traceback (most recent call last):
  104. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 289, in post
  105. bound_list = self.create_bound_list(bill_obj)
  106. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 416, in create_bound_list
  107. bound_date=bill_obj.date.strftime("%Y-%m-%d"),
  108. AttributeError: 'str' object has no attribute 'strftime'
  109. [2025-04-29 21:45:18,834][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4
  110. Traceback (most recent call last):
  111. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 292, in post
  112. self.process_materials(bill_obj, bound_list)
  113. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 356, in process_materials
  114. qs_set = BoundBatchModel.objects.filter( goods_code=bill_obj.goods_code, bound_month=order_month, is_delete=False)
  115. AttributeError: 'InboundBill' object has no attribute 'goods_code'
  116. [2025-04-29 21:46:16,673][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4
  117. Traceback (most recent call last):
  118. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  119. return self.cursor.execute(sql, params)
  120. File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute
  121. return Database.Cursor.execute(self, query, params)
  122. sqlite3.IntegrityError: UNIQUE constraint failed: boundbatch.bound_number
  123. The above exception was the direct cause of the following exception:
  124. Traceback (most recent call last):
  125. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 292, in post
  126. self.process_materials(bill_obj, bound_list)
  127. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 408, in process_materials
  128. BoundBatchModel.objects.bulk_create(batch_list)
  129. File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
  130. return getattr(self.get_queryset(), name)(*args, **kwargs)
  131. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create
  132. returned_columns = self._batched_insert(
  133. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert
  134. self._insert(
  135. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert
  136. return query.get_compiler(using=using).execute_sql(returning_fields)
  137. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql
  138. cursor.execute(sql, params)
  139. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute
  140. return super().execute(sql, params)
  141. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  142. return self._execute_with_wrappers(
  143. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers
  144. return executor(sql, params, many, context)
  145. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  146. return self.cursor.execute(sql, params)
  147. File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__
  148. raise dj_exc_value.with_traceback(traceback) from exc_value
  149. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  150. return self.cursor.execute(sql, params)
  151. File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute
  152. return Database.Cursor.execute(self, query, params)
  153. django.db.utils.IntegrityError: UNIQUE constraint failed: boundbatch.bound_number
  154. [2025-04-29 21:49:50,871][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4
  155. Traceback (most recent call last):
  156. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  157. return self.cursor.execute(sql, params)
  158. File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute
  159. return Database.Cursor.execute(self, query, params)
  160. sqlite3.IntegrityError: UNIQUE constraint failed: boundbatch.bound_number
  161. The above exception was the direct cause of the following exception:
  162. Traceback (most recent call last):
  163. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 292, in post
  164. self.process_materials(bill_obj, bound_list)
  165. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 408, in process_materials
  166. BoundBatchModel.objects.bulk_create(batch_list)
  167. File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
  168. return getattr(self.get_queryset(), name)(*args, **kwargs)
  169. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create
  170. returned_columns = self._batched_insert(
  171. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert
  172. self._insert(
  173. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert
  174. return query.get_compiler(using=using).execute_sql(returning_fields)
  175. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql
  176. cursor.execute(sql, params)
  177. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute
  178. return super().execute(sql, params)
  179. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  180. return self._execute_with_wrappers(
  181. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers
  182. return executor(sql, params, many, context)
  183. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  184. return self.cursor.execute(sql, params)
  185. File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__
  186. raise dj_exc_value.with_traceback(traceback) from exc_value
  187. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  188. return self.cursor.execute(sql, params)
  189. File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute
  190. return Database.Cursor.execute(self, query, params)
  191. django.db.utils.IntegrityError: UNIQUE constraint failed: boundbatch.bound_number
  192. [2025-04-29 21:53:49,575][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004
  193. [2025-04-29 21:53:49,578][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4
  194. Traceback (most recent call last):
  195. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  196. return self.cursor.execute(sql, params)
  197. File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute
  198. return Database.Cursor.execute(self, query, params)
  199. sqlite3.IntegrityError: UNIQUE constraint failed: boundbatch.bound_number
  200. The above exception was the direct cause of the following exception:
  201. Traceback (most recent call last):
  202. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 293, in post
  203. self.process_materials(bill_obj, bound_list)
  204. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 409, in process_materials
  205. BoundBatchModel.objects.bulk_create(batch_list)
  206. File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
  207. return getattr(self.get_queryset(), name)(*args, **kwargs)
  208. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create
  209. returned_columns = self._batched_insert(
  210. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert
  211. self._insert(
  212. File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert
  213. return query.get_compiler(using=using).execute_sql(returning_fields)
  214. File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql
  215. cursor.execute(sql, params)
  216. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute
  217. return super().execute(sql, params)
  218. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute
  219. return self._execute_with_wrappers(
  220. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers
  221. return executor(sql, params, many, context)
  222. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  223. return self.cursor.execute(sql, params)
  224. File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__
  225. raise dj_exc_value.with_traceback(traceback) from exc_value
  226. File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute
  227. return self.cursor.execute(sql, params)
  228. File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute
  229. return Database.Cursor.execute(self, query, params)
  230. django.db.utils.IntegrityError: UNIQUE constraint failed: boundbatch.bound_number
  231. [2025-04-29 22:12:02,503][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004
  232. [2025-04-29 22:12:02,506][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4
  233. Traceback (most recent call last):
  234. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 293, in post
  235. self.process_materials(bill_obj, bound_list)
  236. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 363, in process_materials
  237. bound_last_code = qs_set.order_by('-id').first().bound_number
  238. AttributeError: 'NoneType' object has no attribute 'bound_number'
  239. [2025-04-29 22:13:06,543][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004
  240. [2025-04-29 22:13:06,546][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4
  241. Traceback (most recent call last):
  242. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 293, in post
  243. self.process_materials(bill_obj, bound_list)
  244. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 363, in process_materials
  245. bound_last_code = qs_set.order_by('-id').first().bound_number
  246. AttributeError: 'NoneType' object has no attribute 'bound_number'
  247. [2025-04-29 22:25:48,987][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004
  248. [2025-04-29 22:25:48,997][wms.boundBill.post():299] [INFO] 入库单生成成功 | billId: 4 -> boundCode: BC01-2025-04-0004
  249. [2025-04-29 22:25:54,856][wms.boundBill.validate_and_lock():322] [WARNING] 单据已生成过入库单 | status: 1
  250. [2025-04-29 22:25:54,857][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4
  251. Traceback (most recent call last):
  252. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 286, in post
  253. bill_obj, bound_list = self.validate_and_lock(bill_id)
  254. File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 323, in validate_and_lock
  255. raise Exception("该单据已生成过入库单")
  256. Exception: 该单据已生成过入库单
  257. [2025-04-29 22:29:23,203][wms.boundBill.post():79] [INFO] 生产入库申请请求 | 原始数据: {'billId': 5, 'number': 'BC01-2025-04-0005', 'type': 1, 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  258. [2025-04-29 22:29:23,233][wms.boundBill.success():35] [INFO] 成功响应 | 数据: {'billId': 5, 'number': 'BC01-2025-04-0005', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'totalCount': 2, 'materials': [{'entryIds': 71, 'production_batch': 'QBF03-20250401', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'goods_std': '标三', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]}
  259. [2025-04-29 22:29:33,844][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0005
  260. [2025-04-29 22:29:33,856][wms.boundBill.post():299] [INFO] 入库单生成成功 | billId: 5 -> boundCode: BC01-2025-04-0005