From a60bf862cf96597af3be5d59188218ebf43281d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Wed, 3 Dec 2025 16:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=95=B0=E6=8D=AEbug=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/SimpleFormItem.vue | 10 ++++ src/views/mdm/Bank/components/Form.vue | 7 ++- src/views/mdm/Bank/components/config.ts | 10 ++-- src/views/mdm/Bank/index.vue | 8 ++- src/views/mdm/Category/components/Form.vue | 7 ++- src/views/mdm/Category/index.vue | 3 +- .../mdm/CountryRegion/components/Form.vue | 7 ++- src/views/mdm/CountryRegion/index.vue | 9 ++- src/views/mdm/Currency/components/Form.vue | 7 ++- src/views/mdm/Currency/index.vue | 3 +- src/views/mdm/DocCp/components/Form.vue | 59 ++++++++++++------- src/views/mdm/LNGStation/components/config.ts | 37 ++++++------ .../mdm/PipelineGgasLine/components/Form.vue | 1 + src/views/mdm/Port/components/config.ts | 48 +++++++-------- src/views/mdm/PriceTerms/components/Form.vue | 6 ++ src/views/mdm/PriceTerms/index.vue | 3 +- src/views/mdm/TaxRate/components/Form.vue | 7 ++- src/views/mdm/TaxRate/index.vue | 3 +- .../Customer/components/certificateModal.vue | 2 +- 19 files changed, 155 insertions(+), 82 deletions(-) diff --git a/src/components/SimpleForm/src/components/SimpleFormItem.vue b/src/components/SimpleForm/src/components/SimpleFormItem.vue index ec7ae10..9e16f5c 100644 --- a/src/components/SimpleForm/src/components/SimpleFormItem.vue +++ b/src/components/SimpleForm/src/components/SimpleFormItem.vue @@ -491,4 +491,14 @@ display: none; } } + .ant-input-number-disabled { + border: none !important; + background-color: transparent !important; + padding-left: 0 !important; + color: rgb(0 0 0 / 85%) !important; + } + + .ant-input-disabled { + color: rgb(0 0 0 / 85%) !important; + } diff --git a/src/views/mdm/Bank/components/Form.vue b/src/views/mdm/Bank/components/Form.vue index 616c970..ecf17b7 100644 --- a/src/views/mdm/Bank/components/Form.vue +++ b/src/views/mdm/Bank/components/Form.vue @@ -24,7 +24,7 @@ const { filterFormSchemaAuth } = usePermission(); const { mergeFormSchemas,mergeFormEventConfigs } = useFormConfig(); const { currentRoute } = useRouter(); - + const isView = currentRoute.value.query.isView const RowKey = 'id'; const emits = defineEmits(['changeUploadComponentIds','loadingCompleted', 'form-mounted']); const props = defineProps({ @@ -44,6 +44,11 @@ let customFormEventConfigs=[]; onMounted(async () => { + formProps.schemas?.forEach(v => { + if (v.field === 'code') { + v.component = 'Input' + } + }) try { // 合并渲染覆盖配置中的字段配置、表单事件配置 await mergeCustomFormRenderConfig(); diff --git a/src/views/mdm/Bank/components/config.ts b/src/views/mdm/Bank/components/config.ts index 3ce3596..6a37d7a 100644 --- a/src/views/mdm/Bank/components/config.ts +++ b/src/views/mdm/Bank/components/config.ts @@ -15,11 +15,6 @@ export const searchFormSchema: FormSchema[] = [ label: '银行名称/简称', component: 'Input', }, - { - field: 'code', - label: '编码', - component: 'Input', - }, { field: 'bankCode', label: '联行号', @@ -38,6 +33,11 @@ export const searchFormSchema: FormSchema[] = [ getPopupContainer: () => document.body, }, }, + { + field: 'code', + label: '编码', + component: 'Input', + }, // { // field: 'fullName', // label: '银行名称', diff --git a/src/views/mdm/Bank/index.vue b/src/views/mdm/Bank/index.vue index 8a357f4..53364e6 100644 --- a/src/views/mdm/Bank/index.vue +++ b/src/views/mdm/Bank/index.vue @@ -1,5 +1,5 @@