diff --git a/public/templates/lyys-template-A.docx b/public/templates/lyys-template-A.docx new file mode 100644 index 0000000..f22e259 Binary files /dev/null and b/public/templates/lyys-template-A.docx differ diff --git a/public/templates/lyys-template-B.docx b/public/templates/lyys-template-B.docx new file mode 100644 index 0000000..938288c Binary files /dev/null and b/public/templates/lyys-template-B.docx differ diff --git a/public/templates/lyys-template-C.docx b/public/templates/lyys-template-C.docx new file mode 100644 index 0000000..d712947 Binary files /dev/null and b/public/templates/lyys-template-C.docx differ diff --git a/src/api/finance/purchaseagent.ts b/src/api/finance/purchaseagent.ts index 6f4ec98..cbfdd50 100644 --- a/src/api/finance/purchaseagent.ts +++ b/src/api/finance/purchaseagent.ts @@ -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 + }); +} + diff --git a/src/api/finance/purchasingrequisition.ts b/src/api/finance/purchasingrequisition.ts index 7fec5da..64c1ea1 100644 --- a/src/api/finance/purchasingrequisition.ts +++ b/src/api/finance/purchasingrequisition.ts @@ -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 对象数据 diff --git a/src/api/purchase/purchasingAccept.ts b/src/api/purchase/purchasingAccept.ts index f72e252..eaaf2ad 100644 --- a/src/api/purchase/purchasingAccept.ts +++ b/src/api/purchase/purchasingAccept.ts @@ -135,14 +135,22 @@ export function getAcceptanceItems(acceptanceType: string) { } /** - * 下载履约验收模板 + * 导出履约验收评价表(仅填写模式可导出) + * 单期返回 docx,exportAll=true 时返回全部期数 zip */ -export function downloadPerformanceAcceptanceTemplate(purchaseId: string, batch?: number) { +export function downloadPerformanceAcceptanceTemplate( + purchaseId: string, + batch?: number, + exportAll?: boolean +) { + const params: Record = { 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' }) } diff --git a/src/views/finance/purchaseagent/index.vue b/src/views/finance/purchaseagent/index.vue index ae923a2..a78f6a7 100644 --- a/src/views/finance/purchaseagent/index.vue +++ b/src/views/finance/purchaseagent/index.vue @@ -39,8 +39,8 @@ icon="Files" link type="primary" - - > + @click="openSummaryDialog" + > 代理汇总 + + + + + + + + + + + + + + + + + + + + + + + 查询 + 清空 + + + + + + + + + + + + + +