safety-eval-service/docs/tmp/insp-modals.js

35 lines
7.8 KiB
JavaScript
Raw Normal View History

2026-07-28 09:09:27 +08:00
','30%','抽查合格率退回修改次数'],['风险处置','20%','未闭环预警逾期反馈'],['监督检查','20%','检查结论整改完成情况']]);
} else if (type === 'inspectionCreate') {
title.textContent = name;
html = section('告知信息', '告知下发后同步至机构端消息中心,机构需确认检查时间并按要求准备材料。') + '<div class="form-grid"><div class="field"><label>评价机构</label><select><option>重庆安评技术研究院有限公司</option><option>重庆恒安安全评价有限公司</option><option>重庆渝安风险评估中心</option></select></div><div class="field"><label>检查类型</label><select><option>项目过程检查</option><option>资质保持检查</option><option>专项检查</option></select></div><div class="field"><label>计划检查时间</label><input type="datetime-local" value="2026-07-25T09:00"></div><div class="field"><label>来源预警</label><select><option>无</option><option>W-PROJ-2026-021</option><option>W-QUAL-2026-012</option></select></div><div class="field full"><label>检查事项</label><textarea>请准备项目过程记录、人员到场记录及相关证明材料。</textarea></div><div class="field full"><label>告知附件</label><input type="file" accept=".pdf,.doc,.docx"></div></div>';
foot += actionButton('下发机构', '监督检查告知已下发');
} else if (type === 'inspectionResult') {
title.textContent = '登记监督检查结果 - ' + name;
html = section('检查结果', '记录实际检查情况、不符合项、整改要求和后续处置。') + '<div class="form-grid"><div class="field"><label>实际检查时间</label><input type="datetime-local" value="2026-07-22T09:30"></div><div class="field"><label>检查结论</label><select><option>未发现问题</option><option>责令整改</option><option>转入风险预警</option></select></div><div class="field full"><label>检查情况</label><textarea placeholder="填写现场检查情况和发现问题"></textarea></div><div class="field full"><label>整改要求</label><textarea placeholder="需要整改时填写整改事项和期限"></textarea></div><div class="field"><label>整改期限</label><input type="date" value="2026-08-05"></div><div class="field full"><label>检查记录附件</label><input type="file" multiple accept=".pdf,.doc,.docx,.jpg,.jpeg,.png"></div></div>';
foot += actionButton('提交检查结果', '监督检查结果已登记'); } else if (type === 'inspectionDetail') {
title.textContent = '监督检查告知 - ' + name;
html = section('告知详情', '展示告知内容、机构确认和材料反馈情况。') + tableHtml(['事项','内容','状态'], [['检查时间','2026-07-22 09:30','机构已确认'],['检查类型','项目过程检查','已下发'],['来源预警','现场勘查异常','已关联'],['机构反馈','联系人及准备材料清单','已反馈']]) + '<div class="form-grid" style="margin-top:1rem;"><div class="field full"><label>监管备注</label><textarea placeholder="填写检查前备注或补充要求"></textarea></div></div>';
foot += actionButton('保存备注', '检查备注已保存');
} else if (type === 'trainingCourseCreate' || type === 'trainingCourseEdit') {
title.textContent = type === 'trainingCourseCreate' ? '新增培训课程' : '编辑课程 - ' + name;
html = '<div class="form-grid"><div class="field full"><label>课程名称</label><input value="' + (type === 'trainingCourseEdit' ? name : '') + '" placeholder="输入课程名称"></div><div class="field"><label>课程分类</label><select><option>法律法规</option><option>专业能力</option><option>过程控制</option></select></div><div class="field"><label>课程学时</label><input type="number" min="1" value="4"></div><div class="field"><label>适用人员</label><select><option>全体评价人员</option><option>机构负责人</option><option>技术负责人</option><option>过程控制负责人</option></select></div><div class="field"><label>考试要求</label><select><option>需要考试</option><option>无需考试</option></select></div><div class="field full"><label>课程课件</label><input type="file" multiple accept=".pdf,.ppt,.pptx,.mp4"></div><div class="field full"><label>课程简介</label><textarea placeholder="填写课程目标和主要内容"></textarea></div></div>';
foot += actionButton(type === 'trainingCourseCreate' ? '保存课程' : '保存修改', '课程信息已保存');
} else if (type === 'trainingTaskCreate') {
title.textContent = name;
html = '<div class="form-grid"><div class="field full"><label>任务名称</label><input placeholder="例如2026年度安全评价专业培训"></div><div class="field"><label>选择课程</label><select><option>安全评价通则与责任要求</option><option>评价机构过程控制实务</option></select></div><div class="field"><label>下发范围</label><select><option>全市备案评价人员</option><option>机构负责人</option><option>过程控制负责人</option></select></div><div class="field"><label>完成期限</label><input type="date" value="2026-09-30"></div><div class="field"><label>逾期提醒</label><select><option>提前7天</option><option>提前3天</option><option>不提醒</option></select></div><div class="field full"><label>任务说明</label><textarea placeholder="填写培训要求"></textarea></div></div>';
foot += actionButton('确认下发', '培训任务已下发');
} else if (type === 'trainingStudents') {
title.textContent = '班级学员列表 - ' + name;
html = section('学员完成情况', '查看班级学员的学习进度、完成学时和考试结果。') + tableHtml(['姓名','所属机构','部门','完成进度','考试结果'], [['张建国','重庆安评技术研究院有限公司','评价一部','100%','92分/合格'],['李明华','重庆恒安安全评价有限公司','评价二部','80%','待考试'],['王海','重庆渝安风险评估中心','过程控制部','60%','未完成']]);
foot += actionButton('导出学员名单', '班级学员名单已生成');
} else if (type === 'trainingCourses') {
title.textContent = '班级课程列表 - ' + name;
html = section('课程配置', '展示班级包含的必修课程、学时和考试要求。') + tableHtml(['课程名称','培训类型','学时','学习要求'], [['安全生产举报和奖励办法','法律法规','0.7','必修/考试'],['安全评价过程控制实务','专业能力','1.0','必修/考试'],['典型事故案例警示教育','事故警示','0.3','必修/无需考试']]);
foot += actionButton('导出课程清单', '班级课程清单已生成');
} else if (type === 'trainingExtend') {
title.textContent = '培训班级延期 - ' + name;
html = '<div class="form-grid"><div class="field"><label>原结束时间</label><input value="2026-06-30" disabled></div><div class="field"><label>延期至</label><input type="date" value="2026-07-15"></div><div class="field full"><label>延期原因</label><textarea placeholder="填写延期原因"></textarea></div><div class="field full"><label>通知方式</label><label><input type="checkbox" checked> 通知参训单位</label><label><input type="checkbox" checked> 通知未完成学员</label></div></div>';
foot += actionButton('确认延期', '培训班级结束时间已更新');
} else if (type === 'trainingQr') {
title.textContent = '班级二维码 - ' + name;
html = section('扫码参训', '学员扫码后进入班级课程,二维码有效期与班级结束时间一致。') + '<div style="width:180px;height:180px;margin:1rem auto;background:repeating-conic-gradient(#111 0 25%,#fff 0 50%) 0/18px 18px;border:12px solid #fff;box-shadow:0 0 0 1px #d1d5db"></div><p style="text-align:center;color:var(--color-text-se