From 36ad8f14e4db56f7210258e6bd3436b091809f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Tue, 3 Mar 2026 22:44:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=9D=90=E6=96=99=E5=BC=B9=E7=AA=97=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 支持按文件类型分类上传 - 限制仅PDF格式文件 - 支持批量上传更新 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- .../UpdateFilesDialog.vue | 181 ++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 src/views/purchase/purchasingrequisition/UpdateFilesDialog.vue diff --git a/src/views/purchase/purchasingrequisition/UpdateFilesDialog.vue b/src/views/purchase/purchasingrequisition/UpdateFilesDialog.vue new file mode 100644 index 0000000..61e4934 --- /dev/null +++ b/src/views/purchase/purchasingrequisition/UpdateFilesDialog.vue @@ -0,0 +1,181 @@ + + + + + From d84b938dc5ae71e2b8d0b326536fb4226c3ad3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E7=BA=A2=E5=85=B5?= <374362909@qq.com> Date: Tue, 3 Mar 2026 22:44:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E9=9B=86?= =?UTF-8?q?=E6=88=90=E6=9B=B4=E6=96=B0=E6=9D=90=E6=96=99=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=92=8CPDF=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 列表页添加更新材料按钮(更多操作中) - 添加updateFiles API接口 - 文件归档弹窗添加PDF预览功能 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/api/purchase/purchasingrequisition.ts | 12 ++++ .../FileArchiveDialog.vue | 71 +++++++++++++++++-- .../purchase/purchasingrequisition/index.vue | 18 ++++- 3 files changed, 95 insertions(+), 6 deletions(-) diff --git a/src/api/purchase/purchasingrequisition.ts b/src/api/purchase/purchasingrequisition.ts index bef29cb..5f78f36 100644 --- a/src/api/purchase/purchasingrequisition.ts +++ b/src/api/purchase/purchasingrequisition.ts @@ -359,3 +359,15 @@ export function listDownloadUrls(purchaseId: string | number) { }); } +/** + * 更新采购材料(部门申请人或负责人重新上传文件) + * @param data 包含purchaseId和fileIds的对象 + */ +export function updateFiles(data: { purchaseId: string; fileIds: string[] }) { + return request({ + url: '/purchase/purchasingfiles/updateFiles', + method: 'post', + data + }); +} + diff --git a/src/views/purchase/purchasingrequisition/FileArchiveDialog.vue b/src/views/purchase/purchasingrequisition/FileArchiveDialog.vue index 6d36e4c..6d6e05d 100644 --- a/src/views/purchase/purchasingrequisition/FileArchiveDialog.vue +++ b/src/views/purchase/purchasingrequisition/FileArchiveDialog.vue @@ -32,7 +32,7 @@ class="file-table" > - + - + - + + + + +
+