From 25100ec3d663fdab00f6dacb9f427b772c2f806f Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 14 七月 2025 12:27:54 +0800
Subject: [PATCH] 合并开发文件

---
 pages/baoyangjilu/table_son.vue |  190 +++++++++++++++++++---------------------------
 1 files changed, 79 insertions(+), 111 deletions(-)

diff --git a/pages/baoyangjilu/table_son.vue b/pages/baoyangjilu/table_son.vue
index 63070a6..3831b4f 100644
--- a/pages/baoyangjilu/table_son.vue
+++ b/pages/baoyangjilu/table_son.vue
@@ -1,15 +1,9 @@
 <template>
 	<view class="content">
 		<view class="infoArea">
-			<!-- #ifdef MP-WEIXIN -->
-			<view class="name">{{infoData['璁惧鍚嶇О']}}</view>
-			<view class="dm">锛� 浠g爜锛歿{infoData['璁惧浠g爜']}} 锛�</view>
-			<!-- #endif -->
-			<!-- #ifndef MP-WEIXIN -->
 			<view class="name">{{infoData.璁惧鍚嶇О}}</view>
 			<view class="dm">锛� 浠g爜锛歿{infoData.璁惧浠g爜}} 锛�</view>
-			<!-- #endif -->
-			<!-- <view class="other">
+<!-- 			<view class="other">
 				<view class="half">鍑哄巶缂栧彿: <text>{{infoData.璁惧鍑哄巶缂栧彿}}</text></view>
 				<view class="half">鍑哄巶鏃ユ湡: <text>{{infoData.璁惧鍑哄巶鏃ユ湡.substr(0,10)}}</text></view>
 				<view class="half">璁惧缂栫爜: <text v-if="infoData.璁惧缂栫爜 != 'null'">{{infoData.璁惧缂栫爜}}</text></view>
@@ -19,62 +13,53 @@
 				<view class="all">璁惧瑙勬牸: <text v-if="infoData.璁惧瑙勬牸 != 'null'">{{infoData.璁惧瑙勬牸}}</text></view>
 				<view class="all">璁惧鍨嬪彿: <text v-if="infoData.璁惧鍨嬪彿 != 'null'">{{infoData.璁惧鍨嬪彿}}</text></view>
 			</view> -->
-
+			
 			<view class="choose">
 				<view class="tab" :class="{focus: number == 1}" @tap="number = 1">淇濆吇椤逛俊鎭�</view>
 				<view class="tab" :class="{focus: number == 2}" @tap="number = 2">閰嶄欢淇℃伅</view>
 			</view>
 		</view>
-
+		
 		<view style="width: 100%;height: 200rpx;"></view>
 		<view v-if="number == 1">
 			<view class="list" v-for="(item,index) in listData1" :key="index" v-if="listData1[0].HManagerName">
-				<!-- #ifdef MP-WEIXIN -->
-				<uni-card style="margin: 10px;"
-					@tap="showDetail = showDetail==index?-1:index">
-				<!-- #endif -->
-				<!-- #ifndef MP-WEIXIN -->
-				<uni-card :title="item.HMaintainItem" :extra="item.HMaintainItemNumber" style="margin: 10px;"
-					@tap="showDetail = showDetail==index?-1:index">
-				<!-- #endif -->
-						<view class="card-detail">
-							<view class="detail" v-if="item.HMaintainPart">
-								<text>淇濆吇閮ㄤ綅锛�</text>{{item.HMaintainPart}}
-							</view>
-							<view class="detail" v-if="item.HManagerName">
-								<text>璐熻矗浜猴細</text>{{item.HManagerName}}
-							</view>
-							<view class="detail" v-if="item.HManagerNumber">
-								<text>璐熻矗浜轰唬鐮侊細</text>{{item.HManagerNumber}}
-							</view>
-							<view class="detail" v-if="item.HRemark">
-								<text>澶囨敞锛�</text>{{item.HRemark}}
-							</view>
+				<uni-card :title="item.HMaintainItem" :extra="item.HMaintainItemNumber" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
+					<view class="card-detail">
+						<view class="detail" v-if="item.HMaintainPart">
+							<text>淇濆吇閮ㄤ綅锛�</text>{{item.HMaintainPart}}
 						</view>
