diff --git a/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue b/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue index a8d997fbc..f45015c3a 100644 --- a/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue +++ b/src/modules/04_registryPerson/components/detail/Salary/01_PositionSalary.vue @@ -24,6 +24,7 @@ import DialogHistory from "@/modules/04_registryPerson/components/detail/Salary/ import { useCounterMixin } from "@/stores/mixin"; import { useSalaryDataStore } from "@/modules/04_registryPerson/stores/salary"; +import DialogPreviewCommand from "@/modules/18_command/components/DialogPreviewCommand.vue"; const $q = useQuasar(); const route = useRoute(); @@ -54,6 +55,9 @@ const empType = ref(pathRegistryEmp(route.name?.toString() ?? "")); //Table const rows = ref([]); //รายการตำแหน่งเงินเดือน const keyword = ref(""); //คำค้นหา +const modalCommand = ref(false); +const command = ref(""); +const commandId = ref(""); const baseColumns = ref([ { name: "date", @@ -608,6 +612,12 @@ const classInput = (val: boolean) => { }; }; +function onRefCommand(data: ResListSalary) { + modalCommand.value = true; + command.value = data.refCommandNo; + commandId.value = data.commandId; + // commandId.value = 'bdf9da91-ba45-497a-a2b7-cc49e2446d97'; //จำลอง +} /** * ทำงานเมื่อ Components ถูกเรียกใช้งาน */ @@ -693,7 +703,9 @@ onMounted(() => { { แก้ไขข้อมูล { { -
+
+ {{ col.value ? col.value : "-" }} +
+
{{ col.value ? col.value : "-" }}
@@ -1088,6 +1115,11 @@ onMounted(() => { + diff --git a/src/modules/04_registryPerson/interface/response/Salary.ts b/src/modules/04_registryPerson/interface/response/Salary.ts index 82b1b34b9..84df73af8 100644 --- a/src/modules/04_registryPerson/interface/response/Salary.ts +++ b/src/modules/04_registryPerson/interface/response/Salary.ts @@ -22,6 +22,7 @@ interface ResListSalary { profileId: string; refCommandNo: string; templateDoc: string; + commandId: string; } interface ResType { diff --git a/src/modules/18_command/components/DialogPreviewCommand.vue b/src/modules/18_command/components/DialogPreviewCommand.vue new file mode 100644 index 000000000..55291eca3 --- /dev/null +++ b/src/modules/18_command/components/DialogPreviewCommand.vue @@ -0,0 +1,462 @@ + + + diff --git a/src/modules/18_command/interface/index/Main.ts b/src/modules/18_command/interface/index/Main.ts index 0d96687b1..7c9647b5e 100644 --- a/src/modules/18_command/interface/index/Main.ts +++ b/src/modules/18_command/interface/index/Main.ts @@ -69,6 +69,40 @@ interface DataOrder { status: string; } +interface DataFileOrder { + reportName: string; + template: string; + data: { + commandDate: string; + commandExcecuteDate: string; + commandNo: string; + commandTitle: string; + commandYear: 2024; + detailBody: string; + detailFooter: string; + detailHeader: string; + name: string; + position: string; + }; +} + +interface FormDataDetail { + id?: string; + status?: string; + commandNo: string; + commandYear: number | null; + detailHeader: string; + detailBody: string; + detailFooter: string; + issue: string | null; + commandAffectDate: Date | null; + commandExcecuteDate: Date | null; + commandSysId?: string; + commandTypeName?: string; + isBangkok?: string | null; + isAttachment: boolean; +} + export type { Pagination, DataOption, @@ -77,4 +111,6 @@ export type { DateSelectPerson, ListCommand, DataOrder, + DataFileOrder, + FormDataDetail };