diff --git a/src/components/02_personnel-management/FormPerson.vue b/src/components/02_personnel-management/FormPerson.vue index 0204bb47..17debb1e 100644 --- a/src/components/02_personnel-management/FormPerson.vue +++ b/src/components/02_personnel-management/FormPerson.vue @@ -1,10 +1,8 @@ @@ -171,41 +96,17 @@ watch( for="input-citizen-id" />
- - - + :label="$t('personnel.form.prefixName')" + class="col-md-1 col-6" + v-model="prefixName" + /> - - - + :label="$t('personnel.form.prefixName')" + class="col-md-1 col-6" + v-model="prefixName" + /> - - - + class="col-md-2 col-6" + v-model="gender" + /> - - - - + + + + + - diff --git a/src/components/07_agencies-management/FormBasicInfoAgencies.vue b/src/components/07_agencies-management/FormBasicInfoAgencies.vue index f01bed38..7f3f3c5d 100644 --- a/src/components/07_agencies-management/FormBasicInfoAgencies.vue +++ b/src/components/07_agencies-management/FormBasicInfoAgencies.vue @@ -133,7 +133,7 @@ type Options = { label: string; value: string }; :readonly="readonly" hide-bottom-space class="col-md-4 col-12" - :label="$t('form.telephone')" + :label="$t('agencies.contactTel')" :model-value="readonly ? contactTel || '-' : contactTel" @update:model-value=" (v) => (typeof v === 'string' ? (contactTel = v) : '') diff --git a/src/components/shared/SelectInput.vue b/src/components/shared/SelectInput.vue index d3317e79..ff7403d4 100644 --- a/src/components/shared/SelectInput.vue +++ b/src/components/shared/SelectInput.vue @@ -28,6 +28,7 @@ const props = withDefaults( disable?: boolean; multiple?: boolean; hideInput?: boolean; + hideDropdownIcon?: boolean; rules?: ((value: string) => string | true)[]; }>(), @@ -82,7 +83,7 @@ watch( :hide-selected hide-bottom-space :fill-input="fillInput && !!model" - :hide-dropdown-icon="readonly" + :hide-dropdown-icon="readonly || hideDropdownIcon" input-debounce="500" :option-value=" typeof props.optionValue === 'string' ? props.optionValue : 'value' diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index 00d10ae3..2cccdd38 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -60,7 +60,7 @@ export default { branchStatus: 'Branch Status', success: 'Success', taxNo: 'Legal Person', - contactName: 'Contact Name', + contactName: 'Contact Person', image: 'Image of ', apply: 'Apply', licenseNumber: 'License number', @@ -382,7 +382,7 @@ export default { branchLabel: 'Branch', branchHQLabel: 'Headoffice', taxNo: 'Legal Person', - contactName: 'Contact Name', + contactName: 'Contact Person', }, page: { captionManage: 'Manage', @@ -403,8 +403,8 @@ export default { code: 'Headoffice Code', codeBranch: 'Branch Code', taxNo: 'Tax Identification Number', - contactName: 'Contact Name', - contactTelephone: 'Contact Telephone', + contactName: 'Contact Person', + contactTelephone: 'Contact Number', branchName: 'Branch Name', branchNameEN: 'Branch Name (EN)', servicePointName: 'Service Point Name', @@ -469,6 +469,8 @@ export default { normal: 'Normal', canceled: 'Canceled', blacklist: 'Black list', + contactName: 'Contact Person', + contactTel: 'Contact Number', }, }, customer: { @@ -560,7 +562,7 @@ export default { jobPosition: 'Job Position', address: 'Address', workPlace: 'Workplace', - contactName: 'Contact Name', + contactName: 'Contact Person', contactPhone: 'Contact Phone', totalEmployee: 'Total Employee', officeTel: 'Headoffice Telephone', @@ -798,7 +800,7 @@ export default { employee: 'Employee', employeeName: 'Full Name', workName: 'Work Name', - contactName: 'Contact Name', + contactName: 'Contact Person', documentReceivePoint: 'Document Drop-Off Point"', dueDate: 'Quotation Due Date', specialCondition: 'Special Conditions', @@ -916,8 +918,8 @@ export default { code: 'Agencies Code', group: 'Agencies Group', name: 'Agencies Name', - contactName: 'Contact Name', - contactTel: 'Contact Telephone', + contactName: 'Contact Person', + contactTel: 'Contact Number', bankInfo: 'Bank Information', }, @@ -1006,7 +1008,7 @@ export default { issueBranch: 'Issue Branch', issueDate: 'Issue Date', madeBy: 'Made By', - contactName: 'Contact Name', + contactName: 'Contact Person', workOrderCode: 'Work Order Code', workOrderName: 'Work Order Name', telephone: 'Telephone', diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index 3e590956..d903e79e 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -465,6 +465,8 @@ export default { normal: 'ปกติ', canceled: 'ยกเลิก', blacklist: 'แบล็คลิสต์', + contactName: 'ชื่อผู้ติดต่อ', + contactTel: 'เบอร์โทรศัพท์ผู้ติดต่อ', }, }, customer: { diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index f71b2ec1..b7c152d1 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -151,6 +151,8 @@ const defaultFormData = { citizenExpire: null, citizenIssue: null, citizenId: '', + contactName: '', + contactTel: '', remark: '', agencyStatus: '', }; @@ -201,6 +203,8 @@ const formData = ref({ citizenExpire: null, citizenIssue: null, citizenId: '', + contactName: '', + contactTel: '', remark: '', agencyStatus: '', }); @@ -590,6 +594,8 @@ async function assignFormData(idEdit: string) { responsibleArea: foundUser.responsibleArea, status: foundUser.status, selectedImage: foundUser.selectedImage, + contactName: foundUser.contactName, + contactTel: foundUser.contactTel, licenseExpireDate: (foundUser.licenseExpireDate && new Date(foundUser.licenseExpireDate)) || @@ -1752,12 +1758,15 @@ watch( v-model:citizen-id="formData.citizenId" v-model:citizen-issue="formData.citizenIssue" v-model:citizen-expire="formData.citizenExpire" + v-model:contact-name="formData.contactName" + v-model:contact-tel="formData.contactTel" :title="'personnel.form.personalInformation'" prefix-id="drawer-info-personnel" dense outlined separator :readonly="!infoDrawerEdit" + :agency="formData.userType === 'AGENCY'" class="q-mb-xl" /> @@ -1967,6 +1976,7 @@ watch( id="dialog-form-personal" prefix-id="form-dialog-personnel" dense + :agency="formData.userType === 'AGENCY'" outlined separator :title="'personnel.form.personalInformation'" @@ -1985,6 +1995,8 @@ watch( v-model:citizen-id="formData.citizenId" v-model:citizen-issue="formData.citizenIssue" v-model:citizen-expire="formData.citizenExpire" + v-model:contact-name="formData.contactName" + v-model:contact-tel="formData.contactTel" class="q-mb-xl" />