更新采购申请
This commit is contained in:
@@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user