From fe2d6627b8f1002af7a31b08f6f43bec034d04ee Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 21 十月 2026 18:29:07 +0800
Subject: [PATCH] feat: 完善课题、会员、财务、企微页面并新增资产/用车/采购
---
src/api/research/application/index.ts | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 47 insertions(+), 1 deletions(-)
diff --git a/src/api/research/application/index.ts b/src/api/research/application/index.ts
index 3e91c52..5a2f91d 100644
--- a/src/api/research/application/index.ts
+++ b/src/api/research/application/index.ts
@@ -5,6 +5,29 @@
import { requestClient } from '#/api/request';
export namespace ResearchApplicationApi {
+ /** 璇鹃鐢虫姤涔︽垚鍛橈紙瀛愯〃锛� */
+ export interface ApplicationMember {
+ id?: number;
+ applicationId?: number;
+ name: string; // 鎴愬憳濮撳悕
+ contactPhone?: string; // 鑱旂郴鐢佃瘽
+ workUnit?: string; // 鎵�灞炲崟浣�
+ jobTitle?: string; // 鑱岀О/鑱屽姟
+ memberRole?: string; // 鎴愬憳瑙掕壊锛氫富鎸佷汉/鏍稿績鎴愬憳/鍙備笌浜�
+ sortNo?: number; // 鎺掑簭鍙�
+ }
+
+ /** 鎴愬憳缁村害缁熻 */
+ export interface MemberStatistics {
+ name: string; // 鎴愬憳濮撳悕
+ contactPhone?: string; // 鑱旂郴鐢佃瘽
+ workUnit?: string; // 鎵�灞炲崟浣�
+ jobTitle?: string; // 鑱岀О/鑱屽姟
+ memberRoles?: string; // 鎴愬憳瑙掕壊锛堝涓互椤垮彿鍒嗛殧锛�
+ projectCount?: number; // 鍙備笌璇鹃鏁�
+ projectTitles?: string; // 鍙備笌璇鹃鍚嶇О锛堝垎鍙峰垎闅旓級
+ }
+
/** 璇鹃鐢虫姤涔� */
export interface Application {
id?: number;
@@ -20,7 +43,8 @@
jobTitle?: string; // 鑱岀О
contactPhone?: string; // 鑱旂郴鐢佃瘽
contactEmail?: string; // 鑱旂郴閭
- teamMembers?: string; // 璇鹃缁勬垚鍛橈紙姣忚涓�鏉★細濮撳悕|鍗曚綅|鑱岀О锛�
+ teamMembers?: string; // 璇鹃缁勬垚鍛橈紙鏃х増鏂囨湰锛屼粎鍘嗗彶鏁版嵁灞曠ず锛�
+ members?: ApplicationMember[]; // 璇鹃缁勬垚鍛樺瓙琛�
budgetAmount?: number; // 鐢宠缁忚垂锛堝厓锛�
planContent?: string; // 鐢虫姤涔︽鏂�
status?: number; // 鐘舵�侊紝瀛楀吀 research_application_status
@@ -129,6 +153,28 @@
});
}
+/** 鎸夋垚鍛樼淮搴︾粺璁¤棰樺弬涓庢儏鍐� */
+export function getMemberStatistics(params: {
+ keyword?: string;
+ status?: number;
+}) {
+ return requestClient.get<ResearchApplicationApi.MemberStatistics[]>(
+ '/research/application/member-statistics',
+ { params },
+ );
+}
+
+/** 瀵煎嚭鎴愬憳缁村害缁熻 Excel */
+export function exportMemberStatistics(params: {
+ keyword?: string;
+ status?: number;
+}) {
+ return requestClient.download(
+ '/research/application/member-statistics/export-excel',
+ { params },
+ );
+}
+
/** 鏌ヨ鏌愮敵鎶ヤ功鐨勪笓瀹惰瘎瀹℃槑缁嗗垪琛� */
export function getTopicReviewList(applicationId: number) {
return requestClient.get<ResearchApplicationApi.TopicReview[]>(
--
Gitblit v1.9.3