|
@@ -97,7 +97,7 @@
|
|
<button class="pass-btn" @click="handlePass">通过</button>
|
|
<button class="pass-btn" @click="handlePass">通过</button>
|
|
<button class="refuse-btn" @click="handleRefuse">驳回</button>
|
|
<button class="refuse-btn" @click="handleRefuse">驳回</button>
|
|
</view>
|
|
</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>
|
|
<button class="refuse-btn" @click="handleClose">关闭</button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -113,6 +113,15 @@ export default {
|
|
adminId(){
|
|
adminId(){
|
|
const userInfo=uni.getStorageSync('userInfo');
|
|
const userInfo=uni.getStorageSync('userInfo');
|
|
return userInfo?JSON.parse(userInfo).AdminId:0
|
|
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() {
|
|
data() {
|