refactor: add new column
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s
This commit is contained in:
parent
d1bb504174
commit
febfbf4828
5 changed files with 42 additions and 7 deletions
|
|
@ -477,7 +477,6 @@ export default {
|
|||
powerOfAttorney: 'Power of Attorney',
|
||||
others: 'Others',
|
||||
},
|
||||
|
||||
employer: 'Employer',
|
||||
employerLegalEntity: 'Legal Entity',
|
||||
employerNaturalPerson: 'Natrual Person',
|
||||
|
|
@ -499,15 +498,12 @@ export default {
|
|||
religion: 'Religion',
|
||||
issueDate: 'Issue Date',
|
||||
passportExpiryDate: 'Passport Expiry Date',
|
||||
|
||||
ownerName: 'Customer Name',
|
||||
firstName: 'First Name ',
|
||||
lastName: 'Last Name ',
|
||||
firstNameEN: 'First Name in English',
|
||||
lastNameEN: 'Last Name in English',
|
||||
|
||||
cardNumber: 'ID Card Number',
|
||||
|
||||
prefixName: 'Prefix',
|
||||
legalPersonNo: 'Legal Entity Registration Number',
|
||||
registerName: 'Company Name',
|
||||
|
|
@ -515,7 +511,6 @@ export default {
|
|||
registerDate: 'Registered On',
|
||||
registerCompanyName: 'Registered Name',
|
||||
authorizedCapital: 'Authorized Capital',
|
||||
|
||||
workplace: 'Workplace',
|
||||
workplaceEN: 'Workplace (EN)',
|
||||
address: 'Address',
|
||||
|
|
@ -523,7 +518,6 @@ export default {
|
|||
branchCode: 'Branch Code',
|
||||
customerCode: 'Employer Code',
|
||||
legalPersonCode: 'Legal Entity Code',
|
||||
|
||||
codeAbbrev: 'Company Abbreviation',
|
||||
codeNumber: 'Company Number',
|
||||
registeredBranch: 'Registered Branch',
|
||||
|
|
@ -941,8 +935,9 @@ export default {
|
|||
localEmployee: 'Local Employee',
|
||||
nonLocalEmployee: 'Non Local Employee',
|
||||
noWorkflowTemplate: 'A workflow template has not been selected.',
|
||||
|
||||
salesRepresentative: 'Sales Representative',
|
||||
|
||||
dataOffice: 'Employment Office District',
|
||||
ref: 'Reference',
|
||||
action: {
|
||||
title: 'Action',
|
||||
|
|
|
|||
|
|
@ -932,6 +932,7 @@ export default {
|
|||
nonLocalEmployee: 'พนักงานนอกพื้นที่',
|
||||
noWorkflowTemplate: 'คุณไม่ได้เลือกแม่แบบขั้นตอนการทำงาน',
|
||||
salesRepresentative: 'พนักงานขาย',
|
||||
dataOffice: 'สำนักงานเขตจัดหางาน',
|
||||
ref: 'อ้างอิง',
|
||||
action: {
|
||||
title: 'จัดการ',
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import useOptionStore from 'src/stores/options';
|
|||
|
||||
import KebabAction from 'src/components/shared/KebabAction.vue';
|
||||
import { CreatedBy } from 'src/stores/types';
|
||||
import { dateFormatJS } from 'src/utils/datetime';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
|
@ -168,6 +169,25 @@ function getEmployeeName(
|
|||
<q-td v-if="visibleColumns.includes('employee')" class="text-left">
|
||||
{{ getEmployeeName(props.row, { locale: $i18n.locale }) || '-' }}
|
||||
</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')">
|
||||
{{ props.row.quotation.code || '-' }}
|
||||
</q-td>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,24 @@ export const column = [
|
|||
label: 'customer.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',
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export type RequestData = {
|
|||
|
||||
requestWork: RequestWork[];
|
||||
requestDataStatus: RequestDataStatus;
|
||||
dataOffice: { name: string; nameEN: string };
|
||||
};
|
||||
|
||||
export enum RequestDataStatus {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue