From 476ef1dedd7907586b27d80433427f2faf6fefe4 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 29 Oct 2024 13:14:42 +0100 Subject: [PATCH] feat: refs #7206 added inactive label and corrected minor errors --- src/components/ui/VnConfirm.vue | 1 + .../components/CustomerSummaryTable.vue | 2 +- src/pages/Order/Card/OrderCreateDialog.vue | 1 - src/pages/Order/OrderList.vue | 32 ++++++++++++++++--- src/pages/Ticket/Card/TicketSummary.vue | 5 --- src/pages/Ticket/TicketList.vue | 29 +++++++++++------ 6 files changed, 50 insertions(+), 20 deletions(-) diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue index ec9d0f48b..d6b1ac0a3 100644 --- a/src/components/ui/VnConfirm.vue +++ b/src/components/ui/VnConfirm.vue @@ -31,6 +31,7 @@ const props = defineProps({ }); const emit = defineEmits(['confirm', 'cancel', ...useDialogPluginComponent.emits]); +defineExpose({ show: () => dialogRef.value.show(), hide: () => dialogRef.value.hide() }); const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent(); diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue index e9bb36be7..e9e30506b 100644 --- a/src/pages/Customer/components/CustomerSummaryTable.vue +++ b/src/pages/Customer/components/CustomerSummaryTable.vue @@ -63,7 +63,7 @@ const columns = computed(() => [ }, { align: 'left', - format: (row) => row.agencyMode.name, + format: (row, dashIfEmpty) => dashIfEmpty(row.agencyMode?.name), columnClass: 'expand', label: t('Agency'), }, diff --git a/src/pages/Order/Card/OrderCreateDialog.vue b/src/pages/Order/Card/OrderCreateDialog.vue index bcc62aa43..1239d195b 100644 --- a/src/pages/Order/Card/OrderCreateDialog.vue +++ b/src/pages/Order/Card/OrderCreateDialog.vue @@ -10,7 +10,6 @@ import VnSelect from 'components/common/VnSelect.vue'; import VnInputDate from 'components/common/VnInputDate.vue'; import { useDialogPluginComponent } from 'quasar'; import { reactive } from 'vue'; -import FetchData from 'components/FetchData.vue'; const { t } = useI18n(); const state = useState(); diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue index 6b6b41828..e01790c6b 100644 --- a/src/pages/Order/OrderList.vue +++ b/src/pages/Order/OrderList.vue @@ -233,7 +233,20 @@ onMounted(() => { v-model="data.clientFk" :label="t('module.customer')" @update:model-value="(id) => fetchClientAddress(id, data)" - /> + > + + { diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue index 5fb99b849..61751357c 100644 --- a/src/pages/Ticket/Card/TicketSummary.vue +++ b/src/pages/Ticket/Card/TicketSummary.vue @@ -19,7 +19,6 @@ import VnTitle from 'src/components/common/VnTitle.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; import ZoneDescriptorProxy from 'src/pages/Zone/Card/ZoneDescriptorProxy.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; -import TicketDescriptorMenu from './TicketDescriptorMenu.vue'; import VnToSummary from 'src/components/ui/VnToSummary.vue'; const route = useRoute(); @@ -87,10 +86,6 @@ async function changeState(value) { function toTicketUrl(section) { return '#/ticket/' + entityId.value + '/' + section; } -function isOnTicketCard() { - const currentPath = route.path; - return currentPath.startsWith('/ticket'); -}