feat: 客户名称字段校验

This commit is contained in:
caiyuchao
2025-05-24 16:12:34 +08:00
parent 7206389717
commit 588709c589
3 changed files with 37 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { CustomerApi } from '#/api/license/customer';
import { computed, ref } from 'vue';
import { computed } from 'vue';
import { useVbenModal } from '@vben/common-ui';
@@ -15,10 +15,9 @@ import {
} from '#/api/license/customer';
import { $t } from '#/locales';
import { useFormSchema } from '../data';
import { formData, useFormSchema } from '../data';
const emit = defineEmits(['success']);
const formData = ref<CustomerApi.Customer>();
const getTitle = computed(() => {
return formData.value?.id
? $t('ui.actionTitle.edit', [$t('customer.customer')])