refactor: add new column
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s

This commit is contained in:
Thanaphon Frappet 2025-04-11 13:24:08 +07:00
parent d1bb504174
commit febfbf4828
5 changed files with 42 additions and 7 deletions

View file

@ -477,7 +477,6 @@ export default {
powerOfAttorney: 'Power of Attorney', powerOfAttorney: 'Power of Attorney',
others: 'Others', others: 'Others',
}, },
employer: 'Employer', employer: 'Employer',
employerLegalEntity: 'Legal Entity', employerLegalEntity: 'Legal Entity',
employerNaturalPerson: 'Natrual Person', employerNaturalPerson: 'Natrual Person',
@ -499,15 +498,12 @@ export default {
religion: 'Religion', religion: 'Religion',
issueDate: 'Issue Date', issueDate: 'Issue Date',
passportExpiryDate: 'Passport Expiry Date', passportExpiryDate: 'Passport Expiry Date',
ownerName: 'Customer Name', ownerName: 'Customer Name',
firstName: 'First Name ', firstName: 'First Name ',
lastName: 'Last Name ', lastName: 'Last Name ',
firstNameEN: 'First Name in English', firstNameEN: 'First Name in English',
lastNameEN: 'Last Name in English', lastNameEN: 'Last Name in English',
cardNumber: 'ID Card Number', cardNumber: 'ID Card Number',
prefixName: 'Prefix', prefixName: 'Prefix',
legalPersonNo: 'Legal Entity Registration Number', legalPersonNo: 'Legal Entity Registration Number',
registerName: 'Company Name', registerName: 'Company Name',
@ -515,7 +511,6 @@ export default {
registerDate: 'Registered On', registerDate: 'Registered On',
registerCompanyName: 'Registered Name', registerCompanyName: 'Registered Name',
authorizedCapital: 'Authorized Capital', authorizedCapital: 'Authorized Capital',
workplace: 'Workplace', workplace: 'Workplace',
workplaceEN: 'Workplace (EN)', workplaceEN: 'Workplace (EN)',
address: 'Address', address: 'Address',
@ -523,7 +518,6 @@ export default {
branchCode: 'Branch Code', branchCode: 'Branch Code',
customerCode: 'Employer Code', customerCode: 'Employer Code',
legalPersonCode: 'Legal Entity Code', legalPersonCode: 'Legal Entity Code',
codeAbbrev: 'Company Abbreviation', codeAbbrev: 'Company Abbreviation',
codeNumber: 'Company Number', codeNumber: 'Company Number',
registeredBranch: 'Registered Branch', registeredBranch: 'Registered Branch',
@ -941,8 +935,9 @@ export default {
localEmployee: 'Local Employee', localEmployee: 'Local Employee',
nonLocalEmployee: 'Non Local Employee', nonLocalEmployee: 'Non Local Employee',
noWorkflowTemplate: 'A workflow template has not been selected.', noWorkflowTemplate: 'A workflow template has not been selected.',
salesRepresentative: 'Sales Representative', salesRepresentative: 'Sales Representative',
dataOffice: 'Employment Office District',
ref: 'Reference', ref: 'Reference',
action: { action: {
title: 'Action', title: 'Action',

View file

@ -932,6 +932,7 @@ export default {
nonLocalEmployee: 'พนักงานนอกพื้นที่', nonLocalEmployee: 'พนักงานนอกพื้นที่',
noWorkflowTemplate: 'คุณไม่ได้เลือกแม่แบบขั้นตอนการทำงาน', noWorkflowTemplate: 'คุณไม่ได้เลือกแม่แบบขั้นตอนการทำงาน',
salesRepresentative: 'พนักงานขาย', salesRepresentative: 'พนักงานขาย',
dataOffice: 'สำนักงานเขตจัดหางาน',
ref: 'อ้างอิง', ref: 'อ้างอิง',
action: { action: {
title: 'จัดการ', title: 'จัดการ',

View file

@ -13,6 +13,7 @@ import useOptionStore from 'src/stores/options';
import KebabAction from 'src/components/shared/KebabAction.vue'; import KebabAction from 'src/components/shared/KebabAction.vue';
import { CreatedBy } from 'src/stores/types'; import { CreatedBy } from 'src/stores/types';
import { dateFormatJS } from 'src/utils/datetime';
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
@ -168,6 +169,25 @@ function getEmployeeName(
<q-td v-if="visibleColumns.includes('employee')" class="text-left"> <q-td v-if="visibleColumns.includes('employee')" class="text-left">
{{ getEmployeeName(props.row, { locale: $i18n.locale }) || '-' }} {{ getEmployeeName(props.row, { locale: $i18n.locale }) || '-' }}
</q-td> </q-td>
<q-td class="text-left">
{{
props.row.employee.employeePassport.length !== 0
? props.row.employee.employeePassport[0].number
: '-'
}}
</q-td>
<q-td class="text-left">
{{
$i18n.locale === 'eng'
? props.row.dataOffice.nameEN
: props.row.dataOffice.name
}}
</q-td>
<q-td class="text-left">
{{ dateFormatJS({ date: props.row.createdAt }) }}
</q-td>
<q-td v-if="visibleColumns.includes('quotationCode')"> <q-td v-if="visibleColumns.includes('quotationCode')">
{{ props.row.quotation.code || '-' }} {{ props.row.quotation.code || '-' }}
</q-td> </q-td>

View file

@ -28,6 +28,24 @@ export const column = [
label: 'customer.employee', label: 'customer.employee',
field: 'employee', field: 'employee',
}, },
{
name: 'employeePassport',
align: 'center',
label: 'customerEmployee.form.passportNo',
field: 'employeePassport',
},
{
name: 'dataOffice',
align: 'center',
label: 'requestList.dataOffice',
field: 'dataOffice',
},
{
name: 'createdAt',
align: 'center',
label: 'general.createdAt',
field: 'createdAt',
},
{ {
name: 'quotationCode', name: 'quotationCode',

View file

@ -28,6 +28,7 @@ export type RequestData = {
requestWork: RequestWork[]; requestWork: RequestWork[];
requestDataStatus: RequestDataStatus; requestDataStatus: RequestDataStatus;
dataOffice: { name: string; nameEN: string };
}; };
export enum RequestDataStatus { export enum RequestDataStatus {