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:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user