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,