import React, { useState } from "react"; import { Tag, Button, Card, Table, Select, Input, Flex, Typography, Row, Col } from "antd"; const { TextArea } = Input; const INITIAL_ROWS = [ { dim: "评价依据", focus: "充分、有效", result: "符合", opinion: "补充地方标准有效版本", feedback: "已验证", feedbackType: "success" }, { dim: "危险辨识", focus: "全面、无遗漏", result: "需修改", opinion: "补充液氨装卸泄漏场景", feedback: "待反馈", feedbackType: "warning" }, { dim: "单元划分", focus: "科学合理", result: "符合", opinion: "划分合理", feedback: "—", feedbackType: "default" }, { dim: "评价方法", focus: "适用、过程正确", result: "符合", opinion: "方法适用", feedback: "—", feedbackType: "default" }, { dim: "对策措施", focus: "针对性、可操作性", result: "需修改", opinion: "细化报警联锁措施", feedback: "已验证", feedbackType: "success" }, { dim: "评价结论", focus: "客观、正确", result: "符合", opinion: "结论客观", feedback: "—", feedbackType: "default" }, { dim: "报告规范", focus: "格式、文字、数据逻辑", result: "符合", opinion: "统一图表编号", feedback: "—", feedbackType: "default" }, ]; const InternalReviewContent = () => { const [rows, setRows] = useState(INITIAL_ROWS); const updateRow = (index, field, value) => { const next = [...rows]; next[index] = { ...next[index], [field]: value }; setRows(next); }; return (
内部审核人 审核、修改、反馈、验证闭环
审核版本
V1.3
内审人
王丽萍
审核项
7项
问题
2项
( ), }, { title: "审核意见", dataIndex: "opinion", width: 180, render: (val, _, idx) => ( updateRow(idx, "opinion", e.target.value)} /> ), }, { title: "修改反馈", dataIndex: "feedback", width: 120, render: (val, record) => { if (record.feedbackType === "success") return 已验证; if (record.feedbackType === "warning") return 待反馈; return ; }, }, ]} rowKey="dim" pagination={false} size="small" />
总体审核意见