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: ''