diff --git a/src/views/mdm/Bank/components/config.ts b/src/views/mdm/Bank/components/config.ts index 5c1d59a..4862781 100644 --- a/src/views/mdm/Bank/components/config.ts +++ b/src/views/mdm/Bank/components/config.ts @@ -197,7 +197,7 @@ export const formProps: FormProps = { field: 'code', label: '编码', type: 'input', - component: 'Input', + component: 'InputNumber', colProps: { span: 24 }, defaultValue: '', componentProps: { diff --git a/src/views/mdm/DocCp/components/Form.vue b/src/views/mdm/DocCp/components/Form.vue index 42e339d..09afd8d 100644 --- a/src/views/mdm/DocCp/components/Form.vue +++ b/src/views/mdm/DocCp/components/Form.vue @@ -187,16 +187,22 @@ (val) => { let suNecSignProps = data.formDataProps.schemas?.filter((item) => item.field === 'suNecSign')[0]; let cuNecSignProps = data.formDataProps.schemas?.filter((item) => item.field === 'cuNecSign')[0]; + if (val.suNecSign == 'N' && !suNecSignProps.componentProps.disabled && val.suSign != 'N') return + if (val.cuNecSign == 'N' && !cuNecSignProps.componentProps.disabled && val.cuSign != 'N') return if (val.suSign === 'N') { val.suNecSign = 'N'; suNecSignProps.componentProps.disabled = true; - } else { + } + if (val.suSign === 'Y') { suNecSignProps.componentProps.disabled = false; + val.suNecSign = 'Y'; } if (val.cuSign === 'N') { val.cuNecSign = 'N'; cuNecSignProps.componentProps.disabled = true; - } else { + } + if (val.cuSign === 'Y') { + val.cuNecSign = 'Y'; cuNecSignProps.componentProps.disabled = false; } }, diff --git a/src/views/mdm/DocCp/components/config.ts b/src/views/mdm/DocCp/components/config.ts index 41a39b0..b0d2d0b 100644 --- a/src/views/mdm/DocCp/components/config.ts +++ b/src/views/mdm/DocCp/components/config.ts @@ -242,7 +242,7 @@ export const formProps: FormProps = { label: '供应商适用', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -255,6 +255,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ @@ -287,7 +288,7 @@ export const formProps: FormProps = { label: '供应商必须提供', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -300,6 +301,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ @@ -332,7 +334,7 @@ export const formProps: FormProps = { label: '客户适用', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -345,6 +347,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [ @@ -377,7 +380,7 @@ export const formProps: FormProps = { label: '客户必须提供', type: 'select', component: 'XjrSelect', - colProps: { span: 24 }, + colProps: { span: 12 }, componentProps: { width: '100%', span: '', @@ -390,6 +393,7 @@ export const formProps: FormProps = { showLabel: true, showSearch: false, clearable: false, + allowClear: false, disabled: false, mode: '', staticOptions: [