ส่ง rootID

This commit is contained in:
setthawutttty 2024-11-08 15:59:47 +07:00
parent 4ae899a2c7
commit 428999ff21
4 changed files with 6 additions and 3 deletions

View file

@ -43,6 +43,7 @@ const dataMapToSend = computed(() => {
firstName: i.firstName,
lastName: i.lastName,
citizenId: i.citizenId,
rootId: i.rootId,
remarkVertical: i.reason,
}));
});

View file

@ -57,6 +57,7 @@ const dataMapToSend = computed(() => {
firstName: i.firstName,
lastName: i.lastName,
citizenId: i.citizenId,
rootId: i.rootId,
remarkVertical: i.reason,
}));
});

View file

@ -24,6 +24,7 @@ const dataMapToSend = computed(() => {
firstName: i.firstName,
lastName: i.lastName,
citizenId: i.citizenId,
rootId: i.rootId,
remarkVertical: i.reason,
}));
});

View file

@ -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,