diff --git a/src/api/18_command/api.command.ts b/src/api/18_command/api.command.ts new file mode 100644 index 000000000..17756dfbf --- /dev/null +++ b/src/api/18_command/api.command.ts @@ -0,0 +1,7 @@ +import env from "../index"; + +const command = `${env.API_URI}/order`; + +export default { + commandType: `${command}/order-type`, +}; diff --git a/src/app.config.ts b/src/app.config.ts index 8b11f2ec8..453c218fa 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -67,6 +67,9 @@ import KPI from "./api/14_KPI/api.KPI"; /** API เงินเดือน/ค่าจ้าง*/ import development from "./api/15_development/api.development"; +/** ออกคำสั่งใหม่ */ +import command from "./api/18_command/api.command"; + import file from "./api/file/api.file"; // environment variables @@ -133,6 +136,9 @@ const API = { ...KPI, ...development, + /** ออกคำสั่งใหม่ */ + ...command, + /*file*/ ...file, }; diff --git a/src/modules/18_command/components/Main/DialogCopyCommand.vue b/src/modules/18_command/components/Main/DialogCopyCommand.vue deleted file mode 100644 index ab6f7457e..000000000 --- a/src/modules/18_command/components/Main/DialogCopyCommand.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - - diff --git a/src/modules/18_command/components/Main/DialogFormCommand.vue b/src/modules/18_command/components/Main/DialogFormCommand.vue new file mode 100644 index 000000000..4be1731ec --- /dev/null +++ b/src/modules/18_command/components/Main/DialogFormCommand.vue @@ -0,0 +1,165 @@ + + + + + diff --git a/src/modules/18_command/components/Main/TableMain.vue b/src/modules/18_command/components/Main/TableMain.vue index 764b77632..8e60111e7 100644 --- a/src/modules/18_command/components/Main/TableMain.vue +++ b/src/modules/18_command/components/Main/TableMain.vue @@ -6,7 +6,7 @@ import { useRouter } from "vue-router"; import { useCounterMixin } from "@/stores/mixin"; import { useCommandListStore } from "@/modules/18_command/store/ListStore"; -import DialogCopyCommand from "@/modules/18_command/components/Main/DialogCopyCommand.vue"; +import DialogFormCommand from "@/modules/18_command/components/Main/DialogFormCommand.vue"; import type { QTableProps } from "quasar"; @@ -239,7 +239,7 @@ function onReCommand(id: string) { - + diff --git a/src/modules/18_command/interface/response/Main.ts b/src/modules/18_command/interface/response/Main.ts index e4ea7770c..bfae59100 100644 --- a/src/modules/18_command/interface/response/Main.ts +++ b/src/modules/18_command/interface/response/Main.ts @@ -1 +1,14 @@ -export type {}; +interface DataListCommand { + category: string; + commandCode: string; + createdAt: string | Date; + createdFullName: string; + createdUserId: string; + id: string; + lastUpdateFullName: string; + lastUpdateUserId: string; + lastUpdatedAt: string | Date; + name: string; +} + +export type { DataListCommand }; diff --git a/src/modules/18_command/views/lists.vue b/src/modules/18_command/views/lists.vue index d7250fe16..ec380fb77 100644 --- a/src/modules/18_command/views/lists.vue +++ b/src/modules/18_command/views/lists.vue @@ -3,12 +3,14 @@ import { onMounted, ref } from "vue"; import { useCommandListStore } from "@/modules/18_command/store/ListStore"; +import DialogFormCommand from "@/modules/18_command/components/Main/DialogFormCommand.vue"; import TableList from "@/modules/18_command/components/Main/TableMain.vue"; const store = useCommandListStore(); const yearly = ref(new Date().getFullYear()); const searchKeyword = ref(""); +const modalAdd = ref(false); const tabsManu = ref([ { label: "แบบร่าง", name: "list_draft" }, @@ -86,7 +88,14 @@ onMounted(() => { - + { + +