From 150fe16fbe2d38aa40ccfb9860b06d92898cea2b Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 20 一月 2026 17:05:54 +0800
Subject: [PATCH] 设备运行 状态 功能按键 完善 开机 停机 点检记录 故障登记 履历 工艺 按钮点击功能

---
 pages/shebeilvli/EquipFileBillResume.vue |  856 +++++++++++++++++++++++++++++---------------------------
 1 files changed, 438 insertions(+), 418 deletions(-)

diff --git a/pages/shebeilvli/EquipFileBillResume.vue b/pages/shebeilvli/EquipFileBillResume.vue
index 7d4d291..5aef2bc 100644
--- a/pages/shebeilvli/EquipFileBillResume.vue
+++ b/pages/shebeilvli/EquipFileBillResume.vue
@@ -1,449 +1,469 @@
 <template>
-	<view class="content">
-		<view class="form">
-			<view class="form-item">
-				<view class="title">鍗曟嵁鍙�:</view>
-				<view class="right">
-					<input v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
-				</view>
-			</view>
-			<view class="form-item">
-				<view class="title">璁惧鍒嗙被:</view>
-				<view class="right">
-					<input v-model="hform.HEquipType" placeholder="璇疯緭鍏ヨ澶囧垎绫�" />
-				</view>
-			</view>
-			<view class="form-item">
-				<view class="title">寮�濮嬫椂闂�:</view>
-				<view class="right">
-					<picker mode="date" :value="hform.BenginHCreateDate" @change="BenginHCreateDateChange">
-						<input name="BenginHCreateDate" disabled :value="hform.BenginHCreateDate" placeholder="璇烽�夋嫨" />
-					</picker>
-				</view>
-			</view>
-			<view class="form-item">
-				<view class="title">缁撴潫鏃堕棿:</view>
-				<view class="right">
-					<picker mode="date" :value="hform.EndHCreateDate" @change="EndHCreateDateChange">
-						<input name="EndHCreateDate" disabled :value="hform.EndHCreateDate" placeholder="璇烽�夋嫨" />
-					</picker>
-				</view>
-			</view>
-			
-			<view class="buttons">
-				<button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
-				<!-- <button class="btn-b" size="mini" type="default">鏂板</button> -->
-				<button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
-			</view>
-		</view>
-		
-		<view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
-		
-		<view class="list" v-for="(item,index) in showList" :key="index">
-			<uni-card :title="item.璁惧鍚嶇О" :extra="item.鍗曟嵁鍙�" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
-				<view class="card-detail">
-					<view class="detail" v-if="item.璁惧浠g爜">
-						<text>璁惧浠g爜锛�</text>{{item.璁惧浠g爜}}
-					</view>
-					<view class="detail" v-if="item.璁惧鍑哄巶鏃ユ湡">
-						<text>鍑哄巶鏃ユ湡锛�</text>{{item.璁惧鍑哄巶鏃ユ湡.substr(0,10)}}
-					</view>
-					<view class="detail" v-if="item.璁惧鍨嬪彿">
-						<text>璁惧鍨嬪彿锛�</text>{{item.璁惧鍨嬪彿}}
-					</view>
-					<view class="detail" v-if="item.璁惧绫诲瀷">
-						<text>璁惧绫诲瀷锛�</text>{{item.璁惧绫诲瀷}}
-					</view>
-					<view class="detail" v-if="item.璁惧缂栫爜">
-						<text>璁惧缂栫爜锛�</text>{{item.璁惧缂栫爜}}
-					</view>
-					<view class="detail" v-if="item.璁惧瑙勬牸">
-						<text>璁惧瑙勬牸锛�</text>{{item.璁惧瑙勬牸}}
-					</view>
-					<view class="detail" v-if="item.褰撳墠鐘舵��">
-						<text>褰撳墠鐘舵�侊細</text>{{item.褰撳墠鐘舵�亇}
-					</view>
-					<view class="detail" v-if="item.鏃ユ湡">
-						<text>鏃ユ湡锛�</text>{{item.鏃ユ湡.substr(0,10)}}
-					</view>
-				</view>
-				<view class="card-detail" v-if="showDetail == index">
-<!-- 					<view class="detail" v-if="item.hmainid">
+    <view class="content">
+        <view class="form">
+            <view class="form-item">
+                <view class="title">鍗曟嵁鍙�:</view>
+                <view class="right">
+                    <input v-model="hform.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="title">璁惧鍒嗙被:</view>
+                <view class="right">
+                    <input v-model="hform.HEquipType" placeholder="璇疯緭鍏ヨ澶囧垎绫�" />
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="title">寮�濮嬫椂闂�:</view>
+                <view class="right">
+                    <picker mode="date" :value="hform.BenginHCreateDate" @change="BenginHCreateDateChange">
+                        <input name="BenginHCreateDate" disabled :value="hform.BenginHCreateDate" placeholder="璇烽�夋嫨" />
+                    </picker>
+                </view>
+            </view>
+            <view class="form-item">
+                <view class="title">缁撴潫鏃堕棿:</view>
+                <view class="right">
+                    <picker mode="date" :value="hform.EndHCreateDate" @change="EndHCreateDateChange">
+                        <input name="EndHCreateDate" disabled :value="hform.EndHCreateDate" placeholder="璇烽�夋嫨" />
+                    </picker>
+                </view>
+            </view>
+
+            <view class="buttons">
+                <button class="btn-a" size="mini" type="default" @tap="clear">閲嶇疆</button>
+                <!-- <button class="btn-b" size="mini" type="default">鏂板</button> -->
+                <button class="btn-c" size="mini" type="default" @tap="search">鏌ヨ</button>
+            </view>
+        </view>
+
+        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
+
+        <view class="list" v-for="(item,index) in showList" :key="index">
+            <uni-card :title="item.璁惧鍚嶇О" :extra="item.鍗曟嵁鍙�" style="margin: 10px;"
+                @tap="showDetail = showDetail==index?-1:index">
+                <view class="card-detail">
+                    <view class="detail" v-if="item.璁惧浠g爜">
+                        <text>璁惧浠g爜锛�</text>{{item.璁惧浠g爜}}
+                    </view>
+                    <view class="detail" v-if="item.璁惧鍑哄巶鏃ユ湡">
+                        <text>鍑哄巶鏃ユ湡锛�</text>{{item.璁惧鍑哄巶鏃ユ湡.substr(0,10)}}
+                    </view>
+                    <view class="detail" v-if="item.璁惧鍨嬪彿">
+                        <text>璁惧鍨嬪彿锛�</text>{{item.璁惧鍨嬪彿}}
+                    </view>
+                    <view class="detail" v-if="item.璁惧绫诲瀷">
+                        <text>璁惧绫诲瀷锛�</text>{{item.璁惧绫诲瀷}}
+                    </view>
+                    <view class="detail" v-if="item.璁惧缂栫爜">
+                        <text>璁惧缂栫爜锛�</text>{{item.璁惧缂栫爜}}
+                    </view>
+                    <view class="detail" v-if="item.璁惧瑙勬牸">
+                        <text>璁惧瑙勬牸锛�</text>{{item.璁惧瑙勬牸}}
+                    </view>
+                    <view class="detail" v-if="item.褰撳墠鐘舵��">
+                        <text>褰撳墠鐘舵�侊細</text>{{item.褰撳墠鐘舵�亇}
+                    </view>
+                    <view class="detail" v-if="item.鏃ユ湡">
+                        <text>鏃ユ湡锛�</text>{{item.鏃ユ湡.substr(0,10)}}
+                    </view>
+                </view>
+                <view class="card-detail" v-if="showDetail == index">
+                    <!-- 					<view class="detail" v-if="item.hmainid">
 						<text>hmainid锛�</text>{{item.hmainid}}
 					</view> -->
-					<view class="detail" v-if="item.鏉″舰鐮�">
-						<text>鏉$爜缂栧彿锛�</text>{{item.鏉″舰鐮亇}
-					</view>
-<!-- 					<view class="detail" v-if="item.HMaterID">
+                    <view class="detail" v-if="item.鏉″舰鐮�">
+                        <text>鏉$爜缂栧彿锛�</text>{{item.鏉″舰鐮亇}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HMaterID">
 						<text>HMaterID锛�</text>{{item.HMaterID}}
 					</view> -->
-					<view class="detail" v-if="item.鐗╂枡鍚嶇О">
-						<text>鐗╂枡鍚嶇О锛�</text>{{item.鐗╂枡鍚嶇О}}
-					</view>
-<!-- 					<view class="detail" v-if="item.HUnitID">
+                    <view class="detail" v-if="item.鐗╂枡鍚嶇О">
+                        <text>鐗╂枡鍚嶇О锛�</text>{{item.鐗╂枡鍚嶇О}}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HUnitID">
 						<text>HUnitID锛�</text>{{item.HUnitID}}
 					</view> -->
-					<view class="detail" v-if="item.鍗曚綅">
-						<text>鍗曚綅锛�</text>{{item.鍗曚綅}}
-					</view>
-<!-- 					<view class="detail" v-if="item.HDeptID">
+                    <view class="detail" v-if="item.鍗曚綅">
+                        <text>鍗曚綅锛�</text>{{item.鍗曚綅}}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HDeptID">
 						<text>HDeptID锛�</text>{{item.HDeptID}}
 					</view> -->
-					<view class="detail" v-if="item.浣跨敤閮ㄩ棬">
-						<text>浣跨敤閮ㄩ棬锛�</text>{{item.浣跨敤閮ㄩ棬}}
-					</view>
-					<view class="detail" v-if="item.HUseEmpID">
-						<text>HUseEmpID锛�</text>{{item.HUseEmpID}}
-					</view>
-					<view class="detail" v-if="item.浣跨敤璐熻矗浜�">
-						<text>浣跨敤璐熻矗浜猴細</text>{{item.浣跨敤璐熻矗浜簘}
-					</view>
-<!-- 					<view class="detail" v-if="item.HRepairEmpID">
+                    <view class="detail" v-if="item.浣跨敤閮ㄩ棬">
+                        <text>浣跨敤閮ㄩ棬锛�</text>{{item.浣跨敤閮ㄩ棬}}
+                    </view>
+                    <view class="detail" v-if="item.HUseEmpID">
+                        <text>HUseEmpID锛�</text>{{item.HUseEmpID}}
+                    </view>
+                    <view class="detail" v-if="item.浣跨敤璐熻矗浜�">
+                        <text>浣跨敤璐熻矗浜猴細</text>{{item.浣跨敤璐熻矗浜簘}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HRepairEmpID">
 						<text>HRepairEmpID锛�</text>{{item.HRepairEmpID}}
 					</view> -->
-					<view class="detail" v-if="item.缁存姢璐熻矗浜�">
-						<text>缁存姢璐熻矗浜猴細</text>{{item.缁存姢璐熻矗浜簘}
-					</view>
-					<view class="detail" v-if="item.瀹夎鍦扮偣">
-						<text>瀹夎鍦扮偣锛�</text>{{item.瀹夎鍦扮偣}}
-					</view>
-					<view class="detail" v-if="item.瀹夎鏃ユ湡">
-						<text>瀹夎鏃ユ湡锛�</text>{{item.瀹夎鏃ユ湡.substr(0,10)}}
-					</view>
-					<view class="detail" v-if="item.杩愯寮�濮嬫棩鏈�">
-						<text>杩愯寮�濮嬫棩鏈燂細</text>{{item.杩愯寮�濮嬫棩鏈�.substr(0,10)}}
-					</view>
-<!-- 					<view class="detail" v-if="item.HEquipFileTypeID">
+                    <view class="detail" v-if="item.缁存姢璐熻矗浜�">
+                        <text>缁存姢璐熻矗浜猴細</text>{{item.缁存姢璐熻矗浜簘}
+                    </view>
+                    <view class="detail" v-if="item.瀹夎鍦扮偣">
+                        <text>瀹夎鍦扮偣锛�</text>{{item.瀹夎鍦扮偣}}
+                    </view>
+                    <view class="detail" v-if="item.瀹夎鏃ユ湡">
+                        <text>瀹夎鏃ユ湡锛�</text>{{item.瀹夎鏃ユ湡.substr(0,10)}}
+                    </view>
+                    <view class="detail" v-if="item.杩愯寮�濮嬫棩鏈�">
+                        <text>杩愯寮�濮嬫棩鏈燂細</text>{{item.杩愯寮�濮嬫棩鏈�.substr(0,10)}}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HEquipFileTypeID">
 						<text>HEquipFileTypeID锛�</text>{{item.HEquipFileTypeID}}
 					</view> -->
-					<view class="detail" v-if="item.宸ョ▼缂栫爜">
-						<text>宸ョ▼缂栫爜锛�</text>{{item.宸ョ▼缂栫爜}}
-					</view>
-					<view class="detail" v-if="item.浜у搧">
-						<text>浜у搧锛�</text>{{item.浜у搧}}
-					</view>
-					<view class="detail" v-if="item.鍝佺墝">
-						<text>鍝佺墝锛�</text>{{item.鍝佺墝}}
-					</view>
-<!-- 					<view class="detail" v-if="item.HSellSupID">
+                    <view class="detail" v-if="item.宸ョ▼缂栫爜">
+                        <text>宸ョ▼缂栫爜锛�</text>{{item.宸ョ▼缂栫爜}}
+                    </view>
+                    <view class="detail" v-if="item.浜у搧">
+                        <text>浜у搧锛�</text>{{item.浜у搧}}
+                    </view>
+                    <view class="detail" v-if="item.鍝佺墝">
+                        <text>鍝佺墝锛�</text>{{item.鍝佺墝}}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HSellSupID">
 						<text>HSellSupID锛�</text>{{item.HSellSupID}}
 					</view> -->
-					<view class="detail" v-if="item.渚涘簲鍟�">
-						<text>渚涘簲鍟嗭細</text>{{item.渚涘簲鍟唥}
-					</view>
-<!-- 					<view class="detail" v-if="item.HMakeSupID">
+                    <view class="detail" v-if="item.渚涘簲鍟�">
+                        <text>渚涘簲鍟嗭細</text>{{item.渚涘簲鍟唥}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HMakeSupID">
 						<text>HMakeSupID锛�</text>{{item.HMakeSupID}}
 					</view> -->
-					<view class="detail" v-if="item.鍒堕�犲晢">
-						<text>鍒堕�犲晢锛�</text>{{item.鍒堕�犲晢}}
-					</view>
-					<view class="detail" v-if="item.鍒跺崟浜�">
-						<text>鍒跺崟浜猴細</text>{{item.鍒跺崟浜簘}
-					</view>
-					<view class="detail" v-if="item.鍒跺崟鏃ユ湡">
-						<text>鍒跺崟鏃ユ湡锛�</text>{{item.鍒跺崟鏃ユ湡.substr(0,10)}}
-					</view>
-					<view class="detail" v-if="item.瀹℃牳浜�">
-						<text>瀹℃牳浜猴細</text>{{item.瀹℃牳浜簘}
-					</view>
-					<view class="detail" v-if="item.瀹℃牳鏃ユ湡">
-						<text>瀹℃牳鏃ユ湡锛�</text>{{item.瀹℃牳鏃ユ湡.substr(0,10)}}
-					</view>
-					<view class="detail" v-if="item.淇敼浜�">
-						<text>淇敼浜猴細</text>{{item.淇敼浜簘}
-					</view>
-					<view class="detail" v-if="item.淇敼鏃ユ湡">
-						<text>淇敼鏃ユ湡锛�</text>{{item.淇敼鏃ユ湡.substr(0,10)}}
-					</view>
-					<view class="detail" v-if="item.鍏抽棴浜�">
-						<text>鍏抽棴浜猴細</text>{{item.鍏抽棴浜簘}
-					</view>
-					<view class="detail" v-if="item.鍏抽棴鏃ユ湡">
-						<text>鍏抽棴鏃ユ湡锛�</text>{{item.鍏抽棴鏃ユ湡.substr(0,10)}}
-					</view>
-<!-- 					<view class="detail" v-if="item.hbilltype">
+                    <view class="detail" v-if="item.鍒堕�犲晢">
+                        <text>鍒堕�犲晢锛�</text>{{item.鍒堕�犲晢}}
+                    </view>
+                    <view class="detail" v-if="item.鍒跺崟浜�">
+                        <text>鍒跺崟浜猴細</text>{{item.鍒跺崟浜簘}
+                    </view>
+                    <view class="detail" v-if="item.鍒跺崟鏃ユ湡">
+                        <text>鍒跺崟鏃ユ湡锛�</text>{{item.鍒跺崟鏃ユ湡.substr(0,10)}}
+                    </view>
+                    <view class="detail" v-if="item.瀹℃牳浜�">
+                        <text>瀹℃牳浜猴細</text>{{item.瀹℃牳浜簘}
+                    </view>
+                    <view class="detail" v-if="item.瀹℃牳鏃ユ湡">
+                        <text>瀹℃牳鏃ユ湡锛�</text>{{item.瀹℃牳鏃ユ湡.substr(0,10)}}
+                    </view>
+                    <view class="detail" v-if="item.淇敼浜�">
+                        <text>淇敼浜猴細</text>{{item.淇敼浜簘}
+                    </view>
+                    <view class="detail" v-if="item.淇敼鏃ユ湡">
+                        <text>淇敼鏃ユ湡锛�</text>{{item.淇敼鏃ユ湡.substr(0,10)}}
+                    </view>
+                    <view class="detail" v-if="item.鍏抽棴浜�">
+                        <text>鍏抽棴浜猴細</text>{{item.鍏抽棴浜簘}
+                    </view>
+                    <view class="detail" v-if="item.鍏抽棴鏃ユ湡">
+                        <text>鍏抽棴鏃ユ湡锛�</text>{{item.鍏抽棴鏃ユ湡.substr(0,10)}}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.hbilltype">
 						<text>hbilltype锛�</text>{{item.hbilltype}}
 					</view> -->
-					<view class="detail" v-if="item.鍗曟嵁绫诲瀷">
-						<text>鍗曟嵁绫诲瀷锛�</text>{{item.鍗曟嵁绫诲瀷}}
-					</view>
-<!-- 					<view class="detail" v-if="item.HMoudType">
+                    <view class="detail" v-if="item.鍗曟嵁绫诲瀷">
+                        <text>鍗曟嵁绫诲瀷锛�</text>{{item.鍗曟嵁绫诲瀷}}
+                    </view>
+                    <!-- 					<view class="detail" v-if="item.HMoudType">
 						<text>HMoudType锛�</text>{{item.HMoudType}}
 					</view>
 					<view class="detail" v-if="item.hsubid">
 						<text>hsubid锛�</text>{{item.hsubid}}
 					</view> -->
-				</view>
-				
-				<view class="more" v-if="showDetail == index">
-					<view class="part" style="border-right: 1px solid #eee;">
-						<uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
-					</view>
-					<view class="part" @tap.stop="toSon(item)">
-						<uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏌ョ湅瀛愯〃
-					</view>
-				</view>
-				<view class="more" v-if="showDetail != index">
-					<view class="part" style="border-right: 1px solid #eee;">
-						<uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏇村淇℃伅
-					</view>
-					<view class="part" @tap.stop="toSon(item)">
-						<uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏌ョ湅瀛愯〃
-					</view>
-				</view>
-			</uni-card>
-		</view>
-		
-		<view class="over" v-if="listData.length == 0">鏆傛棤鏁版嵁</view>
-		<view class="over" v-if="listData.length != 0 && listData.length != showList.length">鍔犺浇涓�...</view>
-		<view class="over" v-if="listData.length != 0 && listData.length == showList.length">宸插埌搴�</view>
-	</view>
+                </view>
+
+                <view class="more" v-if="showDetail == index">
+                    <view class="part" style="border-right: 1px solid #eee;">
+                        <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏀惰捣
+                    </view>
+                    <view class="part" @tap.stop="toSon(item)">
+                        <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                            size="14"></uni-icons>鏌ョ湅瀛愯〃
+                    </view>
+                </view>
+                <view class="more" v-if="showDetail != index">
+                    <view class="part" style="border-right: 1px solid #eee;">
+                        <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>鏇村淇℃伅
+                    </view>
+                    <view class="part" @tap.stop="toSon(item)">
+                        <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                            size="14"></uni-icons>鏌ョ湅瀛愯〃
+                    </view>
+                </view>
+            </uni-card>
+        </view>
+
+        <view class="over" v-if="listData.length == 0">鏆傛棤鏁版嵁</view>
+        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">鍔犺浇涓�...</view>
+        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">宸插埌搴�</view>
+    </view>
 </template>
 
 <script>
-	import { getUserInfo } from "@/utils/auth.js";
-	export default {
-	    data() {
-	        return {
-				userInfo:getUserInfo(),
-				serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
-				hform:{
-					HBillNo:'',
-					HEquipType:'',
-					BenginHCreateDate:'',
-					EndHCreateDate:'',
-				},
-				sWhere:'',
-				listData:[],
-				showList:[],
-				showDetail:-1,
-				
-				page:1,
-	        }
-	    },
-		onLoad() {
-			this.getList()
-			console.log(this.userInfo,uni.getStorageSync('HUserName'))
-		},
-		onReachBottom: function() {
-			this.page++
-			setTimeout(() => {
-				this.showList = this.showList.concat(this.getPage(this.page,this.listData))
-			}, 100)
-		},
-		onPullDownRefresh: function() {
-			this.clear()
-			setTimeout(()=>{
-				uni.stopPullDownRefresh();
-			}, 1000);
-		},
-	    methods: {
-			getPage(page,list){
-				let sindex = (parseInt(page) - 1) * 20
-				let eindex = parseInt(page) * 20
-				let newList = list.slice(sindex,eindex)
-				return newList
-			},
-			getList(){
-				console.log(this.sWhere)
-				uni.showLoading({
-					title:'鍔犺浇涓�...'
-				})
-				uni.request({
-				    url: this.serverUrl + '/Gy_EquipFileMain/GetList',
-					data:{ 
-						sWhere: this.sWhere,
-						user: uni.getStorageSync('HUserName')
-					},
-				    success: (res) => {
-				        console.log(1,res);
-						if(res.data.count == 1){
-							this.listData = res.data.data
-							this.showList = this.getPage(this.page,this.listData)
-							setTimeout(()=>{
-							     uni.hideLoading()
-							}, 1000)
-						}else{
-							uni.hideLoading()
-							uni.showToast({
-								title:res.data.Message,
-								icon:'none'
-							})
-						}
-					},
-					fail: (res) => {
-						console.log(res);
-						uni.hideLoading()
-						uni.showToast({
-							title:'鎺ュ彛璇锋眰澶辫触',
-							icon:'none'
-						})
-					},
-				});
-				
-				// uni.request({
-				//     url: this.serverUrl + '/Gy_EquipFileMain/Sb_EquipFileBillResumeDate',
-				// 	data: { "HInterID": 2 },
-				//     success: (res) => {
-				//         console.log(2,res);
-						
-				//     }
-				// });
-			},
-			//閫夋嫨鍗曟嵁鏃ユ湡
-			BenginHCreateDateChange(e){
-				console.log(e.detail.value)
-				this.hform.BenginHCreateDate = e.detail.value
-			},
-			//閫夋嫨鍗曟嵁鏃ユ湡
-			EndHCreateDateChange(e){
-				console.log(e.detail.value)
-				this.hform.EndHCreateDate = e.detail.value
-			},
-			search(){
-				this.sWhere = ''
-				this.listData = []
-				this.page = 1
-				this.showList = []
-				
-				console.log(this.hform)
-				if (this.hform.HBillNo) {
-				    this.sWhere += " and 鍗曟嵁鍙� like '%" + this.hform.HBillNo + "%'";
-				}
-				if (this.hform.HEquipType) {
-				    this.sWhere += " and 璁惧绫诲瀷 like '%" + this.hform.HEquipType + "%'";
-				}
-				if (this.hform.BenginHCreateDate) {
-				    this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.hform.BenginHCreateDate + "'";
-				}
-				if (this.hform.EndHCreateDate) {
-				    this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.hform.EndHCreateDate + "'";
-				}
-				
-				this.getList()
-			},
-			clear(){
-				this.listData = []
-				this.page = 1
-				this.showList = []
-				
-				this.sWhere = ''
-				this.hform = {
-					HBillNo:'',
-					HEquipType:'',
-					BenginHCreateDate:'',
-					EndHCreateDate:'',
-				}
-				this.getList()
-			},
-			toSon(item){
-				uni.navigateTo({
-					url:'/pages/shebeilvli/EquipFileBillResume_son?HInterID=' + item.hmainid 
-					+ '&璁惧鍚嶇О=' + item.璁惧鍚嶇О 
-					+ '&璁惧浠g爜=' + item.璁惧浠g爜 
-					+ '&璁惧鍑哄巶鏃ユ湡=' + item.璁惧鍑哄巶鏃ユ湡 
-					+ '&璁惧鍑哄巶缂栧彿=' + item.璁惧鍑哄巶缂栧彿 
-					+ '&璁惧鍨嬪彿=' + item.璁惧鍨嬪彿 
-					+ '&璁惧绫诲瀷=' + item.璁惧绫诲瀷
-					+ '&璁惧缂栫爜=' + item.璁惧缂栫爜
-					+ '&璁惧瑙勬牸=' + item.璁惧瑙勬牸,
-				})
-			}
-	    }
-	}
+    import {
+        getUserInfo
+    } from "@/utils/auth.js";
+    export default {
+        data() {
+            return {
+                userInfo: getUserInfo(),
+                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+                hform: {
+                    HBillNo: '',
+                    HEquipType: '',
+                    BenginHCreateDate: '',
+                    EndHCreateDate: '',
+                },
+                sWhere: '',
+                listData: [],
+                showList: [],
+                showDetail: -1,
+
+                page: 1,
+            }
+        },
+        onLoad(e) {
+            this.getList()
+            console.log(this.userInfo, uni.getStorageSync('HUserName'))
+        },
+        onReachBottom: function() {
+            this.page++
+            setTimeout(() => {
+                this.showList = this.showList.concat(this.getPage(this.page, this.listData))
+            }, 100)
+        },
+        onPullDownRefresh: function() {
+            this.clear()
+            setTimeout(() => {
+                uni.stopPullDownRefresh();
+            }, 1000);
+        },
+        methods: {
+            getPage(page, list) {
+                let sindex = (parseInt(page) - 1) * 20
+                let eindex = parseInt(page) * 20
+                let newList = list.slice(sindex, eindex)
+                return newList
+            },
+            getList() {
+                console.log(this.sWhere)
+                uni.showLoading({
+                    title: '鍔犺浇涓�...'
+                })
+                uni.request({
+                    url: this.serverUrl + '/Gy_EquipFileMain/GetList',
+                    data: {
+                        sWhere: this.sWhere,
+                        user: uni.getStorageSync('HUserName')
+                    },
+                    success: (res) => {
+                        console.log(1, res);
+                        if (res.data.count == 1) {
+                            this.listData = res.data.data
+                            this.showList = this.getPage(this.page, this.listData)
+                            setTimeout(() => {
+                                uni.hideLoading()
+                            }, 1000)
+                        } else {
+                            uni.hideLoading()
+                            uni.showToast({
+                                title: res.data.Message,
+                                icon: 'none'
+                            })
+                        }
+                    },
+                    fail: (res) => {
+                        console.log(res);
+                        uni.hideLoading()
+                        uni.showToast({
+                            title: '鎺ュ彛璇锋眰澶辫触',
+                            icon: 'none'
+                        })
+                    },
+                });
+
+                // uni.request({
+                //     url: this.serverUrl + '/Gy_EquipFileMain/Sb_EquipFileBillResumeDate',
+                // 	data: { "HInterID": 2 },
+                //     success: (res) => {
+                //         console.log(2,res);
+
+                //     }
+                // });
+            },
+            //閫夋嫨鍗曟嵁鏃ユ湡
+            BenginHCreateDateChange(e) {
+                console.log(e.detail.value)
+                this.hform.BenginHCreateDate = e.detail.value
+            },
+            //閫夋嫨鍗曟嵁鏃ユ湡
+            EndHCreateDateChange(e) {
+                console.log(e.detail.value)
+                this.hform.EndHCreateDate = e.detail.value
+            },
+            search() {
+                this.sWhere = ''
+                this.listData = []
+                this.page = 1
+                this.showList = []
+
+                console.log(this.hform)
+                if (this.hform.HBillNo) {
+                    this.sWhere += " and 鍗曟嵁鍙� like '%" + this.hform.HBillNo + "%'";
+                }
+                if (this.hform.HEquipType) {
+                    this.sWhere += " and 璁惧绫诲瀷 like '%" + this.hform.HEquipType + "%'";
+                }
+                if (this.hform.BenginHCreateDate) {
+                    this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.hform.BenginHCreateDate + "'";
+                }
+                if (this.hform.EndHCreateDate) {
+                    this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.hform.EndHCreateDate + "'";
+                }
+
+                this.getList()
+            },
+            clear() {
+                this.listData = []
+                this.page = 1
+                this.showList = []
+
+                this.sWhere = ''
+                this.hform = {
+                    HBillNo: '',
+                    HEquipType: '',
+                    BenginHCreateDate: '',
+                    EndHCreateDate: '',
+                }
+                this.getList()
+            },
+            toSon(item) {
+                uni.navigateTo({
+                    url: '/pages/shebeilvli/EquipFileBillResume_son?HInterID=' + item.hmainid +
+                        '&璁惧鍚嶇О=' + item.璁惧鍚嶇О +
+                        '&璁惧浠g爜=' + item.璁惧浠g爜 +
+                        '&璁惧鍑哄巶鏃ユ湡=' + item.璁惧鍑哄巶鏃ユ湡 +
+                        '&璁惧鍑哄巶缂栧彿=' + item.璁惧鍑哄巶缂栧彿 +
+                        '&璁惧鍨嬪彿=' + item.璁惧鍨嬪彿 +
+                        '&璁惧绫诲瀷=' + item.璁惧绫诲瀷 +
+                        '&璁惧缂栫爜=' + item.璁惧缂栫爜 +
+                        '&璁惧瑙勬牸=' + item.璁惧瑙勬牸,
+                })
+            }
+        }
+    }
 </script>
 
 <style lang="scss" scoped>
-	.form{
-		width: 640rpx;
-		margin: 20rpx auto;
-	}
-    .form-item{
-		display: flex;
-		align-items: center;
-		font-size: 28rpx;
-		padding: 6rpx 0;
-		.title{
-			width: 180rpx;
-			text{
-				color: red;
-				font-weight: bold;
-			}
-		}
-		.right{
-			width: 450rpx;
-			border-radius: 22rpx;
-			border: 1px solid #acacac;
-		}
-		.righton{
-			width: 450rpx;
-			border-radius: 22rpx;
-			border: 1px solid #e4e4e4;
-			background-color: #e4e4e4;
-		}
-		input{
-			width: 100%;
-			padding: 8rpx 20rpx;
-			font-size: 30rpx;
-		}
-	}
-	.buttons{
-		width: 100%;
-		display: flex;
-		justify-content: center;
-		margin-top: 20rpx;
-		button{
-			border-radius: 50rpx;
-			width: 180rpx;
-			height: 66rpx;
-			line-height: 66rpx;
-			font-size: 28rpx;
-		}
-		.btn-a{
-			background-color: #acacac;
-			color: #fff;
-		}
-		.btn-b{
-			background-color: #41a863;
-			color: #fff;
-		}
-		.btn-c{
-			background-color: #3a78ff;
-			color: #fff;
-		}
-	}
-	
-	.list{
-		width: 100%;
-		.card-detail{
-			width: 100%;
-			display: flex;
-			flex-wrap: wrap;
-			justify-content: space-between;
-			line-height: 120%;
-			.detail{
-				// width: 50%;
-				font-size: 26rpx;
-				margin-bottom: 12rpx;
-				color: #555;
-				margin-right: 20rpx;
-				text{
-					color: #999;
-					font-size: 26rpx;
-				}
-			}
-		}
-		.more{
-			color: #888;
-			font-size: 24rpx;
-			display: flex;
-			border-top: 1px solid #eee;
-			padding-top: 20rpx;
-			.part{
-				width: 50%;
-				text-align: center;
-			}
-		}
-	}
+    .form {
+        width: 640rpx;
+        margin: 20rpx auto;
+    }
 
-</style>
+    .form-item {
+        display: flex;
+        align-items: center;
+        font-size: 28rpx;
+        padding: 6rpx 0;
+
+        .title {
+            width: 180rpx;
+
+            text {
+                color: red;
+                font-weight: bold;
+            }
+        }
+
+        .right {
+            width: 450rpx;
+            border-radius: 22rpx;
+            border: 1px solid #acacac;
+        }
+
+        .righton {
+            width: 450rpx;
+            border-radius: 22rpx;
+            border: 1px solid #e4e4e4;
+            background-color: #e4e4e4;
+        }
+
+        input {
+            width: 100%;
+            padding: 8rpx 20rpx;
+            font-size: 30rpx;
+        }
+    }
+
+    .buttons {
+        width: 100%;
+        display: flex;
+        justify-content: center;
+        margin-top: 20rpx;
+
+        button {
+            border-radius: 50rpx;
+            width: 180rpx;
+            height: 66rpx;
+            line-height: 66rpx;
+            font-size: 28rpx;
+        }
+
+        .btn-a {
+            background-color: #acacac;
+            color: #fff;
+        }
+
+        .btn-b {
+            background-color: #41a863;
+            color: #fff;
+        }
+
+        .btn-c {
+            background-color: #3a78ff;
+            color: #fff;
+        }
+    }
+
+    .list {
+        width: 100%;
+
+        .card-detail {
+            width: 100%;
+            display: flex;
+            flex-wrap: wrap;
+            justify-content: space-between;
+            line-height: 120%;
+
+            .detail {
+                // width: 50%;
+                font-size: 26rpx;
+                margin-bottom: 12rpx;
+                color: #555;
+                margin-right: 20rpx;
+
+                text {
+                    color: #999;
+                    font-size: 26rpx;
+                }
+            }
+        }
+
+        .more {
+            color: #888;
+            font-size: 24rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
+
+            .part {
+                width: 50%;
+                text-align: center;
+            }
+        }
+    }
+</style>
\ No newline at end of file

--
Gitblit v1.9.1