From 49ab96a40dd2e95cde3e455b07f990e49bbc9cee Mon Sep 17 00:00:00 2001
From: tanghaolin <1723298894@qq.com>
Date: 星期二, 22 四月 2025 17:36:46 +0800
Subject: [PATCH] 修改申报流程界面

---
 src/views/ProductDetail.vue |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/views/ProductDetail.vue b/src/views/ProductDetail.vue
index 5d1147c..c2b209f 100644
--- a/src/views/ProductDetail.vue
+++ b/src/views/ProductDetail.vue
@@ -26,7 +26,7 @@
 					<div class="flex items-center gap-2">
 						<span class="text-gray-500">鑳芥晥绛夌骇锛�</span>
 						<div class="flex items-center relative">
-							<img :src="EecLevelEnum[productDataRef.EnergyEfficiencyClass]?.icon" class="h-8" />
+							<img :src="EecLevelEnum[productDataRef.eec]?.icon" class="h-8" />
 							<!-- <span class="text-white relative right-[42px] top-[-1px]">1</span> -->
 							<!-- <span class="text-white absolute left-[16px] bottom-[10px] text-small">{{ EecLevelEnum[productDataRef.EnergyEfficiencyClass]?.name }}</span> -->
 						</div>
@@ -191,8 +191,9 @@
 </template>
 
 <script setup lang="ts">
-import EecLevel1 from '@/assets/icons/energy1.png';
-import EecLevel2 from '@/assets/icons/energy2.png';
+import EecLevel1 from '@/assets/icons/ecc1.svg';
+import EecLevel2 from '@/assets/icons/ecc2.svg';
+import EecLevel3 from '@/assets/icons/ecc3.svg';
 import { SERVE_URL } from '@/constants';
 import { Check, TrendCharts } from '@element-plus/icons-vue';
 import { ElMessage } from 'element-plus';
@@ -384,6 +385,7 @@
 const EecLevelEnum = {
 	1: { name: '涓�绾ц兘鏁�', icon: EecLevel1 },
 	2: { name: '浜岀骇鑳芥晥', icon: EecLevel2 },
+	3: { name: '浜岀骇鑳芥晥', icon: EecLevel3 },
 };
 
 const productDataRef = ref({});
@@ -404,9 +406,9 @@
 			image: `${SERVE_URL}${productData.PhysicalPicturePath}`,
 			certificatePath: `${SERVE_URL}${productData.CertificatePath}`,
 			brand: productData.CompanyName,
-			model: productData.Model,
+			model: productData.model,
 			modelType: productData.ModelType,
-
+			
 			power: '璇﹁鍘傚',
 			voltage: '璇﹁鍘傚',
 			speed: '璇﹁鍘傚',
@@ -420,7 +422,7 @@
 				鑳芥晥绛夌骇: `${productData.EnergyEfficiencyClass}绾,
 			},
 		};
-		isPumpDetail.value = productData.Id.includes('Pupm') ? true : false;
+		isPumpDetail.value = productData.type == 1 ? true : false;
 		if (product.value.model.includes('DSWQ') && isPumpDetail.value) {
 			product.value.SelectReport = 'static/EecProductData/image/1/DSWQ_SelectReport.png';
 		}
@@ -428,7 +430,7 @@
 			product.value.SelectReport = 'static/EecProductData/image/1/DRL_SelectReport.png';
 		}
 
-		isFan.value = productData.Id.includes('FJ') ? true : false;
+		isFan.value = productData.Type== 7 ? true : false;
 		if (isFan.value) {
 			product.value.Chart = 'static/EecProductData/image/3/fan_chart.png';
 			product.value.SelectReport = 'static/EecProductData/image/3/SelectReport.png';
@@ -452,10 +454,11 @@
 		SubID: 0,
 		ChartType: 3,
 		PumpStyle: 0,
-		PumpName4File: 'DRL1-18S',
-		CorpName: '涓煩鏉滅',
-		PumpName: 'DRL1-18S',
-		SeriesName: 'DRL',
+		PumpName4File: product.value.model,
+		CorpName: product.value.CompanyName,
+		PumpName: product.value.model,
+
+		SeriesName: product.value.ModelType,
 		CatalogName: '绔嬪紡澶氱骇娉�',
 		EecStauts: 0,
 		EecGrade: 0,

--
Gitblit v1.9.3