| | |
| | | </el-col> |
| | | <el-col :span="11" :offset="2"> |
| | | <el-form-item label="联系人" size="default"> |
| | | <el-input v-model="form.connectPersonId" placeholder="请选择"> |
| | | <el-input v-model="form.connectPersonName" placeholder="请选择"> |
| | | <template #append> |
| | | <el-button :icon="Search" @click="openUser(0)"></el-button> |
| | | </template> |
| | |
| | | <el-row> |
| | | <el-col :span="11"> |
| | | <el-form-item label="录入人" size="default"> |
| | | <el-input v-model="form.inputPersonId" placeholder="请选择"> |
| | | <el-input v-model="form.inputPersonName" placeholder="请选择"> |
| | | <template #append> |
| | | <el-button :icon="Search" @click="openUser(1)"></el-button> |
| | | </template> |
| | |
| | | </el-col> |
| | | <el-col :span="11" :offset="2"> |
| | | <el-form-item label="责任人" size="default"> |
| | | <el-input v-model="form.responsibilityPersonId" placeholder="请选择"> |
| | | <el-input v-model="form.responsibilityPersonName" placeholder="请选择"> |
| | | <template #append> |
| | | <el-button :icon="Search" @click="openUser(2)"></el-button> |
| | | </template> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="检查标准设置" name="fourth" |
| | | > |
| | | <el-tab-pane label="检查标准设置" name="fourth"> |
| | | <el-button type="primary" size="default" @click="openStandard('新增', '')">新增</el-button> |
| | | <el-table :data="form.checkStandardeDetailList" style="width: 100%"> |
| | | <el-table-column align="center" type="indexNum" label="序号" width="75" /> |
| | |
| | | </el-dialog> |
| | | <categoryDailog ref="categoryShow"></categoryDailog> |
| | | <RegionsDialog ref="planShow" @SearchUser="onUser"></RegionsDialog> |
| | | <DailogSearchUser ref="UserShow" @SearchUser="userId"></DailogSearchUser> |
| | | <DailogSearchUser ref="UserOneShow" @SearchUser="userId"></DailogSearchUser> |
| | | <!-- <DailogSearchUser ref="UserTwoShow" @SearchUser="userId"></DailogSearchUser>--> |
| | | <!-- <DailogSearchUser ref="UserThreeShow" @SearchUser="userId"></DailogSearchUser>--> |
| | | <maintenanceDailog ref="maintenanceShow" @onMain="main"></maintenanceDailog> |
| | | <detectDailog ref="detectShow" @onDelect="delect"></detectDailog> |
| | | <repairDailog ref="repairShow" @onRepair="Repair"></repairDailog> |
| | |
| | | <script lang="ts"> |
| | | import { defineComponent, ref } from 'vue'; |
| | | import { Search, Plus, FullScreen } from '@element-plus/icons-vue'; |
| | | import {timeDate} from '/@/assets/index.ts' |
| | | import { timeDate } from '/@/assets/index.ts'; |
| | | import categoryDailog from './categoryDailog.vue'; |
| | | import RegionsDialog from '../../views/contingencyManagement/emergencyDrill/releaseOfDrillPlan/component/regionsDialog.vue'; |
| | | import maintenanceDailog from './maintenanceDailog.vue'; |
| | |
| | | import { ElMessage, ElMessageBox } from 'element-plus'; |
| | | import type { UploadProps, UploadUserFile } from 'element-plus'; |
| | | import { facilityManagementApi } from '/@/api/facilityManagement'; |
| | | import {goalManagementApi} from "/@/api/goalManagement"; |
| | | import { goalManagementApi } from '/@/api/goalManagement'; |
| | | export default defineComponent({ |
| | | components: { categoryDailog, RegionsDialog, DailogSearchUser, maintenanceDailog, detectDailog, repairDailog, standardDailog }, |
| | | setup(props, { emit }) { |
| | |
| | | treatment: '', |
| | | |
| | | inputPersonId: '', |
| | | |
| | | inputPersonName:'', |
| | | departmentId: '', |
| | | |
| | | delRepaireDetailList: [], |
| | |
| | | checkDetailList: [], |
| | | |
| | | responsibilityPersonId: '', |
| | | |
| | | responsibilityPersonName:'', |
| | | delTakecareStardardeDetailList: [], |
| | | |
| | | connectPersonId: '', |
| | | connectPersonName:'', |
| | | |
| | | scenePic: '', |
| | | |
| | |
| | | }; |
| | | // 提交 |
| | | const submitForm = () => { |
| | | form.value.delTakecareDetails =deleteAId.value.toString() |
| | | form.value.delTestDetails =deleteBId.value.toString() |
| | | form.value.delRepaireDetails =deleteCId.value.toString() |
| | | form.value.delCheckStandardeDetails =deleteDId.value.toString() |
| | | form.value.delTakecareDetails = deleteAId.value.toString(); |
| | | form.value.delTestDetails = deleteBId.value.toString(); |
| | | form.value.delRepaireDetails = deleteCId.value.toString(); |
| | | form.value.delCheckStandardeDetails = deleteDId.value.toString(); |
| | | dialogVisible.value = false; |
| | | facilityManagementApi() |
| | | .getkeypointEquipmentInfoAddOrUpdate(form.value) |
| | |
| | | planShow.value.openDailog(); |
| | | }; |
| | | const onUser = (e:any) => { |
| | | form.value.emergencePlanId=e.id |
| | | form.value.emergencePlanId = e.id; |
| | | }; |
| | | |
| | | const UserShow = ref(); |
| | | const openUser = (type: any) => { |
| | | UserShow.value.openDailog(type); |
| | | const UserOneShow = ref(); |
| | | // const UserTwoShow = ref(); |
| | | // const UserThreeShow = ref(); |
| | | const openUser = (type: number) => { |
| | | // if (type == 0) { |
| | | // UserOneShow.value.openDailog(); |
| | | // } else if (type == 1) { |
| | | // UserTwoShow.value.openDailog(); |
| | | // } else if (type == 2) { |
| | | // UserThreeShow.value.openDailog(); |
| | | // } |
| | | UserOneShow.value.openDailog(); |
| | | }; |
| | | const userId = ( type: number,val: any) => { |
| | | if (type == 0) { |
| | | form.value.connectPersonId = val.uid; |
| | | form.value.connectPersonName = val.realName; |
| | | } else if (type == 1) { |
| | | form.value.inputPersonId = val.uid; |
| | | form.value.inputPersonName = val.username; |
| | | } else if (type == 2) { |
| | | form.value.responsibilityPersonId = val.id; |
| | | form.value.responsibilityPersonName = val.username; |
| | | } |
| | | }; |
| | | const maintenanceShow = ref(); |
| | | const openMaintenance = (title: string, data: any) => { |
| | |
| | | } else { |
| | | form.value.repaireDetailList[index.value] = val; |
| | | } |
| | | } |
| | | }; |
| | | const Stand=(val:any)=>{ |
| | | if (index.value == -1) { |
| | | form.value.checkStandardeDetailList.push(val); |
| | | } else { |
| | | form.value.checkStandardeDetailList[index.value] = val; |
| | | } |
| | | } |
| | | }; |
| | | |
| | | //图片提交 |
| | | const imageUrl = ref(''); |
| | |
| | | return true; |
| | | }; |
| | | |
| | | const userId = (val: any, type: number) => { |
| | | console.log(val, type); |
| | | if (type == 0) { |
| | | form.value.connectPersonId = val.uid; |
| | | } else if (type == 1) { |
| | | form.value.inputPersonId = val.uid; |
| | | } else if (type == 2){ |
| | | form.value.responsibilityPersonId = val.uid; |
| | | } |
| | | }; |
| | | //部门树 |
| | | const department = () => { |
| | | goalManagementApi() |
| | |
| | | planShow, |
| | | onUser, |
| | | openPlan, |
| | | UserShow, |
| | | UserOneShow, |
| | | // UserTwoShow, |
| | | // UserThreeShow, |
| | | openUser, |
| | | maintenanceShow, |
| | | openMaintenance, |