隐患记录

pull/5/head
wangpeng 2024-02-03 12:27:03 +08:00
parent 9b12285d73
commit 524097e365
4 changed files with 1441 additions and 11 deletions

View File

@ -99,6 +99,14 @@
"path": "pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail",
"style": {}
},
{
"path": "pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail",
"style": {}
},
{
"path": "pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-standard-detail",
"style": {}
},
{
"path": "pages/application/hidden-danger-management/hidden-danger-review/hidden-danger-review",
"style": {}

View File

@ -0,0 +1,750 @@
<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="wui-form-list">
<view class="wui-form-title">
<text>{{pd.HIDDENDESCR}}</text>
</view>
<view class="cu-form-group">
<view class="title">隐患来源</view>
<view>
<text v-if="pd.SOURCE=='1'"></text>
<text v-if="pd.SOURCE=='2'"></text>
<text v-if="pd.SOURCE=='3'"></text>
</view>
</view>
<view class="cu-form-group" v-if="pd.SOURCE==2">
<view class="title">
<text>风险点单元</text>
</view>
<view>
<text>{{pd.RISK_UNIT}}</text>
</view>
</view>
<view class="cu-form-group bb-default" v-if="pd.SOURCE==2">
<view class="title">
<text>辨识部位</text>
</view>
<view>
<text>{{pd.IDENTIFICATION}}</text>
</view>
</view>
<view class="cu-form-textarea" v-if="pd.SOURCE==2">
<view class="title">
<text>存在风险</text>
</view>
<view class="cu-form-p">
<text>{{pd.RISK_DESCR}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.SOURCE==2">
<view class="title">
<text>风险分级</text>
</view>
<view>
<text>{{pd.LEVEL}}</text>
</view>
</view>
<view class="cu-form-textarea" v-if="pd.SOURCE==2">
<view class="title">
<text>检查内容</text>
</view>
<view class="cu-form-p">
<text>{{pd.CHECK_CONTENT}}</text>
</view>
</view>
<!-- <view class="cu-form-textarea">
<view class="title">
<text>隐患描述</text>
</view>
<view class="cu-form-p">
<text>{{pd.HIDDENDESCR}}</text>
</view>
</view> -->
<view class="cu-form-group">
<view class="title">
<text>隐患部位</text>
</view>
<view>
<text>{{pd.HIDDENPART}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>发现人</text>
</view>
<view>
<text>{{pd.CREATORNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>发现时间</text>
</view>
<view>
<text>{{pd.CREATTIME}}</text>
</view>
</view>
<view v-if="pd.HIDDEN_CATEGORY && pd.HIDDEN_CATEGORY !== ''" class="cu-form-group">
<view class="title">
<text>隐患类别</text>
</view>
<view>
<text>{{pd.HIDDEN_CATEGORY_NAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>隐患类型</text>
</view>
<view>
<text>{{pd.HIDDENTYPE_NAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改类型</text>
</view>
<view>
<text v-if="pd.RECTIFICATIONTYPE=='1'"></text>
<text v-else-if="pd.RECTIFICATIONTYPE=='2'">限期整改</text>
</view>
</view>
<view v-if="pd.RECTIFICATIONTYPE=='2'" class="cu-form-group bb-default">
<view class="title">
<text>整改期限</text>
</view>
<view>
<text>{{pd.RECTIFICATIONDEADLINE}}</text>
</view>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>隐患照片</text>
</view>
<view class="cu-form-p">
<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="videoList.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 + videoList[0].FILEPATH"
style="width: 120upx;height: 120upx;"></image>
</view>
</view>
</view>
<view v-if="pd.REJECTREASON" class="wui-form-list">
<view class="wui-sub-title">
<text>隐患复查</text>
</view>
<view class="cu-form-group">
<view class="title">
<text>复查驳回原因</text>
</view>
<view>
<text>{{pd.REJECTREASON}}</text>
</view>
</view>
</view>
<view v-if="pd.STATE>=2 && pd.STATE<=4" class="wui-form-list">
<view class="wui-sub-title">
<text>整改信息</text>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>整改描述</text>
</view>
<view class="cu-form-p">
<text>{{pd.RECTIFYDESCR}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改部门</text>
</view>
<view>
<text>{{pd.RECTIFICATIONDEPTNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改人</text>
</view>
<view>
<text>{{pd.RECTIFICATIONORNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改时间</text>
</view>
<view>
<text>{{pd.RECTIFICATIONTIME}}</text>
</view>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>整改后图片</text>
</view>
<view class="cu-form-p">
<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="ViewShowImage2"
mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改方案</text>
</view>
<view>
<text v-if="pd.HAVESCHEME==0"></text>
<text v-else-if="pd.HAVESCHEME==1"></text>
<text v-else></text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>排查日期</text>
</view>
<view>
<text>{{hs.SCREENINGDATE}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>隐患清单</text>
</view>
<view>
<text>{{hs.LISTNAME}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>治理标准要求</text>
</view>
<view>
<text>{{hs.GOVERNSTANDARDS}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>治理方法</text>
</view>
<view>
<text>{{hs.GOVERNMETHOD}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>经费和物资的落实</text>
</view>
<view>
<text>{{hs.EXPENDITURE}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>负责治理人员</text>
</view>
<view>
<text>{{hs.PRINCIPAL}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>工时安排</text>
</view>
<view>
<text>{{hs.PROGRAMMING}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>时限要求</text>
</view>
<view>
<text>{{hs.TIMELIMITFOR}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>应急预案附件</text>
</view>
<view>
<text @click="$noMultipleClicks(goToOpen,baseImgPath+hs.FILEPATH)"></text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>工作要求</text>
</view>
<view>
<text>{{hs.JOBREQUIREMENT}}</text>
</view>
</view>
<view class="cu-form-group bb-default" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>其他事项</text>
</view>
<view>
<text>{{hs.OTHERBUSINESS}}</text>
</view>
</view>
<view class="cu-form-textarea" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>方案图片</text>
</view>
<view class="cu-form-p">
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
<view class="cu-item" v-for="(item,index) in files4" v-bind:key="index">
<view class="imgs">
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage4"
mode=""></image>
</view>
</view>
</scroll-view>
</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.HAVEPLAN==0" class="text-semi"></text>
<text v-else-if="pd.HAVEPLAN==1" class="text-semi"></text>
<text v-else class="text-semi"></text>
</view>
</view>
<view class="de-item-sp" v-if="pd.HAVEPLAN==1">
<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 files5" v-bind:key="index">
<view class="imgs">
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage4" mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
<view v-show="pd.STATE==4" class="wui-form-list" v-for="(item,index) of checkList" :key="index"
:data-id="item.HIDDENCHECK_ID">
<view class="wui-sub-title">
<text>验收信息</text>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>验收描述</text>
</view>
<view class="cu-form-p">
<text>{{item.CHECKDESCR}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>是否合格</text>
</view>
<view>
<text v-if="item.STATUS=='1'"></text>
<text v-else-if="item.STATUS=='0'"></text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>验收部门</text>
</view>
<view>
<text>{{item.CHECKDEPTNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>验收部门负责人</text>
</view>
<view>
<text>{{item.CHECKORNAME}}</text>
</view>
</view>
<view class="cu-form-group bb-default">
<view class="title">
<text>验收时间</text>
</view>
<view>
<text>{{item.CHECK_TIME}}</text>
</view>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>验收图片</text>
</view>
<view class="cu-form-p">
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
<view class="cu-item" v-for="(item1,index1) in item.cImgs" v-bind:key="index1">
<view class="imgs">
<image :src="baseImgPath+item1.FILEPATH" :data-index="index1"
@click="ViewShowImages(item.cImgs,index1)" mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
</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" @fullscreenchange="fullScreenHandler"></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
} from '@/common/tool.js';
export default {
data() {
return {
noClick: true,
date: '',
RECTIFICATIONTIME: '',
imgList: [],
id: '',
pd: [],
hs: [],
files: [],
files2: [],
files3: [],
files4: [],
files5: [],
videoList: [],
checkList: [],
CHECKDESCR: '',
basePath: basePath,
baseImgPath: baseImgPath,
ISQUALIFIED: '1',
modalShow: false,
videoSrc: '',
}
},
onLoad(e) {
this.id = e.id;
// let now = new Date();
// this.date = formatDate(now, 'yyyy-MM-dd');
this.getData();
},
// filters: {
// formatDate(time) {
// time = time * 1
// let date = new Date(time)
// return formatDate(date, 'yyyy-MM-dd hh:mm')
// }
// },
methods: {
fullScreenHandler(e) {
if (uni.getSystemInfoSync().platform == "ios") { return }
},
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,
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
_this.hs = res.data.hs; //map
for (let i = 0; i < res.data.hImgs.length; i++) {
if(res.data.hImgs[i].FILEPATH.substring(res.data.hImgs[i].FILEPATH.lastIndexOf(".") + 1, res.data.hImgs[i].FILEPATH.length) === 'mp4'){
_this.videoList.push(res.data.hImgs[i])
}else {
_this.files.push(res.data.hImgs[i])
}
}
// _this.files = res.data.hImgs;
_this.files2 = res.data.rImgs;
//_this.files3 = res.data.cImgs;
_this.files4 = res.data.sImgs;
_this.files5 = res.data.pImgs;
_this.checkList = res.data.checkList;
} else if ("exception" == data.result) {
uni.showToast({
title: '错误',
duration: 2000
});
}
}
});
},
//
ChooseImage() {
var _this = this;
uni.chooseImage({
count: 4, //9
sizeType: ['original', 'compressed'], //
sourceType: ['camera', 'album'], //
success: (res) => {
if (this.imgList.length != 0) {
this.imgList = this.imgList.concat(res.tempFilePaths)
} else {
this.imgList = res.tempFilePaths
}
}
});
},
ViewImage(e) {
uni.previewImage({
urls: this.imgList,
current: e.currentTarget.dataset.url
});
},
DelImg(e) {
uni.showModal({
title: '双控平台',
content: '确定要删除这张图片吗?',
cancelColor: "#000000",
cancelText: '取消',
confirmText: '确定',
success: res => {
if (res.confirm) {
this.imgList.splice(e.currentTarget.dataset.index, 1)
}
}
})
},
textareaAInput(e) {
this.CHECKDESCR = e.detail.value
},
goSubmit() {
var _this = this;
if (!_this.CHECKDESCR) {
uni.showToast({
icon: 'none',
title: '请填验收描述',
duration: 1500
});
return;
}
if (_this.imgList.length <= 0) {
uni.showToast({
icon: 'none',
title: '请上传验收照片',
duration: 1500
});
return;
}
var i = 0;
_this.uploadImg(_this.imgList, i);
},
uploadImg(tempFilePaths, i) {
var _this = this;
uni.showLoading({
title: '上传中'
})
uni.uploadFile({
url: basePath + '/app/imgfiles/add',
filePath: tempFilePaths[i],
name: 'FFILE',
formData: {
'FOREIGN_KEY': _this.id,
'TYPE': '5',
CORPINFO_ID: loginUser.CORPINFO_ID,
USER_ID: loginUser.USER_ID,
},
success: (res) => {
i++;
if (tempFilePaths.length > i) {
_this.uploadImg(tempFilePaths, i);
} else {
_this.submit();
}
},
fail: (err) => {
uni.hideLoading();
console.log('uploadImage fail', err);
uni.showModal({
content: err.errMsg,
showCancel: false
});
}
})
},
submit() {
var _this = this;
uni.request({
url: basePath + "/app/hidden/check", //
method: 'POST',
dataType: 'json',
header: {
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
ISQUALIFIED: _this.ISQUALIFIED,
CHECKDESCR: _this.CHECKDESCR,
HIDDEN_ID: _this.id,
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
uni.hideLoading();
if ("success" == res.data.result) {
uni.showToast({
icon: 'none',
title: '提交成功',
duration: 1500
});
setTimeout(function() {
var pages = getCurrentPages(); //
var prePage = pages[pages.length - 2]; //
prePage.$vm.initflag = true; // A init true
uni.navigateBack({});
uni.hideLoading();
}, 1500);
} else {
uni.showToast({
title: '错误',
duration: 2000
});
}
}
});
},
changeDate(e) {
this.RECTIFICATIONTIME = e.detail.value
},
radio(e) {
this.ISQUALIFIED = e
},
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
});
},
ViewShowImage2(e) {
let files = [];
for (var i = 0; i < this.files2.length; i++) {
files.push(baseImgPath + this.files2[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.index
});
},
ViewShowImage3(e) {
let files = [];
for (var i = 0; i < this.files3.length; i++) {
files.push(baseImgPath + this.files3[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.index
});
},
ViewShowImage4(e) {
let files = [];
for (var i = 0; i < this.files4.length; i++) {
files.push(baseImgPath + this.files4[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.index
});
},
ViewShowImages(imgs, index) {
let files = [];
for (var i = 0; i < imgs.length; i++) {
files.push(baseImgPath + imgs[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: index
});
},
goToOpen(e) {
var url = e;
plus.runtime.openURL(url, function(res) {
console.log(res);
});
// uni.navigateTo({
// url: '/pages/application/safety-production-account/organization-personnel/web-view?link=' + url
// });
},
playVideo(e) {
this.videoSrc = e.currentTarget.dataset.src
this.modalShow = true
}
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,650 @@
<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="wui-form-list">
<view class="wui-form-title">
<text>{{pd.HIDDENDESCR}}</text>
</view>
<view class="cu-form-group">
<view class="title">隐患来源</view>
<view>
<text v-if="pd.SOURCE=='1'"></text>
<text v-if="pd.SOURCE=='2'"></text>
<text v-if="pd.SOURCE=='3'"></text>
</view>
</view>
<view class="cu-form-group" v-if="pd.SOURCE==2">
<view class="title">
<text>检查类别</text>
</view>
<view>
<text>{{pd.RISK_UNIT}}</text>
</view>
</view>
<view class="cu-form-group bb-default" v-if="pd.SOURCE==2">
<view class="title">
<text>辨识部位</text>
</view>
<view>
<text>{{pd.IDENTIFICATION}}</text>
</view>
</view>
<view class="cu-form-textarea" v-if="pd.SOURCE==2">
<view class="title">
<text>存在风险</text>
</view>
<view class="cu-form-p">
<text>{{pd.RISK_DESCR}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.SOURCE==2">
<view class="title">
<text>风险分级</text>
</view>
<view>
<text>{{pd.LEVEL}}</text>
</view>
</view>
<view class="cu-form-textarea" v-if="pd.SOURCE==2">
<view class="title">
<text>检查内容</text>
</view>
<view class="cu-form-p">
<text>{{pd.CHECK_CONTENT}}</text>
</view>
</view>
<!-- <view class="cu-form-textarea">
<view class="title">
<text>隐患描述</text>
</view>
<view class="cu-form-p">
<text>{{pd.HIDDENDESCR}}</text>
</view>
</view> -->
<view class="cu-form-group">
<view class="title">
<text>隐患部位</text>
</view>
<view>
<text>{{pd.HIDDENPART}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>发现人</text>
</view>
<view>
<text>{{pd.CREATORNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>发现时间</text>
</view>
<view>
<text>{{pd.CREATTIME}}</text>
</view>
</view>
<view v-if="pd.HIDDEN_CATEGORY && pd.HIDDEN_CATEGORY !== ''" class="cu-form-group">
<view class="title">
<text>隐患类别</text>
</view>
<view>
<text>{{pd.HIDDEN_CATEGORY_NAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>隐患类型</text>
</view>
<view>
<text>{{pd.HIDDENTYPE_NAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改类型</text>
</view>
<view>
<text v-if="pd.RECTIFICATIONTYPE=='1'"></text>
<text v-else-if="pd.RECTIFICATIONTYPE=='2'">限期整改</text>
</view>
</view>
<view v-if="pd.RECTIFICATIONTYPE=='2'" class="cu-form-group bb-default">
<view class="title">
<text>整改期限</text>
</view>
<view>
<text>{{pd.RECTIFICATIONDEADLINE}}</text>
</view>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>隐患照片</text>
</view>
<view class="cu-form-p">
<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="videoList.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 + videoList[0].FILEPATH"
style="width: 120upx;height: 120upx;"></image>
</view>
</view>
</view>
<view v-if="pd.REJECTREASON" class="wui-form-list">
<view class="wui-sub-title">
<text>隐患复查</text>
</view>
<view class="cu-form-group">
<view class="title">
<text>复查驳回原因</text>
</view>
<view>
<text>{{pd.REJECTREASON}}</text>
</view>
</view>
</view>
<view v-if="pd.STATE>=2 && pd.STATE<=4" class="wui-form-list">
<view class="wui-sub-title">
<text>整改信息</text>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>整改描述</text>
</view>
<view class="cu-form-p">
<text>{{pd.RECTIFYDESCR}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改部门</text>
</view>
<view>
<text>{{pd.RECTIFICATIONDEPTNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改人</text>
</view>
<view>
<text>{{pd.RECTIFICATIONORNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改时间</text>
</view>
<view>
<text>{{pd.RECTIFICATIONTIME}}</text>
</view>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>整改后图片</text>
</view>
<view class="cu-form-p">
<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="ViewShowImage2"
mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>整改方案</text>
</view>
<view>
<text v-if="pd.HAVESCHEME==0"></text>
<text v-else-if="pd.HAVESCHEME==1"></text>
<text v-else></text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>排查日期</text>
</view>
<view>
<text>{{hs.SCREENINGDATE}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>隐患清单</text>
</view>
<view>
<text>{{hs.CUSTOM_NAME}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>治理标准要求</text>
</view>
<view>
<text>{{hs.GOVERNSTANDARDS}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>治理方法</text>
</view>
<view>
<text>{{hs.GOVERNMETHOD}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>经费和物资的落实</text>
</view>
<view>
<text>{{hs.EXPENDITURE}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>负责治理人员</text>
</view>
<view>
<text>{{hs.PRINCIPAL}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>工时安排</text>
</view>
<view>
<text>{{hs.PROGRAMMING}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>时限要求</text>
</view>
<view>
<text>{{hs.TIMELIMITFOR}}</text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>应急预案附件</text>
</view>
<view>
<text @click="$noMultipleClicks(goToOpen,baseImgPath+hs.FILEPATH)"></text>
</view>
</view>
<view class="cu-form-group" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>工作要求</text>
</view>
<view>
<text>{{hs.JOBREQUIREMENT}}</text>
</view>
</view>
<view class="cu-form-group bb-default" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>其他事项</text>
</view>
<view>
<text>{{hs.OTHERBUSINESS}}</text>
</view>
</view>
<view class="cu-form-textarea" v-if="pd.HAVESCHEME==1">
<view class="title">
<text>方案图片</text>
</view>
<view class="cu-form-p">
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
<view class="cu-item" v-for="(item,index) in files4" v-bind:key="index">
<view class="imgs">
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage4"
mode=""></image>
</view>
</view>
</scroll-view>
</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.HAVEPLAN==0" class="text-semi"></text>
<text v-else-if="pd.HAVEPLAN==1" class="text-semi"></text>
<text v-else class="text-semi"></text>
</view>
</view>
<view class="de-item-sp" v-if="pd.HAVEPLAN==1">
<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 files5" v-bind:key="index">
<view class="imgs">
<image :src="baseImgPath+item.FILEPATH" :data-index="index" @click="ViewShowImage4" mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
<view v-show="pd.STATE==4" class="wui-form-list" v-for="(item,index) of checkList" :key="index"
:data-id="item.HIDDENCHECK_ID">
<view class="wui-sub-title">
<text>验收信息</text>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>验收描述</text>
</view>
<view class="cu-form-p">
<text>{{item.CHECKDESCR}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>是否合格</text>
</view>
<view>
<text v-if="item.STATUS=='1'"></text>
<text v-else-if="item.STATUS=='0'"></text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>验收部门</text>
</view>
<view>
<text>{{item.CHECKDEPTNAME}}</text>
</view>
</view>
<view class="cu-form-group">
<view class="title">
<text>验收部门负责人</text>
</view>
<view>
<text>{{item.CHECKORNAME}}</text>
</view>
</view>
<view class="cu-form-group bb-default">
<view class="title">
<text>验收时间</text>
</view>
<view>
<text>{{item.CHECK_TIME}}</text>
</view>
</view>
<view class="cu-form-textarea">
<view class="title">
<text>验收图片</text>
</view>
<view class="cu-form-p">
<scroll-view scroll-x class="bg-white nav" scroll-with-animation>
<view class="cu-item" v-for="(item1,index1) in item.cImgs" v-bind:key="index1">
<view class="imgs">
<image :src="baseImgPath+item1.FILEPATH" :data-index="index1"
@click="ViewShowImages(item.cImgs,index1)" mode=""></image>
</view>
</view>
</scroll-view>
</view>
</view>
</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" @fullscreenchange="fullScreenHandler"></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
} from '@/common/tool.js';
export default {
data() {
return {
noClick: true,
date: '',
RECTIFICATIONTIME: '',
imgList: [],
id: '',
pd: [],
hs: [],
files: [],
files2: [],
files3: [],
files4: [],
files5: [],
videoList: [],
checkList: [],
CHECKDESCR: '',
basePath: basePath,
baseImgPath: baseImgPath,
ISQUALIFIED: '1',
modalShow: false,
videoSrc: '',
}
},
onLoad(e) {
this.id = e.id;
// let now = new Date();
// this.date = formatDate(now, 'yyyy-MM-dd');
this.getData();
},
// filters: {
// formatDate(time) {
// time = time * 1
// let date = new Date(time)
// return formatDate(date, 'yyyy-MM-dd hh:mm')
// }
// },
methods: {
fullScreenHandler(e) {
if (uni.getSystemInfoSync().platform == "ios") { return }
},
getData() {
var _this = this;
uni.showLoading({
title: '请稍候'
})
uni.request({
url: basePath + '/app/customHidden/goEdit', // /app/hidden/goEdit
method: 'POST',
dataType: 'json',
header: {
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
HIDDEN_ID: _this.id,
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
_this.hs = res.data.hs; //map
for (let i = 0; i < res.data.hImgs.length; i++) {
if(res.data.hImgs[i].FILEPATH.substring(res.data.hImgs[i].FILEPATH.lastIndexOf(".") + 1, res.data.hImgs[i].FILEPATH.length) === 'mp4'){
_this.videoList.push(res.data.hImgs[i])
}else {
_this.files.push(res.data.hImgs[i])
}
}
// _this.files = res.data.hImgs;
_this.files2 = res.data.rImgs;
//_this.files3 = res.data.cImgs;
_this.files4 = res.data.sImgs;
_this.files5 = res.data.pImgs;
_this.checkList = res.data.checkList;
} else if ("exception" == data.result) {
uni.showToast({
title: '错误',
duration: 2000
});
}
}
});
},
//
ChooseImage() {
var _this = this;
uni.chooseImage({
count: 4, //9
sizeType: ['original', 'compressed'], //
sourceType: ['camera', 'album'], //
success: (res) => {
if (this.imgList.length != 0) {
this.imgList = this.imgList.concat(res.tempFilePaths)
} else {
this.imgList = res.tempFilePaths
}
}
});
},
ViewImage(e) {
uni.previewImage({
urls: this.imgList,
current: e.currentTarget.dataset.url
});
},
DelImg(e) {
uni.showModal({
title: '双控平台',
content: '确定要删除这张图片吗?',
cancelColor: "#000000",
cancelText: '取消',
confirmText: '确定',
success: res => {
if (res.confirm) {
this.imgList.splice(e.currentTarget.dataset.index, 1)
}
}
})
},
textareaAInput(e) {
this.CHECKDESCR = e.detail.value
},
changeDate(e) {
this.RECTIFICATIONTIME = e.detail.value
},
radio(e) {
this.ISQUALIFIED = e
},
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
});
},
ViewShowImage2(e) {
let files = [];
for (var i = 0; i < this.files2.length; i++) {
files.push(baseImgPath + this.files2[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.index
});
},
ViewShowImage3(e) {
let files = [];
for (var i = 0; i < this.files3.length; i++) {
files.push(baseImgPath + this.files3[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.index
});
},
ViewShowImage4(e) {
let files = [];
for (var i = 0; i < this.files4.length; i++) {
files.push(baseImgPath + this.files4[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: e.currentTarget.dataset.index
});
},
ViewShowImages(imgs, index) {
let files = [];
for (var i = 0; i < imgs.length; i++) {
files.push(baseImgPath + imgs[i].FILEPATH)
}
uni.previewImage({
urls: files,
current: index
});
},
goToOpen(e) {
var url = e;
plus.runtime.openURL(url, function(res) {
console.log(res);
});
// uni.navigateTo({
// url: '/pages/application/safety-production-account/organization-personnel/web-view?link=' + url
// });
},
playVideo(e) {
this.videoSrc = e.currentTarget.dataset.src
this.modalShow = true
}
}
}
</script>
<style>
</style>

View File

@ -42,6 +42,13 @@
<tki-tree ref="tkiTree1" :selectParent=true :range="treeNode" rangeKey="name"
@confirm="depttreeConfirm1" @cancel="depttreeCancel1"></tki-tree>
</view>
<view class="padding-sm bb-default">
隐患级别
</view>
<view class="flex margin-top-xs sr-s">
<view class="cu-btn radiued margin-xs" :class="HIDDEN_RISKSTANDARD=='1'?'bg-blue':'line-blue'" @click="changeRiskStandard('1')"></view>
<view class="cu-btn radiued margin-xs" :class="HIDDEN_RISKSTANDARD=='2'?'bg-blue':'line-blue'" @click="changeRiskStandard('2')"></view>
</view>
<view class="padding-sm bb-default">
隐患级别
</view>
@ -104,17 +111,19 @@
</view>
<scroll-view class="dy-scroll" @scrolltolower="scrolltolower" scroll-y :style="'top:'+sTop+'px;height:calc(100vh - '+totalHeight+'px)'">
<view v-if="total>0" class="dy-list">
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item.HIDDEN_ID)">
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,{HIDDEN_ID: item.HIDDEN_ID, HIDDEN_RISKSTANDARD: item.HIDDEN_RISKSTANDARD})">
<view class="dy-title-flex">
<text v-if="item.HIDDENDESCR">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-else></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light" >{{item.HIDDENLEVELNAME}}</text>
</view>
<view class="dy-subtitle">
<view class="dy-subtitle-flex">
<text v-if="item.HIDDEN_RISKSTANDARD=='1'"></text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='2'">隐患排查清单检查</text>
<text v-if="item.SOURCE=='1'"></text>
<text v-else-if="item.SOURCE=='2'">来源隐患排查</text>
<text v-else-if="item.SOURCE=='3'">来源隐患排查</text>
<text v-else-if="item.SOURCE=='2'">来源清单排查</text>
<text v-else-if="item.SOURCE=='3'">来源清单排查</text>
</view>
<view class="dy-subtitle-flex">
<text>整改人{{item.RECTIFICATIONORNAME?item.RECTIFICATIONORNAME:'暂无'}}</text>
@ -166,6 +175,7 @@
initflag:false,
name:'',
HIDDENLEVEL:"",
HIDDEN_RISKSTANDARD: '',
STATE:'',
treeNode: [],
DEPT: '',
@ -210,7 +220,7 @@
});
let DISPOSESTATE = 2;
uni.request({
url: basePath + '/app/hidden/list',
url: basePath + '/app/hidden/listRiskStandard', // /app/hidden/list
method: 'POST',
dataType: 'json',
header:{
@ -225,14 +235,15 @@
STARTTIME:_this.starDate,
ENDTIME:_this.endDate,
HIDDENLEVEL:_this.HIDDENLEVEL,
HIDDEN_RISKSTANDARD: _this.HIDDEN_RISKSTANDARD,
STATE:_this.STATE,
DEPARTMENT_ID : _this.DEPT,
RECTIFICATIONDEPT : _this.RECTIFICATIONDEPT,
RECTIFICATIONDEPT : _this.RECTIFICATIONDEPT,
USERDEPT:loginUser.DEPARTMENT_ID,
SELFUSERID:loginUserId,
HIDDENDESCR:_this.name,
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID,
},
success: (res) => {
// console.info(res.data);
@ -266,6 +277,11 @@
this.endDate = e.detail.value
this.getQuery();
},
changeRiskStandard(e) {
var _this=this;
_this.HIDDEN_RISKSTANDARD = e
_this.getQuery();
},
changeLevel(e) {
var _this=this;
_this.HIDDENLEVEL = e
@ -349,9 +365,15 @@
},
//
gotRectify(e) {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id='+e,
});
if (e.HIDDEN_RISKSTANDARD === '1') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
});
} else if (e.HIDDEN_RISKSTANDARD === '2') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-standard-detail?id='+e.HIDDEN_ID,
});
}
},
//
gotReview(e) {