| | |
| | | import type { UploadProps, UploadUserFile } from 'element-plus'; |
| | | import { facilityManagementApi } from '/@/api/facilityManagement'; |
| | | import { goalManagementApi } from '/@/api/goalManagement'; |
| | | import {deepClone} from '/@/utils/other' |
| | | import { deepClone } from '/@/utils/other'; |
| | | export default defineComponent({ |
| | | components: { categoryDailog, regionDailog, DailogSearchUser, maintenanceDailog, detectDailog, repairDailog, standardDailog }, |
| | | setup(props, { emit }) { |
| | |
| | | |
| | | repaireDetailList: [], |
| | | |
| | | equipmentTypeId: "", |
| | | equipmentTypeName:"", |
| | | equipmentTypeId: '', |
| | | |
| | | useDate: '', |
| | | |
| | |
| | | delTestDetails: '', |
| | | }); |
| | | const titles = ref(); |
| | | const titleT = ref(); |
| | | const disabled = ref(false); |
| | | const Dailogtype = ref(false); |
| | | const openDailog = (title: string, type: boolean, id: number, num: any) => { |
| | | dialogVisible.value = true; |
| | | titleT.value = title; |
| | | department(); |
| | | Dailogtype.value = type; |
| | | if (num == 0) { |
| | |
| | | form.value.delRepaireDetails = deleteCId.value.toString(); |
| | | form.value.delCheckStandardeDetails = deleteDId.value.toString(); |
| | | dialogVisible.value = false; |
| | | delete form.value.equipmentTypeName; |
| | | delete form.value.departmentName; |
| | | delete form.value.leadingPersonDepartmentName; |
| | | delete form.value.leadingDepartmentName; |
| | | if (titleT.value == '新建') { |
| | | delete form.value.id; |
| | | } |
| | | facilityManagementApi() |
| | | .getequipmentInfoAddOrUpdate(form.value) |
| | | .then((res) => { |
| | |
| | | }; |
| | | // 回传 |
| | | const main = (data: any) => { |
| | | let val=deepClone(data) |
| | | let val = deepClone(data); |
| | | if (index.value == -1) { |
| | | form.value.takecareDetailList.push(val); |
| | | } else { |
| | |
| | | } |
| | | }; |
| | | const delect = (data: any) => { |
| | | let val=deepClone(data) |
| | | let val = deepClone(data); |
| | | if (index.value == -1) { |
| | | form.value.testDetailList.push(val); |
| | | } else { |
| | |
| | | } |
| | | }; |
| | | const Repair = (data: any) => { |
| | | let val=deepClone(data) |
| | | let val = deepClone(data); |
| | | if (index.value == -1) { |
| | | form.value.repaireDetailList.push(val); |
| | | } else { |
| | |
| | | } |
| | | }; |
| | | const Stand = (data: any) => { |
| | | let val=deepClone(data) |
| | | let val = deepClone(data); |
| | | if (index.value == -1) { |
| | | form.value.checkStandardeDetailList.push(val); |
| | | } else { |
| | |
| | | } |
| | | }; |
| | | const Tid=(data:any)=>{ |
| | | form.value.equipmentTypeId=data.id |
| | | form.value.equipmentTypeName=data.typeName |
| | | form.value.positionNum=data.sortNum |
| | | } |
| | | form.value.equipmentTypeId = data.id; |
| | | form.value.equipmentTypeName = data.typeName; |
| | | form.value.positionNum = data.sortNum; |
| | | }; |
| | | //全屏 |
| | | const full = ref(false); |
| | | const toggleFullscreen = () => { |