-						<view class="card-detail" v-if="showDetail == index">
-							<view class="detail">
-								<text>鍏蜂綋瑕佹眰锛�</text>{{item.HClaim?item.HClaim:'鏆傛棤鍏蜂綋瑕佹眰'}}
-							</view>
+						<view class="detail" v-if="item.HManagerName">
+							<text>璐熻矗浜猴細</text>{{item.HManagerName}}
 						</view>
-
-						<view class="morea" v-if="showDetail == index">
-							<uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
+						<view class="detail" v-if="item.HManagerNumber">
+							<text>璐熻矗浜轰唬鐮侊細</text>{{item.HManagerNumber}}
 						</view>
-						<view class="morea" v-if="showDetail != index">
-							<uni-icons type="bottom" style="color: #888;margin-right: 10rpx;"
-								size="14"></uni-icons>鏌ョ湅鍏蜂綋瑕佹眰
+						<view class="detail" v-if="item.HRemark">
+							<text>澶囨敞锛�</text>{{item.HRemark}}
 						</view>
-					</uni-card>
+					</view>
+					<view class="card-detail" v-if="showDetail == index">
+						<view class="detail">
+							<text>鍏蜂綋瑕佹眰锛�</text>{{item.HClaim?item.HClaim:'鏆傛棤鍏蜂綋瑕佹眰'}}
+						</view>
+					</view>
+					
+					<view class="morea" v-if="showDetail == index" >
+						<uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
+					</view>
+					<view class="morea" v-if="showDetail != index">
+						<uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏌ョ湅鍏蜂綋瑕佹眰
+					</view>
+				</uni-card>
 			</view>
-
+			
 			<view class="over" v-if="listData1.length == 0 || !listData1[0].HManagerName">鏆傛棤鏁版嵁</view>
 			<view class="over" v-if="listData1.length != 0 && listData1[0].HManagerName">宸插埌搴�</view>
 		</view>
 
 		<view v-if="number == 2">
 			<view class="list" v-for="(item,index) in listData2" :key="index" v-if="listData2[0].HManagerName">
-				<uni-card :title="item.HMaterName" :extra="item.HMaterNumber" style="margin: 10px;"
-					@tap="showDetail = showDetail==index?-1:index">
+				<uni-card :title="item.HMaterName" :extra="item.HMaterNumber" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
 					<view class="card-detail">
 						<view class="detail" v-if="item.HUnitName">
 							<text>鍗曚綅鍚嶇О锛�</text>{{item.HUnitName}}
@@ -100,7 +85,7 @@
 					</view>
 				</uni-card>
 			</view>
-
+			
 			<view class="over" v-if="listData2.length == 0 || !listData2[0].HManagerName">鏆傛棤鏁版嵁</view>
 			<view class="over" v-if="listData2.length != 0 && listData2[0].HManagerName">宸插埌搴�</view>
 		</view>
@@ -108,51 +93,47 @@
 </template>
 
 <script>
