| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20"> |
| | | <el-form-item label="负责部门" prop="liabilityDep"> |
| | | <el-input v-model="riskUnitDialogState.riskUnitForm.liabilityDep" :disabled="riskUnitDialogState.disabled" placeholder="负责部门" clearable class="input-length"></el-input> |
| | | <el-form-item label="负责部门" prop="liabilityDepId"> |
| | | <el-cascader :options="riskUnitDialogState.departmentData" :disabled="riskUnitDialogState.disabled" :props="{ emitPath: false, checkStrictly: true, value: 'id', label: 'depName' }" placeholder="负责部门" clearable v-model="riskUnitDialogState.riskUnitForm.liabilityDepId"> </el-cascader> |
| | | <!-- <el-input v-model="riskUnitDialogState.riskUnitForm.liabilityDep" :disabled="riskUnitDialogState.disabled" placeholder="负责部门" clearable class="input-length"></el-input>--> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20" v-if="riskUnitDialogState.experimentType === 1"> |
| | |
| | | import { isValidKey } from "/@/utils/methods"; |
| | | import {ElMessage} from "element-plus"; |
| | | import {riskUnitApi} from "/@/api/analyse/riskUnit"; |
| | | import {departmentApi} from "/@/api/systemManage/department"; |
| | | |
| | | const riskUnitFormRef = ref() |
| | | |
| | |
| | | riskName: '', |
| | | riskUnitTypeId: null, |
| | | liabilityUserId: null, |
| | | liabilityDep: '', |
| | | liabilityDepId: null, |
| | | description: '', |
| | | basicRiskUnitId: null, |
| | | }, |
| | | departmentData: [], |
| | | riskUnitFormRules: { |
| | | riskCode: [{ required: true, message: '请填写风险单元编号', trigger: 'blur' }], |
| | | riskName: [{ required: true, message: '请填写风险单元名称', trigger: 'blur' }], |
| | |
| | | }) |
| | | |
| | | const showRiskUnitDialog = (title: string, val, id: number, basicUnitList: UnitType [], allPersonList: AllPersonListType [], allRiskTypeList: RiskType []) => { |
| | | getDeptData() |
| | | riskUnitDialogState.riskUnitDialogVisible = true; |
| | | riskUnitDialogState.basicUnitList = basicUnitList |
| | | riskUnitDialogState.allPersonList = allPersonList |
| | |
| | | riskName: '', |
| | | riskUnitTypeId: null, |
| | | liabilityUserId: null, |
| | | liabilityDep: '', |
| | | liabilityDepId: null, |
| | | description: '', |
| | | basicRiskUnitId: null, |
| | | }; |
| | |
| | | } |
| | | }; |
| | | |
| | | const getDeptData =async () => { |
| | | let res = await departmentApi().getDepartmentList() |
| | | if (res.data.code === 100) { |
| | | riskUnitDialogState.departmentData = res.data.data |
| | | } else { |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }); |
| | | } |
| | | } |
| | | |
| | | const onSubmitRiskUnit = () => { |
| | | riskUnitFormRef.value.validate(async(valid: boolean) => { |
| | | if(valid){ |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="riskUnitName" label="风险单元" /> |
| | | <el-table-column prop="identificationUser" label="计划负责人" /> |
| | | <el-table-column prop="planUserName" label="计划负责人" /> |
| | | <el-table-column prop="identificationUser" label="辨识专家" /> |
| | | <el-table-column prop="evaluateUser" label="评价专家" /> |
| | | <el-table-column prop="createTime" label="创建时间" show-overflow-tooltip></el-table-column> |
| | |
| | | <span>{{`${identifyState.identificationMethodList.find(item =>item.id === scope.row.identificationMethod)?.name}`}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="identificationUser" label="计划负责人" /> |
| | | <el-table-column prop="planUserName" label="计划负责人" /> |
| | | <el-table-column prop="identificationUser" label="辨识专家" /> |
| | | <el-table-column prop="evaluateUser" label="评价专家" /> |
| | | <el-table-column prop="createTime" label="创建时间" show-overflow-tooltip></el-table-column> |
| | |
| | | riskCode: string, |
| | | riskName: string, |
| | | riskUnitTypeId: number | null, |
| | | liabilityDep: string, |
| | | liabilityDepId: number | null, |
| | | liabilityUserId: number | null, |
| | | description: string, |
| | | basicRiskUnitId: number | null, |
| | |
| | | riskUnitFormRules: { |
| | | |
| | | }, |
| | | departmentData: [] |
| | | riskTypeList: Array<RiskType>, |
| | | specialDeviceList: Array<Type>, |
| | | deviceUnitList: Array<Type>, |
| | |
| | | <el-dialog :title="projectDialogState.title" v-model="projectDialogState.projectDialogVisible" width="80%" @close="handleClose"> |
| | | <el-form ref="ProjectFormRef" :rules="projectDialogState.projectFormRules" :model="projectDialogState.projectForm" size="default" label-width="0"> |
| | | <table class="report-table"> |
| | | <th class="m-color b-font" style="text-align: center">***研究所/***大学<br />科学研究实验项目安全风险基础信息录入表(已开展)(带<span style="color: red">*</span>为必填项)</th> |
| | | <th class="m-color b-font" style="text-align: center">材料科学姑苏实验室<br/>科学研究实验项目安全风险基础信息录入表(已开展)(带<span style="color: red">*</span>为必填项)</th> |
| | | <tr> |
| | | <td class="w-25 m-color required">实验名称</td> |
| | | <td class="w-75 m-color"> |
| | |
| | | <!-- <el-form-item prop="dep">--> |
| | | <!-- <el-input :disabled="projectDialogState.disabled" v-model="projectDialogState.projectForm.dep" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item prop="dep"> |
| | | <el-select style="width: 100%" v-model="projectDialogState.projectForm.dep" clearable filterable> |
| | | <el-option |
| | | |
| | |
| | | :label="item.depName" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <!-- <el-form-item prop="safeLiabilityUser">--> |
| | | <!-- <el-input :disabled="projectDialogState.disabled" v-model="projectDialogState.projectForm.safeLiabilityUser"/>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item prop="safeLiabilityUser">--> |
| | | <el-select style="width: 100%" v-model="projectDialogState.projectForm.safeLiabilityUser" clearable filterable @change="getSafeLiabilityUserPhone($event)"> |
| | | <el-option |
| | | v-for="item in projectDialogState.systemPersonList" |
| | |
| | | :label="item.realName" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </td> |
| | | <td class="w-25 m-color required">电话</td> |
| | | <td class="w-25 m-color"> |
| | |
| | | <el-dialog :title="projectDialogState.title" v-model="projectDialogState.projectDialogVisible" width="80%" :before-close="handleClose"> |
| | | <el-form ref="ProjectFormRef" :rules="projectDialogState.projectFormRules" :model="projectDialogState.projectForm" size="default" label-width="0"> |
| | | <table class="report-table"> |
| | | <th class="m-color b-font" style="text-align: center">***研究所/***大学<br />科学研究实验项目安全风险基础信息录入表(新立项)(带<span style="color: red">*</span>为必填项)</th> |
| | | <th class="m-color b-font" style="text-align: center">材料科学姑苏实验室<br/>科学研究实验项目安全风险基础信息录入表(新立项)(带<span style="color: red">*</span>为必填项)</th> |
| | | <tr> |
| | | <td class="w-25 m-color required">实验名称</td> |
| | | <td class="w-75 m-color"> |
| | |
| | | <!-- <el-form-item prop="dep">--> |
| | | <!-- <el-input :disabled="projectDialogState.disabled" v-model="projectDialogState.projectForm.dep" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item prop="dep"> |
| | | <el-select style="width: 100%" v-model="projectDialogState.projectForm.dep" clearable filterable> |
| | | <el-option |
| | | v-for="item in projectDialogState.deptList" |
| | |
| | | :label="item.depName" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </td> |
| | | <td class="w-25 m-color required">立项时间</td> |
| | | <td class="w-25 m-color"> |
| | |
| | | <!-- :label="item.personName"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <el-form-item prop="safeLiabilityUser"> |
| | | <el-select style="width: 100%" v-model="projectDialogState.projectForm.safeLiabilityUser" clearable filterable @change="getSafeLiabilityUserPhone($event)"> |
| | | <el-option |
| | | v-for="item in projectDialogState.systemPersonList" |
| | |
| | | :label="item.realName" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item prop="safeLiabilityUser">--> |
| | | <!-- <el-input :disabled="projectDialogState.disabled" v-model="projectDialogState.projectForm.safeLiabilityUser" />--> |
| | | <!-- </el-form-item>--> |