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 |   38 +++++++++++++++++++++++++-------------
 1 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/src/views/ProductDetail.vue b/src/views/ProductDetail.vue
index 72b3bc6..c2b209f 100644
--- a/src/views/ProductDetail.vue
+++ b/src/views/ProductDetail.vue
@@ -4,7 +4,8 @@
 		<div class="mb-6 text-gray-500">
 			<el-breadcrumb separator="/">
 				<el-breadcrumb-item :to="{ path: '/' }">棣栭〉</el-breadcrumb-item>
-				<el-breadcrumb-item :to="{ path: '/certified-products' }">鑳芥晥浜у搧</el-breadcrumb-item>
+				<!-- 鎴戦渶瑕佽烦杞埌涓婁竴椤� -->
+				<el-breadcrumb-item @click="handleBack">{{product.modelType  }}</el-breadcrumb-item>
 				<el-breadcrumb-item>浜у搧璇︽儏</el-breadcrumb-item>
 			</el-breadcrumb>
 		</div>
@@ -25,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>
@@ -36,7 +37,7 @@
 				<div class="mb-6">
 					<div class="flex items-baseline gap-2">
 						<span class="text-gray-500">浠锋牸锛�</span>
-						<span class="text-2xl font-bold text-red-500">楼{{ product.price }}</span>
+						<span class="text-2xl font-bold text-red-500">闈㈣</span>
 					</div>
 				</div>
 
@@ -190,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';
@@ -322,7 +324,9 @@
     price: Number(product.value.price),
     quantity: product.value.quantity,
     image: product.value.image,
-    selected: false
+    selected: false,
+	companyName: product.value.brand,
+	model: product.value.model,
   };
 
   cartStore.addToCart(newCartItem);
@@ -354,6 +358,10 @@
 	window.open('http://www.xpump.net/V4/#/CN/Target/DOOCH/Pump/Index/C69S4/8978', '_blank');
 };
 
+const handleBack = ()=>{
+	router.go(-1);
+}
+
 const confirmOrder = () => {
 	if (!orderForm.value.name || !orderForm.value.phone || !orderForm.value.address) {
 		ElMessage.warning('璇峰~鍐欏畬鏁寸殑鏀惰揣淇℃伅');
@@ -377,6 +385,7 @@
 const EecLevelEnum = {
 	1: { name: '涓�绾ц兘鏁�', icon: EecLevel1 },
 	2: { name: '浜岀骇鑳芥晥', icon: EecLevel2 },
+	3: { name: '浜岀骇鑳芥晥', icon: EecLevel3 },
 };
 
 const productDataRef = ref({});
@@ -397,7 +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: '璇﹁鍘傚',
@@ -411,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';
 		}
@@ -419,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';
@@ -443,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