diff --git a/src/views/baseinfo/infoclient/ClientAccountDateModal.vue b/src/views/baseinfo/infoclient/ClientAccountDateModal.vue index b2010f54..396410ed 100644 --- a/src/views/baseinfo/infoclient/ClientAccountDateModal.vue +++ b/src/views/baseinfo/infoclient/ClientAccountDateModal.vue @@ -17,6 +17,7 @@ ghost style="margin-right: 0.8rem" @click="closeModal" + :disabled="props.disabled" >取消 仅保存 保存并关闭 @@ -46,11 +49,17 @@ import { useMessage } from '/@/hooks/web/useMessage' // 声明Emits const emit = defineEmits(['success', 'register']) + const props = defineProps({ + disabled: { + type: Boolean, + default: false, + }, + }) const isUpdate = ref(true) const loading = ref(false) const rowId = ref('') const { notification } = useMessage() - const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({ + const [registerForm, { resetFields, setProps, setFieldsValue, validate }] = useForm({ labelWidth: 100, schemas: CADformSchema, showActionButtonGroup: false, @@ -73,6 +82,7 @@ } else { setFieldsValue({ clientId: data.record.id }) } + setProps({ disabled: props.disabled }) setModalProps({ loading: false }) }) diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue index 59eb8bd6..0b4e2b6f 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/ClientStakeholder/TenantAuditStepModal.vue @@ -17,6 +17,7 @@ ghost style="margin-right: 0.8rem" @click="closeModal" + :disabled="props.disabled" >取消 仅保存 保存并关闭 @@ -47,6 +50,12 @@ import { useMessage } from '/@/hooks/web/useMessage' // 声明Emits const emit = defineEmits(['success', 'register']) + const props = defineProps({ + disabled: { + type: Boolean, + default: false, + }, + }) const isUpdate = ref(true) const loading = ref(false) const rowId = ref('') @@ -55,6 +64,7 @@ labelWidth: 100, schemas: formSchema, showActionButtonGroup: false, + disabled: props.disabled, }) const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx b/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx index 3f0ebfee..04d74056 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx +++ b/src/views/baseinfo/infoclient/ClientStakeholder/columns.tsx @@ -80,7 +80,7 @@ export const formSchema: FormSchema[] = [ field: 'userName', component: 'ApiSelect', required: false, - dynamicDisabled: false, + colProps: { span: 24 }, componentProps: ({ formModel }) => { return { diff --git a/src/views/baseinfo/infoclient/ClientStakeholder/index.vue b/src/views/baseinfo/infoclient/ClientStakeholder/index.vue index aee0e266..4696139a 100644 --- a/src/views/baseinfo/infoclient/ClientStakeholder/index.vue +++ b/src/views/baseinfo/infoclient/ClientStakeholder/index.vue @@ -3,11 +3,11 @@ - + - +