From 3015d443e258a7fddb0862ceb6d856d0bc9af208 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Tue, 21 May 2024 10:38:52 +0800 Subject: [PATCH] =?UTF-8?q?EAM=20=E2=80=94=E2=80=94>=20=E5=B7=A1=E6=A3=80?= =?UTF-8?q?=E6=96=B9=E6=A1=88=E5=85=B3=E8=81=94=E5=B7=A1=E6=A3=80=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicInspectionOption.data.ts | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts b/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts index 13bf5fff5..55e27a673 100644 --- a/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts +++ b/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts @@ -1,11 +1,16 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' +import * as ItemApi from "@/api/eam/inspectionItemSelectSet"; +import { + InspectionItemSelectSet +} from "@/views/eam/inspectionItemSelectSet/inspectionItemSelectSet.data"; +import {getInspectionItemSelectSetPage} from "@/api/eam/inspectionItemSelectSet"; // 表单校验 export const BasicInspectionOptionRules = reactive({ code: [required], name: [required], - type: [required], + selectId: [required], }) export const BasicInspectionOption = useCrudSchemas(reactive([ @@ -30,6 +35,29 @@ export const BasicInspectionOption = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, }, + { + label: '选择集', + field: 'selectId', + sort: 'custom', + isDetail: true, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchTitle: '巡检选择信息', // 查询弹窗标题 + searchAllSchemas: InspectionItemSelectSet.allSchemas, // 查询弹窗所需类 + searchField: 'name', // 查询弹窗赋值字段 + searchPage: ItemApi.getInspectionItemSelectSetPage, // 查询弹窗所需分页方法 + multiple:true, + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } + }, { label: '描述', field: 'describing',