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();
|
const optionStore = useOptionStore();
|
||||||
|
|
||||||
// PERS
|
// PERS
|
||||||
const citizenId = defineModel<string | undefined>('citizenId', {
|
const citizenId = defineModel<string | undefined>('citizenId', {});
|
||||||
required: true,
|
|
||||||
});
|
|
||||||
const prefixName = defineModel<string | null>('prefixName');
|
const prefixName = defineModel<string | null>('prefixName');
|
||||||
const firstName = defineModel<string>('firstName');
|
const firstName = defineModel<string>('firstName');
|
||||||
const lastName = defineModel<string>('lastName');
|
const lastName = defineModel<string>('lastName');
|
||||||
|
|
@ -31,18 +29,10 @@ const birthDate = defineModel<Date | string | null>('birthDate');
|
||||||
|
|
||||||
// CORP
|
// CORP
|
||||||
const customerName = defineModel<string>('customerName');
|
const customerName = defineModel<string>('customerName');
|
||||||
const legalPersonNo = defineModel<string | undefined>('legalPersonNo', {
|
const legalPersonNo = defineModel<string | undefined>('legalPersonNo', {});
|
||||||
required: true,
|
const branchCode = defineModel<string | undefined>('branchCode', {});
|
||||||
});
|
const registerName = defineModel<string | undefined>('registerName', {});
|
||||||
const branchCode = defineModel<string | undefined>('branchCode', {
|
const registerNameEN = defineModel<string | undefined>('registerNameEN', {});
|
||||||
required: true,
|
|
||||||
});
|
|
||||||
const registerName = defineModel<string | undefined>('registerName', {
|
|
||||||
required: true,
|
|
||||||
});
|
|
||||||
const registerNameEN = defineModel<string | undefined>('registerNameEN', {
|
|
||||||
required: true,
|
|
||||||
});
|
|
||||||
const registerDate = defineModel<Date | null>('registerDate');
|
const registerDate = defineModel<Date | null>('registerDate');
|
||||||
const authorizedCapital = defineModel<string>('authorizedCapital', {
|
const authorizedCapital = defineModel<string>('authorizedCapital', {
|
||||||
default: '0',
|
default: '0',
|
||||||
|
|
@ -50,9 +40,7 @@ const authorizedCapital = defineModel<string>('authorizedCapital', {
|
||||||
|
|
||||||
// both
|
// both
|
||||||
const telephoneNo = defineModel<string>('telephoneNo');
|
const telephoneNo = defineModel<string>('telephoneNo');
|
||||||
const codeCustomer = defineModel<string | undefined>('codeCustomer', {
|
const codeCustomer = defineModel<string | undefined>('codeCustomer', {});
|
||||||
required: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
const prefixNameOptions = ref<Record<string, unknown>[]>([]);
|
const prefixNameOptions = ref<Record<string, unknown>[]>([]);
|
||||||
let prefixNameFilter: (
|
let prefixNameFilter: (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue