新增附件追加和合同模板上传功能,支持文件选择、验证及上传逻辑,优化用户界面和操作体验。
This commit is contained in:
@@ -1939,15 +1939,16 @@ export default function FilesUpload() {
|
||||
{
|
||||
title: "操作",
|
||||
key: "operation",
|
||||
width: "20%",
|
||||
width: "25%",
|
||||
render: (_: unknown, record: Document) => (
|
||||
<div className="flex gap-2">
|
||||
<div className="flex flex-wrap gap-1">
|
||||
<Button
|
||||
type="default"
|
||||
size="small"
|
||||
disabled={record.status !== DocumentStatus.PROCESSED}
|
||||
icon="ri-eye-line"
|
||||
onClick={() => handleViewFile(record)}
|
||||
className="text-xs px-2 py-1 h-7"
|
||||
>
|
||||
查看
|
||||
</Button>
|
||||
@@ -1961,6 +1962,7 @@ export default function FilesUpload() {
|
||||
setSelectedDocumentId(record.id);
|
||||
setShowAttachmentUpload(true);
|
||||
}}
|
||||
className="text-xs px-2 py-1 h-7"
|
||||
>
|
||||
追加附件
|
||||
</Button>
|
||||
@@ -1972,6 +1974,7 @@ export default function FilesUpload() {
|
||||
setSelectedDocumentId(record.id);
|
||||
setShowTemplateUpload(true);
|
||||
}}
|
||||
className="text-xs px-2 py-1 h-7"
|
||||
>
|
||||
上传模板
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user