diff --git a/src/i18n/eng/index.ts b/src/i18n/eng/index.ts index e5eb3fb9..b44f77dc 100644 --- a/src/i18n/eng/index.ts +++ b/src/i18n/eng/index.ts @@ -337,6 +337,7 @@ export default { workPlace: 'Workplace', contactName: 'Contact Name', contactPhone: 'Contact Phone', + totalEmployee: 'Total Employee', }, }, diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts index 77818c74..c2e6ba65 100644 --- a/src/i18n/tha/index.ts +++ b/src/i18n/tha/index.ts @@ -337,6 +337,7 @@ export default { workPlace: 'สถานที่ทํางาน', contactName: 'ชื่อผู้ติดต่อ', contactPhone: 'โทรศัพท์ผู้ติดต่อ', + totalEmployee: 'ลูกจ้างทั้งหมด', }, }, diff --git a/src/pages/03_customer-management/BranchPage.vue b/src/pages/03_customer-management/BranchPage.vue index b4adb920..0513008f 100644 --- a/src/pages/03_customer-management/BranchPage.vue +++ b/src/pages/03_customer-management/BranchPage.vue @@ -10,7 +10,7 @@ import useOptionStore from 'stores/options'; import { dialog } from 'stores/utils'; import { Status } from 'stores/types'; -import { Employee, EmployeeHistory } from 'stores/employee/types'; +import { Employee } from 'stores/employee/types'; import { CustomerBranch, CustomerType } from 'stores/customer/types'; import { columnsEmployee } from './constant'; @@ -70,6 +70,7 @@ const pageSizeBranch = ref(30); const prop = withDefaults( defineProps<{ + index?: string | number; color?: 'purple' | 'green'; currentCustomerName?: string; customerType: CustomerType; @@ -103,47 +104,48 @@ onMounted(async () => { const columns = [ { - name: 'branchLabelName', + name: 'branchName', align: 'left', - label: 'office', + label: 'general.name', field: 'name', - sortable: true, }, { - name: 'branchLabelAddress', + name: 'address', align: 'left', - label: 'address', - field: 'address', - sortable: true, + label: 'general.address', + field: 'name', }, { - name: 'branchLabelTel', + name: 'telephone', align: 'left', - label: 'formDialogInputTelephone', - field: 'telephoneNo', + label: 'general.telephone', + field: 'name', + }, + { + name: 'businessType', + align: 'left', + label: 'customer.form.businessType', + field: 'name', + }, + { + name: 'totalEmployee', + align: 'left', + label: 'customer.table.totalEmployee', + field: 'name', }, ] satisfies QTableProps['columns']; const fieldDisplay = ref< ( | 'branchName' - | 'customerBranchFormTab' | 'address' | 'telephone' | 'businessTypePure' | 'totalEmployee' )[] ->([ - 'branchName', - 'customerBranchFormTab', - 'address', - 'telephone', - 'businessTypePure', - 'totalEmployee', -]); +>(['branchName', 'address', 'telephone', 'businessTypePure', 'totalEmployee']); const branchFieldSelected = ref< ( - | 'customerBranchFormTab' | 'branchName' | 'address' | 'telephone' @@ -376,16 +378,15 @@ watch([customerId, inputSearch, currentStatus], async () => { card-container-class="row q-col-gutter-md" row-key="name" hide-pagination - :visible-columns="branchFieldSelected" > -