jwyu 2 tahun lalu
induk
melakukan
e2cf7904b4
1 mengubah file dengan 10 tambahan dan 1 penghapusan
  1. 10 1
      pages-approve/businessTrip/detail.vue

+ 10 - 1
pages-approve/businessTrip/detail.vue

@@ -97,7 +97,7 @@
             <button class="pass-btn" @click="handlePass">通过</button>
 			<button class="refuse-btn" @click="handleRefuse">驳回</button>
 		</view>
-        <view class="fix-bottom-wrap btns-wrap flex" v-if="info.IsApprove&&info.Status=='已通过'">
+        <view class="fix-bottom-wrap btns-wrap flex" v-if="info.IsApprove&&info.Status=='已通过'&&!NowBigReturnDate">
             <button class="refuse-btn" @click="handleClose">关闭</button>
 		</view>
 
@@ -113,6 +113,15 @@ export default {
         adminId(){
             const userInfo=uni.getStorageSync('userInfo');
             return userInfo?JSON.parse(userInfo).AdminId:0
+        },
+        // 当前时间是否大于等于返回时间
+        NowBigReturnDate(){
+            if(!this.info) return
+            const now=new Date().getTime()
+            const temt=this.info.ArriveDate.replace('-','/')
+            const rtime=new Date(temt).getTime()
+            console.log(now,rtime);
+            return now>rtime
         }
     },
     data() {