[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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [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': ''}]} [2025-04-29 21:38:17,636][wms.boundBill.post():314] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 290, in post with transaction.atomic(): NameError: name 'transaction' is not defined [2025-04-29 21:39:45,038][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 286, in post bill_obj, bound_list = self.validate_and_lock(bill_id) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 325, in validate_and_lock existing_bound = BoundListModel.objects.filter( 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 1420, in filter return self._filter_or_exclude(False, args, kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1438, in _filter_or_exclude clone._filter_or_exclude_inplace(negate, args, kwargs) File "d:\language\python38\lib\site-packages\django\db\models\query.py", line 1445, in _filter_or_exclude_inplace self._query.add_q(Q(*args, **kwargs)) File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1532, in add_q clause, _ = self._add_q(q_object, self.used_aliases) File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1562, in _add_q child_clause, needed_inner = self.build_filter( File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1388, in build_filter return self._add_q( File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1562, in _add_q child_clause, needed_inner = self.build_filter( File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1407, in build_filter lookups, parts, reffed_expression = self.solve_lookup_type(arg) File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1217, in solve_lookup_type _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta()) File "d:\language\python38\lib\site-packages\django\db\models\sql\query.py", line 1709, in names_to_path raise FieldError( 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 [2025-04-29 21:41:34,815][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 289, in post bound_list = self.create_bound_list(bill_obj) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 415, in create_bound_list return BoundListModel.objects.create( 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 671, in create obj.save(force_insert=True, using=self.db) File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 812, in save self.save_base( File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 863, in save_base updated = self._save_table( File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 1006, in _save_table results = self._do_insert( File "d:\language\python38\lib\site-packages\django\db\models\base.py", line 1047, in _do_insert return manager._insert( 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 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 1659, in execute_sql for sql, params in self.as_sql(): File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1583, in as_sql value_rows = [ File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1584, in [ File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1585, in self.prepare_value(field, self.pre_save_val(field, obj)) File "d:\language\python38\lib\site-packages\django\db\models\sql\compiler.py", line 1523, in prepare_value value = field.get_db_prep_save(value, connection=self.connection) File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 925, in get_db_prep_save return self.get_db_prep_value(value, connection=connection, prepared=False) File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 1438, in get_db_prep_value value = self.get_prep_value(value) File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 1433, in get_prep_value return self.to_python(value) File "d:\language\python38\lib\site-packages\django\db\models\fields\__init__.py", line 1399, in to_python raise exceptions.ValidationError( django.core.exceptions.ValidationError: ['“2025-04-27 17:51:08”的值有一个错误的日期格式。它的格式应该是YYYY-MM-DD'] [2025-04-29 21:43:56,691][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 289, in post bound_list = self.create_bound_list(bill_obj) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 416, in create_bound_list bound_date=bill_obj.date.strftime("%Y-%m-%d"), AttributeError: 'str' object has no attribute 'strftime' [2025-04-29 21:45:18,834][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 292, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 356, in process_materials qs_set = BoundBatchModel.objects.filter( goods_code=bill_obj.goods_code, bound_month=order_month, is_delete=False) AttributeError: 'InboundBill' object has no attribute 'goods_code' [2025-04-29 21:46:16,673][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4 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: boundbatch.bound_number 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 292, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 408, in process_materials BoundBatchModel.objects.bulk_create(batch_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: boundbatch.bound_number [2025-04-29 21:49:50,871][wms.boundBill.post():308] [ERROR] 入库单生成异常 | billId: 4 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: boundbatch.bound_number 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 292, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 408, in process_materials BoundBatchModel.objects.bulk_create(batch_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: boundbatch.bound_number [2025-04-29 21:53:49,575][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004 [2025-04-29 21:53:49,578][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4 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: boundbatch.bound_number 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 293, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 409, in process_materials BoundBatchModel.objects.bulk_create(batch_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: boundbatch.bound_number [2025-04-29 22:12:02,503][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004 [2025-04-29 22:12:02,506][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 293, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 363, in process_materials bound_last_code = qs_set.order_by('-id').first().bound_number AttributeError: 'NoneType' object has no attribute 'bound_number' [2025-04-29 22:13:06,543][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004 [2025-04-29 22:13:06,546][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 293, in post self.process_materials(bill_obj, bound_list) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 363, in process_materials bound_last_code = qs_set.order_by('-id').first().bound_number AttributeError: 'NoneType' object has no attribute 'bound_number' [2025-04-29 22:25:48,987][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0004 [2025-04-29 22:25:48,997][wms.boundBill.post():299] [INFO] 入库单生成成功 | billId: 4 -> boundCode: BC01-2025-04-0004 [2025-04-29 22:25:54,856][wms.boundBill.validate_and_lock():322] [WARNING] 单据已生成过入库单 | status: 1 [2025-04-29 22:25:54,857][wms.boundBill.post():309] [ERROR] 入库单生成异常 | billId: 4 Traceback (most recent call last): File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 286, in post bill_obj, bound_list = self.validate_and_lock(bill_id) File "D:\Document\code\vue\greater_wms\.\erp\views.py", line 323, in validate_and_lock raise Exception("该单据已生成过入库单") Exception: 该单据已生成过入库单 [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': ''}]} [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': ''}]} [2025-04-29 22:29:33,844][wms.boundBill.post():291] [INFO] 创建出入库主单成功 | bound_code: BC01-2025-04-0005 [2025-04-29 22:29:33,856][wms.boundBill.post():299] [INFO] 入库单生成成功 | billId: 5 -> boundCode: BC01-2025-04-0005