更新采购申请

This commit is contained in:
吴红兵
2026-03-01 18:13:42 +08:00
parent 22fc35b87e
commit 2320738ce1
7 changed files with 133 additions and 259 deletions

View File

@@ -86,7 +86,7 @@ export function assignAgent(applyId: number | string, mode: 'random' | 'designat
return request({
url: '/purchase/purchasingapply/assign-agent',
method: 'post',
data: { id: Number(applyId), mode, agentId: agentId || undefined }
data: { id: String(applyId), mode, agentId: agentId || undefined }
});
}
@@ -98,7 +98,7 @@ export function sendToAgent(applyId: number | string) {
return request({
url: '/purchase/purchasingapply/sendToAgent',
method: 'post',
data: { id: Number(applyId) }
data: { id: String(applyId) }
});
}
@@ -110,7 +110,7 @@ export function revokeAgent(applyId: number | string) {
return request({
url: '/purchase/purchasingapply/revokeAgent',
method: 'post',
data: { id: Number(applyId) }
data: { id: String(applyId) }
});
}
@@ -334,3 +334,16 @@ export function getDocList(applyId: number | string) {
});
}
/**
* 根据文件ID下载采购附件返回blob
* @param fileId 文件ID
*/
export function downloadFileById(fileId: string) {
return request({
url: '/purchase/purchasingfiles/downloadById',
method: 'get',
params: { fileId },
responseType: 'blob'
});
}