From 218cec7b640bbdc73b2831735d293e12ba344656 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 29 一月 2026 15:41:16 +0800
Subject: [PATCH] 设备、模具保养任务   今日改为近七日  增加对应的下推任务 模具、设备维修任务  增加下推按钮  三个待派工(故障单的负责人)、待维修(故障单的维修人)、待验收(故障单发现人)

---
 pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport.vue | 1130 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 570 insertions(+), 560 deletions(-)

diff --git a/pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport.vue b/pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport.vue
index 87bc93b..cfba498 100644
--- a/pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport.vue
+++ b/pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport.vue
@@ -1,627 +1,637 @@
 <template>
-	<view>
-		<view class="page-header">
-			<view class="search-item">
-				<view class="left">鏃ユ湡闂撮殧</view>
-				<view class="right">
-					<picker mode="selector" :value="curDateGap" :range="dateRangePicker"
-						@change="onDateRangePickerChangeHandler">
-						<input disabled v-model="curDateGap" placeholder="璇烽�夋嫨鏃ユ湡闂撮殧" />
-						<view class="picker-overlay"></view>
-					</picker>
+    <view>
+        <view class="page-header">
+            <view class="search-item">
+                <view class="left">鏃ユ湡闂撮殧</view>
+                <view class="right">
+                    <picker mode="selector" :value="curDateGap" :range="dateRangePicker"
+                        @change="onDateRangePickerChangeHandler">
+                        <input disabled v-model="curDateGap" placeholder="璇烽�夋嫨鏃ユ湡闂撮殧" />
+                        <view class="picker-overlay"></view>
+                    </picker>
 
-				</view>
-			</view>
-			<view class="search-item">
-				<view class="left">寮�濮嬫棩鏈�</view>
-				<view class="right">
-					<uni-datetime-picker :clear-icon="false" type="date" v-model="startDate"
-						:disabled="!enableCustomDateRange">
-						<view class="datetime-picker-inner"
-							:class="enableCustomDateRange?'font__enable':'font__disable'">
-							<text>{{ startDate }}</text>
-						</view>
-					</uni-datetime-picker>
-				</view>
-			</view>
-			<view class="search-item">
-				<view class="left">缁撴潫鏃ユ湡</view>
-				<view class="right">
-					<uni-datetime-picker :clear-icon="false" type="date" v-model="endDate"
-						:disabled="!enableCustomDateRange">
-						<view class="datetime-picker-inner"
-							:class="enableCustomDateRange?'font__enable':'font__disable'">{{ endDate }}</view>
-					</uni-datetime-picker>
-				</view>
-			</view>
+                </view>
+            </view>
+            <view class="search-item">
+                <view class="left">寮�濮嬫棩鏈�</view>
+                <view class="right">
+                    <uni-datetime-picker :clear-icon="false" type="date" v-model="startDate"
+                        :disabled="!enableCustomDateRange">
+                        <view class="datetime-picker-inner"
+                            :class="enableCustomDateRange?'font__enable':'font__disable'">
+                            <text>{{ startDate }}</text>
+                        </view>
+                    </uni-datetime-picker>
+                </view>
+            </view>
+            <view class="search-item">
+                <view class="left">缁撴潫鏃ユ湡</view>
+                <view class="right">
+                    <uni-datetime-picker :clear-icon="false" type="date" v-model="endDate"
+                        :disabled="!enableCustomDateRange">
+                        <view class="datetime-picker-inner"
+                            :class="enableCustomDateRange?'font__enable':'font__disable'">{{ endDate }}</view>
+                    </uni-datetime-picker>
+                </view>
+            </view>
 
-			<view class="button-groups">
-				<button type="default" size="mini" class="btn-c" @tap.stop="onSearchClickHandler">鏌ヨ</button>
-				<button type="default" size="mini" class="btn-a" @tap.stop="onResetClickHandler">閲嶇疆</button>
-			</view>
-		</view>
+            <view class="button-groups">
+                <button type="default" size="mini" class="btn-c" @tap.stop="onSearchClickHandler">鏌ヨ</button>
+                <button type="default" size="mini" class="btn-a" @tap.stop="onResetClickHandler">閲嶇疆</button>
+            </view>
+        </view>
 
