| | |
| | | /> |
| | | <br> |
| | | </div> |
| | | <el-dialog :title="title" :visible.sync="inspectionRecordVisible" :modal-append-to-body="false" :close-on-click-modal="false" width="600px"> |
| | | <el-form ref="inspectionRecordForm" :model="inspectionRecordForm" label-position="right" label-width="165px"> |
| | | <el-form-item label="责任部门" prop="hazardDep"> |
| | | <el-select v-model="inspectionRecordForm.hazardDep" class="analyseUnit_input"> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | :key="item.id" |
| | | :value="item.department" |
| | | :label="item.department" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="责任人" prop="hazardLiablePerson"> |
| | | <el-input v-model="inspectionRecordForm.hazardLiablePerson" class="analyseUnit_input"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="安全风险分析对象编码" prop="hazardCode"> |
| | | <el-input v-model="inspectionRecordForm.hazardCode" class="analyseUnit_input"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="安全风险分析单元名称" prop="riskUnitName"> |
| | | <el-input v-model="inspectionRecordForm.riskUnitName" class="analyseUnit_input"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div align="right"> |
| | | <el-button @click="unitFormVisible = false">取消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <detail ref="detail"></detail> |
| | | </div> |
| | | </template> |
| | |
| | | title:'', |
| | | company:'', |
| | | code:'', |
| | | inspectionRecordVisible:false, |
| | | inspectionRecordForm:{ |
| | | |
| | | }, |
| | |
| | | this.$refs.detail.showInspectionRecordForm(value) |
| | | }, |
| | | showInspectionRecordDetailForm(value,type) { |
| | | this.$refs.detail.showInspectionRecordDetailForm(value,type,this.userList) |
| | | this.$refs.detail.showInspectionRecordDetailForm(value,type,this.userList,this.departmentList) |
| | | }, |
| | | async submitInspectionRecordForm(value){ |
| | | if(value.unitList.find(item => item.status === 1) === undefined){ |