feat: 前端集成更新材料功能和PDF预览

- 列表页添加更新材料按钮(更多操作中)
- 添加updateFiles API接口
- 文件归档弹窗添加PDF预览功能

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
吴红兵
2026-03-03 22:44:39 +08:00
parent 36ad8f14e4
commit d84b938dc5
3 changed files with 95 additions and 6 deletions

View File

@@ -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
});
}