-	import {
-		getUserInfo
-	} from "@/utils/auth.js";
+	import { getUserInfo } from "@/utils/auth.js";
 	export default {
-		data() {
-			return {
-				userInfo: getUserInfo(),
-				serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
-				infoData: {},
-				number: 1,
-				listData1: [],
-				listData2: [],
-				showDetail: -1,
-			}
-		},
+	    data() {
+	        return {
+				userInfo:getUserInfo(),
+				serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
+				infoData:{},
+				number:1,
+				listData1:[],
+				listData2:[],
+				showDetail:-1,
+	        }
+	    },
 		onLoad(e) {
 			console.log(e)
 			uni.setNavigationBarTitle({
-				title: e['璁惧鍚嶇О']
+				title: e.璁惧鍚嶇О
 			});
 			this.infoData = e
 			this.getList(e.HInterID)
 		},
-		methods: {
-			getList(HInterID) {
+	    methods: {
+			getList(HInterID){
 				uni.showLoading({
-					title: '鍔犺浇涓�...'
+					title:'鍔犺浇涓�...'
 				})
 				uni.request({
-					url: this.serverUrl + '/Sb_EquipMaintainBill/Sb_EquipMaintainBillListProjectDetaiNew',
-					data: {
-						"HInterID": HInterID
-					},
-					success: (res) => {
-						if (res.data.count == 1) {
+				    url: this.serverUrl + '/Sb_EquipMaintainBill/Sb_EquipMaintainBillListProjectDetaiNew',
+					data: { "HInterID": HInterID },
+				    success: (res) => {
+						if(res.data.count == 1){
 							this.listData1 = res.data.list[0]
 							this.listData2 = res.data.list[1]
-							console.log(1, this.listData1);
-							console.log(2, this.listData2);
+							console.log(1,this.listData1);
+							console.log(2,this.listData2);
 							uni.hideLoading()
-						} else {
+						}else{
 							uni.hideLoading()
 							uni.showToast({
-								title: res.data.Message,
-								icon: 'none'
+								title:res.data.Message,
+								icon:'none'
 							})
 						}
 					},
@@ -160,18 +141,18 @@
 						console.log(res);
 						uni.hideLoading()
 						uni.showToast({
-							title: '鎺ュ彛璇锋眰澶辫触',
-							icon: 'none'
+							title:'鎺ュ彛璇锋眰澶辫触',
+							icon:'none'
 						})
 					},
 				});
 			},
-		}
+	    }
 	}
 </script>
 
 <style lang="scss" scoped>
-	.infoArea {
+	.infoArea{
 		width: 100%;
 		padding-top: 20rpx;
 		background-color: #f0f0f0;
@@ -179,23 +160,20 @@
 		top: 0;
 		left: 0;
 		z-index: 99;
-
-		.name {
+		.name{
 			text-align: center;
 			font-size: 32rpx;
 			font-weight: 600;
 			color: #333;
 			line-height: 150%;
 		}
-
-		.dm {
+		.dm{
 			text-align: center;
 			font-size: 27rpx;
 			font-weight: 500;
 			color: #333;
 		}
-
-		.other {
+		.other{
 			display: flex;
 			flex-wrap: wrap;
 			width: 90%;
@@ -203,23 +181,19 @@
 			margin-top: 12rpx;
 			font-size: 27rpx;
 			color: #666;
-
-			text {
+			text{
 				font-size: 28rpx;
 				color: #333;
 				margin-left: 10rpx;
 			}
-
-			.half {
+			.half{
 				width: 50%;
 			}
-
-			.all {
+			.all{
 				width: 100%;
 			}
 		}
-
-		.choose {
+		.choose{
 			height: 70rpx;
 			margin-top: 20rpx;
 			padding: 0 30rpx;
@@ -228,15 +202,13 @@
 			border-radius: 40rpx 40rpx 0 0;
 			border-bottom: 2px solid #eee;
 			display: flex;
-
-			.tab {
+			.tab{
 				margin: 0 20rpx;
 				text-align: center;
 				font-size: 28rpx;
 				color: #666;
 			}
-
-			.focus {
+			.focus{
 				font-size: 30rpx;
 				color: #333;
 				font-weight: 600;
@@ -244,49 +216,45 @@
 			}
 		}
 	}
-
-	.list {
+	
+	.list{
 		width: 100%;
-
-		.card-detail {
+		.card-detail{
 			width: 100%;
 			display: flex;
 			flex-wrap: wrap;
 			justify-content: space-between;
 			line-height: 120%;
-
-			.detail {
+			.detail{
 				// width: 50%;
 				font-size: 26rpx;
 				margin-bottom: 12rpx;
 				color: #555;
 				margin-right: 20rpx;
-
-				text {
+				text{
 					color: #999;
 					font-size: 26rpx;
 				}
 			}
 		}
-
-		.more {
+		.more{
 			color: #888;
 			font-size: 24rpx;
 			display: flex;
 			border-top: 1px solid #eee;
 			padding-top: 20rpx;
-
-			.part {
+			.part{
 				width: 50%;
 				text-align: center;
 			}
 		}
-
-		.morea {
+		
+		.morea{
 			color: #888;
 			font-size: 24rpx;
 			padding-top: 10rpx;
 			text-align: right;
 		}
 	}
-</style>
\ No newline at end of file
+
+</style>

--
Gitblit v1.9.1