From a6cdbcfe28fcc40ebb4919f57d60fb20122e8e57 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期二, 12 八月 2025 09:10:35 +0800
Subject: [PATCH] 1

---
 pagesA/Examiner/Examiner.vue |   59 ++++++++++++++++++++++++++++++++---------------------------
 1 files changed, 32 insertions(+), 27 deletions(-)

diff --git a/pagesA/Examiner/Examiner.vue b/pagesA/Examiner/Examiner.vue
index 3f72b19..f31062c 100644
--- a/pagesA/Examiner/Examiner.vue
+++ b/pagesA/Examiner/Examiner.vue
@@ -6,8 +6,7 @@
 				confirmColor="#EF0000" cancelColor="#9496A2" showCancelButton="true" @cancel="show = false">
 				<div class="txt">鏄惁纭瑙g粦褰撳墠灏辫瘖鍗★紵</div>
 			</u-modal>
-			<view class="item" :data-address-id="item.id" v-for="(item, index) in list" :key="index"
-				>
+			<view class="item" :data-address-id="item.id" v-for="(item, index) in list" :key="index">
 				<!-- @tap.native.stop.prevent="xiugai($event, 
 					{ cusName: item.cusName, 
 					cusPhone: item.cusPhone, 
@@ -33,7 +32,7 @@
 							</view>
 						</view>
 						<!-- <view class="rz">宸茶璇�</view> -->
-						<view class="mr"  v-show="item.isDefault">榛樿</view>
+						<view class="mr" v-show="item.isDefault">榛樿</view>
 					</view>
 					<view class="qh" @click="jiebang(item)">瑙g粦</view>
 					<!-- <view class="qh" @tap.native.stop.prevent="xuanze($event, { cusName: item.cusName, 
@@ -90,7 +89,7 @@
 						<picker @change="NationalTypeChange" mode="selector" :range="NationalOptions"
 							:value="NationalOptions.dictValue" range-key="dictLabel">
 							<!-- <input class="input" :value="inspect.tjPacType" placeholder="璇烽�夋嫨浣撴绫诲瀷" disabled /> -->
-							<view class="input">{{NationalOptions[index].dictLabel}}</view>
+							<view class="input">  {{ NationalOptions[index] ? NationalOptions[index].dictLabel : '' }}</view>
 						</picker>
 					</view>
 					<view class="form-item">
@@ -98,7 +97,7 @@
 						<picker @change="marryTypeChange" mode="selector" :range="marryOptions"
 							:value="marryOptions.dictValue" range-key="dictLabel">
 							<!-- <input class="input" :value="inspect.tjPacType" placeholder="璇烽�夋嫨浣撴绫诲瀷" disabled /> -->
-							<view class="input">{{marryOptions[index1].dictLabel}}</view>
+							<view class="input"> {{ marryOptions[index1] ? marryOptions[index1].dictLabel : '' }}</view>
 						</picker>
 					</view>
 				</view>
@@ -142,10 +141,10 @@
 				tjCustomers: [],
 				marryOptions: [],
 				NationalOptions: [],
-				curuser:{},
+				curuser: {},
 				cusId: "",
 				cusName: "",
-				show:false,
+				show: false,
 				id: "",
 				index1: 0,
 				index: 0,
@@ -218,14 +217,14 @@
 
 
 			},
-			
-			
+
+
 			jiebang(item) {
 				this.curuser = item
 				this.show = true
 			},
 			confirm() {
-				let tjCustomer=this.curuser
+				let tjCustomer = this.curuser
 				delCustomer(tjCustomer).then(res => {
 					if (res.code == 200) {
 						this.show = false
@@ -242,30 +241,36 @@
 				})
 			},
 			xuanze(event, _dataset) {
-
 				let cusName = _dataset.cusName;
-				let cusIdCard = _dataset.cusIdcard;
-				// getInfoById(cusIdCard).then(res => {
-				// 	if (res.msg == "0") {
-				// 		this.$modal.showToast('鏆傛棤浣撴鍙凤紒');
-				// 	} else {
+				let cusIdCard = _dataset.cusIdcard; // 淇濇寔涓� _dataset 灞炴�т竴鑷�
+				console.log('xuanze 鍙傛暟:', {
+					cusName,
+					cusIdCard,
+					id: this.id
+				});
 
 				if (this.id == "1") {
+					console.log('璺宠浆鍒� history锛屼紶閫�:', {
+						cusName,
+						cusIdCard
+					});
 					uni.navigateTo({
-						url: `/pages/history/history?cusName=${cusName}&cusIdCard=${cusIdCard}`
-					})
+						url: `/pages/history/history?cusName=${encodeURIComponent(cusName)}&cusIdCard=${encodeURIComponent(cusIdCard)}`
+					});
 				} else if (this.id == "2") {
 					uni.navigateTo({
-						url: `/pages/tjrecord/tjrecord?cusIdCard=${cusIdCard}`
-					})
-				} else {
+						url: `/pages/tjrecord/tjrecord?cusIdCard=${encodeURIComponent(cusIdCard)}`
+					});
+				} else if (this.id == "3") {
+					uni.navigateTo({
+						url: `/pagesA/ReportOverview/ReportOverview?cusIdCard=${encodeURIComponent(cusIdCard)}`
+					});
+				}else {
 					uni.$emit('updateNote', _dataset);
 					uni.navigateBack({
 						delta: 1
-					})
+					});
 				}
-				// 	}
-				// })
 			},
 			NationalTypeChange(e) {
 				this.index = e.detail.value;
@@ -376,8 +381,8 @@
 		overflow: hidden;
 		padding-left: 15rpx;
 	}
-	
-	.card{
+
+	.card {
 		margin-left: 10rpx;
 		font-weight: 500;
 		font-size: 28rpx;
@@ -504,7 +509,7 @@
 		// margin-top: 8rpx;
 		margin-left: 40rpx;
 	}
-	
+
 	.qh {
 		width: 107rpx;
 		height: 124rpx;

--
Gitblit v1.8.0