From 428999ff2187f50b86b8fefe90796decbfa71fba Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 8 Nov 2024 15:59:47 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=AA=E0=B9=88=E0=B8=87=20rootID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AppointEmployee/DialogOrders.vue | 1 + .../05_placement/components/AppointMent/DialogOrders.vue | 1 + .../05_placement/components/Receive/DialogOrders.vue | 1 + src/modules/18_command/components/DialogCreateCommand.vue | 6 +++--- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/modules/05_placement/components/AppointEmployee/DialogOrders.vue b/src/modules/05_placement/components/AppointEmployee/DialogOrders.vue index c50afec68..cec42b761 100644 --- a/src/modules/05_placement/components/AppointEmployee/DialogOrders.vue +++ b/src/modules/05_placement/components/AppointEmployee/DialogOrders.vue @@ -43,6 +43,7 @@ const dataMapToSend = computed(() => { firstName: i.firstName, lastName: i.lastName, citizenId: i.citizenId, + rootId: i.rootId, remarkVertical: i.reason, })); }); diff --git a/src/modules/05_placement/components/AppointMent/DialogOrders.vue b/src/modules/05_placement/components/AppointMent/DialogOrders.vue index 68aa343c0..f4224b413 100644 --- a/src/modules/05_placement/components/AppointMent/DialogOrders.vue +++ b/src/modules/05_placement/components/AppointMent/DialogOrders.vue @@ -57,6 +57,7 @@ const dataMapToSend = computed(() => { firstName: i.firstName, lastName: i.lastName, citizenId: i.citizenId, + rootId: i.rootId, remarkVertical: i.reason, })); }); diff --git a/src/modules/05_placement/components/Receive/DialogOrders.vue b/src/modules/05_placement/components/Receive/DialogOrders.vue index 4e42a3922..ac3319173 100644 --- a/src/modules/05_placement/components/Receive/DialogOrders.vue +++ b/src/modules/05_placement/components/Receive/DialogOrders.vue @@ -24,6 +24,7 @@ const dataMapToSend = computed(() => { firstName: i.firstName, lastName: i.lastName, citizenId: i.citizenId, + rootId: i.rootId, remarkVertical: i.reason, })); }); diff --git a/src/modules/18_command/components/DialogCreateCommand.vue b/src/modules/18_command/components/DialogCreateCommand.vue index 2dc010bd6..e6b50d5e2 100644 --- a/src/modules/18_command/components/DialogCreateCommand.vue +++ b/src/modules/18_command/components/DialogCreateCommand.vue @@ -166,7 +166,8 @@ function createCommand(isRedirect: boolean) { lastName: e.lastName, citizenId: e.citizenId, profileId: e.profileId, - remarkVertical: e.remarkVertical, + rootId: e.rootId, + ...(e.remarkVertical ? { remarkVertical: e.remarkVertical } : {}), ...(e.remarkHorizontal ? { remarkHorizontal: e.remarkHorizontal } : {}), })); @@ -176,8 +177,6 @@ function createCommand(isRedirect: boolean) { commandTypeId: commandType.value, persons: !props.notPerson ? data : [], }; - - console.log(body); await http .post(config.API.command + `/person`, body) .then(async (res) => { @@ -210,6 +209,7 @@ function addPersonalToCommand(isRedirect: boolean) { firstName: e.firstName, lastName: e.lastName, citizenId: e.citizenId, + rootId: e.rootId, })); const body = { commandId: selected.value[0].id,