From 0b15c284494f6bf8e24fc6207b162a701c385495 Mon Sep 17 00:00:00 2001 From: jtubau Date: Fri, 27 Dec 2024 14:09:27 +0100 Subject: [PATCH 01/10] refactor: refs #8316 used VnSection and VnCardBeta --- src/pages/Order/Card/OrderCard.vue | 32 +---- src/pages/Order/OrderList.vue | 224 +++++++++++++++-------------- src/pages/Order/locale/en.yml | 3 + src/pages/Order/locale/es.yml | 3 + src/router/modules/order.js | 148 ++++++++++--------- 5 files changed, 207 insertions(+), 203 deletions(-) diff --git a/src/pages/Order/Card/OrderCard.vue b/src/pages/Order/Card/OrderCard.vue index 67c0f1de5..823815f59 100644 --- a/src/pages/Order/Card/OrderCard.vue +++ b/src/pages/Order/Card/OrderCard.vue @@ -1,38 +1,12 @@ diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue index baa203541..6ce3c91a4 100644 --- a/src/pages/Order/OrderList.vue +++ b/src/pages/Order/OrderList.vue @@ -8,15 +8,14 @@ import { useRoute } from 'vue-router'; import axios from 'axios'; import OrderSummary from 'pages/Order/Card/OrderSummary.vue'; -import OrderSearchbar from './Card/OrderSearchbar.vue'; import OrderFilter from './Card/OrderFilter.vue'; -import RightMenu from 'src/components/common/RightMenu.vue'; import CustomerDescriptorProxy from '../Customer/Card/CustomerDescriptorProxy.vue'; import WorkerDescriptorProxy from '../Worker/Card/WorkerDescriptorProxy.vue'; import VnTable from 'src/components/VnTable/VnTable.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; +import VnSection from 'src/components/common/VnSection.vue'; const { t } = useI18n(); const { viewSummary } = useSummaryDialog(); @@ -24,6 +23,8 @@ const tableRef = ref(); const agencyList = ref([]); const route = useRoute(); const addressOptions = ref([]); +const dataKey='OrderList'; + const columns = computed(() => [ { align: 'left', @@ -178,117 +179,126 @@ const getDateColor = (date) => { if (difference < 0) return 'bg-success'; }; +