From 3556fb3caeecaa4c87a51b3a18734c3b9875d642 Mon Sep 17 00:00:00 2001 From: "STW_TTTY\\stwtt" Date: Fri, 6 Sep 2024 16:42:40 +0700 Subject: [PATCH] =?UTF-8?q?UI=20=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=84?= =?UTF-8?q?=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=E0=B9=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=20Template?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_command/components/ListOrder.vue | 205 ++++++++ .../05_command/interface/index/Main.ts | 18 +- src/modules/05_command/stores/main.ts | 6 +- src/modules/05_command/views/lists.vue | 460 +++++++++++++++++- 4 files changed, 684 insertions(+), 5 deletions(-) create mode 100644 src/modules/05_command/components/ListOrder.vue diff --git a/src/modules/05_command/components/ListOrder.vue b/src/modules/05_command/components/ListOrder.vue new file mode 100644 index 00000000..56158286 --- /dev/null +++ b/src/modules/05_command/components/ListOrder.vue @@ -0,0 +1,205 @@ + + diff --git a/src/modules/05_command/interface/index/Main.ts b/src/modules/05_command/interface/index/Main.ts index 1aeb5a4b..7743b509 100644 --- a/src/modules/05_command/interface/index/Main.ts +++ b/src/modules/05_command/interface/index/Main.ts @@ -2,4 +2,20 @@ interface Pagination { rowsPerPage: number; } -export type { Pagination }; +interface ActiveOptions { + value: string; + label: string; +} + +interface ListOrder { + id: string; + code: string; + name: string; + status: boolean; +} + +interface Tabs { + value: string; + label: string; +} +export type { Pagination, ActiveOptions, ListOrder, Tabs }; diff --git a/src/modules/05_command/stores/main.ts b/src/modules/05_command/stores/main.ts index 4d14ff9e..6cfa100a 100644 --- a/src/modules/05_command/stores/main.ts +++ b/src/modules/05_command/stores/main.ts @@ -1,5 +1,9 @@ import { defineStore } from "pinia"; +import { ref } from "vue"; export const useDataStore = defineStore("commandStore", () => { - return {}; + const currentTab = ref("order"); + return { + currentTab + }; }); diff --git a/src/modules/05_command/views/lists.vue b/src/modules/05_command/views/lists.vue index 91af707c..cca9461c 100644 --- a/src/modules/05_command/views/lists.vue +++ b/src/modules/05_command/views/lists.vue @@ -1,5 +1,459 @@ - + + + + +