From d73ec871b1cb3bec444526462ef80721151f3e12 Mon Sep 17 00:00:00 2001 From: gaojs <757918719@qq.com> Date: Fri, 24 May 2024 10:59:37 +0800 Subject: [PATCH] =?UTF-8?q?EAM=20=E2=80=94=E2=80=94>=20=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=80=89=E6=8B=A9=E9=9B=86=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documentTypeSelectSet.data.ts | 12 ++++++++++++ .../documentTypeSelectSet/itemSelectSetForm.vue | 17 +++++++++++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/views/eam/documentTypeSelectSet/documentTypeSelectSet.data.ts b/src/views/eam/documentTypeSelectSet/documentTypeSelectSet.data.ts index 03304be3a..44c8ed909 100644 --- a/src/views/eam/documentTypeSelectSet/documentTypeSelectSet.data.ts +++ b/src/views/eam/documentTypeSelectSet/documentTypeSelectSet.data.ts @@ -23,6 +23,18 @@ export const DocumentTypeSelectSet = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, }, + { + label: '选择集类型', + field: 'type', + sort: 'custom', + dictType: DICT_TYPE.DEVICE_TYPE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isSearch: true, + isForm: true, + form: { + component: 'Select' + } + }, { label: '项编号', field: 'itemCode', diff --git a/src/views/eam/documentTypeSelectSet/itemSelectSetForm.vue b/src/views/eam/documentTypeSelectSet/itemSelectSetForm.vue index e741cfb41..5739eef12 100644 --- a/src/views/eam/documentTypeSelectSet/itemSelectSetForm.vue +++ b/src/views/eam/documentTypeSelectSet/itemSelectSetForm.vue @@ -13,6 +13,14 @@ + + + + + + + + @@ -58,10 +66,6 @@ import { SearchTable } from '@/components/SearchTable' import { DocumentType} from "@/views/eam/documentType/documentType.data"; import * as documentTypeItemApi from "@/api/eam/documentType"; import {ElInput} from "element-plus"; -import { - createDocumentTypeSelectSet, - DocumentTypeSelectSetVO, updateDocumentTypeSelectSet -} from "@/api/eam/documentTypeSelectSet"; defineOptions({ name: 'TeamForm' }) @@ -79,6 +83,11 @@ const inputVisible = ref(false) const isDisabled = ref(false) const InputRef = ref>() +const options = [ + { value: 'DEVICE', text: '设备' }, + { value: 'EQUIPMENT', text: '工装' }, +]; + const itemData = ref({ id: '', code: ''