496 lines
20 KiB
Vue
496 lines
20 KiB
Vue
|
<template>
|
|||
|
<view>
|
|||
|
<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
|
|||
|
<block slot="backText">返回</block>
|
|||
|
<block slot="content">忽略隐患</block>
|
|||
|
</cu-custom>
|
|||
|
<scroll-view scroll-y>
|
|||
|
<view class="de-card-list de-list">
|
|||
|
<view class="de-item">
|
|||
|
<text class="text-semi">{{pd.HIDDENDESCR}}</text>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患来源</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text v-if="pd.SOURCE=='1'" class="text-semi">隐患快报</text>
|
|||
|
<text v-if="pd.SOURCE=='2' || pd.SOURCE=='3'" class="text-semi">清单排查</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item" v-if="pd.SOURCE==2">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">风险点(单元)</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.RISK_UNIT}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item" v-if="pd.SOURCE==2">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">辨识部位</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.IDENTIFICATION}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item-sp" v-if="pd.SOURCE==2">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">存在风险</text>
|
|||
|
</view>
|
|||
|
<view class="de-sub-content">
|
|||
|
<text class="text-semi">{{pd.RISK_DESCR}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item" v-if="pd.SOURCE==2">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">风险点(单元)位置</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.RISK_POSITION}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item" v-if="pd.SOURCE==2">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">风险分级</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.LEVEL}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item-sp" v-if="pd.SOURCE==2">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">检查内容</text>
|
|||
|
</view>
|
|||
|
<view class="de-sub-content">
|
|||
|
<text class="text-semi">{{pd.CHECK_CONTENT}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<!-- <view class="de-item-sp">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患描述</text>
|
|||
|
</view>
|
|||
|
<view class="de-sub-content">
|
|||
|
<text class="text-semi">{{pd.HIDDENDESCR}}</text>
|
|||
|
</view>
|
|||
|
</view> -->
|
|||
|
<view class="de-item">
|
|||
|
<view style="width: 200px" class="de-sub-title">
|
|||
|
<text class="text-grey">隐患上报位置(经纬度)</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right" v-if="pd.LONGITUDE">
|
|||
|
<text class="text-semi">
|
|||
|
{{ pd.LONGITUDE &&
|
|||
|
pd.LONGITUDE.length>6?pd.LONGITUDE.substr(0,6):pd.LONGITUDE}},{{pd.LATITUDE &&
|
|||
|
pd.LATITUDE.length>6?pd.LATITUDE.substr(0,6):pd.LATITUDE}}
|
|||
|
</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患部位</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.hregionName?pd.hregionName:pd.HIDDENPARTre}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患部位描述</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.POSITIONDESC}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<!-- <view class="de-item">-->
|
|||
|
<!-- <view class="de-sub-title">-->
|
|||
|
<!-- <text class="text-grey">发现人</text>-->
|
|||
|
<!-- </view>-->
|
|||
|
<!-- <view class="uni-flex-item text-right">-->
|
|||
|
<!-- <text class="text-semi">{{pd.CREATORNAME}}</text>-->
|
|||
|
<!-- </view>-->
|
|||
|
<!-- </view>-->
|
|||
|
<!-- <view class="de-item">-->
|
|||
|
<!-- <view class="de-sub-title">-->
|
|||
|
<!-- <text class="text-grey">发现时间</text>-->
|
|||
|
<!-- </view>-->
|
|||
|
<!-- <view class="uni-flex-item text-right">-->
|
|||
|
<!-- <text class="text-semi">{{pd.CREATTIME}}</text>-->
|
|||
|
<!-- </view>-->
|
|||
|
<!-- </view>-->
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患类型</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.HIDDENTYPENAME}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<!--<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患类型2</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.HIDDENTYPENAME2}}</text>
|
|||
|
</view>
|
|||
|
</view>-->
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患级别</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text v-if="pd.editLevelName" class="text-semi">{{pd.editLevelName}}</text>
|
|||
|
<text v-else class="text-semi">{{pd.HIDDENLEVELNAME}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item" v-for="(item, index) in hiddenFindPeople" :key="index">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患发现人</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{item.NAME}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患发现时间</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{formatDate(pd.DISCOVERYTIME)}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">整改类型</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text v-if="pd.RECTIFICATIONTYPE=='1'" class="text-semi">立即整改</text>
|
|||
|
<text v-else-if="pd.RECTIFICATIONTYPE=='2'" class="text-semi">限期整改</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view v-if="pd.RECTIFICATIONTYPE=='2'" class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">整改期限</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.RECTIFICATIONDEADLINE}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item-sp">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患照片</text>
|
|||
|
</view>
|
|||
|
<view class="de-sub-content">
|
|||
|
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
|
|||
|
<view class="cu-item" v-for="(item,index) in files" v-bind:key="index">
|
|||
|
<view class="imgs">
|
|||
|
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage"
|
|||
|
mode=""></image>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</scroll-view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item-sp" v-if="hiddenVideo.length>0">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患视频</text>
|
|||
|
</view>
|
|||
|
<view class="de-sub-content" style="background-color: #000;width: 120upx;">
|
|||
|
<image src="/static/icon-apps/video.png" mode="aspectFill" @click="playVideo"
|
|||
|
:data-src="baseImgPath + hiddenVideo[0].FILEPATH"
|
|||
|
style="width: 120upx;height: 120upx;"></image>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">是否相关方</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text v-if="pd.ISRELEVANT=='1'" class="text-semi">是</text>
|
|||
|
<text v-else-if="pd.ISRELEVANT=='2'" class="text-semi">否</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
|
|||
|
</view>
|
|||
|
<view class="de-card-list de-list">
|
|||
|
<view class="de-title">
|
|||
|
<text class="text-semi">确认信息</text>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患级别</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.HIDDENLEVELNAME}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">整改负责人</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.RECTIFICATIONORNAME}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">整改完成期限</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{formatDate(pd.RECTIFICATIONDEADLINE)}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患确认人</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{ pd.conUserName}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">隐患确认时间</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{formatDate(pd.CONFIRM_TIME)}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
|
|||
|
</view>
|
|||
|
|
|||
|
<view class="de-card-list de-list" v-if="pd.RECTIFICATIONTYPE=='1'">
|
|||
|
<view class="de-title">
|
|||
|
<text class="text-semi">隐患整改</text>
|
|||
|
</view>
|
|||
|
<view class="de-item">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">整改描述</text>
|
|||
|
</view>
|
|||
|
<view class="uni-flex-item text-right">
|
|||
|
<text class="text-semi">{{pd.RECTIFYDESCR}}</text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="de-item-sp" v-if="files2.length>0">
|
|||
|
<view class="de-sub-title">
|
|||
|
<text class="text-grey">整改后图片</text>
|
|||
|
</view>
|
|||
|
<view class="de-sub-content">
|
|||
|
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
|
|||
|
<view class="cu-item" v-for="(item,index) in files2" v-bind:key="index">
|
|||
|
<view class="imgs">
|
|||
|
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage"
|
|||
|
mode=""></image>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</scroll-view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<view class="cu-bar btn-group" style="margin-top: 30upx;">
|
|||
|
<button class="cu-btn bg-green margin-tb-sm lg" @click="$noMultipleClicks(goback)">返回</button>
|
|||
|
</view>
|
|||
|
<view class="cu-tabbar-height"></view>
|
|||
|
</scroll-view>
|
|||
|
<view :class="['cu-modal',{'show':modalShow}]" v-if="modalShow">
|
|||
|
<view class="cu-dialog">
|
|||
|
<view class="cu-bar bg-white justify-end">
|
|||
|
<view class="content">播放视频</view>
|
|||
|
<view class="action" @tap="modalShow = false">
|
|||
|
<text class="cuIcon-close text-red"></text>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
<video :src="videoSrc" :autoplay="true"></video>
|
|||
|
<view class="cu-bar bg-white justify-end">
|
|||
|
<view class="action">
|
|||
|
<button class="cu-btn line-green text-green" @click="modalShow = false">关闭</button>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</view>
|
|||
|
</template>
|
|||
|
|
|||
|
<script>
|
|||
|
import {
|
|||
|
basePath, baseImgPath, corpinfoId, loginUser, formatDate
|
|||
|
} from '@/common/tool.js';
|
|||
|
|
|||
|
export default {
|
|||
|
data() {
|
|||
|
return {
|
|||
|
noClick: true,
|
|||
|
date: '',
|
|||
|
RECTIFICATIONTIME: '',
|
|||
|
imgList: [],
|
|||
|
id: '',
|
|||
|
pd: [],
|
|||
|
hs: [],
|
|||
|
files: [],
|
|||
|
files2: [],
|
|||
|
files3: [],
|
|||
|
files4: [],
|
|||
|
checkList: [],
|
|||
|
CHECKDESCR: '',
|
|||
|
basePath: basePath,
|
|||
|
baseImgPath,
|
|||
|
ISQUALIFIED: '1',
|
|||
|
levelList: [],
|
|||
|
treeNode: [],
|
|||
|
principalList: [],
|
|||
|
lindex: -1,
|
|||
|
hiddenVideo: [],
|
|||
|
hiddenFindPeople: [],
|
|||
|
modalShow: false,
|
|||
|
videoSrc: ''
|
|||
|
}
|
|||
|
},
|
|||
|
onLoad(e) {
|
|||
|
this.id = e.id;
|
|||
|
this.getData();
|
|||
|
},
|
|||
|
|
|||
|
methods: {
|
|||
|
getData() {
|
|||
|
var _this = this;
|
|||
|
uni.showLoading({
|
|||
|
title: '请稍候'
|
|||
|
})
|
|||
|
uni.request({
|
|||
|
url: basePath + '/app/hidden/goEdit',
|
|||
|
method: 'POST',
|
|||
|
dataType: 'json',
|
|||
|
header: {
|
|||
|
'Content-type': 'application/x-www-form-urlencoded'
|
|||
|
},
|
|||
|
data: {
|
|||
|
HIDDEN_ID: _this.id,
|
|||
|
},
|
|||
|
success: (res) => {
|
|||
|
if ("success" === res.data.result) {
|
|||
|
uni.hideLoading();
|
|||
|
_this.pd = res.data.pd; //参数map
|
|||
|
_this.hs = res.data.hs; //参数map
|
|||
|
_this.files = res.data.hImgs;
|
|||
|
_this.files2 = res.data.rImgs;
|
|||
|
//_this.files3 = res.data.cImgs;
|
|||
|
_this.files4 = res.data.sImgs;
|
|||
|
_this.checkList = res.data.checkList;
|
|||
|
_this.hiddenVideo = res.data.hiddenVideo
|
|||
|
_this.hiddenFindPeople = res.data.hiddenFindPeople
|
|||
|
} else if ("exception" === res.data.result) {
|
|||
|
uni.showToast({
|
|||
|
title: '错误',
|
|||
|
duration: 2000
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
},
|
|||
|
|
|||
|
ViewImage(e) {
|
|||
|
uni.previewImage({
|
|||
|
urls: this.imgList,
|
|||
|
current: e.currentTarget.dataset.url
|
|||
|
});
|
|||
|
},
|
|||
|
|
|||
|
|
|||
|
ViewShowImage(e) {
|
|||
|
let files = [];
|
|||
|
for (var i = 0; i < this.files.length; i++) {
|
|||
|
files.push(baseImgPath + this.files[i].FILEPATH)
|
|||
|
}
|
|||
|
uni.previewImage({
|
|||
|
urls: files,
|
|||
|
current: e.currentTarget.dataset.index
|
|||
|
});
|
|||
|
},
|
|||
|
goback() {
|
|||
|
uni.navigateBack({
|
|||
|
delta: 1
|
|||
|
});
|
|||
|
uni.hideLoading();
|
|||
|
},
|
|||
|
formatDate(time) {
|
|||
|
let date = new Date(time)
|
|||
|
return formatDate(date, 'yyyy-MM-dd hh:mm')
|
|||
|
},
|
|||
|
playVideo(e) {
|
|||
|
this.videoSrc = e.currentTarget.dataset.src
|
|||
|
this.modalShow = true
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
</script>
|
|||
|
|
|||
|
<style>
|
|||
|
.bb {
|
|||
|
border-top: 1upx solid #f1f1f1;
|
|||
|
border-bottom: 1upx solid #f1f1f1;
|
|||
|
}
|
|||
|
|
|||
|
.cu-bar .action:first-child {
|
|||
|
font-size: 26upx
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-title {
|
|||
|
padding: 20upx 0;
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-textarea {
|
|||
|
background-color: #ffffff;
|
|||
|
padding: 1upx 30upx 20upx;
|
|||
|
min-height: 100upx;
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-textarea textarea {
|
|||
|
height: 4.6em;
|
|||
|
width: 100%;
|
|||
|
line-height: 1.2em;
|
|||
|
flex: 1;
|
|||
|
font-size: 28upx;
|
|||
|
padding: 0;
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-group {
|
|||
|
padding: 0upx 25upx;
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-group picker .picker {
|
|||
|
line-height: 76upx;
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-group .title {
|
|||
|
font-size: 28upx;
|
|||
|
line-height: 76upx;
|
|||
|
color: #888;
|
|||
|
}
|
|||
|
|
|||
|
.cu-form-group uni-picker::after {
|
|||
|
top: -11upx;
|
|||
|
}
|
|||
|
|
|||
|
.selected {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
|
|||
|
.selected .radio {
|
|||
|
transform: scale(0.5);
|
|||
|
margin-right: 10upx;
|
|||
|
}
|
|||
|
|
|||
|
.cu-btn {
|
|||
|
border-radius: 0;
|
|||
|
width: 100%;
|
|||
|
height: 84upx;
|
|||
|
font-weight: bold;
|
|||
|
}
|
|||
|
|
|||
|
.group {
|
|||
|
display: flex;
|
|||
|
align-items: center;
|
|||
|
}
|
|||
|
</style>
|