From 2b695bfabdceccb0ee19c12c8e655bd7f47a6e2f Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 27 十月 2026 18:06:44 +0800
Subject: [PATCH] feat(wxcp): 通知前端支持图片/视频/Markdown/多图文与成员预览
---
src/api/research/application/index.ts | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 58 insertions(+), 1 deletions(-)
diff --git a/src/api/research/application/index.ts b/src/api/research/application/index.ts
index f96ab84..a2de159 100644
--- a/src/api/research/application/index.ts
+++ b/src/api/research/application/index.ts
@@ -5,6 +5,31 @@
import { requestClient } from '#/api/request';
export namespace ResearchApplicationApi {
+ /** 璇鹃鐢虫姤涔︽垚鍛橈紙瀛愯〃锛� */
+ export interface ApplicationMember {
+ id?: number;
+ applicationId?: number;
+ name: string; // 鎴愬憳濮撳悕
+ memberType?: string; // 鎴愬憳绫诲瀷锛氭暀甯�/瀛︾敓/鏍″浜哄憳
+ contactPhone?: string; // 鑱旂郴鐢佃瘽锛堝巻鍙插瓧娈碉紝涓嶅啀褰曞叆锛�
+ workUnit?: string; // 鎵�灞為儴闂�
+ jobTitle?: string; // 鑱岀О
+ memberRole?: string; // 鎴愬憳瑙掕壊锛堝巻鍙插瓧娈碉紝涓嶅啀褰曞叆锛�
+ sortNo?: number; // 缃插悕椤哄簭
+ }
+
+ /** 鎴愬憳缁村害缁熻 */
+ export interface MemberStatistics {
+ name: string; // 鎴愬憳濮撳悕
+ memberTypes?: string; // 鎴愬憳绫诲瀷锛堝涓互椤垮彿鍒嗛殧锛�
+ contactPhone?: string; // 鑱旂郴鐢佃瘽
+ workUnit?: string; // 鎵�灞為儴闂�
+ jobTitle?: string; // 鑱岀О
+ memberRoles?: string; // 鎴愬憳瑙掕壊锛堝涓互椤垮彿鍒嗛殧锛�
+ projectCount?: number; // 鍙備笌璇鹃鏁�
+ projectTitles?: string; // 鍙備笌璇鹃鍚嶇О锛堝垎鍙峰垎闅旓級
+ }
+
/** 璇鹃鐢虫姤涔� */
export interface Application {
id?: number;
@@ -20,7 +45,8 @@
jobTitle?: string; // 鑱岀О
contactPhone?: string; // 鑱旂郴鐢佃瘽
contactEmail?: string; // 鑱旂郴閭
- teamMembers?: string; // 璇鹃缁勬垚鍛橈紙姣忚涓�鏉★細濮撳悕|鍗曚綅|鑱岀О锛�
+ teamMembers?: string; // 璇鹃缁勬垚鍛橈紙鏃х増鏂囨湰锛屼粎鍘嗗彶鏁版嵁灞曠ず锛�
+ members?: ApplicationMember[]; // 璇鹃缁勬垚鍛樺瓙琛�
budgetAmount?: number; // 鐢宠缁忚垂锛堝厓锛�
planContent?: string; // 鐢虫姤涔︽鏂�
status?: number; // 鐘舵�侊紝瀛楀吀 research_application_status
@@ -30,6 +56,8 @@
researchNo?: string; // 绔嬮」缂栧彿锛屽鎵归�氳繃鍚庣敓鎴�
approveTime?: string; // 绔嬮」鏃堕棿
noticeId?: number; // 宸插彂甯冪殑绔嬮」閫氱煡鍏憡 ID
+ archiveDocumentId?: number; // 褰掓。鐢熸垚鐨勬。妗� ID锛堥潪绌哄嵆宸插綊妗o級
+ archived?: boolean; // 鏄惁宸插綊妗�
remark?: string; // 澶囨敞
creator?: string; // 鍒涘缓浜� ID
creatorName?: string; // 鍒涘缓浜哄鍚�
@@ -120,6 +148,35 @@
});
}
+/** 褰掓。鍒版。妗堢鐞嗭紙浠呭凡绔嬮」鍙綊妗o級锛岃繑鍥炵敓鎴愮殑妗f缂栧彿 */
+export function archiveApplication(id: number) {
+ return requestClient.post<string>('/research/application/archive', null, {
+ params: { id },
+ });
+}
+
+/** 鎸夋垚鍛樼淮搴︾粺璁¤棰樺弬涓庢儏鍐� */
+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