Merge branch 'developer' of ssh://code.cyweb.top:30033/scj/zhxy/v3/cloud-ui into developer

This commit is contained in:
zhoutianchi
2026-02-25 15:40:03 +08:00
12 changed files with 476 additions and 39 deletions

View File

@@ -76,3 +76,19 @@ export function delObj(id: string | number) {
});
}
/**
* 代理汇总(按条件统计各代理的项目数、预算金额、合同金额)
*/
export function getAgentSummary(params?: {
deptCode?: string
planStartDate?: string
planEndDate?: string
hasAcceptEvaluation?: string
}) {
return request({
url: '/purchase/purchasingagent/summary',
method: 'get',
params
});
}

View File

@@ -76,6 +76,20 @@ export function submitObj(obj: any) {
});
}
/**
* 分配招标代理(指定或随机),仅学校统一采购或部门自行采购且委托采购中心采购时可用
* @param applyId 采购申请ID
* @param mode random | designated
* @param agentId 指定模式时的代理ID
*/
export function assignAgent(applyId: number | string, mode: 'random' | 'designated', agentId?: string) {
return request({
url: '/purchase/purchasingapply/assign-agent',
method: 'post',
data: { id: Number(applyId), mode, agentId: agentId || undefined }
});
}
/**
* 修改采购申请
* @param obj 对象数据

View File

@@ -135,14 +135,22 @@ export function getAcceptanceItems(acceptanceType: string) {
}
/**
* 下载履约验收模板
* 导出履约验收评价表(仅填写模式可导出)
* 单期返回 docxexportAll=true 时返回全部期数 zip
*/
export function downloadPerformanceAcceptanceTemplate(purchaseId: string, batch?: number) {
export function downloadPerformanceAcceptanceTemplate(
purchaseId: string,
batch?: number,
exportAll?: boolean
) {
const params: Record<string, any> = { purchaseId }
if (exportAll === true) params.exportAll = true
else if (batch != null) params.batch = batch
return request({
url: '/purchase/purchasingAccept/export-performance-acceptance-template',
method: 'get',
params: { purchaseId, batch },
responseType: 'blob' // 重要:用于文件下载
params,
responseType: 'blob'
})
}