| | |
| | | <div>{{item.siteType}}</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="w-25 m-color required">评估人</td> |
| | | <td class="w-75 m-color"> |
| | | <!-- <el-select style="width: 100%" :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.assessPerson" clearable filterable>--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in reportDialogState.allPersonList"--> |
| | | <!-- :key="item.id"--> |
| | | <!-- :value="item.id"--> |
| | | <!-- :label="item.personName"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <el-input :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.assessPerson" placeholder="评估人" /> |
| | | </td> |
| | | <!-- <td class="w-25 m-color required">评估时间</td>--> |
| | | <!-- <td class="w-25 m-color">--> |
| | | <!-- <el-date-picker :disabled="reportDialogState.disabled" type="datetime" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" v-model="reportDialogState.reportForm.assessTime" />--> |
| | | <!-- </td>--> |
| | | </tr> |
| | | |
| | | <tr class="m-color b-font" style="text-align: center">实验概况</tr> |
| | | <tr> |
| | |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | |
| | | <select-danger ref="selectDangerRef" v-model:data="reportDialogState.reportForm.riskSource" v-model:disabled="reportDialogState.disabled"></select-danger> |
| | | |
| | | <!-- <tr class="m-color b-font required" style="text-align: center">安全风险分析(总结)</tr>--> |
| | | <!-- <tr>--> |
| | | <!-- <el-input type="textarea" :autosize="{ minRows: 3}" :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.safeRiskAnalysis" placeholder="1.实验过程中是否有爆炸、火灾、腐蚀、中毒风险、产生危险废弃物等(根据危险源清单,分析实验过程中可能对人身安全、人体健康、实验室环境和周边环境等带来的负面影响)" />--> |
| | | <!-- </tr>--> |
| | | |
| | | <tr class="m-color b-font required" style="text-align: center">安全风险分析(总结)</tr> |
| | | <tr> |
| | | <el-input type="textarea" :autosize="{ minRows: 3}" :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.safeRiskAnalysis" placeholder="1.实验过程中是否有爆炸、火灾、腐蚀、中毒风险、产生危险废弃物等(根据危险源清单,分析实验过程中可能对人身安全、人体健康、实验室环境和周边环境等带来的负面影响)" /> |
| | |
| | | <tr> |
| | | <td class="m-color" style="width: 100%"> |
| | | <el-radio-group :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.assessLevel"> |
| | | <el-radio :label="1">低风险(一级)</el-radio> |
| | | <el-radio :label="2">一般风险(二级)</el-radio> |
| | | <el-radio :label="3">较大风险(三级)</el-radio> |
| | | <el-radio :label="4">重大风险(四级)</el-radio> |
| | | <el-radio :label="1">重大风险(一级)</el-radio> |
| | | <el-radio :label="2">较大风险(二级)</el-radio> |
| | | <el-radio :label="3">一般风险(三级)</el-radio> |
| | | <el-radio :label="4">低风险(四级)</el-radio> |
| | | </el-radio-group> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <el-input type="textarea" :autosize="{ minRows: 3}" :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.description" placeholder="评定依据(必填)" /> |
| | | </tr> |
| | | <tr> |
| | | <td class="w-25 m-color required">评估人</td> |
| | | <td class="w-75 m-color"> |
| | | <!-- <el-select style="width: 100%" :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.assessPerson" clearable filterable>--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in reportDialogState.allPersonList"--> |
| | | <!-- :key="item.id"--> |
| | | <!-- :value="item.id"--> |
| | | <!-- :label="item.personName"--> |
| | | <!-- ></el-option>--> |
| | | <!-- </el-select>--> |
| | | <el-input :disabled="reportDialogState.disabled" v-model="reportDialogState.reportForm.assessPerson" placeholder="评估人" /> |
| | | </td> |
| | | <!-- <td class="w-25 m-color required">评估时间</td>--> |
| | | <!-- <td class="w-25 m-color">--> |
| | | <!-- <el-date-picker :disabled="reportDialogState.disabled" type="datetime" format="YYYY/MM/DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" v-model="reportDialogState.reportForm.assessTime" />--> |
| | | <!-- </td>--> |
| | | </tr> |
| | | <tr v-if="reportDialogState.reportForm.person?.length>0" class="m-color b-font" style="text-align: center">审批内容</tr> |
| | | <template v-if="reportDialogState.reportForm.person?.length>0" v-for="item in reportDialogState.reportForm.person"> |
| | | <tr> |
| | | <td class="w-25 m-color">{{item.approveStage}}</td> |
| | | <td class="w-25">{{item.approvePerson}}</td> |
| | | <td class="w-25 m-color">审批结果</td> |
| | | <td class="w-25" :class="item.approveStatus==3?'redTit':''">{{item.approveStatus==1?'未审批':item.approveStatus==2?'通过':'未通过'}}</td> |
| | | </tr> |
| | | <tr> |
| | | <td class="w-25 m-color autoheight">审批意见</td> |
| | | <td class="w-75 autoheight l-border"> |
| | | {{ item.approveDesc }} |
| | | </td> |
| | | </tr> |
| | | </template> |
| | | </table> |
| | | </el-form> |
| | | <template #footer> |
| | |
| | | // reportDialogState.reportForm[i] = value[i]; |
| | | // } |
| | | // } |
| | | reportDialogState.reportForm.riskSource = [] |
| | | setTimeout(()=>{ |
| | | selectDangerRef.value.dangerSourceState.dangerList = [] |
| | | },2000) |
| | | }else if(title === '修改'){ |
| | | reportDialogState.title = '修改报告'; |
| | | reportDialogState.disabled = false |
| | |
| | | // } |
| | | // } |
| | | } |
| | | console.log(reportDialogState.reportForm,'form') |
| | | }; |
| | | |
| | | const isValidKey = (key: string | number | symbol, object:object): key is keyof typeof object =>{ |
| | |
| | | if(res.data.data&&res.data.data.length==0){ |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '暂时无法获取实验信息,可能与用户身份有关' |
| | | message: '暂时无法获取实验信息,可能评估流程未完成,用户无法查看' |
| | | }); |
| | | }else{ |
| | | for(let i in reportDialogState.reportForm) { |
| | |
| | | const onSubmitProject = () => { |
| | | reportFormRef.value.validate(async(valid: boolean) => { |
| | | if(valid){ |
| | | const { id,assessPerson,safeRiskAnalysis,assessLevel,description } = reportDialogState.reportForm |
| | | const data = { id,assessPerson,safeRiskAnalysis,assessLevel,description } |
| | | reportDialogState.reportForm.riskSource = selectDangerRef.value.dangerSourceState.dangerList |
| | | const { id,assessPerson,riskSource,safeRiskAnalysis,assessLevel,description } = reportDialogState.reportForm |
| | | const data = { id,assessPerson,riskSource,safeRiskAnalysis,assessLevel,description } |
| | | if(reportDialogState.title === '提交报告'){ |
| | | for(let i in data.riskSource){ |
| | | riskSource[i].reportId = data.id |
| | | riskSource[i].riskSourceIndex = i + 1 |
| | | } |
| | | let res = await assessApplyApi().updateRiskReport(data); |
| | | if(res.data.code === 100){ |
| | | emit('refresh') |
| | |
| | | |
| | | const getPersonList = async () => { |
| | | let res = await userApi().getUserList({ |
| | | roleId: 1, |
| | | usePage: false, |
| | | pageIndex: 1, |
| | | pageSize: 10 |
| | | pageSize: 99999, |
| | | searchParams:{ |
| | | roleId: null, |
| | | name: '', |
| | | realName: '' |
| | | } |
| | | }); |
| | | if(res.data.code === 100){ |
| | | reportDialogState.systemPersonList = JSON.parse(JSON.stringify(res.data.data)); |
| | |
| | | width: 75%; |
| | | } |
| | | |
| | | &.redTit{ |
| | | color: red; |
| | | } |
| | | |
| | | .ant-input { |
| | | height: 100%; |
| | | border: none; |