From 09705fa5c4c103a6593a8131a5e6bf7984cded23 Mon Sep 17 00:00:00 2001 From: WenShiJun Date: Wed, 19 Jun 2024 17:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E8=8A=82=E7=82=B9=EF=BC=9A?= =?UTF-8?q?=20=E4=B8=BB=E8=A6=81=E5=AE=89=E5=85=A8=E6=8E=AA=E6=96=BD?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E6=8E=A5=E6=94=B6=E4=BA=A4=E5=BA=95=E4=BA=BA=EF=BC=8C=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E4=BA=A4=E5=BA=95=E4=BA=BA=E9=80=89=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E6=97=B6=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9=20=E5=8A=A8?= =?UTF-8?q?=E7=81=AB=E7=94=B3=E8=AF=B7=E9=A1=B5=E9=9D=A2=E5=8A=A8=E7=81=AB?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=BA=BA=E5=9B=BE=E7=89=87=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E5=8A=A8=E7=81=AB=E7=94=B3=E8=AF=B7=E6=9A=82=E5=AD=98=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=9B=BE=E7=89=87=E4=B8=8D=E8=83=BD=E5=88=A0=E9=99=A4?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E8=83=BD=E4=B8=8A=E4=BC=A0=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=8E=A5=E6=94=B6=E4=BA=A4=E5=BA=95?= =?UTF-8?q?=E4=BA=BA=EF=BC=8C=E5=AE=8C=E5=B7=A5=E5=AE=A1=E6=A0=B8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=A4=9A=E5=BC=A0=E7=AD=BE=E5=AD=97=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hotwork-accept-alldetail.vue | 46 +++- .../hotwork-accept/hotwork-accept-detail.vue | 20 +- .../hotwork-acceptconfess-detail.vue | 217 +++++++++++++----- .../hotwork-apply/hotwork-apply-detail.vue | 185 ++++++++++----- .../hotwork-approve-alldetail.vue | 60 +++-- .../hotwork-approve-detail.vue | 34 ++- .../hotwork-audit/hotwork-audit-alldetail.vue | 60 +++-- .../hotwork-audit/hotwork-audit-detail.vue | 33 ++- .../hotwork-confess-detail.vue | 39 +++- .../hotwork-confirm-alldetail.vue | 65 ++++-- .../hotwork-confirm-detail.vue | 21 +- .../hotwork-guardian-detail.vue | 31 ++- .../hotwork-leader-alldetail.vue | 60 +++-- .../hotwork-leader/hotwork-leader-detail.vue | 20 +- .../hotwork-monitor-alldetail.vue | 39 +++- .../hotwork-monitor-detail.vue | 34 ++- .../hotwork-safety/hotwork-safety-detail.vue | 29 ++- .../hotwork-xiang-alldetail.vue | 65 ++++-- .../hotwork-xiang-mu/hotwork-xiang-detail.vue | 20 +- 19 files changed, 788 insertions(+), 290 deletions(-) diff --git a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue index 69eae6f..ce1042a 100644 --- a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-alldetail.vue @@ -187,6 +187,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -260,15 +265,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -596,9 +601,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue index cd17497..17835ec 100644 --- a/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-accept/hotwork-accept-detail.vue @@ -159,6 +159,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -243,15 +248,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -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 = [] diff --git a/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue b/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue index 91d21da..f6b3220 100644 --- a/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-acceptconfess/hotwork-acceptconfess-detail.vue @@ -179,8 +179,8 @@ - - + + 安全交底人 @@ -193,16 +193,16 @@ - - + + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -322,9 +322,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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_PATH转换为数组并赋值给imgList + // _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 = {} diff --git a/pages/application/hotwork_cfd/hotwork-apply/hotwork-apply-detail.vue b/pages/application/hotwork_cfd/hotwork-apply/hotwork-apply-detail.vue index ebfe28b..4d584a2 100644 --- a/pages/application/hotwork_cfd/hotwork-apply/hotwork-apply-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-apply/hotwork-apply-detail.vue @@ -117,9 +117,9 @@ - - + :data-url="pd.dongHuoCaoZuoRenPic[index].FILEPATH"> + + @@ -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(){ diff --git a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue index 6a329fe..f03cb23 100644 --- a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-alldetail.vue @@ -181,11 +181,16 @@ - - 其他安全措施: - - - + + + + + + + + + 安全检查项: + {{ pd.safetyApprovalContent }} @@ -222,6 +227,11 @@ + + + 动火审批人: + {{ pd.AUDIT_USER_MEASURES}} + 动火前验票: @@ -261,15 +271,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -597,9 +607,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue index 10a3c38..6bdde85 100644 --- a/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-approve/hotwork-approve-detail.vue @@ -167,6 +167,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -250,15 +255,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -292,17 +297,18 @@ - - - - 项目主管部门负责意见 - - + + + 项目主管部门负责意见 + 项目主管部门负责人 {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}} + + + 属地监管单位意见 @@ -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 = [] diff --git a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue index 1241df8..dad71d7 100644 --- a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-alldetail.vue @@ -181,11 +181,16 @@ - - 其他安全措施: - - - + + + + + + + + + 安全检查项: + {{ pd.safetyApprovalContent }} @@ -202,6 +207,11 @@ 属地监管单位: {{ pd.GUARDIAN_USER_MEASURES}} + + + 安全管理部门: + {{ pd.LEADER_USER_MEASURES}} + @@ -255,15 +265,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -591,9 +601,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue index 9b6c9e2..3d9c92d 100644 --- a/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-audit/hotwork-audit-detail.vue @@ -190,6 +190,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -274,15 +279,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -341,17 +346,18 @@ - - - - 项目主管部门负责意见 - - + + + 项目主管部门负责意见 + 项目主管部门负责人 {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}} + + + @@ -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 = [] diff --git a/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue b/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue index 98c0a6a..e4997b1 100644 --- a/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-confess/hotwork-confess-detail.vue @@ -222,8 +222,8 @@ - - + + 安全交底人 @@ -236,16 +236,16 @@ - - + + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -388,9 +388,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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) { diff --git a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue index 19d35bb..1f64faa 100644 --- a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-alldetail.vue @@ -181,17 +181,22 @@ - - 其他安全措施: - - - - - - - - + + + + + + + + 安全检查项: + {{ pd.safetyApprovalContent }} + + + + 作业负责人: + {{ pd.CONFIRM_OTHER_CONTENT}} + 项目责任负责人: @@ -250,15 +255,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -582,9 +587,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue index ecd3a98..19d41bf 100644 --- a/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-confirm/hotwork-confirm-detail.vue @@ -162,6 +162,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 项目责任负责人: @@ -240,15 +245,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -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 = [] diff --git a/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue b/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue index 28a0056..d7f670b 100644 --- a/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-guardian/hotwork-guardian-detail.vue @@ -213,15 +213,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -341,9 +341,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue index 12b8b3c..ec6615f 100644 --- a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-alldetail.vue @@ -181,11 +181,16 @@ - - 其他安全措施: - - - + + + + + + + + + 安全检查项: + {{ pd.safetyApprovalContent }} @@ -202,6 +207,11 @@ + + + 属地监管单位: + {{ pd.GUARDIAN_USER_MEASURES}} + 安全管理部门: @@ -250,15 +260,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -586,9 +596,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue index fe8f283..3b7922f 100644 --- a/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-leader/hotwork-leader-detail.vue @@ -161,6 +161,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -255,15 +260,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -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 = [] diff --git a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue index f8aec09..3f9bb9a 100644 --- a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-alldetail.vue @@ -181,11 +181,16 @@ - - 其他安全措施: - - - + + + + + + + + + 安全检查项: + {{ pd.safetyApprovalContent }} @@ -216,6 +221,11 @@ 动火审批人: {{ pd.AUDIT_USER_MEASURES}} + + + + 动火前验票: + {{ pd.APPROVE_USER_MEASURES}} @@ -250,15 +260,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue index 34892aa..9bfdba7 100644 --- a/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-monitor/hotwork-monitor-detail.vue @@ -166,6 +166,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -250,15 +255,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -293,18 +298,18 @@ - - - - - 项目主管部门负责意见 - - + + + 项目主管部门负责意见 + 项目主管部门负责人 {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}} + + + @@ -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 = [] diff --git a/pages/application/hotwork_cfd/hotwork-safety/hotwork-safety-detail.vue b/pages/application/hotwork_cfd/hotwork-safety/hotwork-safety-detail.vue index 7ad38d8..d01717c 100644 --- a/pages/application/hotwork_cfd/hotwork-safety/hotwork-safety-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-safety/hotwork-safety-detail.vue @@ -215,15 +215,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -355,8 +355,13 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - + + + + + + + @@ -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++) { diff --git a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue index 31aeaa6..7c949c5 100644 --- a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue +++ b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-alldetail.vue @@ -181,22 +181,27 @@ - - 其他安全措施: - - - + + + + + + + + + 安全检查项: + {{ pd.safetyApprovalContent }} 作业负责人: {{ pd.CONFIRM_OTHER_CONTENT}} - - - - - + + + 项目责任负责人: + {{ pd.BELONGING_USER_MEASURES}} + @@ -255,15 +260,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -591,9 +596,14 @@ 验收部门负责人 {{pd.ACCEPT_USER_NAME}} {{pd.ACCEPT_USER_SIGNER_TIME}} - - - + + + + + + + + @@ -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; } diff --git a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue index 21a5057..4613210 100644 --- a/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue +++ b/pages/application/hotwork_cfd/hotwork-xiang-mu/hotwork-xiang-detail.vue @@ -163,6 +163,11 @@ + + + 安全检查项: + {{ pd.safetyApprovalContent }} + 作业负责人: @@ -255,15 +260,15 @@ - + 接受交底人 {{ item.ACCEPT_CONFESS_USER_NAME }} {{ item.APPROVAL_SIGNATURE_TIME }} - - + + @@ -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 = []