|
@@ -2,8 +2,9 @@
|
|
<template>
|
|
<template>
|
|
<view class="snapshotDetail">
|
|
<view class="snapshotDetail">
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
|
|
<scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
|
|
- <view class="tip" v-if="pageType==0">{{optionData.checkPlanSetVoList.checkName}}</view>
|
|
|
|
- <view class="tip-tow" v-if="pageType==1 || pageType==2">{{optionData.checkPlanSetVoList.checkName}}</view>
|
|
|
|
|
|
+ <!-- <view class="tip" v-if="pageType==0">{{optionData.checkPlanSetVoList.checkName}}</view>
|
|
|
|
+ <view class="tip-tow" v-if="pageType==1 || pageType==2">{{optionData.checkPlanSetVoList.checkName}}</view> -->
|
|
|
|
+ <view class="lotName" :class="pageType != 0?'lotNameOne':''" v-if="lotName">{{lotName}}</view>
|
|
<view class="items">
|
|
<view class="items">
|
|
<view class="items-t" v-if="newData.hazardCheckName!=''">
|
|
<view class="items-t" v-if="newData.hazardCheckName!=''">
|
|
<view class="items-t-r">{{newData.hazardCheckCode}} {{newData.hazardCheckName}}</view>
|
|
<view class="items-t-r">{{newData.hazardCheckCode}} {{newData.hazardCheckName}}</view>
|
|
@@ -23,33 +24,91 @@
|
|
</view>
|
|
</view>
|
|
<view v-if="newData.hazardCheckName!=''" class="hidden-content">{{newData.hazardCheckPoint}}
|
|
<view v-if="newData.hazardCheckName!=''" class="hidden-content">{{newData.hazardCheckPoint}}
|
|
</view>
|
|
</view>
|
|
- <view class="list-li">
|
|
|
|
|
|
+ <view class="list-li" @click="checkCollapse()">
|
|
<view>{{newData.checkFlag?'检查结果':'检查隐患'}}</view>
|
|
<view>{{newData.checkFlag?'检查结果':'检查隐患'}}</view>
|
|
<view :id="newData.checkFlag?'fontColor-B':'fontColor-C'">
|
|
<view :id="newData.checkFlag?'fontColor-B':'fontColor-C'">
|
|
{{newData.checkFlag?'符合':'不符合'}}
|
|
{{newData.checkFlag?'符合':'不符合'}}
|
|
- <img src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
|
|
|
+ <img v-if="!newData.checkCollapse" src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
|
+ <img v-if="newData.checkCollapse" src="@/pages_safetyCheck/images/icon_06_1.png">
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="hidden-content" v-if="!newData.checkFlag">{{newData.hazardDescribe}}
|
|
|
|
- </view>
|
|
|
|
- <view class="photo" v-if="!newData.checkFlag" @click="lockImg(newData.photoList)">
|
|
|
|
- <img v-for="(item,index) in newData.photoList" :src="baseUrl+item.fileUrl">
|
|
|
|
- </view>
|
|
|
|
- <view class="list-li">
|
|
|
|
- <view>姓名:</view>
|
|
|
|
- <view>{{newData.checkUserName}}</view>
|
|
|
|
|
|
+ <view v-if="newData.checkCollapse">
|
|
|
|
+ <view class="hidden-content" v-if="!newData.checkFlag">{{newData.hazardDescribe}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="photo">
|
|
|
|
+ <img v-for="(item,index) in newData.yhDtoList" :src="baseUrl+item.fileUrl">
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li">
|
|
|
|
+ <view>姓名:</view>
|
|
|
|
+ <view>{{newData.checkUserName}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li">
|
|
|
|
+ <view>检查时间</view>
|
|
|
|
+ <view>{{newData.checkTime}}</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="list-li">
|
|
|
|
- <view>检查时间:</view>
|
|
|
|
- <view>{{newData.checkTime}}</view>
|
|
|
|
|
|
+ <view v-if="pageType==1 || pageType==2" v-for="(item,index) in newData.checkRectifyVoList" :key="index">
|
|
|
|
+ <view class="list-li" v-if="item.rectifyTime" @click="rectifyCollapse(item)">
|
|
|
|
+ <view>隐患整改</view>
|
|
|
|
+ <view :id="item.rectifyResult?'fontColor-B':(item.rectifyResult?'fontColor-C':'')">
|
|
|
|
+ {{item.rectifyResult?'已整改':(item.rectifyResult?'暂无法整改':'')}}
|
|
|
|
+ <img v-if="!item.rectifyCollapse" src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
|
+ <img v-if="item.rectifyCollapse" src="@/pages_safetyCheck/images/icon_06_1.png">
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="item.rectifyCollapse && item.rectifyTime">
|
|
|
|
+ <view class="hidden-content">{{item.rectifyMeasure}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="photo" @click="lockImg(item.rectifyUploadList)">
|
|
|
|
+ <img v-for="(item2,index2) in item.rectifyUploadList" :src="baseUrl+item2.fileUrl">
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li">
|
|
|
|
+ <view>姓名:</view>
|
|
|
|
+ <view>{{item.rectifyName}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li">
|
|
|
|
+ <view>整改时间</view>
|
|
|
|
+ <view>{{item.rectifyTime}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li" v-if="item.reviewTime" @click="reviewCollapse(item)">
|
|
|
|
+ <view>复查验证</view>
|
|
|
|
+ <view :id="item.examineResult?'fontColor-B':(item.examineResult?'fontColor-C':'')">
|
|
|
|
+ {{item.examineResult?'复查完毕':(item.examineResult?'退回整改':'')}}
|
|
|
|
+ <img v-if="!item.reviewCollapse" src="@/pages_safetyCheck/images/icon_06.png">
|
|
|
|
+ <img v-if="item.reviewCollapse" src="@/pages_safetyCheck/images/icon_06_1.png">
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="item.reviewCollapse && item.reviewTime">
|
|
|
|
+ <view class="hidden-content" >{{item.examineOpinion}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="photo" @click="lockImg(item.examineUploadList)">
|
|
|
|
+ <img v-for="(item3,index3) in item.examineUploadList" :src="baseUrl+item3.fileUrl">
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li">
|
|
|
|
+ <view>姓名:</view>
|
|
|
|
+ <view>{{item.reviewName}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="list-li">
|
|
|
|
+ <view>复查时间</view>
|
|
|
|
+ <view>{{item.reviewTime}}</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
<view class="sub-btn" v-if="pageType==0 && !newData.checkFlag">
|
|
<view class="sub-btn" v-if="pageType==0 && !newData.checkFlag">
|
|
<view @click="submitBtn(1)">编辑</view>
|
|
<view @click="submitBtn(1)">编辑</view>
|
|
<view @click="submitBtn(2)">继续检查</view>
|
|
<view @click="submitBtn(2)">继续检查</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="sub-btn" v-if="pageType==1">
|
|
|
|
+ <view @click="submitBtn(1)">编辑</view>
|
|
|
|
+ <view @click="submitBtn(2)">继续复查</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="sub-btn" v-if="pageType==2">
|
|
|
|
+ <view @click="submitBtn(1)">编辑</view>
|
|
|
|
+ <view @click="submitBtn(2)">继续整改</view>
|
|
|
|
+ </view>
|
|
<view v-if="pageType==0 && newData.checkFlag" @click="submitBtn(2)" class="sub-btn-tow">继续检查</view>
|
|
<view v-if="pageType==0 && newData.checkFlag" @click="submitBtn(2)" class="sub-btn-tow">继续检查</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -66,6 +125,7 @@
|
|
securityAppCheckPlanCheckInfo,
|
|
securityAppCheckPlanCheckInfo,
|
|
securityDraftFindBySetOptionId,
|
|
securityDraftFindBySetOptionId,
|
|
securityAppCheckPhotoGetCheckNumBySub,
|
|
securityAppCheckPhotoGetCheckNumBySub,
|
|
|
|
+ securityAppCheckDangerGetCheckProDetail,
|
|
} from '@/pages_safetyCheck/api/index.js'
|
|
} from '@/pages_safetyCheck/api/index.js'
|
|
export default {
|
|
export default {
|
|
name: "snapshotDetail",
|
|
name: "snapshotDetail",
|
|
@@ -85,12 +145,18 @@
|
|
pageType: 0, //0检查 1复查 2整改
|
|
pageType: 0, //0检查 1复查 2整改
|
|
itemsStatus:'',
|
|
itemsStatus:'',
|
|
optionData:null,
|
|
optionData:null,
|
|
|
|
+ lotName: null,
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
let optionData = JSON.parse(decodeURIComponent(option.infoData));
|
|
let optionData = JSON.parse(decodeURIComponent(option.infoData));
|
|
-
|
|
|
|
|
|
+ console.log('详情',optionData)
|
|
|
|
+ this.$set(this, 'lotName',
|
|
|
|
+ optionData.pageType == 0 ? optionData.checkPlanSetVoList.checkName : (
|
|
|
|
+ optionData.checkPlanSetVoList.overdueUnrectify ? '整改期限' + optionData.checkPlanSetVoList
|
|
|
|
+ .checkStartTime +
|
|
|
|
+ '(逾期未完成整改关闭实验室)' : '整改期限' + optionData.checkPlanSetVoList.checkStartTime));
|
|
this.$set(this, 'pageType', optionData.pageType);
|
|
this.$set(this, 'pageType', optionData.pageType);
|
|
this.$set(this, 'itemsStatus', optionData.itemsStatus);
|
|
this.$set(this, 'itemsStatus', optionData.itemsStatus);
|
|
this.$set(this, 'setOptionId', optionData.setOptionId);
|
|
this.$set(this, 'setOptionId', optionData.setOptionId);
|
|
@@ -98,6 +164,8 @@
|
|
this.$set(this, 'subId', optionData.subId);
|
|
this.$set(this, 'subId', optionData.subId);
|
|
this.$set(this, 'hazardCheckPro', optionData.hazardCheckPro);
|
|
this.$set(this, 'hazardCheckPro', optionData.hazardCheckPro);
|
|
this.$set(this, 'optionData', optionData);
|
|
this.$set(this, 'optionData', optionData);
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
|
|
@@ -114,11 +182,11 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ }else if(this.pageType==1 || this.pageType==2){
|
|
|
|
+ //复查-整改
|
|
|
|
+ this.securityAppCheckDangerGetCheckProDetail();
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
this.securityAppCheckPhotoGetCheckNumBySub();
|
|
this.securityAppCheckPhotoGetCheckNumBySub();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -138,6 +206,7 @@
|
|
title: data.data.subName + '(' + (this.pageType == 0 ? data.data.roomNum : data.data
|
|
title: data.data.subName + '(' + (this.pageType == 0 ? data.data.roomNum : data.data
|
|
.subRoom) + ')'
|
|
.subRoom) + ')'
|
|
})
|
|
})
|
|
|
|
+ data.data.checkCollapse=true;
|
|
this.$set(this, 'newData', data.data);
|
|
this.$set(this, 'newData', data.data);
|
|
this.$set(this.newData, 'checkTime', parseTime(data.data.checkTime, "{y}-{m}-{d}"));
|
|
this.$set(this.newData, 'checkTime', parseTime(data.data.checkTime, "{y}-{m}-{d}"));
|
|
|
|
|
|
@@ -155,6 +224,7 @@
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
title: this.optionData.subName + '(' + (this.pageType == 0 ? this.optionData.roomNum : this.optionData.subRoom) + ')'
|
|
title: this.optionData.subName + '(' + (this.pageType == 0 ? this.optionData.roomNum : this.optionData.subRoom) + ')'
|
|
})
|
|
})
|
|
|
|
+ data.data.checkCollapse=true;
|
|
this.$set(this, 'newData', data.data);
|
|
this.$set(this, 'newData', data.data);
|
|
this.$set(this.newData, 'checkPlanSetVoList', this.optionData.checkPlanSetVoList);
|
|
this.$set(this.newData, 'checkPlanSetVoList', this.optionData.checkPlanSetVoList);
|
|
this.$set(this.newData, 'subName', this.optionData.subName);
|
|
this.$set(this.newData, 'subName', this.optionData.subName);
|
|
@@ -162,6 +232,39 @@
|
|
this.$set(this.newData, 'checkTime', parseTime(data.data.checkTime, "{y}-{m}-{d}"));
|
|
this.$set(this.newData, 'checkTime', parseTime(data.data.checkTime, "{y}-{m}-{d}"));
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //整改详情
|
|
|
|
+ async securityAppCheckDangerGetCheckProDetail() {
|
|
|
|
+ let obj = {
|
|
|
|
+ planId: this.optionData.checkPlanSetVoList.planId,
|
|
|
|
+ planSetId: this.optionData.checkPlanSetVoList.planSetId,
|
|
|
|
+ checkCategory: this.optionData.checkCategory,
|
|
|
|
+ hazardCheckPro: this.optionData.hazardCheckPro,
|
|
|
|
+ subId: this.optionData.subId,
|
|
|
|
+ }
|
|
|
|
+ const {
|
|
|
|
+ data
|
|
|
|
+ } = await securityAppCheckDangerGetCheckProDetail(obj);
|
|
|
|
+ if (data.code == 200) {
|
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
|
+ title: data.data.subName + '(' + data.data.roomNum + ')'
|
|
|
|
+ })
|
|
|
|
+ data.data.checkCollapse=false;
|
|
|
|
+
|
|
|
|
+ data.data.checkTime= parseTime(data.data.checkTime, "{y}-{m}-{d}");
|
|
|
|
+ data.data.checkRectifyVoList.forEach(function(item,index){
|
|
|
|
+ item.rectifyTime= parseTime(item.rectifyTime, "{y}-{m}-{d}");
|
|
|
|
+ item.reviewTime= parseTime(item.reviewTime, "{y}-{m}-{d}");
|
|
|
|
+ item.rectifyCollapse=false;
|
|
|
|
+ item.reviewCollapse=false;
|
|
|
|
+ if(index==data.data.checkRectifyVoList.length-1){
|
|
|
|
+ item.rectifyCollapse=true;
|
|
|
|
+ item.reviewCollapse=true;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.$set(this, 'newData', data.data);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
|
|
//获取检查项在当前实验室出现的次数
|
|
//获取检查项在当前实验室出现的次数
|
|
async securityAppCheckPhotoGetCheckNumBySub() {
|
|
async securityAppCheckPhotoGetCheckNumBySub() {
|
|
@@ -181,23 +284,60 @@
|
|
submitBtn(status) {
|
|
submitBtn(status) {
|
|
if (status == 1) {
|
|
if (status == 1) {
|
|
//编辑
|
|
//编辑
|
|
- let infoData = {
|
|
|
|
- setOptionId: this.setOptionId,
|
|
|
|
- manageId: this.manageId,
|
|
|
|
- subId: this.subId,
|
|
|
|
- hazardCheckPro: this.hazardCheckPro,
|
|
|
|
- pageType: this.pageType,
|
|
|
|
- itemsStatus: this.itemsStatus,
|
|
|
|
- checkPlanSetVoList: this.optionData.checkPlanSetVoList,
|
|
|
|
- };
|
|
|
|
- uni.redirectTo({
|
|
|
|
- url: '/pages_safetyCheck/views/inspectManage/inspectAdd?infoData=' + encodeURIComponent(
|
|
|
|
- JSON
|
|
|
|
- .stringify(infoData))
|
|
|
|
- });
|
|
|
|
|
|
+ if(this.pageType==0){
|
|
|
|
+ //检查
|
|
|
|
+ let infoData = {
|
|
|
|
+ setOptionId: this.setOptionId,
|
|
|
|
+ manageId: this.manageId,
|
|
|
|
+ subId: this.subId,
|
|
|
|
+ hazardCheckPro: this.hazardCheckPro,
|
|
|
|
+ pageType: this.pageType,
|
|
|
|
+ itemsStatus: this.itemsStatus,
|
|
|
|
+ checkPlanSetVoList: this.optionData.checkPlanSetVoList,
|
|
|
|
+ };
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages_safetyCheck/views/inspectManage/inspectAdd?infoData=' + encodeURIComponent(
|
|
|
|
+ JSON
|
|
|
|
+ .stringify(infoData))
|
|
|
|
+ });
|
|
|
|
+ }else if(this.pageType==1){
|
|
|
|
+ //复核
|
|
|
|
+ let infoData = {
|
|
|
|
+ subId: this.subId,
|
|
|
|
+ hazardCheckPro: this.hazardCheckPro,
|
|
|
|
+ checkCategory:this.optionData.checkCategory,
|
|
|
|
+ pageType: this.pageType,
|
|
|
|
+ itemsStatus: this.itemsStatus,
|
|
|
|
+ checkPlanSetVoList: this.optionData.checkPlanSetVoList,
|
|
|
|
+ };
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages_safetyCheck/views/itemsManage/hiddenDangerRectification?infoData=' + encodeURIComponent(
|
|
|
|
+ JSON
|
|
|
|
+ .stringify(infoData))
|
|
|
|
+ });
|
|
|
|
+ }else if(this.pageType==2){
|
|
|
|
+ //整改
|
|
|
|
+ let infoData = {
|
|
|
|
+ subId: this.subId,
|
|
|
|
+ hazardCheckPro: this.hazardCheckPro,
|
|
|
|
+ checkCategory:this.optionData.checkCategory,
|
|
|
|
+ pageType: this.pageType,
|
|
|
|
+ itemsStatus: this.itemsStatus,
|
|
|
|
+ checkPlanSetVoList: this.optionData.checkPlanSetVoList,
|
|
|
|
+ };
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages_safetyCheck/views/itemsManage/hiddenDangerRectification?infoData=' + encodeURIComponent(
|
|
|
|
+ JSON
|
|
|
|
+ .stringify(infoData))
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
} else if (status == 2) {
|
|
} else if (status == 2) {
|
|
//继续检查
|
|
//继续检查
|
|
let infoData = {
|
|
let infoData = {
|
|
|
|
+ subId: this.subId,
|
|
|
|
+ checkCategory:this.optionData.checkCategory,
|
|
subName: this.newData.subName,
|
|
subName: this.newData.subName,
|
|
roomNum: this.newData.roomNum,
|
|
roomNum: this.newData.roomNum,
|
|
manageId: this.manageId,
|
|
manageId: this.manageId,
|
|
@@ -229,6 +369,16 @@
|
|
complete: function(res) {},
|
|
complete: function(res) {},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //折叠展开
|
|
|
|
+ checkCollapse(row){
|
|
|
|
+ this.newData.checkCollapse=!this.newData.checkCollapse
|
|
|
|
+ },
|
|
|
|
+ rectifyCollapse(row){
|
|
|
|
+ row.rectifyCollapse=!row.rectifyCollapse
|
|
|
|
+ },
|
|
|
|
+ reviewCollapse(row){
|
|
|
|
+ row.reviewCollapse=!row.reviewCollapse
|
|
|
|
+ },
|
|
//整改页面
|
|
//整改页面
|
|
rectificationBtn() {
|
|
rectificationBtn() {
|
|
let self = this;
|
|
let self = this;
|
|
@@ -297,6 +447,19 @@
|
|
line-height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
+ .lotName {
|
|
|
|
+ height: 70rpx;
|
|
|
|
+ line-height: 70rpx;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ background: rgba(1, 131, 250, 0.2);
|
|
|
|
+ color: #0183FA;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .lotNameOne {
|
|
|
|
+ background: #F7E0C4;
|
|
|
|
+ color: #FF8C00;
|
|
|
|
+ }
|
|
|
|
|
|
.items {
|
|
.items {
|
|
width: 690rpx;
|
|
width: 690rpx;
|
|
@@ -485,9 +648,9 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .list-li:last-of-type {
|
|
|
|
|
|
+ /* .list-li:last-of-type {
|
|
border: none;
|
|
border: none;
|
|
- }
|
|
|
|
|
|
+ } */
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|