1、隐患整改中添加临时安全措施

hyx_2024-11-12_newInspect
fufeifei 2024-11-01 16:30:20 +08:00
parent 3939ff0487
commit d2fb289704
3 changed files with 108 additions and 4 deletions

View File

@ -33,6 +33,9 @@
<el-form-item :rules="form.IS_NORMAL =='1' ?formRule.RECTIFICATIONTIME:[{required: false}]" label="整改时间" prop="RECTIFICATIONTIME"> <el-form-item :rules="form.IS_NORMAL =='1' ?formRule.RECTIFICATIONTIME:[{required: false}]" label="整改时间" prop="RECTIFICATIONTIME">
<el-date-picker v-model="form.RECTIFICATIONTIME" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择日期" /> <el-date-picker v-model="form.RECTIFICATIONTIME" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择日期" />
</el-form-item> </el-form-item>
<el-form-item :rules="DAYNUM >= 1 ?formRule.TEMPORARY_SAFE_MEASURE:[{required: false}]" label="临时安全措施" label-width="110px" prop="TEMPORARY_SAFE_MEASURE" >
<el-input :rows="3" v-model="form.TEMPORARY_SAFE_MEASURE" type="textarea" placeholder="请在此处输入临时安全措施..."/>
</el-form-item>
<el-form-item :rules="[{required: true}]" label="整改后图片" label-width="100px"> <el-form-item :rules="[{required: true}]" label="整改后图片" label-width="100px">
<el-upload <el-upload
ref="zhenggaiupload" ref="zhenggaiupload"
@ -192,7 +195,8 @@ export default {
disposalPlan: '', // disposalPlan: '', //
RECTIFYDESCR: '', // RECTIFYDESCR: '', //
INVESTMENT_FUNDS: '', // INVESTMENT_FUNDS: '', //
RECTIFICATIONTIME: ''// RECTIFICATIONTIME: '', //
TEMPORARY_SAFE_MEASURE: '' //
}, },
rectify_files: [], rectify_files: [],
hideUpload: false, // hideUpload: false, //
@ -215,7 +219,8 @@ export default {
TIMELIMITFOR: [{ required: true, message: '请输入时限要求', trigger: 'blur' }], TIMELIMITFOR: [{ required: true, message: '请输入时限要求', trigger: 'blur' }],
JOBREQUIREMENT: [{ required: true, message: '请输入工作要求', trigger: 'blur' }], JOBREQUIREMENT: [{ required: true, message: '请输入工作要求', trigger: 'blur' }],
OTHERBUSINESS: [{ required: true, message: '请输入其他事项', trigger: 'blur' }], OTHERBUSINESS: [{ required: true, message: '请输入其他事项', trigger: 'blur' }],
disposalPlan: [{ required: true, message: '请输入无法整改原因', trigger: 'blur' }] disposalPlan: [{ required: true, message: '请输入无法整改原因', trigger: 'blur' }],
TEMPORARY_SAFE_MEASURE: [{ required: true, message: '请输入临时安全措施', trigger: 'blur' }]
}, },
defaultProps: { defaultProps: {
value: 'id', value: 'id',
@ -226,7 +231,9 @@ export default {
defaultNodes: [], defaultNodes: [],
ys_userList: [], ys_userList: [],
other: [], // other: [], //
otherUserList: [] otherUserList: [],
DAYNUM: 0,
TEMP_SAFE_MEASURE: ''
} }
}, },
watch: { watch: {
@ -273,6 +280,9 @@ export default {
if (data.result == 'success') { if (data.result == 'success') {
this.data = data this.data = data
this.pd = data.hidden this.pd = data.hidden
this.DAYNUM = Number(this.pd.DAYNUM)
this.form.TEMPORARY_SAFE_MEASURE = this.pd.TEMP_SAFE_MEASURE != undefined ? this.pd.TEMP_SAFE_MEASURE : ''
this.TEMP_SAFE_MEASURE = this.pd.TEMP_SAFE_MEASURE
if (this.pd.HIDDENLEVEL == 'hiddenLevel0002') { if (this.pd.HIDDENLEVEL == 'hiddenLevel0002') {
this.getqyData() this.getqyData()
} }
@ -414,6 +424,14 @@ export default {
}, },
saveRectify() { // saveRectify() { //
this.loading = true this.loading = true
if (this.DAYNUM >= 1 && this.form.TEMPORARY_SAFE_MEASURE == '') {
this.$message({
message: '临时安全措施不能为空,请先返回上个页面填写临时安全措施!!!',
type: 'error'
})
this.loading = false
return false
}
if (this.$refs.zhenggaiupload.uploadFiles.length < 1) { if (this.$refs.zhenggaiupload.uploadFiles.length < 1) {
this.$message({ this.$message({
message: '请上传整改后照片', message: '请上传整改后照片',
@ -457,6 +475,7 @@ export default {
formdata.append('CHECKDEPT', this.form.DEPARTMENT_ID) // formdata.append('CHECKDEPT', this.form.DEPARTMENT_ID) //
formdata.append('CHECKOR', this.form.USER_ID) // formdata.append('CHECKOR', this.form.USER_ID) //
formdata.append('OTHER', JSON.stringify(this.other)) // formdata.append('OTHER', JSON.stringify(this.other)) //
formdata.append('TEMPORARY_SAFE_MEASURE', this.form.TEMPORARY_SAFE_MEASURE) //
if (this.form.USER_ID == this.loginUserid) { if (this.form.USER_ID == this.loginUserid) {
this.$message({ this.$message({
message: '验收人和整改人不能是同一个人!', message: '验收人和整改人不能是同一个人!',

View File

@ -116,6 +116,10 @@
<td class="tbg">是否相关方</td> <td class="tbg">是否相关方</td>
<td>{{ pd.ISRELEVANT=='1'?'是':'否' }}</td> <td>{{ pd.ISRELEVANT=='1'?'是':'否' }}</td>
</tr> </tr>
<tr>
<td class="tbg">临时安全措施</td>
<td>{{ pd.TEMP_SAFE_MEASURE !== undefined ? pd.TEMP_SAFE_MEASURE : '' }}</td>
</tr>
<template v-if="repulsecause"> <template v-if="repulsecause">
<tr v-for="item in repulsecause" :key="item.USER_ID"> <tr v-for="item in repulsecause" :key="item.USER_ID">
<td class="tbg">打回原因</td> <td class="tbg">打回原因</td>

View File

@ -179,6 +179,7 @@
<el-table-column prop="" label="操作" width="200" align="center"> <el-table-column prop="" label="操作" width="200" align="center">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button v-if="hasButtenAllMap.buttenTypeGoView" icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID)"></el-button> <el-button v-if="hasButtenAllMap.buttenTypeGoView" icon="el-icon-view" size="mini" @click="goView(row.HIDDEN_ID)"></el-button>
<el-button v-if="hasButtenAllMap.buttenTypeRectify" type="success" icon="el-icon-document" size="mini" @click="addTempSafeMeasureBtn(row.DAYNUM, row.HIDDEN_ID, row.TEMP_SAFE_MEASURE)"></el-button>
<el-button v-if="hasButtenAllMap.buttenTypeConfirm" :disabled="row.STATE !='-2'" type="success" icon="el-icon-check" size="mini" @click="confirm(row.HIDDEN_ID)"></el-button> <el-button v-if="hasButtenAllMap.buttenTypeConfirm" :disabled="row.STATE !='-2'" type="success" icon="el-icon-check" size="mini" @click="confirm(row.HIDDEN_ID)"></el-button>
<el-button v-if="hasButtenAllMap.buttenTypeRectify" :disabled="!row.STATE =='1' || !row.STATE =='10'" type="danger" icon="el-icon-document" size="mini" @click="goRectify(row.HIDDEN_ID)"></el-button> <el-button v-if="hasButtenAllMap.buttenTypeRectify" :disabled="!row.STATE =='1' || !row.STATE =='10'" type="danger" icon="el-icon-document" size="mini" @click="goRectify(row.HIDDEN_ID)"></el-button>
<el-button v-if="hasButtenAllMap.buttenTypePostpone" :disabled="!((row.STATE =='-1' || row.STATE =='1' || row.STATE =='10') && row.exaCount === 0 )" type="warning" icon="el-icon-document" size="mini" @click="goApplyDelay(row)"></el-button> <el-button v-if="hasButtenAllMap.buttenTypePostpone" :disabled="!((row.STATE =='-1' || row.STATE =='1' || row.STATE =='10') && row.exaCount === 0 )" type="warning" icon="el-icon-document" size="mini" @click="goApplyDelay(row)"></el-button>
@ -235,6 +236,17 @@
<el-button @click="dialogVisibleshow = false"> </el-button> <el-button @click="dialogVisibleshow = false"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="addTempSafeMeasureDialogForm" title="添加临时安全措施" width="600px">
<el-form ref="AddTempSafeMeasureForm" :model="addSafeMeasureForm" :rules="rules" label-width="110px" style="width: 500px;">
<el-form-item :rules="dayNum >= 1 ?addSafeMeasureFormRule.TEMPORARY_SAFE_MEASURE:[{required: false}]" label="临时安全措施" label-width="110px" prop="TEMPORARY_SAFE_MEASURE" >
<el-input :rows="9" v-model="addSafeMeasureForm.TEMPORARY_SAFE_MEASURE" type="textarea" placeholder="请在此处输入临时安全措施..."/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="addTempSafeMeasureDialogForm = false"> </el-button>
<el-button type="primary" @click="AddTempSafeMeasureClick"> </el-button>
</div>
</el-dialog>
<div v-if="dialogdProgress" class="mark"><dProgress :percentage ="percentageVar" ptype="circle" /></div> <div v-if="dialogdProgress" class="mark"><dProgress :percentage ="percentageVar" ptype="circle" /></div>
<!-- <el-dialog v-if="dialogdProgress" :visible.sync="dialogdProgress" width="70%" height="70%" >--> <!-- <el-dialog v-if="dialogdProgress" :visible.sync="dialogdProgress" width="70%" height="70%" >-->
<!-- <dProgress :percentage ="percentageVar" ptype="circle" />--> <!-- <dProgress :percentage ="percentageVar" ptype="circle" />-->
@ -347,7 +359,18 @@ export default {
zhenggaiList: [], zhenggaiList: [],
yanshouList: [], yanshouList: [],
dialogdProgress: false, dialogdProgress: false,
percentageVar: 0 percentageVar: 0,
addTempSafeMeasureDialogForm: false, //
//
addSafeMeasureForm: {
TEMPORARY_SAFE_MEASURE: '' //
},
//
addSafeMeasureFormRule: {
TEMPORARY_SAFE_MEASURE: [{ required: true, message: '请输入临时安全措施', trigger: 'blur' }]
},
dayNum: 0,
HIDDEN_ID: ''
} }
}, },
// BI , // BI ,
@ -723,6 +746,64 @@ export default {
encodeURIComponent(JSON.stringify(rows)) + '&STARTTIME=' + this.condform.creatTime[0] + '&ENDTIME=' + this.condform.creatTime[1]) encodeURIComponent(JSON.stringify(rows)) + '&STARTTIME=' + this.condform.creatTime[0] + '&ENDTIME=' + this.condform.creatTime[1])
this.dialogVisibleshow = false this.dialogVisibleshow = false
}, },
//
addTempSafeMeasureBtn(dayNum, HIDDEN_ID, TEMP_SAFE_MEASURE) {
requestFN(
'/hiddenApi/findTempSafeMeasureByHiddenId',
{
HIDDEN_ID: HIDDEN_ID
}
).then((data) => {
if (data.result == 'success') {
this.addTempSafeMeasureDialogForm = true
this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE = data.tempSafeMeasure != null ? data.tempSafeMeasure : ''
} else {
this.addTempSafeMeasureDialogForm = false
}
})
this.dayNum = Number(dayNum) //
this.HIDDEN_ID = HIDDEN_ID
},
//
AddTempSafeMeasureClick() {
if (!this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE && this.dayNum >= 1) {
this.$message({
message: '请填写临时安全措施',
type: 'error'
})
this.loading = false
return false
}
const loading = this.$loading({
lock: true,
text: '加载中......',
background: 'rgba(0,0,0,0.5)'
})
requestFN(
'/hiddenApi/addTempSafeMeasure',
{
TEMPORARY_SAFE_MEASURE: this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE,
HIDDEN_ID: this.HIDDEN_ID
}
).then((data) => {
loading.close()
if (data.result == 'success') {
this.addTempSafeMeasureDialogForm = false
this.$message({
message: '添加成功',
type: 'success'
})
} else {
this.$message({
message: data.exception,
type: '添加失败'
})
this.loading = false
}
}).catch((e) => {
this.listLoading = false
})
},
getHiddenNames() { getHiddenNames() {
requestFN( requestFN(
'/hidden/getHiddenNames', '/hidden/getHiddenNames',