| | |
| | | </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.实验过程中是否有爆炸、火灾、腐蚀、中毒风险、产生危险废弃物等(根据危险源清单,分析实验过程中可能对人身安全、人体健康、实验室环境和周边环境等带来的负面影响)" /> |
| | |
| | | // 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 =>{ |
| | |
| | | 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') |