| | |
| | | </el-col> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20"> |
| | | <el-form-item label="事故状态" prop="status"> |
| | | <el-select v-model="ruleForm.status" :disabled="disabled" class="w100" placeholder="请选择"> |
| | | <el-select v-model="ruleForm.status" :disabled="statusDisabled" class="w100" placeholder="请选择"> |
| | | <el-option label="处理中" :value="1"></el-option> |
| | | <el-option label="已处理" :value="2"></el-option> |
| | | </el-select> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | <AccidentName @selectItem="onSelectItem" ref="Shows" /> |
| | | <DailogSearchUser @SearchUser="onUser" ref="userRef" /> |
| | | <DailogSearchUserManger @SearchUser="onUser" ref="userRef" /> |
| | | <RegionsDialog ref="openRef" /> |
| | | </div> |
| | | </template> |
| | |
| | | import type { UploadUserFile, FormInstance, FormRules } from 'element-plus'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import { Search, FullScreen } from '@element-plus/icons-vue'; |
| | | import DailogSearchUser from '/@/components/DailogSearchUser/index.vue'; |
| | | import DailogSearchUserManger from '/@/components/DailogSearchUserManger/index.vue'; |
| | | import AccidentName from '/@/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue'; |
| | | import RegionsDialog from '/@/components/regionsDialog/index.vue'; |
| | | import uploaderImg from '/@/components/uploaderImg/index.vue'; |
| | | import { emergencySuppliesApi } from '/@/api/emergencyResources'; |
| | | import { emergencySuppliesApi } from '/@/api/contingencyManagement/emergencyResources'; |
| | | import { accidentManagementSystemApi } from '/@/api/workInjuryDeclaration'; |
| | | import { goalManagementApi } from '/@/api/goalManagement'; |
| | | |
| | |
| | | name: 'openAdd', |
| | | components: { |
| | | AccidentName, |
| | | DailogSearchUser, |
| | | DailogSearchUserManger, |
| | | RegionsDialog, |
| | | uploaderImg |
| | | }, |
| | |
| | | }); |
| | | const titles = ref(); |
| | | const disabled = ref(); |
| | | const statusDisabled = ref(true) |
| | | // 打开弹窗 |
| | | const openDialog = (title: string, id: number, type: boolean) => { |
| | | const openDialog = (title: string, id: number, type: boolean,statusDisabledFlag:string) => { |
| | | isShowDialog.value = true; |
| | | titles.value = title; |
| | | disabled.value = type; |
| | | if(statusDisabledFlag.value=='first'){ |
| | | ruleForm.value.status = 1 |
| | | }else if(statusDisabledFlag.value=='second'){ |
| | | ruleForm.value.status = 2 |
| | | } |
| | | if (title == '修改事故报告') { |
| | | statusDisabled.value = false |
| | | }else { |
| | | statusDisabled.value = true |
| | | } |
| | | if (title == '查看事故报告' || title == '修改事故报告') { |
| | | accidentManagementSystemApi() |
| | | .seeAccidentReport(id) |
| | |
| | | trigger: 'change', |
| | | }, |
| | | ], |
| | | fillInUserUid: [ |
| | | fillInUserName: [ |
| | | { |
| | | required: true, |
| | | message: '填写人不能为空', |
| | |
| | | newTreeList, |
| | | department, |
| | | getTreeList, |
| | | propse |
| | | propse, |
| | | statusDisabled |
| | | }; |
| | | }, |
| | | }); |