From 2981d9790ad780754edfa47be4df47b32aefb400 Mon Sep 17 00:00:00 2001 From: Viet An Date: Thu, 4 Jun 2026 11:36:43 +0700 Subject: [PATCH] changes --- app/assets/styles/overrides-components.scss | 2 +- app/components/Modal2.vue | 97 --- app/components/SearchBox.vue | 10 +- app/components/common/InputEmail.vue | 75 +- app/components/common/InputPhone.vue | 90 +-- app/components/customer/CustomerInfo.vue | 705 ------------------- app/components/customer/CustomerQuickAdd.vue | 190 +++++ app/components/pos/ChooseIMEIModal.vue | 3 +- app/components/pos/POS.vue | 70 +- app/plugins/01-common.js | 17 +- app/plugins/02-connection.js | 52 +- app/plugins/04-components.js | 6 +- nuxt.config.ts | 2 +- 13 files changed, 375 insertions(+), 944 deletions(-) delete mode 100644 app/components/Modal2.vue delete mode 100644 app/components/customer/CustomerInfo.vue create mode 100644 app/components/customer/CustomerQuickAdd.vue diff --git a/app/assets/styles/overrides-components.scss b/app/assets/styles/overrides-components.scss index a81d8f9..489b1b5 100644 --- a/app/assets/styles/overrides-components.scss +++ b/app/assets/styles/overrides-components.scss @@ -31,7 +31,7 @@ } .delete { - --bulma-delete-background-alpha: 0.3; + --bulma-delete-background-alpha: 0.15; } .modal-card { diff --git a/app/components/Modal2.vue b/app/components/Modal2.vue deleted file mode 100644 index ca6e809..0000000 --- a/app/components/Modal2.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - diff --git a/app/components/SearchBox.vue b/app/components/SearchBox.vue index 6359716..023a06d 100644 --- a/app/components/SearchBox.vue +++ b/app/components/SearchBox.vue @@ -152,8 +152,14 @@ const props = defineProps({ position: String, disabled: Boolean, vdata: Array, - clearable: Boolean, - placeholder: String, + clearable: { + type: Boolean, + default: true, + }, + placeholder: { + type: String, + default: "", + }, searchfield: Array, }); diff --git a/app/components/common/InputEmail.vue b/app/components/common/InputEmail.vue index caf0e9d..1168b3e 100644 --- a/app/components/common/InputEmail.vue +++ b/app/components/common/InputEmail.vue @@ -1,43 +1,52 @@ + + - diff --git a/app/components/common/InputPhone.vue b/app/components/common/InputPhone.vue index 446e364..2b88e74 100644 --- a/app/components/common/InputPhone.vue +++ b/app/components/common/InputPhone.vue @@ -1,55 +1,59 @@ + + - - diff --git a/app/components/customer/CustomerInfo.vue b/app/components/customer/CustomerInfo.vue deleted file mode 100644 index df17c4e..0000000 --- a/app/components/customer/CustomerInfo.vue +++ /dev/null @@ -1,705 +0,0 @@ - - - diff --git a/app/components/customer/CustomerQuickAdd.vue b/app/components/customer/CustomerQuickAdd.vue new file mode 100644 index 0000000..d0b1d36 --- /dev/null +++ b/app/components/customer/CustomerQuickAdd.vue @@ -0,0 +1,190 @@ + + + diff --git a/app/components/pos/ChooseIMEIModal.vue b/app/components/pos/ChooseIMEIModal.vue index 8d44693..2b328f0 100644 --- a/app/components/pos/ChooseIMEIModal.vue +++ b/app/components/pos/ChooseIMEIModal.vue @@ -7,7 +7,7 @@ const props = defineProps({ variant: Object, }); const store = useStore(); -const { $getdata } = useNuxtApp(); +const { $getdata, $snackbar } = useNuxtApp(); const emit = defineEmits(["close"]); const isLoading = ref(false); @@ -27,6 +27,7 @@ function toggleSelected(imeiRec) { function addToCart() { store.selectedImeis = [...store.selectedImeis, ...selectedImeis.value]; + $snackbar(`Thêm ${selectedImeis.value.length} sản phẩm vào giỏ hàng`, "Success"); emit("close"); } diff --git a/app/components/pos/POS.vue b/app/components/pos/POS.vue index cade47f..5bf641e 100644 --- a/app/components/pos/POS.vue +++ b/app/components/pos/POS.vue @@ -1,22 +1,26 @@