From 5aa165156994b1b8a601063fa0a1107d1893ea57 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期四, 19 三月 2026 16:48:13 +0800
Subject: [PATCH] 更新
---
src/views/business/course/donationProcess.js | 462 ++++++++++++++++++++++++++++++---------------------------
1 files changed, 242 insertions(+), 220 deletions(-)
diff --git a/src/views/business/course/donationProcess.js b/src/views/business/course/donationProcess.js
index d2e3f16..ce32f60 100644
--- a/src/views/business/course/donationProcess.js
+++ b/src/views/business/course/donationProcess.js
@@ -1,48 +1,48 @@
// 妯℃嫙鎹愮尞杩涚▼鏁版嵁
const mockDonationProcessData = {
caseInfo: {
- id: '202512001',
- caseNo: 'C202512001',
- hospitalNo: 'D202512001',
- donorName: '寮犱笁',
- gender: '0',
+ id: "202512001",
+ caseNo: "C202512001",
+ hospitalNo: "D202512001",
+ donorName: "寮犱笁",
+ gender: "0",
age: 45,
- bloodType: 'A',
- diagnosis: '鑴戝浼�',
- status: 'in_progress',
- createTime: '2025-12-01 08:00:00',
- registrant: '鏉庡崗璋冨憳',
- currentStage: 'organ_allocation',
+ bloodType: "A",
+ diagnosis: "鑴戝浼�",
+ status: "in_progress",
+ createTime: "2025-12-01 08:00:00",
+ registrant: "鏉庡崗璋冨憳",
+ currentStage: "organ_allocation",
// 鏂板鍩烘湰淇℃伅
height: 175,
weight: 70,
- bloodPressure: '120/80',
- contactPerson: '寮犵埗',
- contactPhone: '13800138000',
- hospital: '鍖椾含鍗忓拰鍖婚櫌',
- department: '绁炵粡澶栫',
- attendingDoctor: '鐜嬩富浠�'
+ bloodPressure: "120/80",
+ contactPerson: "寮犵埗",
+ contactPhone: "13800138000",
+ hospital: "闈掑矝澶у闄勫睘鍖婚櫌",
+ department: "绁炵粡澶栫",
+ attendingDoctor: "鐜嬩富浠�"
},
processStages: [
{
- key: 'donor_maintenance',
- name: '渚涜�呯淮鎶�',
- status: 'completed',
- completeTime: '2025-12-01 10:00:00',
- updateTime: '2025-12-01 10:00:00',
- operator: '寮犲尰鐢�',
+ key: "donor_maintenance",
+ name: "渚涜�呯淮鎶�",
+ status: "completed",
+ completeTime: "2025-12-01 10:00:00",
+ updateTime: "2025-12-01 10:00:00",
+ operator: "寮犲尰鐢�",
details: {
maintenanceRecords: 5,
- lastCheckup: '2025-12-01 09:30:00',
+ lastCheckup: "2025-12-01 09:30:00",
vitalSigns: {
heartRate: 75,
- bloodPressure: '118/76',
+ bloodPressure: "118/76",
temperature: 36.5,
oxygenSaturation: 98
},
medications: [
- { name: '澶氬反鑳�', dosage: '5渭g/kg/min', time: '2025-12-01 08:00:00' },
- { name: '鐢橀湶閱�', dosage: '125ml', time: '2025-12-01 09:00:00' }
+ { name: "澶氬反鑳�", dosage: "5渭g/kg/min", time: "2025-12-01 08:00:00" },
+ { name: "鐢橀湶閱�", dosage: "125ml", time: "2025-12-01 09:00:00" }
],
labResults: {
wbc: 8.5,
@@ -54,218 +54,227 @@
}
},
{
- key: 'medical_assessment',
- name: '鍖诲璇勪及',
- status: 'completed',
- completeTime: '2025-12-02 14:30:00',
- updateTime: '2025-12-02 14:30:00',
- operator: '鏉庝富浠�',
- details: {
- assessmentItems: [
- { name: '绁炵粡绯荤粺璇勪及', result: '鑴戞浜$‘璁�', status: 'completed' },
- { name: '蹇冭绠$郴缁熻瘎浼�', result: '鍔熻兘姝e父', status: 'completed' },
- { name: '鍛煎惛绯荤粺璇勪及', result: '鍛煎惛鏈虹淮鎸�', status: 'completed' },
- { name: '鑲濊偩鍔熻兘璇勪及', result: '鍔熻兘鑹ソ', status: 'completed' },
- { name: '鎰熸煋鎬х柧鐥呯瓫鏌�', result: '闃存��', status: 'completed' }
- ],
- imagingResults: {
- ctBrain: '鑴戞按鑲匡紝鑴戝共鍙嶅皠娑堝け',
- chestXRay: '鍙岃偤娓呮櫚',
- abdominalUS: '鑲濊儐鑳拌劸鏈寮傚父'
- },
- conclusion: '绗﹀悎鍣ㄥ畼鎹愮尞鍖诲鏍囧噯',
- contraindications: '鏃犵粷瀵圭蹇岀棁'
- }
- },
- {
- key: 'death_judgment',
- name: '姝讳骸鍒ゅ畾',
- status: 'completed',
- completeTime: '2025-12-03 09:15:00',
- updateTime: '2025-12-03 09:15:00',
- operator: '鐜嬪尰鐢�',
- details: {
- judgmentType: '鑴戞浜″垽瀹�',
- judgmentTime: '2025-12-03 09:00:00',
- doctors: ['寮犱富浠�', '鐜嬪尰鐢�'],
- testResults: [
- { test: '鑷富鍛煎惛娴嬭瘯', result: '鏃犺嚜涓诲懠鍚�', time: '2025-12-03 08:30:00' },
- { test: '鐬冲瓟瀵瑰厜鍙嶅皠', result: '鍙嶅皠娑堝け', time: '2025-12-03 08:45:00' },
- { test: '鑴戝共鍚璇卞彂鐢典綅', result: '鑴戝共鍔熻兘涓уけ', time: '2025-12-03 09:00:00' }
- ],
- certificateNo: 'SW20251203001',
- legalDocuments: ['姝讳骸璇佹槑涔�', '鑴戞浜″垽瀹氫功']
- }
- },
- {
- key: 'donation_confirm',
- name: '鎹愮尞纭',
- status: 'completed',
- completeTime: '2025-12-03 11:00:00',
- updateTime: '2025-12-03 11:00:00',
- operator: '璧靛崗璋冨憳',
+ key: "donation_confirm",
+ name: "鎹愮尞鎰忔効",
+ status: "completed",
+ completeTime: "2025-12-03 11:00:00",
+ updateTime: "2025-12-03 11:00:00",
+ operator: "璧靛崗璋冨憳",
details: {
familyConsent: {
- mainRelative: '寮犵埗',
- relationship: '鐖跺瓙',
- consentTime: '2025-12-03 10:45:00',
- consentForm: '宸茬缃�',
- witness: '鏉庢姢澹�'
+ mainRelative: "寮犵埗",
+ relationship: "鐖跺瓙",
+ consentTime: "2025-12-03 10:45:00",
+ consentForm: "宸茬缃�",
+ witness: "鏉庢姢澹�"
},
- donationType: '澶氬櫒瀹樻崘鐚�',
- organs: ['鑲濊剰', '鑲捐剰', '蹇冭剰', '瑙掕啘'],
- legalDocuments: [
- '鍣ㄥ畼鎹愮尞鍚屾剰涔�',
- '瀹跺睘鍏崇郴璇佹槑',
- '鍖荤枟鍏嶈矗澹版槑'
- ],
- coordinator: '璧靛崗璋冨憳',
- confirmationTime: '2025-12-03 11:00:00'
+ donationType: "澶氬櫒瀹樻崘鐚�",
+ organs: ["鑲濊剰", "鑲捐剰", "蹇冭剰", "瑙掕啘"],
+ legalDocuments: ["鍣ㄥ畼鎹愮尞鍚屾剰涔�", "瀹跺睘鍏崇郴璇佹槑", "鍖荤枟鍏嶈矗澹版槑"],
+ coordinator: "璧靛崗璋冨憳",
+ confirmationTime: "2025-12-03 11:00:00"
}
},
{
- key: 'ethical_review',
- name: '浼︾悊瀹℃煡',
- status: 'in_progress',
- completeTime: '2025-12-03 15:20:00',
- updateTime: '2025-12-03 15:20:00',
- operator: '浼︾悊濮斿憳浼�',
+ key: "medical_assessment",
+ name: "鍖诲璇勪及",
+ status: "completed",
+ completeTime: "2025-12-02 14:30:00",
+ updateTime: "2025-12-02 14:30:00",
+ operator: "鏉庝富浠�",
details: {
- committee: '鍖婚櫌浼︾悊瀹℃煡濮斿憳浼�',
- meetingTime: '2025-12-03 14:00:00',
- members: ['寮犳暀鎺�', '鏉庝富浠�', '鐜嬪尰鐢�', '璧靛鍛�', '閽变笓瀹�'],
+ assessmentItems: [
+ { name: "绁炵粡绯荤粺璇勪及", result: "鑴戞浜$‘璁�", status: "completed" },
+ { name: "蹇冭绠$郴缁熻瘎浼�", result: "鍔熻兘姝e父", status: "completed" },
+ { name: "鍛煎惛绯荤粺璇勪及", result: "鍛煎惛鏈虹淮鎸�", status: "completed" },
+ { name: "鑲濊偩鍔熻兘璇勪及", result: "鍔熻兘鑹ソ", status: "completed" },
+ { name: "鎰熸煋鎬х柧鐥呯瓫鏌�", result: "闃存��", status: "completed" }
+ ],
+ imagingResults: {
+ ctBrain: "鑴戞按鑲匡紝鑴戝共鍙嶅皠娑堝け",
+ chestXRay: "鍙岃偤娓呮櫚",
+ abdominalUS: "鑲濊儐鑳拌劸鏈寮傚父"
+ },
+ conclusion: "绗﹀悎鍣ㄥ畼鎹愮尞鍖诲鏍囧噯",
+ contraindications: "鏃犵粷瀵圭蹇岀棁"
+ }
+ },
+
+ {
+ key: "death_judgment",
+ name: "姝讳骸鍒ゅ畾",
+ status: "completed",
+ completeTime: "2025-12-03 09:15:00",
+ updateTime: "2025-12-03 09:15:00",
+ operator: "鐜嬪尰鐢�",
+ details: {
+ judgmentType: "鑴戞浜″垽瀹�",
+ judgmentTime: "2025-12-03 09:00:00",
+ doctors: ["寮犱富浠�", "鐜嬪尰鐢�"],
+ testResults: [
+ {
+ test: "鑷富鍛煎惛娴嬭瘯",
+ result: "鏃犺嚜涓诲懠鍚�",
+ time: "2025-12-03 08:30:00"
+ },
+ {
+ test: "鐬冲瓟瀵瑰厜鍙嶅皠",
+ result: "鍙嶅皠娑堝け",
+ time: "2025-12-03 08:45:00"
+ },
+ {
+ test: "鑴戝共鍚璇卞彂鐢典綅",
+ result: "鑴戝共鍔熻兘涓уけ",
+ time: "2025-12-03 09:00:00"
+ }
+ ],
+ certificateNo: "SW20251203001",
+ legalDocuments: ["姝讳骸璇佹槑涔�", "鑴戞浜″垽瀹氫功"]
+ }
+ },
+ {
+ key: "ethical_review",
+ name: "浼︾悊瀹℃煡",
+ status: "in_progress",
+ completeTime: "2025-12-03 15:20:00",
+ updateTime: "2025-12-03 15:20:00",
+ operator: "浼︾悊濮斿憳浼�",
+ details: {
+ committee: "鍖婚櫌浼︾悊瀹℃煡濮斿憳浼�",
+ meetingTime: "2025-12-03 14:00:00",
+ members: ["寮犳暀鎺�", "鏉庝富浠�", "鐜嬪尰鐢�", "璧靛鍛�", "閽变笓瀹�"],
reviewItems: [
- { item: '鎹愮尞鎰忔効鐪熷疄鎬�', result: '纭鐪熷疄', vote: '鍏ㄧエ閫氳繃' },
- { item: '鍖诲璇勪及鍑嗙‘鎬�', result: '纭鍑嗙‘', vote: '鍏ㄧエ閫氳繃' },
- { item: '娉曞緥鏂囦欢瀹屾暣鎬�', result: '纭瀹屾暣', vote: '鍏ㄧエ閫氳繃' }
+ { item: "鎹愮尞鎰忔効鐪熷疄鎬�", result: "纭鐪熷疄", vote: "鍏ㄧエ閫氳繃" },
+ { item: "鍖诲璇勪及鍑嗙‘鎬�", result: "纭鍑嗙‘", vote: "鍏ㄧエ閫氳繃" },
+ { item: "娉曞緥鏂囦欢瀹屾暣鎬�", result: "纭瀹屾暣", vote: "鍏ㄧエ閫氳繃" }
],
- conclusion: '绗﹀悎浼︾悊瑕佹眰锛屽悓鎰忚繘琛屽櫒瀹樻崘鐚�',
- resolutionNo: 'LL20251203001'
+ conclusion: "绗﹀悎浼︾悊瑕佹眰锛屽悓鎰忚繘琛屽櫒瀹樻崘鐚�",
+ resolutionNo: "LL20251203001"
}
},
{
- key: 'organ_allocation',
- name: '鍣ㄥ畼鍒嗛厤',
- status: 'pending',
- updateTime: '2025-12-04 10:00:00',
- operator: '鍒嗛厤绯荤粺',
+ key: "organ_allocation",
+ name: "鍣ㄥ畼鍒嗛厤",
+ status: "pending",
+ updateTime: "2025-12-04 10:00:00",
+ operator: "鍒嗛厤绯荤粺",
details: {
- allocationStartTime: '2025-12-04 09:00:00',
- allocationSystem: '涓浗浜轰綋鍣ㄥ畼鍒嗛厤涓庡叡浜绠楁満绯荤粺',
+ allocationStartTime: "2025-12-04 09:00:00",
+ allocationSystem: "涓浗浜轰綋鍣ㄥ畼鍒嗛厤涓庡叡浜绠楁満绯荤粺",
organs: [
{
- organ: '鑲濊剰',
- status: '鍒嗛厤涓�',
+ organ: "鑲濊剰",
+ status: "鍒嗛厤涓�",
matchScore: 95,
- recommendedRecipient: '鐜嬪厛鐢�',
+ recommendedRecipient: "鐜嬪厛鐢�",
recipientAge: 45,
- recipientBloodType: 'A',
- hospital: '鍖椾含鍗忓拰鍖婚櫌',
- urgency: '绱ф��'
+ recipientBloodType: "A",
+ hospital: "闈掑矝澶у闄勫睘鍖婚櫌",
+ urgency: "绱ф��"
},
{
- organ: '鑲捐剰',
- status: '鍖归厤瀹屾垚',
+ organ: "鑲捐剰",
+ status: "鍖归厤瀹屾垚",
matchScore: 92,
- recommendedRecipient: '鏉庡コ澹�',
+ recommendedRecipient: "鏉庡コ澹�",
recipientAge: 38,
- recipientBloodType: 'A',
- hospital: '涓婃捣鐟為噾鍖婚櫌',
- urgency: '楂�'
+ recipientBloodType: "A",
+ hospital: "闈掑矝甯傚競绔嬪尰闄�",
+ urgency: "楂�"
},
{
- organ: '蹇冭剰',
- status: '寰呭垎閰�',
+ organ: "蹇冭剰",
+ status: "寰呭垎閰�",
matchScore: 88,
- recommendedRecipient: '闄堝厛鐢�',
+ recommendedRecipient: "闄堝厛鐢�",
recipientAge: 52,
- recipientBloodType: 'O',
- hospital: '骞垮窞涓北鍖婚櫌',
- urgency: '绱ф��'
+ recipientBloodType: "O",
+ hospital: "灞变笢澶у榻愰瞾鍖婚櫌",
+ urgency: "绱ф��"
}
],
allocationFactors: [
- { factor: '鐥呮儏鍗遍噸绋嬪害', weight: 35 },
- { factor: '缁勭粐閰嶅瀷鍖归厤', weight: 25 },
- { factor: '绛夊緟鏃堕棿', weight: 15 },
- { factor: '鍦扮悊鍥犵礌', weight: 10 },
- { factor: '骞撮緞鍥犵礌', weight: 15 }
+ { factor: "鐥呮儏鍗遍噸绋嬪害", weight: 35 },
+ { factor: "缁勭粐閰嶅瀷鍖归厤", weight: 25 },
+ { factor: "绛夊緟鏃堕棿", weight: 15 },
+ { factor: "鍦扮悊鍥犵礌", weight: 10 },
+ { factor: "骞撮緞鍥犵礌", weight: 15 }
]
}
},
{
- key: 'organ_procurement',
- name: '鍣ㄥ畼鑾峰彇',
- status: 'pending',
- updateTime: '2025-12-03 16:00:00',
- operator: '寰呭垎閰�',
+ key: "organ_procurement",
+ name: "鍣ㄥ畼鑾峰彇",
+ status: "pending",
+ updateTime: "2025-12-03 16:00:00",
+ operator: "寰呭垎閰�",
details: {
- scheduledTime: '2025-12-04 14:00:00',
- operationRoom: '鎵嬫湳瀹や竴鍙�',
+ scheduledTime: "2025-12-04 14:00:00",
+ operationRoom: "鎵嬫湳瀹や竴鍙�",
surgicalTeam: {
- surgeon: '寰呭垎閰�',
- assistant: '寰呭垎閰�',
- anesthesiologist: '寰呭垎閰�',
- nurse: '寰呭垎閰�'
+ surgeon: "寰呭垎閰�",
+ assistant: "寰呭垎閰�",
+ anesthesiologist: "寰呭垎閰�",
+ nurse: "寰呭垎閰�"
},
preservationPlan: {
- method: '浣庢俯鏈烘鐏屾敞',
- solution: 'UW淇濆瓨娑�',
- temperature: '4掳C'
+ method: "浣庢俯鏈烘鐏屾敞",
+ solution: "UW淇濆瓨娑�",
+ temperature: "4掳C"
},
organs: [
{
- organ: '鑲濊剰',
+ organ: "鑲濊剰",
planned: true,
- preservation: '寰呭噯澶�',
- estimatedTime: '4灏忔椂'
+ preservation: "寰呭噯澶�",
+ estimatedTime: "4灏忔椂"
},
{
- organ: '鑲捐剰',
+ organ: "鑲捐剰",
planned: true,
- preservation: '寰呭噯澶�',
- estimatedTime: '3灏忔椂'
+ preservation: "寰呭噯澶�",
+ estimatedTime: "3灏忔椂"
},
{
- organ: '蹇冭剰',
+ organ: "蹇冭剰",
planned: true,
- preservation: '寰呭噯澶�',
- estimatedTime: '5灏忔椂'
+ preservation: "寰呭噯澶�",
+ estimatedTime: "5灏忔椂"
}
]
}
},
{
- key: 'organ_utilization',
- name: '鍣ㄥ畼鍒╃敤',
- status: 'pending',
- updateTime: '2025-12-03 16:00:00',
- operator: '寰呭垎閰�',
+ key: "organ_utilization",
+ name: "鍣ㄥ畼鍒╃敤",
+ status: "pending",
+ updateTime: "2025-12-03 16:00:00",
+ operator: "寰呭垎閰�",
details: {
transplantCenters: [
{
- hospital: '鍖椾含鍗忓拰鍖婚櫌',
- organ: '鑲濊剰',
- recipient: '鐜嬪厛鐢�',
- scheduledTime: '2025-12-04 18:00:00',
- surgicalTeam: '寰呯‘璁�'
+ hospital: "闈掑矝澶у闄勫睘鍖婚櫌",
+ organ: "鑲濊剰",
+ recipient: "鐜嬪厛鐢�",
+ scheduledTime: "2025-12-04 18:00:00",
+ surgicalTeam: "寰呯‘璁�"
},
{
- hospital: '涓婃捣鐟為噾鍖婚櫌',
- organ: '鑲捐剰',
- recipient: '鏉庡コ澹�',
- scheduledTime: '2025-12-04 19:00:00',
- surgicalTeam: '寰呯‘璁�'
+ hospital: "闈掑矝甯傚競绔嬪尰闄�",
+ organ: "鑲捐剰",
+ recipient: "鏉庡コ澹�",
+ scheduledTime: "2025-12-04 19:00:00",
+ surgicalTeam: "寰呯‘璁�"
}
],
followupPlan: {
- frequency: '鏈悗1涓湀銆�3涓湀銆�6涓湀銆�1骞�',
- items: ['鑲濆姛鑳芥鏌�', '鍏嶇柅鎶戝埗鍓傛祿搴�', '褰卞儚瀛︽鏌�'],
- coordinator: '寰呭垎閰�'
+ frequency: "鏈悗1涓湀銆�3涓湀銆�6涓湀銆�1骞�",
+ items: ["鑲濆姛鑳芥鏌�", "鍏嶇柅鎶戝埗鍓傛祿搴�", "褰卞儚瀛︽鏌�"],
+ coordinator: "寰呭垎閰�"
},
qualityMetrics: {
expectedSurvivalRate: 92,
- complicationRisk: '涓瓑',
+ complicationRisk: "涓瓑",
successRate: 95
}
}
@@ -274,40 +283,40 @@
// 鏂板鏃堕棿绾夸簨浠�
timelineEvents: [
{
- time: '2025-12-01 08:00:00',
- event: '妗堜緥鐧昏',
- operator: '鏉庡崗璋冨憳',
- description: '鎹愮尞妗堜緥姝e紡鐧昏鍚姩'
+ time: "2025-12-01 08:00:00",
+ event: "妗堜緥鐧昏",
+ operator: "鏉庡崗璋冨憳",
+ description: "鎹愮尞妗堜緥姝e紡鐧昏鍚姩"
},
{
- time: '2025-12-01 10:00:00',
- event: '渚涜�呯淮鎶ゅ畬鎴�',
- operator: '寮犲尰鐢�',
- description: '瀹屾垚渚涜�呯敓鍛戒綋寰佺淮鎶ゅ拰鍖荤枟绠$悊'
+ time: "2025-12-01 10:00:00",
+ event: "渚涜�呯淮鎶ゅ畬鎴�",
+ operator: "寮犲尰鐢�",
+ description: "瀹屾垚渚涜�呯敓鍛戒綋寰佺淮鎶ゅ拰鍖荤枟绠$悊"
},
{
- time: '2025-12-02 14:30:00',
- event: '鍖诲璇勪及瀹屾垚',
- operator: '鏉庝富浠�',
- description: '鍏ㄩ潰鍖诲璇勪及纭绗﹀悎鎹愮尞鏍囧噯'
+ time: "2025-12-02 14:30:00",
+ event: "鍖诲璇勪及瀹屾垚",
+ operator: "鏉庝富浠�",
+ description: "鍏ㄩ潰鍖诲璇勪及纭绗﹀悎鎹愮尞鏍囧噯"
},
{
- time: '2025-12-03 09:15:00',
- event: '姝讳骸鍒ゅ畾瀹屾垚',
- operator: '鐜嬪尰鐢�',
- description: '鑴戞浜″垽瀹氱▼搴忓畬鎴�'
+ time: "2025-12-03 09:15:00",
+ event: "姝讳骸鍒ゅ畾瀹屾垚",
+ operator: "鐜嬪尰鐢�",
+ description: "鑴戞浜″垽瀹氱▼搴忓畬鎴�"
},
{
- time: '2025-12-03 11:00:00',
- event: '鎹愮尞纭瀹屾垚',
- operator: '璧靛崗璋冨憳',
- description: '瀹跺睘绛剧讲鎹愮尞鍚屾剰涔�'
+ time: "2025-12-03 11:00:00",
+ event: "鎹愮尞纭瀹屾垚",
+ operator: "璧靛崗璋冨憳",
+ description: "瀹跺睘绛剧讲鎹愮尞鍚屾剰涔�"
},
{
- time: '2025-12-03 15:20:00',
- event: '浼︾悊瀹℃煡閫氳繃',
- operator: '浼︾悊濮斿憳浼�',
- description: '浼︾悊瀹℃煡濮斿憳浼氬叏绁ㄩ�氳繃'
+ time: "2025-12-03 15:20:00",
+ event: "浼︾悊瀹℃煡閫氳繃",
+ operator: "浼︾悊濮斿憳浼�",
+ description: "浼︾悊瀹℃煡濮斿憳浼氬叏绁ㄩ�氳繃"
}
],
// 鏂板缁熻淇℃伅
@@ -315,15 +324,15 @@
totalStages: 8,
completedStages: 5,
completionRate: 62.5,
- timeElapsed: '2澶�6灏忔椂',
- estimatedCompletion: '2025-12-04 20:00:00',
+ timeElapsed: "2澶�6灏忔椂",
+ estimatedCompletion: "2025-12-04 20:00:00",
organsToDonate: 4,
potentialRecipients: 3
}
};
// 鑾峰彇鎹愮尞杩涚▼璇︽儏
-export const getDonationProcessDetail = async (caseId) => {
+export const getDonationProcessDetail = async caseId => {
await new Promise(resolve => setTimeout(resolve, 500));
// 妯℃嫙鏍规嵁caseId杩斿洖涓嶅悓鏁版嵁
@@ -332,7 +341,7 @@
return {
code: 200,
- message: 'success',
+ message: "success",
data: data
};
};
@@ -342,19 +351,24 @@
await new Promise(resolve => setTimeout(resolve, 300));
// 妯℃嫙鏇存柊閫昏緫
- const stage = mockDonationProcessData.processStages.find(s => s.key === stageKey);
+ const stage = mockDonationProcessData.processStages.find(
+ s => s.key === stageKey
+ );
if (stage) {
stage.status = status;
- stage.updateTime = new Date().toISOString().replace('T', ' ').substring(0, 19);
+ stage.updateTime = new Date()
+ .toISOString()
+ .replace("T", " ")
+ .substring(0, 19);
- if (status === 'completed') {
+ if (status === "completed") {
stage.completeTime = stage.updateTime;
}
}
return {
code: 200,
- message: '闃舵鐘舵�佹洿鏂版垚鍔�',
+ message: "闃舵鐘舵�佹洿鏂版垚鍔�",
data: {
caseId,
stageKey,
@@ -368,40 +382,42 @@
export const getStageDetail = async (caseId, stageKey) => {
await new Promise(resolve => setTimeout(resolve, 200));
- const stage = mockDonationProcessData.processStages.find(s => s.key === stageKey);
+ const stage = mockDonationProcessData.processStages.find(
+ s => s.key === stageKey
+ );
if (!stage) {
return {
code: 404,
- message: '闃舵涓嶅瓨鍦�',
+ message: "闃舵涓嶅瓨鍦�",
data: null
};
}
return {
code: 200,
- message: 'success',
+ message: "success",
data: stage
};
};
// 鑾峰彇鏃堕棿绾夸簨浠�
-export const getTimelineEvents = async (caseId) => {
+export const getTimelineEvents = async caseId => {
await new Promise(resolve => setTimeout(resolve, 150));
return {
code: 200,
- message: 'success',
+ message: "success",
data: mockDonationProcessData.timelineEvents
};
};
// 鑾峰彇妗堜緥缁熻淇℃伅
-export const getCaseStatistics = async (caseId) => {
+export const getCaseStatistics = async caseId => {
await new Promise(resolve => setTimeout(resolve, 100));
return {
code: 200,
- message: 'success',
+ message: "success",
data: mockDonationProcessData.statistics
};
};
@@ -412,12 +428,15 @@
return {
code: 200,
- message: '瀹℃牳鎻愪氦鎴愬姛',
+ message: "瀹℃牳鎻愪氦鎴愬姛",
data: {
caseId,
stageKey,
reviewId: `REV${Date.now()}`,
- submitTime: new Date().toISOString().replace('T', ' ').substring(0, 19),
+ submitTime: new Date()
+ .toISOString()
+ .replace("T", " ")
+ .substring(0, 19),
...reviewData
}
};
@@ -429,14 +448,17 @@
return {
code: 200,
- message: '鏂囦欢涓婁紶鎴愬姛',
+ message: "鏂囦欢涓婁紶鎴愬姛",
data: {
caseId,
stageKey,
fileId: `FILE${Date.now()}`,
fileName: fileInfo.name,
fileSize: fileInfo.size,
- uploadTime: new Date().toISOString().replace('T', ' ').substring(0, 19),
+ uploadTime: new Date()
+ .toISOString()
+ .replace("T", " ")
+ .substring(0, 19),
url: `/files/${caseId}/${stageKey}/${fileInfo.name}`
}
};
--
Gitblit v1.9.3