fix: bug修复

This commit is contained in:
Zzz1zz 2025-10-18 11:39:35 +08:00
parent 79ad9275d0
commit 84aaa9ac10
2 changed files with 11 additions and 5 deletions

View file

@ -41,7 +41,7 @@
'rounded-[2px] border-[1px] border-solid border-[#f8f8f8]',
{ isActive: currentId === 0 },
]"
@click="handleChoose(0, '基本信息')"
@click="handleChoose(0, '基本信息', 0)"
>
基本信息</p
>
@ -73,7 +73,9 @@
'rounded-[2px] border-[1px] border-solid border-[#f8f8f8]',
{ isActive: currentId === item.id },
]"
@click="handleChoose(item.id, item.name)"
@click="
handleChoose(item.id, item.name, item.contractTermsSettingId)
"
>
{{ item.name }}
</div>
@ -407,11 +409,12 @@
termTabList.value = next;
}
}
const handleChoose = (id: number, str: string) => {
const handleChoose = (id: number, str: string, termId: number) => {
if (id === currentId.value) return;
currentId.value = id;
title.value = str;
getTermsSettingFromIdData(id);
if (id === 0 || termId === 0) return;
getTermsSettingFromIdData(termId);
};
const handleBaseInfoEdit = () => {
showModal.value = true;
@ -440,6 +443,7 @@
const submitBaseInfo = async () => {
await formRef.value?.validate();
baseInfoForm.id = Number(route?.query?.id);
baseInfoForm.saveType = 2;
const { code, message } = await updateTemplateSetting(baseInfoForm);
if (code === 200) {
Message.success(message);

View file

@ -26,7 +26,9 @@
<a-form-item label="首期账单缴费日期" field="firstPayDate" required>
<a-date-picker
v-model="rentSettingInfo.firstPayDate"
:disabled-date="(current) => dayjs(current).isBefore(dayjs())"
:disabled-date="
(current) => dayjs(current).isBefore(dayjs().subtract(1, 'day'))
"
/>
</a-form-item>
</a-col>