From a3ccc67bdd12c3ec5dab90f54c76cab3a0927933 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 11 Aug 2023 16:19:49 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20popup=20=E0=B9=81=E0=B8=A5=E0=B8=B0=20fix=20bug=20=E0=B8=AD?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88?= =?UTF-8?q?=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/10_order/components/Main.vue | 27 +- .../10_order/components/step/step01.vue | 328 ++++------------- .../10_order/components/step/step02.vue | 344 ++++++------------ .../10_order/components/step/step03.vue | 2 +- .../10_order/components/step/step04.vue | 59 ++- src/modules/10_order/router.ts | 20 +- 6 files changed, 242 insertions(+), 538 deletions(-) diff --git a/src/modules/10_order/components/Main.vue b/src/modules/10_order/components/Main.vue index f5ed2ae12..c6b61430d 100644 --- a/src/modules/10_order/components/Main.vue +++ b/src/modules/10_order/components/Main.vue @@ -125,7 +125,7 @@ import config from "@/app.config"; const $q = useQuasar(); //ใช้ noti quasar const mixin = useCounterMixin(); -const { showLoader, hideLoader, messageError, date2Thai, dateText, success } = +const { showLoader, hideLoader, messageError, date2Thai, dateText, success, dialogMessage } = mixin; const DataStore = useOrderPlacementDataStore(); @@ -314,20 +314,17 @@ const redirectToPage = (id?: string, status?: string) => { }; const clickDelete = (id: string) => { - $q.dialog({ - title: "ยืนยันการลบข้อมูล", - message: "ต้องการลบข้อมูลนี้ใช่หรือไม่?", - cancel: { - flat: true, - color: "negative", - }, - persistent: true, - }) - .onOk(async () => { - await deleteData(id); - }) - .onCancel(() => { }) - .onDismiss(() => { }); + dialogMessage( + $q, + "ยืนยันการลบข้อมูล", + "ต้องการลบข้อมูลนี้ใช่หรือไม่?", + "mdi-delete", + "ตกลง", + "red", + () => deleteData(id), + undefined + ); + }; const deleteData = async (id: string) => { diff --git a/src/modules/10_order/components/step/step01.vue b/src/modules/10_order/components/step/step01.vue index 4f63bc851..9ba307395 100644 --- a/src/modules/10_order/components/step/step01.vue +++ b/src/modules/10_order/components/step/step01.vue @@ -3,24 +3,10 @@
- + @@ -29,73 +15,36 @@
- +
- +
- +
- +
- + @@ -103,24 +52,12 @@ {{ parseInt(value + 543) }}