feat: 1. 完善评查点分组的删除逻辑,会涉及文档类型绑定的一级分组,分组绑定的评查点规则。新增一个评查点分组换绑的。
2. 修复交叉评查的任务中的文档列表的历史文档的查看跳转路径。 3. 修复评查点新增中评查点类型只能显示当前文档类型绑定的这几个一级分组。评查点类型=一级分组。 4. 修复文档列表关于pdf的下载失败的问题。
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { useState, useRef, useCallback, useEffect } from "react";
|
||||
import { Link } from "@remix-run/react";
|
||||
import { Modal } from '../ui/Modal';
|
||||
import { FileTag } from '../ui/FileTag';
|
||||
import { FileTypeTag } from '../ui/FileTypeTag';
|
||||
@@ -368,18 +367,20 @@ export function DocumentListModal({
|
||||
</td>
|
||||
<td className="px-4 py-3" style={{ width: '13%' }}>
|
||||
<div className="flex flex-wrap gap-1">
|
||||
{/* 查看按钮 */}
|
||||
<Link
|
||||
to={`/cross-checking/review?id=${historyDoc.id}&taskId=${taskId}`}
|
||||
{/* 查看按钮 - 与主表格样式和行为一致 */}
|
||||
<button
|
||||
type="button"
|
||||
className={`text-xs px-2 py-1 h-7 mr-1 ${
|
||||
historyDoc.status === 'Processed'
|
||||
? 'hover:underline text-primary'
|
||||
: 'text-gray-400 pointer-events-none'
|
||||
? 'hover:underline text-primary cursor-pointer'
|
||||
: 'text-gray-400 cursor-not-allowed'
|
||||
}`}
|
||||
onClick={() => historyDoc.status === 'Processed' && handleViewClickDebounced(historyDoc.id.toString())}
|
||||
disabled={historyDoc.status !== 'Processed'}
|
||||
>
|
||||
<i className="ri-eye-line mr-1"></i>
|
||||
查看
|
||||
</Link>
|
||||
{isNavigating ? '跳转中...' : '查看'}
|
||||
</button>
|
||||
{/* 追加附件按钮 - 仅当 type_name 包含"合同"时显示 */}
|
||||
{historyDoc.status === 'Processed' && taskId && parentDoc.type_name?.includes('合同') && (
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user