diff --git a/src/components/02_personnel-management/FormPerson.vue b/src/components/02_personnel-management/FormPerson.vue index 1aee5b95..cb0463af 100644 --- a/src/components/02_personnel-management/FormPerson.vue +++ b/src/components/02_personnel-management/FormPerson.vue @@ -293,15 +293,11 @@ watch( :readonly="readonly" :label="$t('form.birthDate')" :disabled-dates="disabledAfterToday" - :rules=" - employee - ? [] - : [ - (val: string) => - !!val || - $t('form.error.selectField', { field: $t('form.birthDate') }), - ] - " + :rules="[ + (val: string) => + !!val || + $t('form.error.selectField', { field: $t('form.birthDate') }), + ]" /> -import { CustomerBranch } from 'src/stores/customer'; - import SelectCustomer from '../shared/select/SelectCustomer.vue'; import SelectBranch from '../shared/select/SelectBranch.vue'; +import { CustomerBranch } from 'src/stores/customer'; +import { ref } from 'vue'; + const branchId = defineModel('branchId'); const customerBranchId = defineModel('customerBranchId'); const agentPrice = defineModel('agentPrice'); @@ -73,6 +74,7 @@ defineEmits<{ required :readonly /> + import { QTableProps } from 'quasar'; -import { dateFormat } from 'src/utils/datetime'; +import { dateFormat, dateFormatJS } from 'src/utils/datetime'; import { formatNumberDecimal } from 'stores/utils'; @@ -86,11 +86,11 @@ defineEmits<{ - {{ dateFormat(props.row.createdAt) }} + {{ dateFormatJS({ date: props.row.createdAt }) }} - {{ dateFormat(props.row.dueDate) }} + {{ dateFormatJS({ date: props.row.dueDate }) }} diff --git a/src/components/08_request-list/DataDisplay.vue b/src/components/08_request-list/DataDisplay.vue index a52060f3..f36acb4f 100644 --- a/src/components/08_request-list/DataDisplay.vue +++ b/src/components/08_request-list/DataDisplay.vue @@ -27,26 +27,38 @@ withDefaults( class="app-text-muted q-pr-sm" :width="iconSize || '2rem'" /> - - + + {{ label }} - + {{ value }} {{ value }} - + {{ item }} diff --git a/src/components/TreeComponent.vue b/src/components/TreeComponent.vue index 6abff3d4..fca14f27 100644 --- a/src/components/TreeComponent.vue +++ b/src/components/TreeComponent.vue @@ -96,7 +96,9 @@ defineEmits<{ expandedTree[expandedTree.length - 1] === node.id, }" > - {{ node.name }} + {{ + $i18n.locale === 'eng' ? node.nameEN || node.name : node.name + }} {{ node.code }} diff --git a/src/components/button/MainButton.vue b/src/components/button/MainButton.vue index 836abe32..08233063 100644 --- a/src/components/button/MainButton.vue +++ b/src/components/button/MainButton.vue @@ -5,6 +5,7 @@ defineEmits<{ (e: 'click', v: MouseEvent): void; }>(); defineProps<{ + id?: string; icon?: string; color: string; iconOnly?: boolean; @@ -18,6 +19,7 @@ defineProps<{