From 2b235e93e7d369e28fa627c0eb4119bff842e218 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 20 Nov 2024 11:25:17 +0100 Subject: [PATCH 1/8] feat: refs #8194 created VnSelectWorker component and use it in Lilium --- src/components/common/VnSelectWorker.vue | 106 ++++++++++++++++++ src/pages/Customer/Card/CustomerBasicData.vue | 29 ++--- src/pages/Customer/CustomerFilter.vue | 30 ++--- src/pages/Customer/CustomerList.vue | 39 ++----- .../Department/Card/DepartmentBasicData.vue | 12 +- src/pages/Item/ItemRequestFilter.vue | 30 ++--- .../Monitor/Ticket/MonitorTicketFilter.vue | 27 ++--- src/pages/Order/Card/OrderFilter.vue | 27 ++--- src/pages/Route/Card/RouteFilter.vue | 25 ++--- src/pages/Route/Card/RouteForm.vue | 28 ++--- src/pages/Supplier/Card/SupplierBasicData.vue | 31 ++--- .../Ticket/Card/TicketCreateTracking.vue | 29 ++--- src/pages/Worker/WorkerCreate.vue | 25 ++--- src/pages/Worker/WorkerList.vue | 25 ++--- 14 files changed, 215 insertions(+), 248 deletions(-) create mode 100644 src/components/common/VnSelectWorker.vue diff --git a/src/components/common/VnSelectWorker.vue b/src/components/common/VnSelectWorker.vue new file mode 100644 index 000000000..26406b47a --- /dev/null +++ b/src/components/common/VnSelectWorker.vue @@ -0,0 +1,106 @@ + + + diff --git a/src/pages/Customer/Card/CustomerBasicData.vue b/src/pages/Customer/Card/CustomerBasicData.vue index a77d2f865..e7c03bf5c 100644 --- a/src/pages/Customer/Card/CustomerBasicData.vue +++ b/src/pages/Customer/Card/CustomerBasicData.vue @@ -9,6 +9,7 @@ import VnRow from 'components/ui/VnRow.vue'; import VnInput from 'src/components/common/VnInput.vue'; import VnSelect from 'src/components/common/VnSelect.vue'; import VnAvatar from 'src/components/ui/VnAvatar.vue'; +import VnSelectWorker from 'src/components/common/VnSelectWorker.vue'; const route = useRoute(); const { t } = useI18n(); @@ -103,17 +104,18 @@ const exprBuilder = (param, value) => { /> - { :title="title" /> - - + { - { outlined rounded :input-debounce="0" - > - + /> diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue index 3cb17332c..af73e6554 100644 --- a/src/pages/Customer/CustomerList.vue +++ b/src/pages/Customer/CustomerList.vue @@ -2,7 +2,6 @@ import { ref, computed, markRaw } from 'vue'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; -import VnSelect from 'src/components/common/VnSelect.vue'; import VnTable from 'components/VnTable/VnTable.vue'; import VnLocation from 'src/components/common/VnLocation.vue'; import VnSearchbar from 'components/ui/VnSearchbar.vue'; @@ -12,6 +11,7 @@ import RightMenu from 'src/components/common/RightMenu.vue'; import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue'; import { toDate } from 'src/filters'; import CustomerFilter from './CustomerFilter.vue'; +import VnSelectWorker from 'src/components/common/VnSelectWorker.vue'; const { t } = useI18n(); const router = useRouter(); @@ -421,40 +421,21 @@ function handleLocation(data, location) { auto-load >