Merge remote-tracking branch 'origin/pet' into pet

dev
shanao 2024-11-12 17:21:00 +08:00
commit eb042f8116
4 changed files with 21 additions and 15 deletions

View File

@ -33,7 +33,7 @@
<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-form-item :rules="DAYNUM >= 1 ?formRule.TEMPORARY_SAFE_MEASURE:[{required: false}]" label="临时安全措施" prop="TEMPORARY_SAFE_MEASURE" >
<el-input :rows="3" v-model="form.TEMPORARY_SAFE_MEASURE" type="textarea" placeholder="请在此处输入临时安全措施..."/> <el-input :rows="3" v-model="form.TEMPORARY_SAFE_MEASURE" type="textarea" placeholder="请在此处输入临时安全措施..."/>
</el-form-item> </el-form-item>
<el-form-item :rules="[{required: true}]" label="整改后图片" label-width="100px"> <el-form-item :rules="[{required: true}]" label="整改后图片" label-width="100px">
@ -426,7 +426,7 @@ export default {
this.loading = true this.loading = true
if (this.DAYNUM >= 1 && this.form.TEMPORARY_SAFE_MEASURE == '') { if (this.DAYNUM >= 1 && this.form.TEMPORARY_SAFE_MEASURE == '') {
this.$message({ this.$message({
message: '临时安全措施不能为空,请先返回上个页面填写临时安全措施!!!', message: '请先输入临时安全措施!!!',
type: 'error' type: 'error'
}) })
this.loading = false this.loading = false

View File

@ -18,7 +18,7 @@
<el-form-item label="发现部门" prop="keyFindUserDept"> <el-form-item label="发现部门" prop="keyFindUserDept">
<SelectTree <SelectTree
ref="deptTree_Select" ref="deptTree_Select"
:clearable="false" :clearable="true"
:options="hiddenCreatorDeptList" :options="hiddenCreatorDeptList"
:props="defaultProps" :props="defaultProps"
v-model="condform.creatorUserDept" v-model="condform.creatorUserDept"
@ -43,7 +43,7 @@
<SelectTree <SelectTree
v-if="hiddenlevelList.length !== 0" v-if="hiddenlevelList.length !== 0"
ref="hlTree_Select" ref="hlTree_Select"
:clearable="false" :clearable="true"
:options="hiddenlevelList" :options="hiddenlevelList"
:props="defaultProps" :props="defaultProps"
v-model="condform.hiddenlevel" v-model="condform.hiddenlevel"
@ -102,7 +102,7 @@
<el-form-item label="隐患部位"> <el-form-item label="隐患部位">
<SelectTree <SelectTree
ref="hiddenPart_Select" ref="hiddenPart_Select"
:clearable="false" :clearable="true"
:options="hiddenPartList" :options="hiddenPartList"
:props="defaultProps" :props="defaultProps"
v-model="condform.hiddenpart" v-model="condform.hiddenpart"
@ -471,10 +471,10 @@ export default {
hiddenType: '', // hiddenType: '', //
creatorUserDept: ''// creatorUserDept: ''//
} }
this.$refs.deptTree_Select3.clearHandle()
this.$refs.deptTree_Select.clearHandle() this.$refs.deptTree_Select.clearHandle()
this.$refs.hlTree_Select.clearHandle() this.$refs.hlTree_Select.clearHandle()
this.$refs.hiddenPart_Select.clearHandle() this.$refs.hiddenPart_Select.clearHandle()
this.$refs.deptTree_Select3.clearHandle()
this.getList() this.getList()
}, },
// //
@ -784,14 +784,20 @@ export default {
}, },
// //
AddTempSafeMeasureClick() { AddTempSafeMeasureClick() {
if (!this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE && this.dayNum >= 1) { if (!this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE) {
this.$message({ alert(this.dayNum)
message: '请填写临时安全措施', if (this.dayNum >= 1) {
type: 'error' this.$message({
}) message: '请填写临时安全措施',
this.loading = false type: 'error'
return false })
this.loading = false
return false
} else {
this.addSafeMeasureForm.TEMPORARY_SAFE_MEASURE = ''
}
} }
const loading = this.$loading({ const loading = this.$loading({
lock: true, lock: true,
text: '加载中......', text: '加载中......',

View File

@ -370,7 +370,7 @@ export default {
// //
goExport() { goExport() {
var dataStr = '?INSPECTION_ID=' + encodeURIComponent(this.$parent.INSPECTION_ID) var dataStr = '?INSPECTION_ID=' + encodeURIComponent(this.$parent.INSPECTION_ID)
window.location.href = config.httpurl + 'safetyenvironmental/exportInfo' + dataStr window.location.href = config.httpurl + '/safetyenvironmental/exportInfo' + dataStr
} }
} }
} }

View File

@ -389,7 +389,7 @@ export default {
dataStr += '&INSPECTION_SUBJECT=' + encodeURIComponent(this.search.INSPECTION_SUBJECT) // dataStr += '&INSPECTION_SUBJECT=' + encodeURIComponent(this.search.INSPECTION_SUBJECT) //
dataStr += '&INSPECTION_TIME_START=' + encodeURIComponent(this.search.INSPECTION_TIME[0]) // dataStr += '&INSPECTION_TIME_START=' + encodeURIComponent(this.search.INSPECTION_TIME[0]) //
dataStr += '&INSPECTION_TIME_END=' + encodeURIComponent(this.search.INSPECTION_TIME[1]) // dataStr += '&INSPECTION_TIME_END=' + encodeURIComponent(this.search.INSPECTION_TIME[1]) //
window.location.href = config.httpurl + 'safetyenvironmental/exportexcel' + dataStr window.location.href = config.httpurl + '/safetyenvironmental/exportexcel' + dataStr
}, },
// //
getList() { getList() {