refactor: edit name defineModel
This commit is contained in:
parent
882b5fb753
commit
d7a99d2ee2
13 changed files with 241 additions and 269 deletions
|
|
@ -23,8 +23,8 @@ const citizenId = defineModel<string | undefined>('citizenId', {});
|
|||
const prefixName = defineModel<string | null>('prefixName');
|
||||
const firstName = defineModel<string>('firstName');
|
||||
const lastName = defineModel<string>('lastName');
|
||||
const firstNameEN = defineModel<string>('firstNameEN');
|
||||
const lastNameEN = defineModel<string>('lastNameEN');
|
||||
const firstNameEN = defineModel<string>('firstNameEn');
|
||||
const lastNameEN = defineModel<string>('lastNameEn');
|
||||
const gender = defineModel<string>('gender');
|
||||
const birthDate = defineModel<Date | string | null>('birthDate');
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ const customerName = defineModel<string>('customerName');
|
|||
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 registerNameEN = defineModel<string | undefined>('registerNameEn', {});
|
||||
const registerDate = defineModel<string | Date | null>('registerDate');
|
||||
const authorizedCapital = defineModel<string>('authorizedCapital', {
|
||||
default: '0',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ defineProps<{
|
|||
prefixId?: string;
|
||||
}>();
|
||||
const authorizedName = defineModel<string>('authorizedName');
|
||||
const authorizedNameEN = defineModel<string>('authorizedNameEN');
|
||||
const authorizedNameEN = defineModel<string>('authorizedNameEn');
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import EmployerFormContact from './EmployerFormContact.vue';
|
|||
import { CustomerCreate } from 'stores/customer/types';
|
||||
import EmployerFormAbout from './EmployerFormAbout.vue';
|
||||
import EmployerFormAuthorized from './EmployerFormAuthorized.vue';
|
||||
import { useCustomerForm } from 'src/pages/03_customer-management/form';
|
||||
import { waitAll } from 'src/stores/utils';
|
||||
import {
|
||||
FormCitizen,
|
||||
|
|
@ -25,7 +24,6 @@ import {
|
|||
} from 'components/button';
|
||||
import { UploadFileGroup } from 'src/components/upload-file/';
|
||||
import { uploadFileListCustomer, columnsAttachment } from '../../constant';
|
||||
import { group } from 'node:console';
|
||||
|
||||
const ocrStore = useOcrStore();
|
||||
const customerStore = useCustomerStore();
|
||||
|
|
@ -135,22 +133,22 @@ withDefaults(
|
|||
:readonly="readonly"
|
||||
:customer-type="customerType"
|
||||
v-model:citizen-id="item.citizenId"
|
||||
v-model:prefixName="item.namePrefix"
|
||||
v-model:firstName="item.firstName"
|
||||
v-model:lastName="item.lastName"
|
||||
v-model:firstNameEN="item.firstNameEN"
|
||||
v-model:lastNameEN="item.lastNameEN"
|
||||
v-model:prefix-name="item.namePrefix"
|
||||
v-model:first-name="item.firstName"
|
||||
v-model:last-name="item.lastName"
|
||||
v-model:first-name-en="item.firstNameEN"
|
||||
v-model:last-name-en="item.lastNameEN"
|
||||
v-model:gender="item.gender"
|
||||
v-model:birthDate="item.birthDate"
|
||||
v-model:customerName="item.customerName"
|
||||
v-model:legalPersonNo="item.legalPersonNo"
|
||||
v-model:branchCode="item.code"
|
||||
v-model:registerName="item.registerName"
|
||||
v-model:registerNameEN="item.registerNameEN"
|
||||
v-model:registerDate="item.registerDate"
|
||||
v-model:authorizedCapital="item.authorizedCapital"
|
||||
v-model:telephoneNo="item.telephoneNo"
|
||||
v-model:codeCustomer="item.codeCustomer"
|
||||
v-model:birth-date="item.birthDate"
|
||||
v-model:customer-name="item.customerName"
|
||||
v-model:legal-person-no="item.legalPersonNo"
|
||||
v-model:branch-code="item.code"
|
||||
v-model:register-name="item.registerName"
|
||||
v-model:register-name-en="item.registerNameEN"
|
||||
v-model:register-date="item.registerDate"
|
||||
v-model:authorized-capital="item.authorizedCapital"
|
||||
v-model:telephone-no="item.telephoneNo"
|
||||
v-model:code-customer="item.codeCustomer"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="business">
|
||||
|
|
@ -163,7 +161,7 @@ withDefaults(
|
|||
v-model:job-position="item.jobPosition"
|
||||
v-model:job-description="item.jobDescription"
|
||||
v-model:pay-date="item.payDate"
|
||||
v-model:pay-date-e-n="item.payDateEN"
|
||||
v-model:pay-date-en="item.payDateEN"
|
||||
v-model:wage-rate="item.wageRate"
|
||||
v-model:wage-rate-text="item.wageRateText"
|
||||
/>
|
||||
|
|
@ -173,7 +171,7 @@ withDefaults(
|
|||
:prefix-id="prefixId || 'employer'"
|
||||
:readonly="readonly"
|
||||
v-model:authorized-name="item.authorizedName"
|
||||
v-model:authorized-name-e-n="item.authorizedNameEN"
|
||||
v-model:authorized-name-en="item.authorizedNameEN"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="address">
|
||||
|
|
@ -207,10 +205,10 @@ withDefaults(
|
|||
<EmployerFormContact
|
||||
:readonly="readonly"
|
||||
:prefixId="prefixId"
|
||||
v-model:contactName="item.contactName"
|
||||
v-model:contact-name="item.contactName"
|
||||
v-model:email="item.email"
|
||||
v-model:contactTel="item.contactTel"
|
||||
v-model:officeTel="item.officeTel"
|
||||
v-model:contact-tel="item.contactTel"
|
||||
v-model:office-tel="item.officeTel"
|
||||
v-model:agent="item.agent"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const bussinessType = defineModel<string>('bussinessType');
|
|||
const jobPosition = defineModel<string>('jobPosition');
|
||||
const jobDescription = defineModel<string>('jobDescription');
|
||||
const payDate = defineModel<string>('payDate');
|
||||
const payDateEN = defineModel<string>('payDateEN');
|
||||
const payDateEN = defineModel<string>('payDateEn');
|
||||
const wageRate = defineModel<number | string>('wageRate');
|
||||
const wageRateText = defineModel<string>('wageRateText');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue