所有节点:

主要安全措施页面样式修改
接收交底人,安全交底人选多个时逻辑修改
动火申请页面动火操作人图片不能删除逻辑修改
动火申请暂存页面图片不能删除,不能上传逻辑修改
接收交底人,完工审核添加多张签字图片逻辑修改
bug优化0603
WenShiJun 2024-06-19 17:21:42 +08:00
parent d4066b46fe
commit 09705fa5c4
19 changed files with 788 additions and 290 deletions

View File

@ -187,6 +187,11 @@
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.MONITOR_USER_MEASURES"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -260,15 +265,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -596,9 +601,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
<view class="cu-form-group">
@ -682,7 +692,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -799,8 +810,22 @@
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
console.log(res.data.pd,'1111111111111111111111111')
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
if (res.data.pd.confessList && res.data.pd.confessList.length > 0) {
_this.pd.APPROVAL_SIGNATURE = res.data.pd.confessList[0].APPROVAL_SIGNATURE;
}
@ -815,6 +840,9 @@
})
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -159,6 +159,11 @@
<!-- <text>{{ item.USER_NAME }}</text>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -243,15 +248,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -473,7 +478,8 @@ export default {
FIRE_COMPLETED: '0',
SITE_CLEANED: '0',
NO_REMAINING_EMBERS: '0',
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},
measuresList: [],
gasList: [],
@ -595,6 +601,10 @@ export default {
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []

View File

@ -179,8 +179,8 @@
</view>
</view>
</view>
<view v-if="pd.confessList && pd.confessList.length > 0 && pd.confessList.length !== pd.confessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.confessList" >
<view v-if="pd.confessList && pd.confessList.length > 0">
<view v-for="(item,index) in pd.confessList" v-if="item.APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">安全交底人</view>
@ -193,16 +193,16 @@
</view>
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0">
<view v-for="(item, index) in pd.acceptConfessList" v-if="item.APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -322,9 +322,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
@ -500,7 +505,7 @@
onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID;
if(this.pd.HOTWORK_ID){
if(this.pd.HOTWORK_ID){
this.msg="edit";
this.getData();
}else {
@ -515,7 +520,6 @@
this.getDept();
this.getLimitSpace();
loginSession();
},
methods: {
//
@ -544,6 +548,17 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
_this.pd = Object.assign(_this.pd,
{
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0]
@ -557,6 +572,11 @@
_this.pd.ACCEPT_CONFESS_USER_SIGNER_PATH = _this.pd.acceptConfessList[i].ACCEPT_CONFESS_USER_SIGNER_PATH;
_this.pd.ACCEPT_CONFESS_USER_NAME = _this.pd.acceptConfessList[i].ACCEPT_CONFESS_USER_NAME;
_this.pd.ACCEPT_CONFESS_USER_SIGNER_TIME = _this.pd.acceptConfessList[i].CREATE_TIME;
// ACCEPT_CONFESS_USER_SIGNER_PATHimgList
// _this.imgList = _this.pd.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';').map(path => ({
// filePath: _this.baseImgPath + path.trim()
// }));
break;
}
}
@ -589,9 +609,8 @@
current: 0
});
},
goSubmit(){
var _this = this;
let required = true
goSubmit() {
var _this = this;
if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
uni.showToast({
icon: 'none',
@ -600,54 +619,128 @@
});
return;
}
uni.showLoading({
title: '请稍候'
})
if (_this.imgList.length <= 0) {
uni.showToast({
icon: 'none',
title: '请签字',
duration: 1500
});
return;
}
// var fileList = [];
// var signtime = [];
const formData={}
Object.keys(this.pd).map(key => {
formData[key]=this.pd[key]
})
// this.uploadImgFaults(fileList,signtime)
// formData.SIGNTIME = signtime.join(",")
formData.CREATOR=loginUser.USER_ID
formData.OPERATOR=loginUser.USER_ID
formData.ACTION_USER=loginUser.NAME
formData.CORPINFO_ID = loginUser.CORPINFO_ID
formData.USER_ID = loginUser.USER_ID
uni.uploadFile({
url: basePath+'/app/hotwork/cfd/editAcceptconfess',
// files: fileList,
filePath: _this.imgList[0].filePath,
name: 'FFILE',
formData: formData,
success: (res) => {
uni.showToast({
icon:'none',
title: '保存成功',
duration: 2000
});
_this.goback()
},
fail: (err) => {
uni.hideLoading();
uni.showModal({
content: err.errMsg,
showCancel: false
});
}
})
},
if (_this.imgList.length <= 0) {
uni.showToast({
icon: 'none',
title: '请签字',
duration: 1500
});
return;
}
uni.showLoading({
title: '请稍候'
});
const formData = {};
Object.keys(this.pd).map(key => {
formData[key] = this.pd[key];
});
formData.CREATOR = loginUser.USER_ID;
formData.OPERATOR = loginUser.USER_ID;
formData.ACTION_USER = loginUser.NAME;
formData.CORPINFO_ID = loginUser.CORPINFO_ID;
formData.USER_ID = loginUser.USER_ID;
const files = _this.imgList.map((img, index) => {
return {
name: 'FFILE',
uri: img.filePath
};
});
uni.uploadFile({
url: basePath + '/app/hotwork/cfd/editAcceptconfess',
files: files,
formData: formData,
success: (uploadFileRes) => {
const responseData = JSON.parse(uploadFileRes.data);
if (responseData.result === 'success') {
uni.hideLoading();
uni.showToast({
icon: 'none',
title: '保存成功',
duration: 2000
});
_this.imgList = [];
_this.goback();
} else {
uni.hideLoading();
uni.showModal({
content: responseData.message,
showCancel: false
});
}
},
fail: (err) => {
uni.hideLoading();
uni.showModal({
content: err.errMsg,
showCancel: false
});
}
});
},
// goSubmit(){
// var _this = this;
// let required = true
// if (_this.pd.safetyList && _this.pd.safetyList.some(item => item.APPROVAL_STATUS === '0')) {
// uni.showToast({
// icon: 'none',
// title: '',
// duration: 2000
// });
// return;
// }
// uni.showLoading({
// title: ''
// })
//
// if (_this.imgList.length <= 0) {
// uni.showToast({
// icon: 'none',
// title: '',
// duration: 1500
// });
// return;
// }
// // var fileList = [];
// // var signtime = [];
// const formData={}
// Object.keys(this.pd).map(key => {
// formData[key]=this.pd[key]
// })
// // this.uploadImgFaults(fileList,signtime)
// // formData.SIGNTIME = signtime.join(",")
// formData.CREATOR=loginUser.USER_ID
// formData.OPERATOR=loginUser.USER_ID
// formData.ACTION_USER=loginUser.NAME
// formData.CORPINFO_ID = loginUser.CORPINFO_ID
// formData.USER_ID = loginUser.USER_ID
// uni.uploadFile({
// url: basePath+'/app/hotwork/cfd/editAcceptconfess',
// // files: fileList,
// filePath: _this.imgList[0].filePath,
// name: 'FFILE',
// formData: formData,
// success: (res) => {
// uni.showToast({
// icon:'none',
// title: '',
// duration: 2000
// });
// _this.goback()
// },
// fail: (err) => {
// uni.hideLoading();
// uni.showModal({
// content: err.errMsg,
// showCancel: false
// });
// }
// })
// },
// uploadImgFaults(fileList,signtime) {
// this.imgList.map(item => {
// var img = {}

View File

@ -117,9 +117,9 @@
<view class="cu-form-group" style="padding-top:20upx">
<view class="grid col-4 grid-square flex-sub">
<view class="bg-img" v-for="(item,index) in pd.dongHuoCaoZuoRenPic" :key="index" @tap="ViewImage"
:data-url="pd.dongHuoCaoZuoRenPic[index]">
<image :src="pd.dongHuoCaoZuoRenPic[index]" mode="aspectFill"></image>
<view class="cu-tag bg-red" @tap.stop="DelImg1" :data-index="index" v-if="!forbidEdit">
:data-url="pd.dongHuoCaoZuoRenPic[index].FILEPATH">
<image :src="pd.dongHuoCaoZuoRenPic[index].FILEPATH" mode="aspectFill"></image>
<view class="cu-tag bg-red" @tap.stop="DelImg1(index)" :data-index="index" v-if="!forbidEdit">
<text class='cuIcon-close'></text>
</view>
</view>
@ -838,7 +838,7 @@ export default {
WORK_LONGITUDE: '',
WORK_LATITUDE: '',
ACCEPT_CONFESS_USER_ID: '',
dongHuoCaoZuoRenPic: []
dongHuoCaoZuoRenPic: [],
},//
measuresList: [],
rules: [
@ -992,6 +992,7 @@ export default {
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
_this.pd.dongHuoCaoZuoRenPic = _this.pd.dongHuoCaoZuoRenPic || [];
_this.pd = Object.assign(_this.pd,
{
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0],
@ -1012,7 +1013,10 @@ export default {
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []
for (let i = 0; i < dongHuoCaoZuoRenPic.length; i++) {
_this.pd.dongHuoCaoZuoRenPic.push(baseImgPath + dongHuoCaoZuoRenPic[i].FILEPATH)
_this.pd.dongHuoCaoZuoRenPic.push({
...dongHuoCaoZuoRenPic[i],
FILEPATH:baseImgPath + dongHuoCaoZuoRenPic[i].FILEPATH,
})
}
}
if (_this.pd.APPLY_STATUS <= 0) {
@ -1069,21 +1073,21 @@ export default {
},
goSubmit(STATUS) {
var _this = this;
let required = true
let required = true;
uni.showLoading({
title: '请稍候'
})
});
if (STATUS === '1') {
this.rules.map(({name, message}) => {
this.rules.map(({ name, message }) => {
if (!this.pd[name]) {
uni.showToast({
icon: 'none',
title: message,
duration: 1500
});
required = false
required = false;
}
})
});
if (this.pd.WORK_LEVEL != '二级') {
if (!this.pd.AUDIT_USER_ID) {
uni.showToast({
@ -1091,7 +1095,7 @@ export default {
title: '请选择安全管理部门负责人',
duration: 1500
});
required = false
required = false;
}
}
if (this.pd.WORK_LEVEL != '二级' && this.pd.WORK_LEVEL != '一级') {
@ -1101,7 +1105,7 @@ export default {
title: '请选择动火审批负责人',
duration: 1500
});
required = false
required = false;
}
}
if (this.pd.WORK_LEVEL == '特级' || this.pd.WORK_LEVEL == '一级') {
@ -1111,7 +1115,7 @@ export default {
title: '动火级别为特级或一级时动火作业开始时间与结束时间应不超过8小时请重新选择',
duration: 1500
});
required = false
required = false;
}
}
if (new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() <= 0) {
@ -1120,7 +1124,7 @@ export default {
title: '作业开始时间不能晚于或等于结束时间,请重新选择',
duration: 1500
});
required = false
required = false;
}
if (this.pd.WORK_LEVEL == '二级') {
if (new Date(this.pd.WORK_END_DATE).getTime() - new Date(this.pd.WORK_START_DATE).getTime() >= 259200000) {
@ -1129,7 +1133,7 @@ export default {
title: '动火级别为二级时动火作业开始时间与结束时间应不超过72小时请重新选择',
duration: 1500
});
required = false
required = false;
}
}
for (let i = 0; i < this.confessList.length; i++) {
@ -1139,7 +1143,7 @@ export default {
title: '请选择安全交底人',
duration: 1500
});
required = false
required = false;
}
}
for (let i = 0; i < this.acceptconfessList.length; i++) {
@ -1149,7 +1153,7 @@ export default {
title: '请选择接受交底人',
duration: 1500
});
required = false
required = false;
}
}
if (this.pd.dongHuoCaoZuoRenPic.length <= 0) {
@ -1158,36 +1162,35 @@ export default {
title: '请上传动火操作人图片',
duration: 1500
});
required = false
required = false;
}
if (!required) {
return
return;
}
//
for (let i = 0; i < this.confessList.length; i++) {
this.confessList[i].confessUserList = []
this.confessList[i].confessUserList = [];
}
for (let i = 0; i < this.acceptconfessList.length; i++) {
this.acceptconfessList[i].acceptconfessUserList = []
this.acceptconfessList[i].acceptconfessUserList = [];
}
}
const formData = {}
const formData = {};
Object.keys(this.pd).map(key => {
formData[key] = this.pd[key]
})
formData.CORPINFO_ID = corpinfoId
formData.CREATOR = loginUser.USER_ID
formData.OPERATOR = loginUser.USER_ID
formData.ACTION_USER = loginUser.NAME
formData.APPLY_STATUS = STATUS
formData.WORK_LONGITUDE = this.pd.WORK_LONGITUDE
formData.WORK_LATITUDE = this.pd.WORK_LATITUDE
formData.dongHuoCaoZuoRenPic = this.pd.dongHuoCaoZuoRenPic
formData.CORPINFO_ID = loginUser.CORPINFO_ID
formData.USER_ID = loginUser.USER_ID
formData.confessList = JSON.stringify(this.confessList)
formData.acceptconfessList = JSON.stringify(this.acceptconfessList)
this.buttonloading = true
formData[key] = this.pd[key];
});
formData.CORPINFO_ID = corpinfoId;
formData.CREATOR = loginUser.USER_ID;
formData.OPERATOR = loginUser.USER_ID;
formData.ACTION_USER = loginUser.NAME;
formData.APPLY_STATUS = STATUS;
formData.WORK_LONGITUDE = this.pd.WORK_LONGITUDE;
formData.WORK_LATITUDE = this.pd.WORK_LATITUDE;
formData.CORPINFO_ID = loginUser.CORPINFO_ID;
formData.USER_ID = loginUser.USER_ID;
formData.confessList = JSON.stringify(this.confessList);
formData.acceptconfessList = JSON.stringify(this.acceptconfessList);
this.buttonloading = true;
uni.request({
url: basePath + "/app/hotwork/cfd/" + _this.msg,
method: 'POST',
@ -1203,9 +1206,12 @@ export default {
success: (res) => {
if (res.data.result == 'success') {
for (let i = 0; i < this.pd.dongHuoCaoZuoRenPic.length; i++) {
const filePath = this.pd.dongHuoCaoZuoRenPic[i].IMGFILES_ID
? this.pd.dongHuoCaoZuoRenPic[i].FILEPATH
: this.pd.dongHuoCaoZuoRenPic[i];
uni.uploadFile({
url: basePath + "/app/hotwork/cfd/uploadImg",
filePath: this.pd.dongHuoCaoZuoRenPic[i],
filePath: filePath,
name: 'FFILE',
formData: {
HOTWORK_ID: res.data.HOTWORK_ID
@ -1217,8 +1223,8 @@ export default {
title: '提交成功',
duration: 1500
});
_this.goback()
this.buttonloading = false
_this.goback();
this.buttonloading = false;
}
},
fail: (err) => {
@ -1228,15 +1234,15 @@ export default {
showCancel: false
});
}
})
});
}
}else{
} else {
uni.hideLoading();
uni.showToast({
title: res.data.message,
duration: 1500
});
this.buttonloading = false
this.buttonloading = false;
}
},
fail: (err) => {
@ -1246,7 +1252,7 @@ export default {
showCancel: false
});
}
})
});
},
//
getLimitSpace() {
@ -1889,25 +1895,36 @@ export default {
ChooseImage() {
var _this = this;
uni.chooseImage({
count: 4, //9
sizeType: ['original', 'compressed'], //
sourceType: ['camera', 'album'], //
count: 4, //
sizeType: ['original', 'compressed'], //
sourceType: ['camera', 'album'], //
success: (res) => {
if (this.pd.dongHuoCaoZuoRenPic.length !== 0) {
this.pd.dongHuoCaoZuoRenPic = this.pd.dongHuoCaoZuoRenPic.concat(res.tempFilePaths)
} else {
this.pd.dongHuoCaoZuoRenPic = res.tempFilePaths
}
const tempFilePaths = res.tempFilePaths;
//
_this.pd.dongHuoCaoZuoRenPic = _this.pd.dongHuoCaoZuoRenPic.concat(tempFilePaths);
console.log("选择图片路径:", tempFilePaths)
console.log("3333333333333333", _this.pd.dongHuoCaoZuoRenPic)
//
_this.$forceUpdate();
},
fail: (err) => {
console.error("图片选择失败:", err);
}
});
},
ViewImage(e) {
const urls = []
console.log("图片路径:", this.pd.dongHuoCaoZuoRenPic)
for (let i = 0; i < this.pd.dongHuoCaoZuoRenPic.length; i++) {
urls.push(this.pd.dongHuoCaoZuoRenPic[i].FILEPATH)
}
uni.previewImage({
urls: this.pd.dongHuoCaoZuoRenPic,
urls,
current: e.currentTarget.dataset.url
});
},
DelImg1(e) {
DelImg1(index) {
var _this = this;
uni.showModal({
title: '双控平台',
content: '确定要删除这张图片吗?',
@ -1916,10 +1933,66 @@ export default {
confirmText: '确定',
success: res => {
if (res.confirm) {
this.form.imgList.splice(e.currentTarget.dataset.index, 1)
if (_this.pd.dongHuoCaoZuoRenPic && _this.pd.dongHuoCaoZuoRenPic[index]) {
//
let imgInfo = _this.pd.dongHuoCaoZuoRenPic[index];
// IMGFILES_ID
if (imgInfo.IMGFILES_ID) {
uni.showLoading({
title: '处理中'
});
uni.request({
url: basePath + '/app/hotwork/cfd/delImg',
method: 'POST',
dataType: 'json',
header: {
'Content-type': 'application/x-www-form-urlencoded'
},
data: {
IMGFILES_ID: imgInfo.IMGFILES_ID,
FILEPATH: imgInfo.FILEPATH
},
success: (res) => {
uni.hideLoading();
if (res.data.result === 'success') {
uni.showToast({
icon: 'none',
title: '删除成功',
duration: 1500
});
_this.pd.dongHuoCaoZuoRenPic.splice(index, 1);
_this.$forceUpdate(); //
} else {
uni.showToast({
icon: 'none',
title: res.data.message,
duration: 2000
});
}
},
fail: (err) => {
uni.hideLoading();
uni.showModal({
content: err.errMsg,
showCancel: false
});
}
});
} else {
// IMGFILES_ID
_this.pd.dongHuoCaoZuoRenPic.splice(index, 1);
uni.showToast({
icon: 'none',
title: '删除成功',
duration: 1500
});
_this.$forceUpdate(); //
}
}
}
}
})
});
},
// 2024-01-31 created by liu jun description:
addConfessUser(){

View File

@ -181,11 +181,16 @@
</uni-table>
</view>
<view v-if="pd.APPLY_STATUS && pd.APPLY_STATUS!=0 && pd.APPLY_STATUS!=1">
<view class="cu-form-textarea">
<view class="cu-form-title">其他安全措施</view>
<view>
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.AUDIT_USER_MEASURES"></textarea>
</view>
<!-- <view class="cu-form-textarea">-->
<!-- <view class="cu-form-title">其他安全措施</view>-->
<!-- <view>-->
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.AUDIT_USER_MEASURES"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
@ -222,6 +227,11 @@
<!-- 审批人</text>-->
<!-- <text>{{ pd.APPROVE_USER_MEASURES}}</text>-->
<!-- </view>-->
<view v-if="pd.AUDIT_USER_MEASURES" class="ty-group">
<text class="title">
动火审批人</text>
<text>{{ pd.AUDIT_USER_MEASURES}}</text>
</view>
<view v-if="pd.APPROVE_USER_MEASURES" class="ty-group">
<text class="title">
动火前验票</text>
@ -261,15 +271,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -597,9 +607,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
<view class="cu-form-group">
@ -683,7 +698,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -801,6 +817,21 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
if (res.data.pd.confessList && res.data.pd.confessList.length > 0) {
_this.pd.APPROVAL_SIGNATURE = res.data.pd.confessList[0].APPROVAL_SIGNATURE;
}
@ -815,6 +846,9 @@
})
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -167,6 +167,11 @@
<!-- <text>{{ item.USER_NAME }}</text>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -250,15 +255,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -292,17 +297,18 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
</view>
</view>
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view>
@ -418,7 +424,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -524,6 +531,11 @@
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []

View File

@ -181,11 +181,16 @@
</uni-table>
</view>
<view v-if="pd.APPLY_STATUS && pd.APPLY_STATUS!=0 && pd.APPLY_STATUS!=1">
<view class="cu-form-textarea">
<view class="cu-form-title">其他安全措施</view>
<view>
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.LEADER_USER_MEASURES"></textarea>
</view>
<!-- <view class="cu-form-textarea">-->
<!-- <view class="cu-form-title">其他安全措施</view>-->
<!-- <view>-->
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.LEADER_USER_MEASURES"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
@ -202,6 +207,11 @@
属地监管单位</text>
<text>{{ pd.GUARDIAN_USER_MEASURES}}</text>
</view>
<view v-if="pd.LEADER_USER_MEASURES" class="ty-group">
<text class="title">
安全管理部门</text>
<text>{{ pd.LEADER_USER_MEASURES}}</text>
</view>
<!-- <view v-if="pd.GUARDIAN_USER_MEASURES" class="ty-group">-->
<!-- <text class="title">-->
<!-- 监护人</text>-->
@ -255,15 +265,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -591,9 +601,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
<view class="cu-form-group">
@ -677,7 +692,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -795,6 +811,21 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
if (res.data.pd.confessList && res.data.pd.confessList.length > 0) {
_this.pd.APPROVAL_SIGNATURE = res.data.pd.confessList[0].APPROVAL_SIGNATURE;
}
@ -809,6 +840,9 @@
})
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -190,6 +190,11 @@
<!-- <text>{{ item.USER_NAME }}</text>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -274,15 +279,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -341,17 +346,18 @@
<!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>-->
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
</view>
</view>
<view>
<view class="cu-form-textarea" style="border: none;">
@ -456,7 +462,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -561,6 +568,10 @@
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []

View File

@ -222,8 +222,8 @@
</view>
</view>
</view>
<view v-if="pd.confessList && pd.confessList.length > 0 && pd.confessList.length !== pd.confessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.confessList" >
<view v-if="pd.confessList && pd.confessList.length > 0">
<view v-for="(item,index) in pd.confessList" v-if="item.APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">安全交底人</view>
@ -236,16 +236,16 @@
</view>
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0">
<view v-for="(item, index) in pd.acceptConfessList" v-if="item.APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -388,9 +388,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
@ -608,8 +613,19 @@
success: (res) => {
if ("success" == res.data.result) {
uni.hideLoading();
console.log(res.data.pd,'11111111111111')
console.log(res.data.pd,'111111111111111111111111')
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
_this.pd = Object.assign(_this.pd,
{
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0]
@ -617,6 +633,7 @@
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.files = res.data.imgList;
_this.measuresList = res.data.measuresList
if (_this.pd.confessList && _this.pd.confessList.length > 0) {
for (let i = 0; i < _this.pd.confessList.length; i++) {
if (_this.pd.confessList[i].APPROVAL_SIGNATURE) {

View File

@ -181,17 +181,22 @@
</uni-table>
</view>
<view v-if="pd.APPLY_STATUS && pd.APPLY_STATUS!=0 && pd.APPLY_STATUS!=1">
<view class="cu-form-textarea">
<view class="cu-form-title">其他安全措施</view>
<view>
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.CONFIRM_OTHER_CONTENT"></textarea>
</view>
</view>
<!-- <view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">-->
<!-- <text class="title">-->
<!-- 作业负责人</text>-->
<!-- <text>{{ pd.CONFIRM_OTHER_CONTENT}}</text>-->
<!-- <view class="cu-form-textarea">-->
<!-- <view class="cu-form-title">其他安全措施</view>-->
<!-- <view>-->
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.CONFIRM_OTHER_CONTENT"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
<text>{{ pd.CONFIRM_OTHER_CONTENT}}</text>
</view>
<view v-if="pd.BELONGING_USER_MEASURES" class="ty-group">
<text class="title">
项目责任负责人</text>
@ -250,15 +255,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -582,9 +587,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
<view class="cu-form-group">
@ -668,7 +678,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -785,6 +796,21 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
if (res.data.pd.confessList && res.data.pd.confessList.length > 0) {
_this.pd.APPROVAL_SIGNATURE = res.data.pd.confessList[0].APPROVAL_SIGNATURE;
}
@ -799,6 +825,9 @@
})
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -162,6 +162,11 @@
<!-- 作业负责人</text>-->
<!-- <text>{{ pd.CONFIRM_OTHER_CONTENT}}</text>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.BELONGING_USER_MEASURES" class="ty-group">
<text class="title">
项目责任负责人</text>
@ -240,15 +245,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -353,7 +358,9 @@
monitorindex:-1,
acceptUserList:[],
acceptindex:-1,
pd:{},//
pd:{
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
{name:'CHECK_NO',message:'请输入编号'},
@ -439,6 +446,10 @@
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []

View File

@ -213,15 +213,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -341,9 +341,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
@ -549,6 +554,17 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
_this.pd = Object.assign(_this.pd,
{
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0]
@ -556,6 +572,7 @@
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.files = res.data.imgList;
_this.measuresList = res.data.measuresList
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -181,11 +181,16 @@
</uni-table>
</view>
<view v-if="pd.APPLY_STATUS && pd.APPLY_STATUS!=0 && pd.APPLY_STATUS!=1">
<view class="cu-form-textarea">
<view class="cu-form-title">其他安全措施</view>
<view>
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.GUARDIAN_USER_MEASURES"></textarea>
</view>
<!-- <view class="cu-form-textarea">-->
<!-- <view class="cu-form-title">其他安全措施</view>-->
<!-- <view>-->
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.GUARDIAN_USER_MEASURES"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
@ -202,6 +207,11 @@
<!-- 监护人</text>-->
<!-- <text>{{ pd.GUARDIAN_USER_MEASURES}}</text>-->
<!-- </view>-->
<view v-if="pd.GUARDIAN_USER_MEASURES" class="ty-group">
<text class="title">
属地监管单位</text>
<text>{{ pd.GUARDIAN_USER_MEASURES}}</text>
</view>
<view v-if="pd.LEADER_USER_MEASURES" class="ty-group">
<text class="title">
安全管理部门</text>
@ -250,15 +260,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -586,9 +596,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
<view class="cu-form-group">
@ -672,7 +687,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -790,6 +806,21 @@
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
_this.pd = Object.assign(_this.pd,
{
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0],
@ -801,6 +832,9 @@
})
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -161,6 +161,11 @@
<!-- <text>{{ item.USER_NAME }}</text>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -255,15 +260,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -397,7 +402,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -498,6 +504,10 @@
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []

View File

@ -181,11 +181,16 @@
</uni-table>
</view>
<view v-if="pd.APPLY_STATUS && pd.APPLY_STATUS!=0 && pd.APPLY_STATUS!=1">
<view class="cu-form-textarea">
<view class="cu-form-title">其他安全措施</view>
<view>
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.APPROVE_USER_MEASURES"></textarea>
</view>
<!-- <view class="cu-form-textarea">-->
<!-- <view class="cu-form-title">其他安全措施</view>-->
<!-- <view>-->
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.APPROVE_USER_MEASURES"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
@ -216,6 +221,11 @@
<text class="title">
动火审批人</text>
<text>{{ pd.AUDIT_USER_MEASURES}}</text>
</view>
<view v-if="pd.APPROVE_USER_MEASURES" class="ty-group">
<text class="title">
动火前验票</text>
<text>{{ pd.APPROVE_USER_MEASURES}}</text>
</view>
<view v-if="pd.MONITOR_USER_MEASURES" class="ty-group">
<text class="title">
@ -250,15 +260,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -672,7 +682,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -802,8 +813,16 @@
"APPROVE_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[4],
"MONITOR_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[5]
})
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -166,6 +166,11 @@
<!-- <text>{{ item.USER_NAME }}</text>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -250,15 +255,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -293,18 +298,18 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
</view>
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
</view>
</view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;">
@ -437,7 +442,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -548,6 +554,10 @@
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []

View File

@ -215,15 +215,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -355,8 +355,13 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
</view>
@ -584,6 +589,17 @@ export default {
if ("success" == res.data.result) {
uni.hideLoading();
_this.pd = res.data.pd; //map
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
if (res.data.measuresList && res.data.measuresList.length > 0) {
_this.measuresList = res.data.measuresList
}else {
@ -596,6 +612,7 @@ export default {
// _this.updateForbidEdit();
let dongHuoCaoZuoRenPic = res.data.imgList2
console.log(dongHuoCaoZuoRenPic,'11111111111111111111111111111')
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []
for (let i = 0; i < dongHuoCaoZuoRenPic.length; i++) {

View File

@ -181,22 +181,27 @@
</uni-table>
</view>
<view v-if="pd.APPLY_STATUS && pd.APPLY_STATUS!=0 && pd.APPLY_STATUS!=1">
<view class="cu-form-textarea">
<view class="cu-form-title">其他安全措施</view>
<view>
<textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.BELONGING_USER_MEASURES"></textarea>
</view>
<!-- <view class="cu-form-textarea">-->
<!-- <view class="cu-form-title">其他安全措施</view>-->
<!-- <view>-->
<!-- <textarea maxlength="255" auto-height :disabled="forbidEdit" v-model="pd.BELONGING_USER_MEASURES"></textarea>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
<text>{{ pd.CONFIRM_OTHER_CONTENT}}</text>
</view>
<!-- <view v-if="pd.BELONGING_USER_MEASURES" class="ty-group">-->
<!-- <text class="title">-->
<!-- 项目责任负责人</text>-->
<!-- <text>{{ pd.BELONGING_USER_MEASURES}}</text>-->
<!-- </view>-->
<view v-if="pd.BELONGING_USER_MEASURES" class="ty-group">
<text class="title">
项目责任负责人</text>
<text>{{ pd.BELONGING_USER_MEASURES}}</text>
</view>
<!-- <view v-if="pd.GUARDIAN_USER_MEASURES" class="ty-group">-->
<!-- <text class="title">-->
<!-- 监护人</text>-->
@ -255,15 +260,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="ViewShowImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -591,9 +596,14 @@
<view class="title">验收部门负责人</view>
{{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view>
<!-- <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >-->
<!-- <image :src="baseImgPath + pd.ACCEPT_USER_SIGNER_PATH" mode="aspectFill" @click="ViewShowImage(baseImgPath + pd.ACCEPT_USER_SIGNER_PATH)" style="height: 100%;"></image>-->
<!-- </view>-->
<view class="wui-form-list" v-if="pd.ACCEPT_USER_SIGNER_PATH_ARRAY && pd.ACCEPT_USER_SIGNER_PATH_ARRAY.length > 0">
<view v-for="(path, index) in pd.ACCEPT_USER_SIGNER_PATH_ARRAY" :key="index" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path" mode="aspectFill" @click="ViewShowImage(baseImgPath + path)" style="height: 100%;"></image>
</view>
</view>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee" v-if="pd.FIRE_COMPLETED == 1">
<view class="cu-form-group">
@ -677,7 +687,8 @@
acceptUserList:[],
acceptindex:-1,
pd:{
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES:';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList:[],
rules:[
@ -798,6 +809,21 @@
if (res.data.pd.confessList && res.data.pd.confessList.length > 0) {
_this.pd.APPROVAL_SIGNATURE = res.data.pd.confessList[0].APPROVAL_SIGNATURE;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if (_this.pd.ACCEPT_USER_SIGNER_PATH) {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = _this.pd.ACCEPT_USER_SIGNER_PATH.split(',').map(item => item.trim());
} else {
_this.pd.ACCEPT_USER_SIGNER_PATH_ARRAY = [];
}
if (_this.pd.ACCEPT_USER_SIGNER_TIME) {
_this.pd.ACCEPT_USER_SIGNER_TIME = _this.pd.ACCEPT_USER_SIGNER_TIME.split(',')[0];
}
_this.pd = Object.assign(_this.pd,
{
"CONFIRM_USER_MEASURES": _this.pd.OTHER_PROTECTIVE_MEASURES.split(";_;")[0],
@ -809,6 +835,9 @@
})
_this.pd.OTHER_PROTECTIVE_MEASURES = ''
_this.measuresList = res.data.measuresList
if (_this.pd.safetyList && _this.pd.safetyList.length > 0) {
_this.pd.APPROVAL_CONTENT = _this.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
if(_this.pd.APPLY_STATUS < 1){
_this.forbidEdit = false;
}

View File

@ -163,6 +163,11 @@
<!-- <text>{{ item.USER_NAME }}</text>-->
<!-- </view>-->
<!-- </view>-->
<view v-if="pd.safetyApprovalContent" class="ty-group">
<text class="title">
安全检查项</text>
<text>{{ pd.safetyApprovalContent }}</text>
</view>
<view v-if="pd.CONFIRM_OTHER_CONTENT" class="ty-group">
<text class="title">
作业负责人</text>
@ -255,15 +260,15 @@
</view>
</view>
<view v-if="pd.acceptConfessList && pd.acceptConfessList.length > 0 && pd.acceptConfessList.length !== pd.acceptConfessList.filter(item => item.APPROVAL_STATUS === '0').length">
<view v-for="(item,index) in pd.acceptConfessList" >
<view v-for="(item, index) in pd.acceptConfessList" :key="index">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group">
<view class="title">接受交底人</view>
{{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH" mode="aspectFill"
@click="previewImage(baseImgPath + item.ACCEPT_CONFESS_USER_SIGNER_PATH)" style="height: 100%;"></image>
<view v-for="(path, pathIndex) in item.ACCEPT_CONFESS_USER_SIGNER_PATH.split(';')" :key="pathIndex" style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;">
<image :src="baseImgPath + path.trim()" mode="aspectFill"
@click="ViewShowImage(baseImgPath + path.trim())" style="height: 100%;"></image>
</view>
</view>
</view>
@ -389,7 +394,8 @@ export default {
acceptUserList: [],
acceptindex: -1,
pd: {
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;'
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;',
safetyApprovalContent: '',
},//
measuresList: [],
rules: [
@ -487,6 +493,10 @@ export default {
_this.forbidEdit = false;
}
if (res.data.pd.safetyList && res.data.pd.safetyList.length > 0) {
_this.pd.safetyApprovalContent = res.data.pd.safetyList.map(item => item.APPROVAL_CONTENT).join(', ');
}
let dongHuoCaoZuoRenPic = res.data.imgList2
if (dongHuoCaoZuoRenPic && dongHuoCaoZuoRenPic.length > 0) {
_this.pd.dongHuoCaoZuoRenPic = []