diff --git a/src/views/setting/system/contract-settings/contract-template-edit.vue b/src/views/setting/system/contract-settings/contract-template-edit.vue index 28f5d2e..090c5c3 100644 --- a/src/views/setting/system/contract-settings/contract-template-edit.vue +++ b/src/views/setting/system/contract-settings/contract-template-edit.vue @@ -41,7 +41,7 @@ 'rounded-[2px] border-[1px] border-solid border-[#f8f8f8]', { isActive: currentId === 0 }, ]" - @click="handleChoose(0, '基本信息')" + @click="handleChoose(0, '基本信息', 0)" > 基本信息

@@ -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 }} @@ -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); diff --git a/src/views/setting/system/contract-settings/terms/rent-setting.vue b/src/views/setting/system/contract-settings/terms/rent-setting.vue index bb75a83..ca08ef4 100644 --- a/src/views/setting/system/contract-settings/terms/rent-setting.vue +++ b/src/views/setting/system/contract-settings/terms/rent-setting.vue @@ -26,7 +26,9 @@