采购更新
This commit is contained in:
@@ -90,6 +90,18 @@ export function assignAgent(applyId: number | string, mode: 'random' | 'designat
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送招标代理:将采购项目发送给已分配的招标代理
|
||||
* @param applyId 采购申请ID
|
||||
*/
|
||||
export function sendToAgent(applyId: number | string) {
|
||||
return request({
|
||||
url: '/purchase/purchasingapply/sendToAgent',
|
||||
method: 'post',
|
||||
data: { id: Number(applyId) }
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改采购申请
|
||||
* @param obj 对象数据
|
||||
@@ -226,3 +238,74 @@ export function getFileApplyTemplateDownloadUrl(id: string | number) {
|
||||
return `/purchase/purchasingapply/export-file-apply-template?id=${encodeURIComponent(String(id))}`;
|
||||
}
|
||||
|
||||
// ==================== 招标代理专用接口 ====================
|
||||
|
||||
/**
|
||||
* 招标代理获取待处理列表
|
||||
* @param params 分页参数
|
||||
*/
|
||||
export function getAgentPendingList(params?: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingdoc/agent/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 招标代理获取采购需求文件列表
|
||||
* @param applyId 采购申请ID
|
||||
*/
|
||||
export function getAgentRequirementFiles(applyId: number | string) {
|
||||
return request({
|
||||
url: `/purchase/purchasingdoc/agent/requirement/${applyId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 招标代理获取项目详情(仅返回采购编号和项目名称)
|
||||
* @param applyId 采购申请ID
|
||||
*/
|
||||
export function getAgentApplyDetail(applyId: number | string) {
|
||||
return request({
|
||||
url: `/purchase/purchasingdoc/agent/detail/${applyId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 招标代理上传采购文件
|
||||
* @param data 文件数据
|
||||
*/
|
||||
export function uploadAgentDoc(data: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingdoc/upload',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 招标代理重新上传采购文件
|
||||
* @param data 文件数据
|
||||
*/
|
||||
export function reuploadAgentDoc(data: any) {
|
||||
return request({
|
||||
url: '/purchase/purchasingdoc/reupload',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采购文件列表
|
||||
* @param applyId 采购申请ID
|
||||
*/
|
||||
export function getDocList(applyId: number | string) {
|
||||
return request({
|
||||
url: `/purchase/purchasingdoc/list/${applyId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user