-		<!-- 椤电鍖哄煙 -->
-		<view class="tab-container">
-			<view class="tab-list">
-				<view v-for="(tab, index) in tabs" :key="index" :class="['tab-item', { 'active': activeTab === index }]"
-					@tap="switchTab(index)">
-					<text>{{ tab.label }}</text>
-					<text v-if="tab.count > 0" class="tab-count">{{ tab.count }}</text>
-				</view>
-			</view>
-		</view>
+        <!-- 椤电鍖哄煙 -->
+        <view class="tab-container">
+            <view class="tab-list">
+                <view v-for="(tab, index) in tabs" :key="index" :class="['tab-item', { 'active': activeTab === index }]"
+                    @tap="switchTab(index)">
+                    <text>{{ tab.label }}</text>
+                    <text v-if="tab.count > 0" class="tab-count">{{ tab.count }}</text>
+                </view>
+            </view>
+        </view>
 
-		<view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
+        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
 
-		<!-- 椤电鍐呭鍖哄煙 -->
-		<scroll-view v-for="(tab, tabIndex) in tabs" :key="tabIndex" v-show="activeTab === tabIndex" id="pageContent"
-			scroll-y class="page-content" :style="{height: pageContentHeight + 'px'}">
-			<view class="list" v-for="(item,index) in tab.listData" :key="index">
-				<uni-card :title="item.鍣ㄥ叿鍙�" :extra="item.鍣ㄥ叿淇濆吇璁″垝鍗曞彿" style="margin: 10px;"
-					@tap="showDetail = showDetail==item.hmainid?-1:item.hmainid">
-					<view class="card-detail">
-						<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.淇濆吇璐熻矗浜簘}
-						</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>
-					<view class="card-detail" v-if="showDetail == item.hmainid">
-						<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.浣滃簾浜�">
-							<text>浣滃簾浜猴細</text>{{item.浣滃簾浜簘}
-						</view>
-						<view class="detail" v-if="item.浣滃簾鏃ユ湡">
-							<text>浣滃簾鏃ユ湡锛�</text>{{item.浣滃簾鏃ユ湡.substr(0,10)}}
-						</view>
-					</view>
+        <!-- 椤电鍐呭鍖哄煙 -->
+        <scroll-view v-for="(tab, tabIndex) in tabs" :key="tabIndex" v-show="activeTab === tabIndex" id="pageContent"
+            scroll-y class="page-content" :style="{height: pageContentHeight + 'px'}">
+            <view class="list" v-for="(item,index) in tab.listData" :key="index">
+                <uni-card :title="item.鍣ㄥ叿鍙�" :extra="item.鍣ㄥ叿淇濆吇璁″垝鍗曞彿" style="margin: 10px;"
+                    @tap="showDetail = showDetail==item.hmainid?-1:item.hmainid">
+                    <view class="card-detail">
+                        <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.淇濆吇璐熻矗浜簘}
+                        </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>
+                    <view class="card-detail" v-if="showDetail == item.hmainid">
+                        <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.浣滃簾浜�">
+                            <text>浣滃簾浜猴細</text>{{item.浣滃簾浜簘}
+                        </view>
+                        <view class="detail" v-if="item.浣滃簾鏃ユ湡">
+                            <text>浣滃簾鏃ユ湡锛�</text>{{item.浣滃簾鏃ユ湡.substr(0,10)}}
+                        </view>
+                    </view>
 
-					<view class="more" v-if="showDetail == item.hmainid && operations != item.hmainid">
-						<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="operations = operations==item.hmainid?-1:item.hmainid">
-							<uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
-								size="14"></uni-icons>鎿嶄綔
-						</view>
-					</view>
-					<view class="more" v-if="showDetail != item.hmainid && operations != item.hmainid">
-						<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="operations = operations==item.hmainid?-1:item.hmainid">
-							<uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
-								size="14"></uni-icons>鎿嶄綔
-						</view>
-					</view>
+                    <view class="more" v-if="showDetail == item.hmainid && operations != item.hmainid">
+                        <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="operations = operations==item.hmainid?-1:item.hmainid">
+                            <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                                size="14"></uni-icons>鎿嶄綔
+                        </view>
+                    </view>
+                    <view class="more" v-if="showDetail != item.hmainid && operations != item.hmainid">
+                        <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="operations = operations==item.hmainid?-1:item.hmainid">
+                            <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;"
+                                size="14"></uni-icons>鎿嶄綔
+                        </view>
+                    </view>
 
-					<view class="op" v-if="operations == item.hmainid">
-						<button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
-					</view>
-				</uni-card>
-			</view>
-			<view class="over" v-if="tabs[activeTab].listData.length == 0">鏆傛棤鏁版嵁</view>
-		</scroll-view>
+                    <view class="op" v-if="operations == item.hmainid">
+                        <button class="op1" v-if="activeTab == 0" size="mini" plain
+                            @tap.stop="pushBill(0,item)">涓嬫帹淇濆吇鍗�</button>
+                        <button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
+                    </view>
+                </uni-card>
+            </view>
+            <view class="over" v-if="tabs[activeTab].listData.length == 0">鏆傛棤鏁版嵁</view>
+        </scroll-view>
 
-		<!-- 鍒嗛〉鍣� -->
-		<view class="page-footer">
-			<uni-pagination id="pagination" title="鏍囬鏂囧瓧" v-model="tabs[activeTab].pageMeta.curPage"
-				:pageSize="tabs[activeTab].pageMeta.size" :total="tabs[activeTab].pageMeta.total"
-				@change="onPageChangeHandler"></uni-pagination>
-		</view>
-	</view>
+        <!-- 鍒嗛〉鍣� -->
+        <view class="page-footer">
+            <uni-pagination id="pagination" title="鏍囬鏂囧瓧" v-model="tabs[activeTab].pageMeta.curPage"
+                :pageSize="tabs[activeTab].pageMeta.size" :total="tabs[activeTab].pageMeta.total"
+                @change="onPageChangeHandler"></uni-pagination>
+        </view>
+    </view>
 </template>
 
 <script>
-	import dayjs from 'dayjs'
-	import {
-		CommonUtils
-	} from '@/utils/common.js'
-	import {
-		getUserInfo
-	} from '../../../utils/auth'
-	export default {
-		data() {
-			return {
-				// 璁$畻鍗$墖鍒楄〃楂樺害
-				pagination_top: 0,
-				pageContent_top: 0,
+    import dayjs from 'dayjs'
+    import {
+        CommonUtils
+    } from '@/utils/common.js'
+    import {
+        getUserInfo
+    } from '../../../utils/auth'
+    export default {
+        data() {
+            return {
+                // 璁$畻鍗$墖鍒楄〃楂樺害
+                pagination_top: 0,
+                pageContent_top: 0,
 
-				// 褰撳墠婵�娲荤殑椤电
-				activeTab: 0,
+                // 褰撳墠婵�娲荤殑椤电
+                activeTab: 0,
 
-				tabs: [{
-						label: '浠婃棩寰呬繚鍏�',
-						type: 0,
-						count: 0,
-						listData: [], // 娣诲姞杩欎釜
-						pageMeta: { // 娣诲姞杩欎釜
-							curPage: 1,
-							size: 50,
-							total: 0,
-						}
-					},
-					{
-						label: '浠婃棩宸蹭繚鍏�',
-						type: 1,
-						count: 0,
-						listData: [], // 娣诲姞杩欎釜
-						pageMeta: { // 娣诲姞杩欎釜
-							curPage: 1,
-							size: 50,
-							total: 0,
-						}
-					},
-					{
-						label: '浠婃棩鍏ㄩ儴浠诲姟',
-						type: 2,
-						count: 0,
-						listData: [], // 娣诲姞杩欎釜
-						pageMeta: { // 娣诲姞杩欎釜
-							curPage: 1,
-							size: 50,
-							total: 0,
-						}
-					}
-				],
+                tabs: [{
+                        label: '杩戞棩寰呬繚鍏�',
+                        type: 0,
+                        count: 0,
+                        listData: [], // 娣诲姞杩欎釜
+                        pageMeta: { // 娣诲姞杩欎釜
+                            curPage: 1,
+                            size: 50,
+                            total: 0,
+                        }
+                    },
+                    {
+                        label: '杩戞棩宸蹭繚鍏�',
+                        type: 1,
+                        count: 0,
+                        listData: [], // 娣诲姞杩欎釜
+                        pageMeta: { // 娣诲姞杩欎釜
+                            curPage: 1,
+                            size: 50,
+                            total: 0,
+                        }
+                    },
+                    {
+                        label: '杩戞棩鍏ㄩ儴浠诲姟',
+                        type: 2,
+                        count: 0,
+                        listData: [], // 娣诲姞杩欎釜
+                        pageMeta: { // 娣诲姞杩欎釜
+                            curPage: 1,
+                            size: 50,
+                            total: 0,
+                        }
+                    }
+                ],
 
-				// 婊氬姩鎺у埗
-				scrollTop: 0,
-				old: {
-					scrollTop: 0
-				},
+                // 婊氬姩鎺у埗
+                scrollTop: 0,
+                old: {
+                    scrollTop: 0
+                },
 
-				dateRangePicker: ["浠绘剰闂撮殧", "浠婂ぉ", "杩戜袱澶�", "杩戜笁澶�", "杩戝洓澶�", "杩戜簲澶�", "杩戝叚澶�", "杩戜竷澶�", "杩�30澶�"],
-				curDateGap: "浠婂ぉ",
-				enableCustomDateRange: false,
-				startDate: dayjs(new Date()).format('YYYY-MM-DD'),
-				endDate: dayjs(new Date()).format('YYYY-MM-DD'),
-				HBillNo: '',
+                dateRangePicker: ["浠绘剰闂撮殧", "浠婂ぉ", "杩戜袱澶�", "杩戜笁澶�", "杩戝洓澶�", "杩戜簲澶�", "杩戝叚澶�", "杩戜竷澶�", "杩�30澶�"],
+                curDateGap: "杩戜竷澶�",
+                enableCustomDateRange: false,
+                startDate: dayjs(new Date()).subtract(7, 'days').format('YYYY-MM-DD'),
+                endDate: dayjs(new Date()).format('YYYY-MM-DD'),
+                HBillNo: '',
 
-				showDetail: -1,
-				operations: -1,
-			}
-		},
-		computed: {
-			pageContentHeight: {
-				get() {
-					return (this.pagination_top - this.pageContent_top)
-				}
-			},
-		},
-		onLoad() {
-			this.onSearchClickHandler()
-		},
-		onPullDownRefresh() {
-			this.onSearchClickHandler()
-		},
-		async onReady() {
-			// #ifndef MP-WEIXIN
-			let query = uni.createSelectorQuery().in(this)
-			query.select("#pagination")
-				.boundingClientRect((data) => {
-					if (data) {
-						this.pagination_top = data.top
-					} else {
-						console.log("鏈壘鍒�#pagination鑺傜偣");
-					}
-				})
-				.exec();
-			query.select("#pageContent")
-				.boundingClientRect((data) => {
-					if (data) {
-						this.pageContent_top = data.top
-					} else {
-						console.log("鏈壘鍒�#pageContent鑺傜偣");
-					}
-				})
-				.exec();
-			// #endif
-		},
-		methods: {
-			goTop: function(e) {
-				// 瑙e喅view灞備笉鍚屾鐨勯棶棰�
-				this.scrollTop = this.old.scrollTop
-				this.$nextTick(function() {
-					this.scrollTop = 0
-				});
-			},
+                showDetail: -1,
+                operations: -1,
+            }
+        },
+        computed: {
+            pageContentHeight: {
+                get() {
+                    return (this.pagination_top - this.pageContent_top)
+                }
+            },
+        },
+        onShow() {
+            this.onSearchClickHandler()
+        },
+        onPullDownRefresh() {
+            this.onSearchClickHandler()
+        },
+        async onReady() {
+            // #ifndef MP-WEIXIN
+            let query = uni.createSelectorQuery().in(this)
+            query.select("#pagination")
+                .boundingClientRect((data) => {
+                    if (data) {
+                        this.pagination_top = data.top
+                    } else {
+                        console.log("鏈壘鍒�#pagination鑺傜偣");
+                    }
+                })
+                .exec();
+            query.select("#pageContent")
+                .boundingClientRect((data) => {
+                    if (data) {
+                        this.pageContent_top = data.top
+                    } else {
+                        console.log("鏈壘鍒�#pageContent鑺傜偣");
+                    }
+                })
+                .exec();
+            // #endif
+        },
+        methods: {
+            pushBill(currTab, item) {
+                let Query = `?operationType=4&HBarCode=${item['鍣ㄥ叿缂栧彿']}`
+                if (currTab == 0) {
+                    uni.navigateTo({
+                        url: '/pages/MJGL/mujubaoyangjiludan/Sc_MouldMaintainBill' + Query
+                    })
+                }
+            },
+            goTop: function(e) {
+                // 瑙e喅view灞備笉鍚屾鐨勯棶棰�
+                this.scrollTop = this.old.scrollTop
+                this.$nextTick(function() {
+                    this.scrollTop = 0
+                });
+            },
 
-			// 鍒囨崲椤电
-			switchTab(index) {
-				this.activeTab = index
-				this.showDetail = -1
-				this.operations = -1
-			},
+            // 鍒囨崲椤电
+            switchTab(index) {
+                this.activeTab = index
+                this.showDetail = -1
+                this.operations = -1
+            },
 
-			onDateRangePickerChangeHandler({
-				detail
-			}) {
-				this.enableCustomDateRange = false
-				this.curDateGap = this.dateRangePicker[detail.value]
-				let date = new Date()
-				switch (this.curDateGap) {
-					case "浠婂ぉ":
-						this.startDate = dayjs(date).format("YYYY-MM-DD")
-						break;
-					case "杩戜竴澶�":
-						this.startDate = dayjs(date).subtract(1, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩戜袱澶�":
-						this.startDate = dayjs(date).subtract(2, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩戜笁澶�":
-						this.startDate = dayjs(date).subtract(3, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩戝洓澶�":
-						this.startDate = dayjs(date).subtract(4, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩戜簲澶�":
-						this.startDate = dayjs(date).subtract(5, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩戝叚澶�":
-						this.startDate = dayjs(date).subtract(6, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩戜竷澶�":
-						this.startDate = dayjs(date).subtract(7, 'day').format("YYYY-MM-DD")
-						break;
-					case "杩�30澶�":
-						this.startDate = dayjs(date).subtract(30, 'day').format("YYYY-MM-DD")
-						break;
-				}
-				if (this.curDateGap == '浠绘剰闂撮殧') {
-					this.enableCustomDateRange = true
-				}
-			},
+            onDateRangePickerChangeHandler({
+                detail
+            }) {
+                this.enableCustomDateRange = false
+                this.curDateGap = this.dateRangePicker[detail.value]
+                let date = new Date()
+                switch (this.curDateGap) {
+                    case "浠婂ぉ":
+                        this.startDate = dayjs(date).format("YYYY-MM-DD")
+                        break;
+                    case "杩戜竴澶�":
+                        this.startDate = dayjs(date).subtract(1, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩戜袱澶�":
+                        this.startDate = dayjs(date).subtract(2, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩戜笁澶�":
+                        this.startDate = dayjs(date).subtract(3, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩戝洓澶�":
+                        this.startDate = dayjs(date).subtract(4, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩戜簲澶�":
+                        this.startDate = dayjs(date).subtract(5, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩戝叚澶�":
+                        this.startDate = dayjs(date).subtract(6, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩戜竷澶�":
+                        this.startDate = dayjs(date).subtract(7, 'day').format("YYYY-MM-DD")
+                        break;
+                    case "杩�30澶�":
+                        this.startDate = dayjs(date).subtract(30, 'day').format("YYYY-MM-DD")
+                        break;
+                }
+                if (this.curDateGap == '浠绘剰闂撮殧') {
+                    this.enableCustomDateRange = true
+                }
+            },
 
-			onSearchClickHandler() {
-				let sWhere = ""
-				// 鑾峰彇褰撳墠婵�娲荤殑椤电
-				const currentTab = this.tabs[this.activeTab]
-				sWhere = {
-					HBeginDate: this.startDate,
-					HEndDate: this.endDate
-				}
-				this.get_DisplayPage(JSON.stringify(sWhere), currentTab.type)
-			},
+            onSearchClickHandler() {
+                let sWhere = ""
+                // 鑾峰彇褰撳墠婵�娲荤殑椤电
+                const currentTab = this.tabs[this.activeTab]
+                sWhere = {
+                    HBeginDate: this.startDate,
+                    HEndDate: this.endDate
+                }
+                this.get_DisplayPage(JSON.stringify(sWhere), currentTab.type)
+            },
 
-			clear() {
-				this.curDateGap = "浠婂ぉ"
-				this.enableCustomDateRange = false
-				this.startDate = dayjs(new Date()).format('YYYY-MM-DD')
-				this.endDate = dayjs(new Date()).format('YYYY-MM-DD')
-				this.HBillNo = ''
-			},
+            clear() {
+                this.curDateGap = "杩戜竷澶�"
+                this.enableCustomDateRange = false
+                this.startDate = dayjs(new Date()).subtract(7, 'days').format('YYYY-MM-DD')
+                this.endDate = dayjs(new Date()).format('YYYY-MM-DD')
+                this.HBillNo = ''
+            },
 
-			async onResetClickHandler() {
-				this.clear()
-				await this.$nextTick()
-				this.onSearchClickHandler()
-			},
+            async onResetClickHandler() {
+                this.clear()
+                await this.$nextTick()
+                this.onSearchClickHandler()
+            },
 
-			get_DisplayPage(sWhere, tabType) {
-				CommonUtils.doRequest2({
-					url: '/Sb_EquipMaintainTaskReport/MaintainList_APP',
-					data: {
-						"sWhere": sWhere,
-						"user": getUserInfo()["Czymc"],
-					},
-					resFunction: (res) => {
-						let {
-							data,
-							Message,
-							count
-						} = res.data
-						console.log('res.data: ', res.data)
+            get_DisplayPage(sWhere, tabType) {
+                CommonUtils.doRequest2({
+                    url: '/Sc_MouldMaintainTaskReport/MaintainList_APP',
+                    data: {
+                        "sWhere": sWhere,
+                        "user": getUserInfo()["Czymc"],
+                    },
+                    resFunction: (res) => {
+                        let {
+                            data,
+                            Message,
+                            count
+                        } = res.data
+                        console.log('res.data: ', res.data)
 
-						if (data && data.h_p_Sb_EquipMaintainTaskReport_APP) {
-							// 鏇存柊寰呯鍒伴〉绛�
-							this.tabs[0].listData = data.h_p_Sb_EquipMaintainTaskReport_APP
-							this.tabs[0].pageMeta.total = data.h_p_Sb_EquipMaintainTaskReport_APP.length
-							this.tabs[0].count = data.h_p_Sb_EquipMaintainTaskReport_APP.length
-						}
+                        if (data && data.h_p_Sc_MouldMaintainTaskReport_APP) {
+                            // 鏇存柊寰呯鍒伴〉绛�
+                            this.tabs[0].listData = data.h_p_Sc_MouldMaintainTaskReport_APP
+                            this.tabs[0].pageMeta.total = data.h_p_Sc_MouldMaintainTaskReport_APP.length
+                            this.tabs[0].count = data.h_p_Sc_MouldMaintainTaskReport_APP.length
+                        }
 
-						if (data && data.h_p_Sb_EquipMaintainTaskReport_APP1) {
-							// 鏇存柊寰呭鐞嗛〉绛�
-							this.tabs[1].listData = data.h_p_Sb_EquipMaintainTaskReport_APP1
-							this.tabs[1].pageMeta.total = data.h_p_Sb_EquipMaintainTaskReport_APP1.length
-							this.tabs[1].count = data.h_p_Sb_EquipMaintainTaskReport_APP1.length
-						}
+                        if (data && data.h_p_Sc_MouldMaintainTaskReport_APP1) {
+                            // 鏇存柊寰呭鐞嗛〉绛�
+                            this.tabs[1].listData = data.h_p_Sc_MouldMaintainTaskReport_APP1
+                            this.tabs[1].pageMeta.total = data.h_p_Sc_MouldMaintainTaskReport_APP1.length
+                            this.tabs[1].count = data.h_p_Sc_MouldMaintainTaskReport_APP1.length
+                        }
 
-						if (data && data.h_p_Sb_EquipMaintainTaskReport_APP2) {
-							// 鏇存柊寰呴獙鏀堕〉绛�
-							this.tabs[2].listData = data.h_p_Sb_EquipMaintainTaskReport_APP2
-							this.tabs[2].pageMeta.total = data.h_p_Sb_EquipMaintainTaskReport_APP2.length
-							this.tabs[2].count = data.h_p_Sb_EquipMaintainTaskReport_APP2.length
-						}
+                        if (data && data.h_p_Sc_MouldMaintainTaskReport_APP2) {
+                            // 鏇存柊寰呴獙鏀堕〉绛�
+                            this.tabs[2].listData = data.h_p_Sc_MouldMaintainTaskReport_APP2
+                            this.tabs[2].pageMeta.total = data.h_p_Sc_MouldMaintainTaskReport_APP2.length
+                            this.tabs[2].count = data.h_p_Sc_MouldMaintainTaskReport_APP2.length
+                        }
 
-						
-						uni.stopPullDownRefresh()
-					}
-				})
-			},
 
-			onPageChangeHandler() {
-				this.onSearchClickHandler()
-				this.goTop()
-			},
-		},
-	}
+                        uni.stopPullDownRefresh()
+                    }
+                })
+            },
+
+            onPageChangeHandler() {
+                this.onSearchClickHandler()
+                this.goTop()
+            },
+        },
+    }
 </script>
 
 <style lang="scss">
-	.page-header {
-		display: flex;
-		box-sizing: border-box;
-		padding: 20rpx;
-		flex-direction: column;
-		gap: 10rpx;
-		font-size: 32rpx;
+    .page-header {
+        display: flex;
+        box-sizing: border-box;
+        padding: 20rpx;
+        flex-direction: column;
+        gap: 10rpx;
+        font-size: 32rpx;
 
-		.search-item {
-			display: flex;
-			flex-direction: row;
-			gap: 10rpx;
-			justify-content: center;
-			align-items: center;
+        .search-item {
+            display: flex;
+            flex-direction: row;
+            gap: 10rpx;
+            justify-content: center;
+            align-items: center;
 
-			.left {
-				width: 4em;
-			}
+            .left {
+                width: 4em;
+            }
 
-			.right {
-				flex: 1;
-				position: relative;
-				border-radius: 22rpx;
-				border: 1px solid #acacac;
-				display: flex;
-				padding: 4rpx 10rpx;
+            .right {
+                flex: 1;
+                position: relative;
+                border-radius: 22rpx;
+                border: 1px solid #acacac;
+                display: flex;
+                padding: 4rpx 10rpx;
 
-				picker {
-					width: 100%;
-				}
-			}
-		}
+                picker {
+                    width: 100%;
+                }
+            }
+        }
 
-		input {
-			width: inherit;
-			padding: 8rpx 20rpx;
-			font-size: 30rpx;
-		}
+        input {
+            width: inherit;
+            padding: 8rpx 20rpx;
+            font-size: 30rpx;
+        }
 
-		.datetime-picker-inner {
-			padding: 8rpx 20rpx;
-			font-size: 30rpx;
-			display: flex;
-			align-items: center;
-		}
+        .datetime-picker-inner {
+            padding: 8rpx 20rpx;
+            font-size: 30rpx;
+            display: flex;
+            align-items: center;
+        }
 
-		.font__enable {
-			color: #000;
-		}
+        .font__enable {
+            color: #000;
+        }
 
-		.font__disable {
-			color: #cccccc;
-		}
-	}
+        .font__disable {
+            color: #cccccc;
+        }
+    }
 
-	.button-groups {
-		box-sizing: border-box;
-		padding: 10rpx 0 0 0;
-		display: flex;
-		flex-direction: row;
-		gap: 10rpx;
-		justify-content: space-between;
+    .button-groups {
+        box-sizing: border-box;
+        padding: 10rpx 0 0 0;
+        display: flex;
+        flex-direction: row;
+        gap: 10rpx;
+        justify-content: space-between;
 
-		button {
-			border-radius: 50rpx;
-			width: 180rpx;
-			height: 66rpx;
-			line-height: 66rpx;
-			font-size: 28rpx;
-		}
+        button {
+            border-radius: 50rpx;
+            width: 180rpx;
+            height: 66rpx;
+            line-height: 66rpx;
+            font-size: 28rpx;
+        }
 
-		.btn-a {
-			background-color: #acacac;
-			color: #fff;
-		}
+        .btn-a {
+            background-color: #acacac;
+            color: #fff;
+        }
 
-		.btn-b {
-			background-color: #41a863;
-			color: #fff;
-		}
+        .btn-b {
+            background-color: #41a863;
+            color: #fff;
+        }
 
-		.btn-c {
-			background-color: #3a78ff;
-			color: #fff;
-		}
-	}
+        .btn-c {
+            background-color: #3a78ff;
+            color: #fff;
+        }
+    }
 
-	/* 椤电鏍峰紡 */
-	.tab-container {
-		background-color: #fff;
-	}
+    /* 椤电鏍峰紡 */
+    .tab-container {
+        background-color: #fff;
+    }
 
-	.tab-list {
-		display: flex;
-		flex-direction: row;
-		border-bottom: 1px solid #e5e5e5;
-	}
+    .tab-list {
+        display: flex;
+        flex-direction: row;
+        border-bottom: 1px solid #e5e5e5;
+    }
 
-	.tab-item {
-		flex: 1;
-		padding: 20rpx 0;
-		text-align: center;
-		font-size: 28rpx;
-		color: #666;
-		position: relative;
+    .tab-item {
+        flex: 1;
+        padding: 20rpx 0;
+        text-align: center;
+        font-size: 28rpx;
+        color: #666;
+        position: relative;
 
-		&.active {
-			color: #3a78ff;
-			font-weight: bold;
+        &.active {
+            color: #3a78ff;
+            font-weight: bold;
 
-			&::after {
-				content: '';
-				position: absolute;
-				bottom: 0;
-				left: 50%;
-				transform: translateX(-50%);
-				width: 80rpx;
-				height: 4rpx;
-				background-color: #3a78ff;
-			}
-		}
+            &::after {
+                content: '';
+                position: absolute;
+                bottom: 0;
+                left: 50%;
+                transform: translateX(-50%);
+                width: 80rpx;
+                height: 4rpx;
+                background-color: #3a78ff;
+            }
+        }
 
-		.tab-count {
-			display: inline-block;
-			margin-left: 10rpx;
-			padding: 0 12rpx;
-			background-color: #ff6b6b;
-			color: #fff;
-			border-radius: 20rpx;
-			font-size: 20rpx;
-			min-width: 30rpx;
-			text-align: center;
-		}
-	}
+        .tab-count {
+            display: inline-block;
+            margin-left: 10rpx;
+            padding: 0 12rpx;
+            background-color: #ff6b6b;
+            color: #fff;
+            border-radius: 20rpx;
+            font-size: 20rpx;
+            min-width: 30rpx;
+            text-align: center;
+        }
+    }
 
-	.page-content {
-		box-sizing: border-box;
-		padding: 10rpx 0;
+    .page-content {
+        box-sizing: border-box;
+        padding: 10rpx 0;
 
-		.card-detail {
-			width: 100%;
-			display: flex;
-			flex-wrap: wrap;
-			justify-content: space-between;
-			line-height: 120%;
+        .card-detail {
+            width: 100%;
+            display: flex;
+            flex-wrap: wrap;
+            justify-content: space-between;
+            line-height: 120%;
 
-			.detail {
-				font-size: 26rpx;
-				margin-bottom: 12rpx;
-				color: #555;
-				margin-right: 20rpx;
+            .detail {
+                font-size: 26rpx;
+                margin-bottom: 12rpx;
+                color: #555;
+                margin-right: 20rpx;
 
-				text {
-					color: #999;
-					font-size: 26rpx;
-				}
-			}
-		}
+                text {
+                    color: #999;
+                    font-size: 26rpx;
+                }
+            }
+        }
 
-		.more {
-			color: #888;
-			font-size: 24rpx;
-			display: flex;
-			border-top: 1px solid #eee;
-			padding-top: 20rpx;
+        .more {
+            color: #888;
+            font-size: 24rpx;
+            display: flex;
+            border-top: 1px solid #eee;
+            padding-top: 20rpx;
 
-			.part {
-				width: 50%;
-				text-align: center;
-			}
-		}
+            .part {
+                width: 50%;
+                text-align: center;
+            }
+        }
 
-		.op {
-			display: flex;
-			justify-content: space-around;
-			margin-top: 20rpx;
+        .op {
+            display: flex;
+            justify-content: space-around;
+            margin-top: 20rpx;
 
-			button {
-				padding: 0;
-				width: 150rpx;
-				font-size: 25rpx;
+            button {
+                padding: 0;
+                width: 150rpx;
+                font-size: 25rpx;
 
-				&:disabled {
-					opacity: 0.5;
-				}
-			}
+                &:disabled {
+                    opacity: 0.5;
+                }
+            }
 
-			.op1 {
-				border: 1px solid #41a863;
-				color: #41a863;
-			}
+            .op1 {
+                border: 1px solid #41a863;
+                color: #41a863;
+            }
 
-			.op2 {
-				border: 1px solid #d98d00;
-				color: #d98d00;
-			}
+            .op2 {
+                border: 1px solid #d98d00;
+                color: #d98d00;
+            }
 
-			.op3 {
-				border: 1px solid #3a78ff;
-				color: #3a78ff;
-			}
+            .op3 {
+                border: 1px solid #3a78ff;
+                color: #3a78ff;
+            }
 
-			.op4 {
-				border: 1px solid #da0000;
-				color: #da0000;
-			}
+            .op4 {
+                border: 1px solid #da0000;
+                color: #da0000;
+            }
 
-			.op5 {
-				border: 1px solid #888;
-				color: #888;
-			}
-		}
-	}
+            .op5 {
+                border: 1px solid #888;
+                color: #888;
+            }
+        }
+    }
 
-	.over {
-		text-align: center;
-		padding: 40rpx;
-		color: #999;
-		font-size: 28rpx;
-	}
+    .over {
+        text-align: center;
+        padding: 40rpx;
+        color: #999;
+        font-size: 28rpx;
+    }
 
-	.page-footer {
-		position: fixed;
-		bottom: 0;
-		width: 100%;
-		box-sizing: border-box;
-		padding: 32rpx 40rpx;
-	}
+    .page-footer {
+        position: fixed;
+        bottom: 0;
+        width: 100%;
+        box-sizing: border-box;
+        padding: 32rpx 40rpx;
+    }
 </style>
\ No newline at end of file

--
Gitblit v1.9.1