{
"inspection_area": "202-熔炼车间",
"inspection_date": "2026-09-13",
"inspector": "电气自查",
"description": "3 号行车电源箱内接线端子松动,运行时打火",
"suggestion": "停电紧固端子并测量接触电阻",
"hazard_unit_id": 1,
"due_date": "2026-09-20",
"recheck_person": "李建军",
"rectify_person": "孙浩宇",
"status": "待整改",
"hazard_type_id": 2,
"level": "一般隐患",
"remark": null,
"before_image_ids": [
"6280e904-3c11-7dad-83a4-d2f8b4a9979d"
],
"after_image_ids": []
}curl --location '/api/v1/hazards' \
--header 'X-Project-Id;' \
--header 'Content-Type: application/json' \
--data '{
"inspection_area": "202-熔炼车间",
"inspection_date": "2026-09-13",
"inspector": "电气自查",
"description": "3 号行车电源箱内接线端子松动,运行时打火",
"suggestion": "停电紧固端子并测量接触电阻",
"hazard_unit_id": 1,
"due_date": "2026-09-20",
"recheck_person": "李建军",
"rectify_person": "孙浩宇",
"status": "待整改",
"hazard_type_id": 2,
"level": "一般隐患",
"remark": null,
"before_image_ids": [
"6280e904-3c11-7dad-83a4-d2f8b4a9979d"
],
"after_image_ids": []
}'{
"id": 1,
"inspection_area": "201-冶炼主厂房",
"inspection_date": "2026-09-02",
"inspector": "电气自查",
"description": "1 号配电柜进线电缆绝缘层破损,铜芯外露,存在漏电与短路风险",
"suggestion": "停电更换破损段电缆,整改后做绝缘电阻测试并留存记录",
"hazard_unit_id": 1,
"hazard_unit_name": "电气车间",
"person": "李建军",
"due_date": "2026-09-09",
"recheck_person": "李建军",
"rectify_person": "孙浩宇",
"status": "已整改",
"hazard_type_id": 3,
"major": "电气设备",
"minor": "绝缘破损",
"level": "重大隐患",
"remark": "已复查验收,绝缘电阻合格",
"before_images": [
{
"id": "23ee8930-737f-739e-83d0-69076b428b66",
"original_name": "配电柜进线电缆绝缘破损.jpg",
"mime_type": "image/jpeg",
"size_bytes": 512400,
"width": 1600,
"height": 1200
}
],
"after_images": [
{
"id": "83f45373-5982-7707-8003-2f16a4783a0b",
"original_name": "更换后电缆绝缘测试.jpg",
"mime_type": "image/jpeg",
"size_bytes": 498200,
"width": 1600,
"height": 1200
}
],
"created_at": "2026-09-02T10:30:00+08:00",
"updated_at": "2026-09-09T16:05:00+08:00",
"version": 1
}