feat(ui): display evaluation point code and support code search
- Add pointCode field to ReviewPoint interface and data pipeline - Show code badge (e.g., JZ-DJ-001) before evaluation point name - Search bar now matches against point code in addition to name - Updated placeholder to indicate code search support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -459,6 +459,7 @@ export async function getReviewPoints(fileId: string, request: Request) {
|
||||
editAuditStatusMessage: editAuditStatus.message,
|
||||
title: message,
|
||||
pointName: point.name || '',
|
||||
pointCode: point.code || '',
|
||||
groupName: group.name || '',
|
||||
|
||||
status: point.suggestion_message_type || '', //评查点的评查结果状态
|
||||
|
||||
@@ -94,6 +94,7 @@ export interface ReviewPoint {
|
||||
editAuditStatus: number;
|
||||
editAuditStatusMessage?: string; // 添加审核意见字段
|
||||
pointName: string;
|
||||
pointCode?: string;
|
||||
title: string;
|
||||
groupName: string;
|
||||
status: string;
|
||||
@@ -784,6 +785,7 @@ export function ReviewPointsList({
|
||||
// 匹配搜索文本
|
||||
const matchesSearch = searchText === '' ||
|
||||
point.pointName.toLowerCase().includes(searchText.toLowerCase()) ||
|
||||
(point.pointCode && point.pointCode.toLowerCase().includes(searchText.toLowerCase())) ||
|
||||
point.title.toLowerCase().includes(searchText.toLowerCase()) ||
|
||||
// point.groupName.toLowerCase().includes(searchText.toLowerCase()) ||
|
||||
JSON.stringify(point.content).toLowerCase().includes(searchText.toLowerCase())
|
||||
@@ -951,7 +953,7 @@ export function ReviewPointsList({
|
||||
type="text"
|
||||
className="w-full border border-gray-200 rounded-md pl-8 pr-2 py-1 text-xs h-7
|
||||
focus:outline-none focus:ring-1 focus:ring-green-800"
|
||||
placeholder="搜索评查点..."
|
||||
placeholder="搜索评查点名称或编码..."
|
||||
value={searchText}
|
||||
onChange={(e) => setSearchText(e.target.value)}
|
||||
/>
|
||||
@@ -2743,6 +2745,9 @@ export function ReviewPointsList({
|
||||
<div className="flex justify-between items-center mb-2">
|
||||
{/* <div className='flex flex-col'> */}
|
||||
<div className="flex items-center gap-2 max-w-[75%]">
|
||||
{reviewPoint.pointCode && (
|
||||
<span className="text-[10px] font-mono bg-gray-100 text-gray-500 px-1 py-0.5 rounded flex-shrink-0">{reviewPoint.pointCode}</span>
|
||||
)}
|
||||
<div className="review-point-title text-left text-blue-500 break-all">{reviewPoint.pointName}</div>
|
||||
{ reviewPoint.pointName === '签署乙方详细信息校验' && (
|
||||
<button
|
||||
|
||||
@@ -243,6 +243,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
|
||||
editAuditStatusMessage: '',
|
||||
title: '该评查点未涉及',
|
||||
pointName: r.name || '',
|
||||
pointCode: r.code || '',
|
||||
groupName: '',
|
||||
status: 'notApplicable',
|
||||
content: {},
|
||||
|
||||
Reference in New Issue
Block a user