|
@@ -101,14 +101,16 @@
|
|
|
</view>
|
|
|
<!-- 开始检查 -->
|
|
|
<view v-if="curTabTow==2 && item.rectifyStatus==3" class="list_tow_li_b" @click="handleTowClick(item,'check')">复核</view>
|
|
|
- <view v-if="(curTabTow==0 || curTabTow==1) && item.manageStatus==0 && item.notStarted" class="list_tow_li_b" @click="handleTowClick(item,'add')">开始检查</view>
|
|
|
- <view v-if="(curTabTow==0 || curTabTow==1) &&item.manageStatus==1" class="list_tow_li_b" @click="handleTowClick(item,'edit')">编辑</view>
|
|
|
- <view v-if="(curTabTow==0 || curTabTow==1) &&!item.notStarted" class="list_tow_li_b_tow"><img src="@/images/Version3.3.3/icon_xyxcgl_jhwks.png"/>计划未开始</view>
|
|
|
- <view v-if="(curTabTow==0 || curTabTow==1) &&item.manageStatus==2" class="list_tow_li_b_three">
|
|
|
- <img src="@/images/Version3.3.3/icon_djcsys.png"/>
|
|
|
- <text>整改进度:</text>
|
|
|
- <text>{{item.rectifySchedule}}</text>
|
|
|
- <text class="report">整改报告</text>
|
|
|
+ <view v-if="item.buttonHide && item.isSelfData==1">
|
|
|
+ <view v-if="(curTabTow==0 || curTabTow==1) && item.manageStatus==0 && item.notStarted" class="list_tow_li_b" @click="handleTowClick(item,'add')">开始检查</view>
|
|
|
+ <view v-if="(curTabTow==0 || curTabTow==1) &&item.manageStatus==1 && item.notStarted" class="list_tow_li_b" @click="handleTowClick(item,'edit')">编辑</view>
|
|
|
+ <view v-if="(curTabTow==0 || curTabTow==1) &&!item.notStarted" class="list_tow_li_b_tow"><img src="@/images/Version3.3.3/icon_xyxcgl_jhwks.png"/>计划未开始</view>
|
|
|
+ <view v-if="(curTabTow==0 || curTabTow==1) &&item.manageStatus==2 && item.notStarted" class="list_tow_li_b_three">
|
|
|
+ <img src="@/images/Version3.3.3/icon_djcsys.png"/>
|
|
|
+ <text>整改进度:</text>
|
|
|
+ <text>{{item.rectifySchedule}}</text>
|
|
|
+ <text class="report">整改报告</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -277,10 +279,14 @@ export default {
|
|
|
isSubPlan:false,//判断管理员和检查者扫码的实验室是否有检查计划
|
|
|
dialogVisible:false,
|
|
|
hiddenList:[],
|
|
|
+ myApplyGentle:'',//自查身份 校院巡查管理 里操作按钮隐藏
|
|
|
+ applyGentle:'',//检查组身份 实验室自查管理 里操作按钮隐藏
|
|
|
+ buttonHide:false,//判断按钮显示隐藏
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
-
|
|
|
+ this.myApplyGentle=uni.getStorageSync('gentleIdentifierData').myApplyGentle
|
|
|
+ this.applyGentle=uni.getStorageSync('gentleIdentifierData').applyGentle
|
|
|
},
|
|
|
onShow() {
|
|
|
|
|
@@ -672,11 +678,33 @@ export default {
|
|
|
const {data} = await checkManageList(this.getData2);
|
|
|
if(data.code==200){
|
|
|
//判断计划是否开始
|
|
|
- data.data.records.forEach(function(item){
|
|
|
- item.notStarted=self.compareTime(item.cycleStartTime)
|
|
|
- })
|
|
|
- this.dataList2=[...this.dataList2,...data.data.records]
|
|
|
- this.total2=data.data.total;
|
|
|
+ self.buttonHide=false;
|
|
|
+ for(let i=0;i<data.data.records.length;i++){
|
|
|
+ data.data.records[i].notStarted=self.compareTime(data.data.records[i].cycleStartTime)
|
|
|
+
|
|
|
+ if(data.data.records[i].checkType==1){
|
|
|
+ if(self.myApplyGentle && !self.applyGentle){
|
|
|
+ data.data.records[i].buttonHide=false
|
|
|
+ }if(!self.myApplyGentle && !self.applyGentle){
|
|
|
+ data.data.records[i].buttonHide=false
|
|
|
+ }else{
|
|
|
+ data.data.records[i].buttonHide=true;
|
|
|
+ }
|
|
|
+
|
|
|
+ }else if(data.data.records[i].checkType==2){
|
|
|
+ if(!self.myApplyGentle && self.applyGentle){
|
|
|
+ data.data.records[i].buttonHide=false
|
|
|
+ }if(!self.myApplyGentle && !self.applyGentle){
|
|
|
+ data.data.records[i].buttonHide=false
|
|
|
+ }else{
|
|
|
+ data.data.records[i].buttonHide=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ self.dataList2=[...self.dataList2,...data.data.records]
|
|
|
+ self.total2=data.data.total;
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
//待复核列表
|
|
@@ -1149,14 +1177,15 @@ export default {
|
|
|
.list_tow_li{
|
|
|
position: relative;
|
|
|
width: 690rpx;
|
|
|
- height: 360rpx;
|
|
|
+ height: auto;
|
|
|
background: #fff;
|
|
|
border-radius: 10rpx;
|
|
|
overflow: hidden;
|
|
|
margin-bottom: 20rpx;
|
|
|
.list_tow_li_t{
|
|
|
width: 100%;
|
|
|
- position: absolute;
|
|
|
+ height: 110rpx;
|
|
|
+ position: relative;
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
.list_tow_li_t_l{
|
|
@@ -1219,9 +1248,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.list_tow_li_m{
|
|
|
- position: absolute;
|
|
|
- top: 110rpx;
|
|
|
- left: 0;
|
|
|
+ // position: absolute;
|
|
|
+ // top: 110rpx;
|
|
|
+ // left: 0;
|
|
|
width: 690rpx;
|
|
|
height: 168rpx;
|
|
|
padding-left: 30rpx;
|
|
@@ -1277,9 +1306,9 @@ export default {
|
|
|
.list_tow_li_b{
|
|
|
height: 80rpx;
|
|
|
width: 100%;
|
|
|
- position: absolute;
|
|
|
- top: 278rpx;
|
|
|
- left: 0;
|
|
|
+ // position: absolute;
|
|
|
+ // top: 278rpx;
|
|
|
+ // left: 0;
|
|
|
border-top: 1rpx solid #E0E0E0;
|
|
|
font-size: 28rpx;
|
|
|
font-family: PingFang SC-Medium, PingFang SC;
|
|
@@ -1291,9 +1320,9 @@ export default {
|
|
|
.list_tow_li_b_tow{
|
|
|
height: 80rpx;
|
|
|
width: 100%;
|
|
|
- position: absolute;
|
|
|
- top: 278rpx;
|
|
|
- left: 0;
|
|
|
+ // position: absolute;
|
|
|
+ // top: 278rpx;
|
|
|
+ // left: 0;
|
|
|
border-top: 1rpx solid #E0E0E0;
|
|
|
font-size: 28rpx;
|
|
|
font-family: PingFang SC-Medium, PingFang SC;
|
|
@@ -1311,9 +1340,9 @@ export default {
|
|
|
}
|
|
|
.list_tow_li_b_three{
|
|
|
height: 80rpx;
|
|
|
- position: absolute;
|
|
|
- top: 278rpx;
|
|
|
- left: 0;
|
|
|
+ // position: absolute;
|
|
|
+ // top: 278rpx;
|
|
|
+ // left: 0;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|