refactor: edit value required
This commit is contained in:
parent
25f11388da
commit
47f2664f15
1 changed files with 6 additions and 18 deletions
|
|
@ -18,9 +18,7 @@ const props = defineProps<{
|
|||
const optionStore = useOptionStore();
|
||||
|
||||
// PERS
|
||||
const citizenId = defineModel<string | undefined>('citizenId', {
|
||||
required: true,
|
||||
});
|
||||
const citizenId = defineModel<string | undefined>('citizenId', {});
|
||||
const prefixName = defineModel<string | null>('prefixName');
|
||||
const firstName = defineModel<string>('firstName');
|
||||
const lastName = defineModel<string>('lastName');
|
||||
|
|
@ -31,18 +29,10 @@ const birthDate = defineModel<Date | string | null>('birthDate');
|
|||
|
||||
// CORP
|
||||
const customerName = defineModel<string>('customerName');
|
||||
const legalPersonNo = defineModel<string | undefined>('legalPersonNo', {
|
||||
required: true,
|
||||
});
|
||||
const branchCode = defineModel<string | undefined>('branchCode', {
|
||||
required: true,
|
||||
});
|
||||
const registerName = defineModel<string | undefined>('registerName', {
|
||||
required: true,
|
||||
});
|
||||
const registerNameEN = defineModel<string | undefined>('registerNameEN', {
|
||||
required: true,
|
||||
});
|
||||
const legalPersonNo = defineModel<string | undefined>('legalPersonNo', {});
|
||||
const branchCode = defineModel<string | undefined>('branchCode', {});
|
||||
const registerName = defineModel<string | undefined>('registerName', {});
|
||||
const registerNameEN = defineModel<string | undefined>('registerNameEN', {});
|
||||
const registerDate = defineModel<Date | null>('registerDate');
|
||||
const authorizedCapital = defineModel<string>('authorizedCapital', {
|
||||
default: '0',
|
||||
|
|
@ -50,9 +40,7 @@ const authorizedCapital = defineModel<string>('authorizedCapital', {
|
|||
|
||||
// both
|
||||
const telephoneNo = defineModel<string>('telephoneNo');
|
||||
const codeCustomer = defineModel<string | undefined>('codeCustomer', {
|
||||
required: true,
|
||||
});
|
||||
const codeCustomer = defineModel<string | undefined>('codeCustomer', {});
|
||||
|
||||
const prefixNameOptions = ref<Record<string, unknown>[]>([]);
|
||||
let prefixNameFilter: (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue