[2025-05-07 17:03:59,568][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:07:42,103][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:08:56,932][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:09:21,114][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:10:01,747][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '123456', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:11:20,207][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '123456', 'goods_std': 'GGXH'}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:16:44,148][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:17:30,535][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '1', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:17:30,562][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'department': '1', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-07 17:19:05,037][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:20:57,116][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:21:03,567][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '1', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:21:03,586][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'department': '1', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-07 17:21:56,910][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:21:56,961][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-07 17:22:05,956][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:23:23,324][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:25:09,025][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'totalCount': 1, 'type': 1, 'warehouse': 'W01'} [2025-05-07 17:25:09,071][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-07 17:26:46,110][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '123456', 'goods_std': 'GGXH'}], 'billId': 2203618341900258304, 'creater': '刘清', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-07 17:26:46,189][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '123456', 'goods_std': 'GGXH'}]} [2025-05-07 17:51:07,501][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 2203618341900258304 [2025-05-07 17:51:07,502][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-07 17:51:07,512][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: GDHB-20250429-000001 [2025-05-07 17:51:07,527][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 2203618341900258304 -> boundCode: GDHB-20250429-000001 [2025-05-07 18:19:13,232][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'CGSL-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '', 'goods_std': ''}], 'billId': 2200177249217422336, 'creater': '刘清', 'department': '', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:21:11,908][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'CGSL-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '111', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '222', 'goods_std': 'ggxh222'}], 'billId': 2200177249217422336, 'creater': '刘清', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:21:11,914][wms.boundBill.post():135] [ERROR] 服务器内部错误 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 212, in save_or_update_inbound_bill bound_bill = InboundBill.objects.get(billId=serializer.validated_data['billId']) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 650, in get raise self.model.DoesNotExist( erp.models.InboundBill.DoesNotExist: InboundBill matching query does not exist. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 124, in post bound_bill = self.save_or_update_inbound_bill(serializer) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 229, in save_or_update_inbound_bill department=serializer.validated_data['department'], KeyError: 'department' [2025-05-07 18:21:11,918][wms.boundBill.error():67] [ERROR] 入库申请错误: 系统处理异常 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 212, in save_or_update_inbound_bill bound_bill = InboundBill.objects.get(billId=serializer.validated_data['billId']) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 650, in get raise self.model.DoesNotExist( erp.models.InboundBill.DoesNotExist: InboundBill matching query does not exist. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 124, in post bound_bill = self.save_or_update_inbound_bill(serializer) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 229, in save_or_update_inbound_bill department=serializer.validated_data['department'], KeyError: 'department' [2025-05-07 18:24:01,465][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'CGSL-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '111', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '222', 'goods_std': 'ggxh222'}], 'billId': 2200177249217422336, 'creater': '刘清', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:24:01,470][wms.boundBill.post():135] [ERROR] 服务器内部错误 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 212, in save_or_update_inbound_bill bound_bill = InboundBill.objects.get(billId=serializer.validated_data['billId']) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 650, in get raise self.model.DoesNotExist( erp.models.InboundBill.DoesNotExist: InboundBill matching query does not exist. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 124, in post bound_bill = self.save_or_update_inbound_bill(serializer) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 229, in save_or_update_inbound_bill department=serializer.validated_data['department'], KeyError: 'department' [2025-05-07 18:24:01,471][wms.boundBill.error():67] [ERROR] 入库申请错误: 系统处理异常 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 212, in save_or_update_inbound_bill bound_bill = InboundBill.objects.get(billId=serializer.validated_data['billId']) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 650, in get raise self.model.DoesNotExist( erp.models.InboundBill.DoesNotExist: InboundBill matching query does not exist. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 124, in post bound_bill = self.save_or_update_inbound_bill(serializer) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 229, in save_or_update_inbound_bill department=serializer.validated_data['department'], KeyError: 'department' [2025-05-07 18:25:07,197][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'CGSL-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '111', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '222', 'goods_std': 'ggxh222'}], 'billId': 2200177249217422336, 'creater': '刘清', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:25:07,219][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2200177249217422336, 'number': 'CGSL-250424-000001', 'type': 1, 'date': '2025-04-24 00:00:00.0', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 2, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '111', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '222', 'goods_std': 'ggxh222'}]} [2025-05-07 18:25:25,523][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 2200177249217422336 [2025-05-07 18:25:25,524][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-07 18:25:25,535][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: CGSL-250424-000001 [2025-05-07 18:25:25,561][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 2200177249217422336 -> boundCode: CGSL-250424-000001 [2025-05-07 18:27:22,363][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 2200177249217422336 [2025-05-07 18:27:22,364][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 1 [2025-05-07 18:27:22,364][wms.boundBill.validate_and_lock():346] [WARNING] 单据已生成过入库单 | status: 1 [2025-05-07 18:27:22,365][wms.boundBill.post():328] [ERROR] 入库单生成异常 | billId: 2200177249217422336 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 295, in post bill_obj, bound_list = self.validate_and_lock(bill_id) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 347, in validate_and_lock raise Exception("该单据已生成过入库单") Exception: 该单据已生成过入库单 [2025-05-07 18:27:49,399][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'CGSL-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '111', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '222', 'goods_std': 'ggxh222'}], 'billId': 2200177249217422336, 'creater': '刘清', 'totalCount': 2, 'type': '2', 'warehouse': 'W01'} [2025-05-07 18:27:49,457][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2200177249217422336, 'number': 'CGSL-250424-000001', 'type': 2, 'date': '2025-04-24 00:00:00.0', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 2, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200177500884050944, 'goods_unit': '个', 'plan_qty': 10.0, 'goods_code': 'Item-00000001', 'production_batch': '111', 'goods_std': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200177500884050945, 'goods_unit': '个', 'plan_qty': 5.0, 'goods_code': 'Item-00000002', 'production_batch': '222', 'goods_std': 'ggxh222'}]} [2025-05-07 18:31:23,040][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 00:00:00.0', 'number': 'QTRK-250429-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203620976728475648, 'goods_unit': '个', 'plan_qty': 1.0, 'goods_code': 'Item-00000001', 'production_batch': '333', 'goods_std': '111'}], 'billId': 2203620976728476672, 'creater': '刘清', 'department': 'Org-00003', 'totalCount': 1, 'type': '3', 'warehouse': 'W01'} [2025-05-07 18:31:23,103][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203620976728476672, 'number': 'QTRK-250429-000001', 'type': 3, 'date': '2025-04-29 00:00:00.0', 'department': 'Org-00003', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203620976728475648, 'goods_unit': '个', 'plan_qty': 1.0, 'goods_code': 'Item-00000001', 'production_batch': '333', 'goods_std': '111'}]} [2025-05-07 18:31:46,597][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 2203620976728476672 [2025-05-07 18:31:46,597][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-07 18:31:46,606][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: QTRK-250429-000001 [2025-05-07 18:31:46,616][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 2203620976728476672 -> boundCode: QTRK-250429-000001 [2025-05-07 18:35:20,051][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-05-07 00:00:00.0', 'number': 'ZJDB-250429-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203632462158891008, 'goods_unit': '个', 'plan_qty': 1.0, 'goods_code': 'Item-00000001', 'production_batch': '444', 'goods_std': '111'}], 'billId': 2203632462158892032, 'creater': '刘清', 'department': 'Org-00003', 'totalCount': 1, 'type': '3', 'warehouse': 'W01'} [2025-05-07 18:35:20,089][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203632462158892032, 'number': 'ZJDB-250429-000001', 'type': 3, 'date': '2025-05-07 00:00:00.0', 'department': 'Org-00003', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203632462158891008, 'goods_unit': '个', 'plan_qty': 1.0, 'goods_code': 'Item-00000001', 'production_batch': '444', 'goods_std': '111'}]} [2025-05-07 18:37:21,251][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-05-07 00:00:00.0', 'number': 'ZJDB-250429-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203632462158891008, 'goods_unit': '个', 'plan_qty': 1.0, 'goods_code': 'Item-00000001', 'production_batch': '444', 'goods_std': '111'}], 'billId': 2203632462158892032, 'creater': '刘清', 'department': 'Org-00003', 'totalCount': 1, 'type': '4', 'warehouse': 'W01'} [2025-05-07 18:37:21,303][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203632462158892032, 'number': 'ZJDB-250429-000001', 'type': 4, 'date': '2025-05-07 00:00:00.0', 'department': 'Org-00003', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203632462158891008, 'goods_unit': '个', 'plan_qty': 1.0, 'goods_code': 'Item-00000001', 'production_batch': '444', 'goods_std': '111'}]} [2025-05-07 18:39:01,052][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 2203632462158892032 [2025-05-07 18:39:01,053][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-07 18:39:01,063][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: ZJDB-250429-000001 [2025-05-07 18:39:01,077][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 2203632462158892032 -> boundCode: ZJDB-250429-000001 [2025-05-07 18:43:58,312][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'billId': 2, 'number': 'B01-2025-04-0002', 'type': 1, 'type_code': 'B01', 'date': '2025-04-27 17:51:08', 'business_type': 'B01', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'note': '出库备注', 'totalCount': 2, 'materials': [{'entryIds': 52, 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'production_batch': 'QBF03-20250401', 'goods_out_qty': 5, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 53, 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'production_batch': 'QBF03-20250402', 'goods_out_qty': 5, 'goods_unit': 'kg/袋', 'note': ''}]} [2025-05-07 18:43:58,504][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2, 'number': 'B01-2025-04-0002', 'type': 1, 'date': '2025-04-27 17:51:08', 'department': 'D01', 'warehouse': 'W01', 'creater': '洪敏', 'note': '出库备注', 'totalCount': 2, 'materials': [{'entryIds': 52, 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'production_batch': 'QBF03-20250401', 'goods_out_qty': 5, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 53, 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'production_batch': 'QBF03-20250402', 'goods_out_qty': 5, 'goods_unit': 'kg/袋', 'note': ''}]} [2025-05-07 18:44:52,618][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'FHTZ-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200182571294270464, 'goods_out_qty': 1.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200182571294270465, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000002', 'production_batch': '222'}], 'billId': 2200182534770270208, 'creater': '刘清', 'department': '', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:45:47,984][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'FHTZ-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200182571294270464, 'goods_out_qty': 1.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200182571294270465, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000002', 'production_batch': '222'}], 'billId': 2200182534770270208, 'creater': '刘清', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:45:48,002][wms.boundBill.post():720] [ERROR] 服务器内部错误 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 826, in save_or_update_material_detail material_detail = OutMaterialDetail.objects.get(bound_billId=bound_bill, entryIds=item['entryIds']) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 650, in get raise self.model.DoesNotExist( erp.models.OutMaterialDetail.DoesNotExist: OutMaterialDetail matching query does not exist. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 712, in post self.save_or_update_material_detail(bound_bill, serializer) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 844, in save_or_update_material_detail Material_entryIds = MaterialDetail.objects.filter(entryIds=item['source_entryIds']).first() KeyError: 'source_entryIds' [2025-05-07 18:45:48,005][wms.boundBill.error():67] [ERROR] 入库申请错误: 系统处理异常 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 826, in save_or_update_material_detail material_detail = OutMaterialDetail.objects.get(bound_billId=bound_bill, entryIds=item['entryIds']) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 650, in get raise self.model.DoesNotExist( erp.models.OutMaterialDetail.DoesNotExist: OutMaterialDetail matching query does not exist. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 712, in post self.save_or_update_material_detail(bound_bill, serializer) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 844, in save_or_update_material_detail Material_entryIds = MaterialDetail.objects.filter(entryIds=item['source_entryIds']).first() KeyError: 'source_entryIds' [2025-05-07 18:48:06,038][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-24 00:00:00.0', 'number': 'FHTZ-250424-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200182571294270464, 'goods_out_qty': 1.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200182571294270465, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000002', 'production_batch': '222'}], 'billId': 2200182534770270208, 'creater': '刘清', 'totalCount': 2, 'type': '1', 'warehouse': 'W01'} [2025-05-07 18:48:06,062][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2200182534770270208, 'number': 'FHTZ-250424-000001', 'type': 1, 'date': '2025-04-24 00:00:00.0', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 2, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2200182571294270464, 'goods_out_qty': 1.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}, {'goods_name': '物料2', 'note': '', 'entryIds': 2200182571294270465, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000002', 'production_batch': '222'}]} [2025-05-07 18:54:30,096][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2200182534770270208 [2025-05-07 18:54:30,097][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 18:54:30,110][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: FHTZ-250424-000001 [2025-05-07 18:54:30,135][wms.boundBill.post():502] [INFO] 出库单生成成功 | billId: 2200182534770270208 -> boundCode: FHTZ-250424-000001 [2025-05-07 18:57:58,046][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-29 00:00:00.0', 'number': 'SCLL-20250429-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203630617831147520, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}], 'billId': 2203630578857674752, 'creater': '刘清', 'department': '', 'totalCount': 1, 'type': '2', 'warehouse': 'W01'} [2025-05-07 19:01:03,011][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-29 00:00:00.0', 'number': 'SCLL-20250429-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203630617831147520, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}], 'billId': 2203630578857674752, 'creater': '刘清', 'totalCount': 1, 'type': '2', 'warehouse': 'W01'} [2025-05-07 19:01:03,038][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203630578857674752, 'number': 'SCLL-20250429-000001', 'type': 2, 'date': '2025-04-29 00:00:00.0', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203630617831147520, 'goods_out_qty': 2.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}]} [2025-05-07 19:01:25,663][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2203630578857674752 [2025-05-07 19:01:25,664][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 19:01:25,675][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: SCLL-20250429-000001 [2025-05-07 19:01:25,691][wms.boundBill.post():521] [ERROR] 出库单生成异常 | billId: 2203630578857674752 Traceback (most recent call last): File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) sqlite3.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 496, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 632, in process_materials OutBoundDetailModel.objects.bulk_create(detail_list) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create returned_columns = self._batched_insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert self._insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute return super().execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers( File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code [2025-05-07 19:01:34,344][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2203630578857674752 [2025-05-07 19:01:34,344][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 19:01:34,355][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: SCLL-20250429-000001 [2025-05-07 19:01:34,369][wms.boundBill.post():521] [ERROR] 出库单生成异常 | billId: 2203630578857674752 Traceback (most recent call last): File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) sqlite3.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 496, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 632, in process_materials OutBoundDetailModel.objects.bulk_create(detail_list) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create returned_columns = self._batched_insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert self._insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute return super().execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers( File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code [2025-05-07 19:02:11,798][wms.boundBill.post():674] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-29 00:00:00.0', 'number': 'QTCK-250429-000001', 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203622121958018048, 'goods_out_qty': 1.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}], 'billId': 2203622121958017024, 'creater': '刘清', 'totalCount': 1, 'type': '3', 'warehouse': 'W01'} [2025-05-07 19:02:11,822][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203622121958017024, 'number': 'QTCK-250429-000001', 'type': 3, 'date': '2025-04-29 00:00:00.0', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料1', 'note': '', 'entryIds': 2203622121958018048, 'goods_out_qty': 1.0, 'goods_unit': '个', 'goods_code': 'Item-00000001', 'production_batch': '111'}]} [2025-05-07 19:07:24,425][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2203630578857674752 [2025-05-07 19:07:24,426][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 19:07:24,429][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: SCLL-20250429-000001 [2025-05-07 19:07:24,435][wms.boundBill.post():502] [INFO] 出库单生成成功 | billId: 2203630578857674752 -> boundCode: SCLL-20250429-000001 [2025-05-07 19:07:28,988][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2203622121958017024 [2025-05-07 19:07:28,989][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 19:07:29,000][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: QTCK-250429-000001 [2025-05-07 19:07:29,016][wms.boundBill.post():521] [ERROR] 出库单生成异常 | billId: 2203622121958017024 Traceback (most recent call last): File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) sqlite3.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 496, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 632, in process_materials OutBoundDetailModel.objects.bulk_create(detail_list) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create returned_columns = self._batched_insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert self._insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute return super().execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers( File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code [2025-05-07 19:07:50,730][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2203622121958017024 [2025-05-07 19:07:50,731][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 19:07:50,743][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: QTCK-250429-000001 [2025-05-07 19:07:50,761][wms.boundBill.post():521] [ERROR] 出库单生成异常 | billId: 2203622121958017024 Traceback (most recent call last): File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) sqlite3.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 496, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 632, in process_materials OutBoundDetailModel.objects.bulk_create(detail_list) File "d:\language\python38\lib\site-packages\django\db\models\manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 815, in bulk_create returned_columns = self._batched_insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1816, in _batched_insert self._insert( File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1790, in _insert return query.get_compiler(using=using).execute_sql(returning_fields) File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1660, in execute_sql cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 103, in execute return super().execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 67, in execute return self._execute_with_wrappers( File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "d:\language\python38\lib\site-packages\django\db\backends\utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "d:\language\python38\lib\site-packages\django\db\backends\sqlite3\base.py", line 357, in execute return Database.Cursor.execute(self, query, params) django.db.utils.IntegrityError: UNIQUE constraint failed: Outbounddetail.detail_code [2025-05-07 19:09:10,422][wms.boundBill.validate_and_lock():535] [INFO] 锁定原始单据成功 | billId: 2203622121958017024 [2025-05-07 19:09:10,422][wms.boundBill.validate_and_lock():536] [INFO] 原始单据状态: 0 [2025-05-07 19:09:10,424][wms.boundBill.post():494] [INFO] 创建出入库主单成功 | bound_code: QTCK-250429-000001 [2025-05-07 19:09:10,428][wms.boundBill.post():502] [INFO] 出库单生成成功 | billId: 2203622121958017024 -> boundCode: QTCK-250429-000001 [2025-05-08 08:56:52,827][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'billId': 8, 'number': 'BC01-2025-04-0008', 'type': 2, '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': ''}]} [2025-05-08 08:56:52,848][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 8, 'number': 'BC01-2025-04-0008', 'type': 2, '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': ''}]} [2025-05-08 08:57:06,284][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 8 [2025-05-08 08:57:06,284][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-08 08:57:06,286][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0008 [2025-05-08 08:57:06,291][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 8 -> boundCode: BC01-2025-04-0008 [2025-05-08 09:00:07,723][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'billId': 9, 'number': 'BC01-2025-04-0009', 'type': 2, '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)', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]} [2025-05-08 09:00:07,811][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 9, 'number': 'BC01-2025-04-0009', 'type': 2, '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)', 'plan_qty': 20, 'goods_unit': 'kg/袋', 'note': ''}, {'entryIds': 72, 'production_batch': 'QBF03-20250402', 'goods_code': 'B000345', 'goods_name': '二水槲皮素颗粒(QBF03)', 'plan_qty': 10, 'goods_unit': 'kg/袋', 'note': ''}]} [2025-05-08 09:01:45,561][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 9 [2025-05-08 09:01:45,562][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-08 09:01:45,567][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0009 [2025-05-08 09:01:45,576][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 9 -> boundCode: BC01-2025-04-0009 [2025-05-08 09:05:43,498][wms.boundBill.post():879] [INFO] 批次信息更新 | 原始数据: {'totalCount': 2, 'materials': [{'id': 1235, 'product_name': '漆黄素', 'product_code': 'FAF01', 'product_std': '', 'product_unit': 'kg/袋'}, {'id': 1359, 'product_name': '圣草次苷', 'product_code': 'LCF01', 'product_unit': 'kg/袋'}]} [2025-05-08 09:05:43,514][wms.boundBill.post():926] [WARNING] Material processing failed: {'id': 1235, 'product_name': '漆黄素', 'product_code': 'FAF01', 'product_std': '', 'product_unit': 'kg/袋'} | Error: ValidationError: {'product_std': ['此字段不能为空。']} [2025-05-08 09:05:43,577][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 09:09:31,059][wms.boundBill.post():879] [INFO] 批次信息更新 | 原始数据: {'totalCount': 2, 'materials': [{'id': 1235, 'product_name': '漆黄素', 'product_code': 'FAF01', 'product_std': '', 'product_unit': 'kg/袋'}, {'id': 1359, 'product_name': '圣草次苷', 'product_code': 'LCF01', 'product_unit': 'kg/袋'}]} [2025-05-08 09:09:31,071][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 09:11:40,561][wms.boundBill.post():879] [INFO] 批次信息更新 | 原始数据: {'materials': [{'id': 2170317619020707843, 'product_code': 'BFW0034', 'product_name': '乙醇(F2502)', 'product_unit': 'kg', 'product_std': '内控标准一'}], 'totalCount': 1} [2025-05-08 09:11:40,576][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 09:12:32,414][wms.boundBill.post():879] [INFO] 批次信息更新 | 原始数据: {'materials': [{'id': 2158100204123874313, 'product_code': 'BG00003', 'product_name': '槲皮素混合物', 'product_unit': 'kg', 'product_std': ''}], 'totalCount': 1} [2025-05-08 09:12:32,422][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 09:15:33,537][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': 'Thu May 08 09:14:00 GMT+08:00 2025', 'number': 'GDHB-20250508-000012', 'materials': [{'goods_name': '新橙皮甙(D/NAF01)', 'entryIds': 2210120576591215616, 'goods_unit': 'kg', 'plan_qty': 20.0, 'goods_code': 'DG00001', 'production_batch': '1001', 'goods_std': '标准一'}], 'billId': 2210120046355695616, 'creater': '刘清', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-08 09:15:33,560][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2210120046355695616, 'number': 'GDHB-20250508-000012', 'type': 1, 'date': 'Thu May 08 09:14:00 GMT+08:00 2025', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '新橙皮甙(D/NAF01)', 'entryIds': 2210120576591215616, 'goods_unit': 'kg', 'plan_qty': 20.0, 'goods_code': 'DG00001', 'production_batch': '1001', 'goods_std': '标准一'}]} [2025-05-08 09:17:58,882][wms.boundBill.validate_and_lock():342] [INFO] 锁定原始单据成功 | billId: 2210120046355695616 [2025-05-08 09:17:58,883][wms.boundBill.validate_and_lock():343] [INFO] 原始单据状态: 0 [2025-05-08 09:17:58,895][wms.boundBill.post():300] [INFO] 创建出入库主单成功 | bound_code: GDHB-20250508-000012 [2025-05-08 09:17:58,917][wms.boundBill.post():308] [INFO] 入库单生成成功 | billId: 2210120046355695616 -> boundCode: GDHB-20250508-000012 [2025-05-08 09:23:42,791][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-08 09:23:42,818][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-08 09:26:43,391][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 09:45:16,449][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-08 09:45:16,471][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-08 09:56:41,855][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': '2025-04-29 09:56:16.0', 'number': 'GDHB-20250429-000001', 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}], 'billId': 2203618341900258304, 'creater': '刘清', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-08 09:56:41,885][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2203618341900258304, 'number': 'GDHB-20250429-000001', 'type': 1, 'date': '2025-04-29 09:56:16.0', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '物料3', 'entryIds': 2203618480119351296, 'goods_unit': '个', 'plan_qty': 8.0, 'goods_code': 'Item-00000003', 'production_batch': '', 'goods_std': ''}]} [2025-05-08 10:03:59,792][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': 'Thu May 08 10:03:21 GMT+08:00 2025', 'number': 'GDHB-20250508-000013', 'materials': [{'goods_name': '新橙皮甙(D/NAF01)', 'entryIds': 2210145066519947264, 'goods_unit': 'kg', 'plan_qty': 10.0, 'goods_code': 'DG00001', 'production_batch': '1002', 'goods_std': '标准一'}], 'billId': 2210144887247006720, 'creater': '刘清', 'totalCount': 1, 'type': '1', 'warehouse': 'W01'} [2025-05-08 10:03:59,847][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2210144887247006720, 'number': 'GDHB-20250508-000013', 'type': 1, 'date': 'Thu May 08 10:03:21 GMT+08:00 2025', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '新橙皮甙(D/NAF01)', 'entryIds': 2210145066519947264, 'goods_unit': 'kg', 'plan_qty': 10.0, 'goods_code': 'DG00001', 'production_batch': '1002', 'goods_std': '标准一'}]} [2025-05-08 10:05:20,399][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 10:11:10,251][wms.boundBill.post():1020] [INFO] 入库单号GDHB-20250508-000013,物料明细2210145066519947264,更新状态,审核通过None [2025-05-08 10:11:10,260][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 10:12:14,210][wms.boundBill.post():1021] [INFO] 入库单号GDHB-20250508-000013,物料明细2210145066519947264,更新状态,审核通过None [2025-05-08 10:12:14,218][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 10:13:59,245][wms.boundBill.post():1022] [INFO] 入库单号GDHB-20250508-000013,物料明细2210145066519947264,更新状态,审核通过WGRK-20250508-000009 [2025-05-08 10:13:59,253][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 10:15:50,218][wms.boundBill.post():1022] [INFO] [1]入库单号GDHB-20250508-000013,物料明细2210145066519947264,更新状态,审核通过WGRK-20250508-000009 [2025-05-08 10:15:50,219][wms.boundBill.post():1023] [INFO] [2]入库单号GDHB-20250508-000013,物料明细2210145066519947264,更新状态,审核通过WGRK-20250508-000009 [2025-05-08 10:15:50,225][wms.boundBill.success():45] [INFO] 成功响应 | 数据: [] [2025-05-08 10:22:29,964][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9NWXNwMTBWOGZjRkoxQ3Bib3c0aFBvM1EzcENhbDFRM1gxM2hLMjNSajFQQTN6ZzkyOHAxa0lxN3RHV3BTMjhrdHBVWjE1SHpXRFIzTWtCUUVOeEpLSHk4UkVTcDZGRHlNUUJDMDI= [2025-05-08 10:22:59,488][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9QazRDOU85RzMyVmowTDRKaldDelFEOG1pNHhNMDU0VkZNVHlmSlpJODBUQnBITGpIcWpXYkVSdXJhZzNmZjdRejlodkhmNVFOcjNzY0ZkdXZsOUd4RW5qUVBBdmgxc1U0TFhHMDI= [2025-05-08 10:23:15,189][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl91VzRhQjJyN3JwSTd3ZUhPQzFIS3B4QngyYTNoT3pSN3lRMDZVV1gzTFN1ZlI4aFozTHBkYzhYN1d2VXM4QW8yWTFObWx4YzFMNW5pRjVRUzVOaWdLUnpZcGVXd1BTbElUZU9BMDI= [2025-05-08 10:23:28,879][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9FS0h5UjVpbUhubEY4MlhDVjlyTXNVSjhmYjJscGpiekUwczRwaFNVWFhhQjJJNnZkNGhjMml2Y3JqVzFGdFRucWpsOGdTSGlCRFpYNUM2NVdyOTZSN1lOeE1FTHB5aXhhSndnMDI= [2025-05-08 10:25:12,938][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl83NjUzeUFhWXRwMzB6YzF6RUdEZmU4Y1RwN2ZJeDE5dWFnS2xkOUkza3Nnemp5MlRrT3dJWW9yRXNKcTZxUDQ2ZHg1MXlyUHpqTTR0NFBuWVhnMmRBMjF1RFk4OHNUYzBrcU1sMDI= [2025-05-08 10:25:13,136][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第1次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:16,355][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第2次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:19,545][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第3次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:22,755][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第4次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:25,964][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第5次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:29,196][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第6次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:32,414][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第7次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:35,624][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第8次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:38,806][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第9次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:42,024][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第10次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:45,235][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第11次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:48,465][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第12次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:51,695][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第13次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:54,950][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第14次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:25:58,251][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第15次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:01,528][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第16次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:04,765][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第17次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:08,006][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第18次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:11,220][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第19次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:14,454][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第20次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:17,705][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第21次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:20,903][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第22次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:24,063][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第23次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:27,264][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第24次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:30,454][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第25次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:26:35,693][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9ISzZjSm1WNFpnR0VFM3FqQnRJWWJrVHdXc0lDc1Q2dXd5ZWNPNnJtcE5mbWhOTTZkbzFRc3pWeDloV2M1NmhmM2hOUVNIRzUzVE01cVlocWl4M0Y3OW1QeHJNVTI0amJFSW9xMDI= [2025-05-08 10:26:35,883][wms.boundBill.execute_sync():1184] [ERROR] ERP接口HTTP错误 519 第1次重试 | 单据:GDHB-20250508-000013 | 错误: 519 Server Error: for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:44:36,350][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9UNTE0N0JuR3BsT0V6WjNzZzd4U0JQajZxOE9iellCMnZYSkNMb3lMM2NYb2FvSDFSVXJTbTdiS1VVa0R2VG1pVGVPQ2dFRlpGdEM2TmVxZXROQlZxSzQ2OHE1R3NJV1k3YkswMDI= [2025-05-08 10:48:37,896][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9EVUlWZmYwbTJlQUVzUFN4U295R05OOFZYQ0FHN0xWck92aWFyRUl4U1VxQm05cGxqSWhjY1N3TWh4cVR5TjgxMGpMdmE1TXI4N0d2NVZXcHFKWWNpcTF0cnAxNDd2VjlwMmw0MDI= [2025-05-08 10:48:38,075][wms.boundBill.execute_sync():1190] [ERROR] ERP接口HTTP错误 第1次重试 | 单据:GDHB-20250508-000013 | 错误: 404 Client Error: Not Found for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:48:41,276][wms.boundBill.execute_sync():1190] [ERROR] ERP接口HTTP错误 第2次重试 | 单据:GDHB-20250508-000013 | 错误: 404 Client Error: Not Found for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:48:44,516][wms.boundBill.execute_sync():1190] [ERROR] ERP接口HTTP错误 第3次重试 | 单据:GDHB-20250508-000013 | 错误: 404 Client Error: Not Found for url: https://okyy.test.kdgalaxy.com/kapi/v2/l772/im/im_productinbill/audit [2025-05-08 10:49:24,836][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9ZZDNLM3hIZnhYQ21mMjRLMDg2MWkyOUFhNmVWWDFwNzhlZHpuUDY3RGI5eFUyTzNxMzZQZFBBRlJDblc2bURIRXV1d3czNzNMc2VZblg0QVZvbHlVTE1LM21UdnBIbkNycjMxMDI= [2025-05-08 10:49:38,458][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9tNnlTSjVtU0FjUU1KSXRrZnh4QndpNVkyY0s5Y1lCYmRxemRDcTZjVjRISkZsRG1uQmhFSzlheTdXOEM4d3BCaXljbmtURG1GUTF2WldmWHRqUUtxSlVwbmowYjRvdkwyMVo2MDI= [2025-05-08 10:54:52,235][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': 'Thu May 08 00:00:00 GMT+08:00 2025', 'number': 'CGSL-250508-000001', 'materials': [{'goods_name': '内镶式板框布', 'note': '', 'entryIds': 2210170759207204864, 'goods_unit': '套', 'plan_qty': 3, 'goods_code': 'P1300073', 'production_batch': '', 'goods_std': '800*800 750A'}], 'billId': 2210170242427054080, 'creater': '刘清', 'department': 'okyy0101', 'totalCount': 1, 'type': '2', 'warehouse': 'W01'} [2025-05-08 10:54:52,261][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2210170242427054080, 'number': 'CGSL-250508-000001', 'type': 2, 'date': 'Thu May 08 00:00:00 GMT+08:00 2025', 'department': 'okyy0101', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '内镶式板框布', 'note': '', 'entryIds': 2210170759207204864, 'goods_unit': '套', 'plan_qty': 3, 'goods_code': 'P1300073', 'production_batch': '', 'goods_std': '800*800 750A'}]} [2025-05-08 10:55:57,937][wms.boundBill.validate_and_lock():349] [INFO] 锁定原始单据成功 | billId: 2210170242427054080 [2025-05-08 10:55:57,938][wms.boundBill.validate_and_lock():350] [INFO] 原始单据状态: 0 [2025-05-08 10:55:57,953][wms.boundBill.post():307] [INFO] 创建出入库主单成功 | bound_code: CGSL-250508-000001 [2025-05-08 10:55:57,987][wms.boundBill.post():315] [INFO] 入库单生成成功 | billId: 2210170242427054080 -> boundCode: CGSL-250508-000001 [2025-05-08 10:58:09,849][wms.boundBill.get_token():1115] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9FUTIwaE1wTWZ6YTJrZjY5ODE0UTU4aXZVMnpZODRqNzVhTzBJVTE1VEFxR2ZEOGM3blhZUnpHOEtrdUNNWld3N25yM3lVMURwQzFmQ2F6YWZpV1ByeEkwbHMxNHdEbGdkUjVnMDI= [2025-05-08 11:01:26,896][wms.boundBill.post():89] [INFO] 生产入库申请请求 | 原始数据: {'date': 'Thu May 08 00:00:00 GMT+08:00 2025', 'number': 'CGSL-250508-000001', 'materials': [{'goods_name': '内镶式板框布', 'note': '', 'entryIds': 2210170759207204864, 'goods_unit': '套', 'plan_qty': 3.0, 'goods_code': 'P1300073', 'production_batch': '', 'goods_std': '800*800 750A'}], 'billId': 2210170242427054080, 'creater': '刘清', 'department': 'okyy0101', 'totalCount': 1, 'type': '2', 'warehouse': 'W01'} [2025-05-08 11:01:26,911][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2210170242427054080, 'number': 'CGSL-250508-000001', 'type': 2, 'date': 'Thu May 08 00:00:00 GMT+08:00 2025', 'department': 'okyy0101', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '内镶式板框布', 'note': '', 'entryIds': 2210170759207204864, 'goods_unit': '套', 'plan_qty': 3.0, 'goods_code': 'P1300073', 'production_batch': '', 'goods_std': '800*800 750A'}]} [2025-05-08 11:01:40,402][wms.boundBill.get_token():1116] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9JczVJdm94VEV6TVRyczFJaFpmcXBVT0pKdnpBWDdpMVRrTkZvV0NvVUNLWU0yNk8wazE3b3I3eVNPOFY0Z01BeWx1TzdGRjlvbmxWVFVvbE1ydU1yWTFkRUExTnMyVTRzcWxBMDM= [2025-05-08 11:03:03,213][wms.boundBill.validate_and_lock():350] [INFO] 锁定原始单据成功 | billId: 2210144887247006720 [2025-05-08 11:03:03,213][wms.boundBill.validate_and_lock():351] [INFO] 原始单据状态: 0 [2025-05-08 11:03:03,217][wms.boundBill.post():308] [INFO] 创建出入库主单成功 | bound_code: GDHB-20250508-000013 [2025-05-08 11:03:03,222][wms.boundBill.post():316] [INFO] 入库单生成成功 | billId: 2210144887247006720 -> boundCode: GDHB-20250508-000013 [2025-05-08 11:04:40,305][wms.boundBill.post():682] [INFO] 生产出库申请请求 | 原始数据: {'date': '2025-04-17 00:00:00.0', 'number': 'QTCK-250417-000001', 'materials': [{'goods_name': '盐酸小檗碱(Y2002)', 'note': '', 'entryIds': 2194926863518824448, 'goods_out_qty': 2.0, 'goods_unit': 'kg', 'goods_code': 'YS00002', 'production_batch': '123'}], 'billId': 2194926863518846976, 'creater': '林鹏飞', 'totalCount': 1, 'type': '3', 'warehouse': 'W01'} [2025-05-08 11:04:40,319][wms.boundBill.save_or_update_material_detail():863] [INFO] 出库单号QTCK-250417-000001,创建——物料明细不存在 [2025-05-08 11:04:40,325][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2194926863518846976, 'number': 'QTCK-250417-000001', 'type': 3, 'date': '2025-04-17 00:00:00.0', 'department': '空', 'warehouse': 'W01', 'creater': '林鹏飞', 'totalCount': 1, 'materials': [{'goods_name': '盐酸小檗碱(Y2002)', 'note': '', 'entryIds': 2194926863518824448, 'goods_out_qty': 2.0, 'goods_unit': 'kg', 'goods_code': 'YS00002', 'production_batch': '123'}]} [2025-05-08 11:05:21,731][wms.boundBill.validate_and_lock():543] [INFO] 锁定原始单据成功 | billId: 2194926863518846976 [2025-05-08 11:05:21,732][wms.boundBill.validate_and_lock():544] [INFO] 原始单据状态: 0 [2025-05-08 11:05:21,744][wms.boundBill.post():502] [INFO] 创建出入库主单成功 | bound_code: QTCK-250417-000001 [2025-05-08 11:05:21,757][wms.boundBill.post():529] [ERROR] 出库单生成异常 | billId: 2194926863518846976 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 504, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 579, in process_materials MaterialDetail_obj = MaterialDetail.objects.get(entryIds=material.Material_entryIds.entryIds) AttributeError: 'NoneType' object has no attribute 'entryIds' [2025-05-08 11:07:13,482][wms.boundBill.post():682] [INFO] 生产出库申请请求 | 原始数据: {'date': 'Thu May 08 00:00:00 GMT+08:00 2025', 'number': 'QTCK-250508-000001', 'materials': [{'goods_name': '新橙皮甙(D/NAF01)', 'note': '', 'entryIds': 2210176946912904192, 'goods_out_qty': 1.0, 'goods_unit': 'kg', 'goods_code': 'DG00001', 'production_batch': '1001'}], 'billId': 2210176946912903168, 'creater': '刘清', 'totalCount': 1, 'type': '3', 'warehouse': 'W01'} [2025-05-08 11:07:13,553][wms.boundBill.success():45] [INFO] 成功响应 | 数据: {'billId': 2210176946912903168, 'number': 'QTCK-250508-000001', 'type': 3, 'date': 'Thu May 08 00:00:00 GMT+08:00 2025', 'department': '空', 'warehouse': 'W01', 'creater': '刘清', 'totalCount': 1, 'materials': [{'goods_name': '新橙皮甙(D/NAF01)', 'note': '', 'entryIds': 2210176946912904192, 'goods_out_qty': 1.0, 'goods_unit': 'kg', 'goods_code': 'DG00001', 'production_batch': '1001'}]} [2025-05-08 11:07:28,136][wms.boundBill.validate_and_lock():543] [INFO] 锁定原始单据成功 | billId: 2210176946912903168 [2025-05-08 11:07:28,137][wms.boundBill.validate_and_lock():544] [INFO] 原始单据状态: 0 [2025-05-08 11:07:28,149][wms.boundBill.post():502] [INFO] 创建出入库主单成功 | bound_code: QTCK-250508-000001 [2025-05-08 11:07:28,170][wms.boundBill.post():510] [INFO] 出库单生成成功 | billId: 2210176946912903168 -> boundCode: QTCK-250508-000001 [2025-05-08 21:16:18,910][wms.boundBill.get_token():1114] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl84WUpNV0dQSUY2ZHNQUUlDaFFzenFQdXhOQlF6UkF2MWV6ZHY4UzVkS3NOeVI1bmY5UVV5bFBsSER4ZTZnZUVwNk9pTnhCa0g5M1cydjJHdDRqbGhLemMyRFlQa0Y0NE9Od1FhMTM= [2025-05-08 21:16:43,118][wms.boundBill.get_token():1114] [INFO] 获取access_token成功 | access_token: OPENAPIAUTH_MjE1NDcxOTUxMDEwNjQ3NDQ5Nl9qY0piaXNWcjRkNm5OZEZqUVh1aHJLR1VTNUxsS1A0MTVZSHd0SWltVTZGYUtraWZBYUlpSGJHRmJTMUtOOTJuMVgxUDY3TGF4Zm1NdmZKVTl3WWhRMENsbHhGaDU3NlltTjJlMTM= [2025-05-08 21:44:04,478][wms.boundBill.validate_and_lock():541] [INFO] 锁定原始单据成功 | billId: 2194926863518846976 [2025-05-08 21:44:04,478][wms.boundBill.validate_and_lock():542] [INFO] 原始单据状态: 0 [2025-05-08 21:44:04,484][wms.boundBill.post():500] [INFO] 创建出入库主单成功 | bound_code: QTCK-250417-000001 [2025-05-08 21:44:04,488][wms.boundBill.post():527] [ERROR] 出库单生成异常 | billId: 2194926863518846976 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\erp\views.py", line 502, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\erp\views.py", line 577, in process_materials MaterialDetail_obj = MaterialDetail.objects.get(entryIds=material.Material_entryIds.entryIds) AttributeError: 'NoneType' object has no attribute 'entryIds'