|
@@ -95,12 +95,13 @@
|
|
|
<text class="red_color" v-if="item.manageStatus==1">检查中</text>
|
|
|
<text class="green_color" v-if="item.manageStatus==2">已检查</text>
|
|
|
<text class="orange_color" v-if="curTabTow==2 && item.rectifyStatus==3">待审核</text>
|
|
|
- <text>{{item.checkType==1?'校院巡查':'实验室自查'}}</text>
|
|
|
+ <text v-if="item.manageStatus==0 || item.manageStatus==1 || item.manageStatus==2">{{item.checkType==1?'校院巡查':'实验室自查'}}</text>
|
|
|
+ <text v-if="curTabTow==2 && item.rectifyStatus==3">{{item.hazardType==1?'校院巡查':'实验室自查'}}</text>
|
|
|
<text>{{item.collegeName}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 开始检查 -->
|
|
|
- <view v-if="curTabTow==2 && item.rectifyStatus==3" class="list_tow_li_b" @click="handleTowClick(item,'check')">复核</view>
|
|
|
+ <view v-if="curTabTow==2 && item.rectifyStatus==3" class="list_tow_li_b" @click="handleTowClick(item,'check')">{{item.applyGentle?'复核':'详情'}}</view>
|
|
|
<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>
|
|
@@ -236,7 +237,8 @@ export default {
|
|
|
getData2:{
|
|
|
pageNum:1,
|
|
|
pageSize:20,
|
|
|
- checkType:'',
|
|
|
+ isSelf: 0,//是否本人查询
|
|
|
+ checkType:0,
|
|
|
manageStatus:0,//管理状态(-1全部 0待检查,1检查中,2已检查)
|
|
|
rectifyStatus:'',
|
|
|
},
|
|
@@ -285,8 +287,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.myApplyGentle=uni.getStorageSync('gentleIdentifierData').myApplyGentle
|
|
|
- this.applyGentle=uni.getStorageSync('gentleIdentifierData').applyGentle
|
|
|
+
|
|
|
},
|
|
|
onShow() {
|
|
|
|
|
@@ -295,7 +296,8 @@ export default {
|
|
|
|
|
|
},
|
|
|
mounted(){
|
|
|
-
|
|
|
+ this.myApplyGentle=uni.getStorageSync('gentleIdentifierData').myApplyGentle
|
|
|
+ this.applyGentle=uni.getStorageSync('gentleIdentifierData').applyGentle
|
|
|
//获取当前日期
|
|
|
this.currentDate=this.getNowFormatDate()
|
|
|
|
|
@@ -497,7 +499,7 @@ export default {
|
|
|
let list = newList[0].split("=")[1].split("-")
|
|
|
subId = list[0];
|
|
|
if(subId){
|
|
|
-
|
|
|
+ uni.setStorageSync('saoCodeId',subId);
|
|
|
if(self.pageType==1 || self.pageType==2){//管理员和检查者
|
|
|
self.getCheckPlanBySubId(subId)
|
|
|
}else if(self.pageType==3){//整改者
|
|
@@ -540,7 +542,6 @@ export default {
|
|
|
url: '/pages_safetyExamine/examineManage/examineAdd?subId='+id
|
|
|
});
|
|
|
}else{
|
|
|
- let id = uni.setStorageSync('saoCodeId',id);
|
|
|
uni.redirectTo({
|
|
|
url: '/pages_safetyExamine/inforSign'
|
|
|
})
|
|
@@ -551,16 +552,18 @@ export default {
|
|
|
//根据实验室id查询隐患
|
|
|
async checkHazardAppList2(obj){
|
|
|
let self = this;
|
|
|
+ this.hiddenList=[];
|
|
|
const {data} = await checkHazardAppList(obj);
|
|
|
if(data.code==200){
|
|
|
- if(data.data.records){
|
|
|
- data.data.records.forEach(function(item){
|
|
|
- item.type=false;
|
|
|
- })
|
|
|
- this.hiddenList=data.data.records
|
|
|
+ if(data.data.records.length>0){
|
|
|
+ for(let i=0;i<data.data.records.length;i++){
|
|
|
+ data.data.records[i].type=false;
|
|
|
+ if(data.data.records[i].rectifyStatus==2 || data.data.records[i].rectifyStatus==3){
|
|
|
+ this.hiddenList.push(data.data.records[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
this.dialogVisible=true;
|
|
|
}else{
|
|
|
- let id = uni.setStorageSync('saoCodeId',id);
|
|
|
uni.redirectTo({
|
|
|
url: '/pages_safetyExamine/inforSign'
|
|
|
})
|
|
@@ -611,8 +614,8 @@ export default {
|
|
|
]
|
|
|
}else if(data.data.userType==3){//整改者
|
|
|
this.statisticsListThree=[
|
|
|
- {name:'本月已检查',value:data.data.checkTotal},
|
|
|
- {name:'本月已整改',value:data.data.rectifyTotal},
|
|
|
+ {name:'本月已整改',value:data.data.rectifyTotal},
|
|
|
+ {name:'本月整改率',value:data.data.rectificationRate},
|
|
|
{name:'本月复核通过率',value:data.data.passRate},
|
|
|
]
|
|
|
}
|
|
@@ -684,8 +687,6 @@ export default {
|
|
|
//判断计划是否开始
|
|
|
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
|
|
@@ -704,6 +705,7 @@ export default {
|
|
|
data.data.records[i].buttonHide=true;
|
|
|
}
|
|
|
}
|
|
|
+ data.data.records[i].notStarted=self.compareTime(data.data.records[i].cycleStartTime)
|
|
|
|
|
|
}
|
|
|
self.dataList2=[...self.dataList2,...data.data.records]
|
|
@@ -779,8 +781,9 @@ export default {
|
|
|
let obj={
|
|
|
pageNum:this.getData2.pageNum,
|
|
|
pageSize:this.getData2.pageSize,
|
|
|
+ isSelf: 0,//是否本人查询
|
|
|
manageStatus:0,
|
|
|
- checkType:'',
|
|
|
+ checkType:0,
|
|
|
};
|
|
|
const {data} = await checkManageList(obj);
|
|
|
if(data.code==200){
|
|
@@ -793,8 +796,9 @@ export default {
|
|
|
let obj={
|
|
|
pageNum:this.getData2.pageNum,
|
|
|
pageSize:this.getData2.pageSize,
|
|
|
- manageStatus:0,
|
|
|
- checkType:'',
|
|
|
+ isSelf: 0,//是否本人查询
|
|
|
+ manageStatus:1,
|
|
|
+ checkType:0,
|
|
|
};
|
|
|
const {data} = await checkManageList(obj);
|
|
|
if(data.code==200){
|