From 94f35801fa29b933a3cd59ac769ec0a03ae8928b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E5=BA=86=E6=BA=90?= Date: Fri, 16 May 2025 09:14:29 +0800 Subject: [PATCH] =?UTF-8?q?[SBBJ-1021]=E5=B1=95=E7=A4=BAQAD=E9=83=A8?= =?UTF-8?q?=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eam/basic/fixedAssets/fixedAssets.data.ts | 24 +++++++++++++++++++ src/views/eam/basic/fixedAssets/index.vue | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/views/eam/basic/fixedAssets/fixedAssets.data.ts b/src/views/eam/basic/fixedAssets/fixedAssets.data.ts index fa3e03c..e9261a5 100644 --- a/src/views/eam/basic/fixedAssets/fixedAssets.data.ts +++ b/src/views/eam/basic/fixedAssets/fixedAssets.data.ts @@ -205,6 +205,30 @@ export const FixedAssets = useCrudSchemas(reactive([ width: '150', }, }, + { + label: '部门', + field: 'department', + sort: 'custom', + isForm: true, + table: { + width: '150', + }, + }, + { + label: '数据来源', + field: 'sourceType', + sort: 'custom', + table: { + width: '150', + }, + isForm: true, + form: { + componentProps: { + disabled: true + } + } + + }, { label: '出厂日期', field: 'productionDate', diff --git a/src/views/eam/basic/fixedAssets/index.vue b/src/views/eam/basic/fixedAssets/index.vue index 3d95fff..69fc91e 100644 --- a/src/views/eam/basic/fixedAssets/index.vue +++ b/src/views/eam/basic/fixedAssets/index.vue @@ -189,7 +189,7 @@ const openForm = (type: string, row?: any) => { basicFormRef.value.open(type, row) } } -const qadDisabledTrueList = ["supplierNumber","number","name","locationNumber","beginUseDate","costSubjectDesc","manufacturer","unit","qty"]; +const qadDisabledTrueList = ["supplierNumber","number","name","locationNumber","beginUseDate","costSubjectDesc","manufacturer","unit","qty","department"]; const componentPropsDisabled = (disabled: boolean) => { FixedAssets.allSchemas.formSchema.forEach(item => {