diff --git a/src/api/18_command/api.command.ts b/src/api/18_command/api.command.ts index 5e960210a..56867a5b1 100644 --- a/src/api/18_command/api.command.ts +++ b/src/api/18_command/api.command.ts @@ -28,4 +28,6 @@ export default { commandEditSalary: `${command}/tab2/edit-salary`, commandOperator: `${env.API_URI}/org/commandoperator`, + + commandAssign: (id: string) => `${command}/change-creator/${id}`, }; diff --git a/src/modules/18_command/components/DialogAssign.vue b/src/modules/18_command/components/DialogAssign.vue new file mode 100644 index 000000000..fbe10f73f --- /dev/null +++ b/src/modules/18_command/components/DialogAssign.vue @@ -0,0 +1,286 @@ + + + + + diff --git a/src/modules/18_command/components/Main/TableMain.vue b/src/modules/18_command/components/Main/TableMain.vue index db61c7a70..22970fc17 100644 --- a/src/modules/18_command/components/Main/TableMain.vue +++ b/src/modules/18_command/components/Main/TableMain.vue @@ -12,6 +12,7 @@ import config from "@/app.config"; import type { Pagination } from "@/modules/18_command/interface/index/Main"; import DialogFormCommand from "@/modules/18_command/components/Main/DialogFormCommand.vue"; +import DialogAssign from "@/modules/18_command/components/DialogAssign.vue"; const $q = useQuasar(); const router = useRouter(); @@ -36,6 +37,7 @@ const props = defineProps({ const modalCopy = ref(false); const isCheckPageSize = ref(false); const commandId = ref(""); +const modalAssign = ref(false); async function fetchListCommand() { await props.fetchList?.(); @@ -96,6 +98,7 @@ function onReCommand(id: string) { "ต้องการยืนยืนยันการดึงไปทำคำสั่งใหม่ใช่หรือไม่ ?" ); } + function onDeleteCommand(id: string) { dialogRemove( $q, @@ -120,6 +123,11 @@ function onDeleteCommand(id: string) { ); } +function onAssignCommand(id: string) { + commandId.value = id; + modalAssign.value = true; +} + onMounted(() => { !isCheckPageSize.value && fetchListCommand(); }); @@ -240,6 +248,25 @@ onMounted(() => { + + + +
+ +
หมอบหมายคำสั่ง
+
+
+
+ + + diff --git a/src/modules/18_command/interface/response/Main.ts b/src/modules/18_command/interface/response/Main.ts index 91cdbcd37..24795c013 100644 --- a/src/modules/18_command/interface/response/Main.ts +++ b/src/modules/18_command/interface/response/Main.ts @@ -122,6 +122,54 @@ interface DataOperators { positionSign?: string; } +interface DataProfile { + birthDate: string; + child1: string; + child1DnaId: string; + child1Id: string; + child1ShortName: string; + child2: string; + child2DnaId: string; + child2Id: string; + child2ShortName: string; + child3: string | null; + child3DnaId: string | null; + child3Id: string | null; + child3ShortName: string | null; + child4: string | null; + child4DnaId: string | null; + child4Id: string | null; + child4ShortName: string | null; + citizenId: string; + educationDegree: string | null; + email: string | null; + firstName: string; + id: string; + keycloak: string; + lastName: string; + name: string; + organization: string; + phone: string | null; + posLevelId: string; + posLevelName: string; + posMasterNo: number; + posNo:string; + posTypeId:string; + posTypeName: string; + position: string; + positionLevel: string; + positionLevelName: string; + positionType: string; + positionTypeName: string; + prefix: string; + rank: string; + root: string; + rootDnaId: string; + rootId:string; + rootShortName: string; + salary: number; +} + export type { ResListCommand, DataListCommand, @@ -131,4 +179,5 @@ export type { DataDirector, DataAuthority, DataOperators, + DataProfile };