ส่ง rootID
This commit is contained in:
parent
4ae899a2c7
commit
428999ff21
4 changed files with 6 additions and 3 deletions
|
|
@ -43,6 +43,7 @@ const dataMapToSend = computed(() => {
|
||||||
firstName: i.firstName,
|
firstName: i.firstName,
|
||||||
lastName: i.lastName,
|
lastName: i.lastName,
|
||||||
citizenId: i.citizenId,
|
citizenId: i.citizenId,
|
||||||
|
rootId: i.rootId,
|
||||||
remarkVertical: i.reason,
|
remarkVertical: i.reason,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ const dataMapToSend = computed(() => {
|
||||||
firstName: i.firstName,
|
firstName: i.firstName,
|
||||||
lastName: i.lastName,
|
lastName: i.lastName,
|
||||||
citizenId: i.citizenId,
|
citizenId: i.citizenId,
|
||||||
|
rootId: i.rootId,
|
||||||
remarkVertical: i.reason,
|
remarkVertical: i.reason,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ const dataMapToSend = computed(() => {
|
||||||
firstName: i.firstName,
|
firstName: i.firstName,
|
||||||
lastName: i.lastName,
|
lastName: i.lastName,
|
||||||
citizenId: i.citizenId,
|
citizenId: i.citizenId,
|
||||||
|
rootId: i.rootId,
|
||||||
remarkVertical: i.reason,
|
remarkVertical: i.reason,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,8 @@ function createCommand(isRedirect: boolean) {
|
||||||
lastName: e.lastName,
|
lastName: e.lastName,
|
||||||
citizenId: e.citizenId,
|
citizenId: e.citizenId,
|
||||||
profileId: e.profileId,
|
profileId: e.profileId,
|
||||||
remarkVertical: e.remarkVertical,
|
rootId: e.rootId,
|
||||||
|
...(e.remarkVertical ? { remarkVertical: e.remarkVertical } : {}),
|
||||||
...(e.remarkHorizontal ? { remarkHorizontal: e.remarkHorizontal } : {}),
|
...(e.remarkHorizontal ? { remarkHorizontal: e.remarkHorizontal } : {}),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
@ -176,8 +177,6 @@ function createCommand(isRedirect: boolean) {
|
||||||
commandTypeId: commandType.value,
|
commandTypeId: commandType.value,
|
||||||
persons: !props.notPerson ? data : [],
|
persons: !props.notPerson ? data : [],
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(body);
|
|
||||||
await http
|
await http
|
||||||
.post(config.API.command + `/person`, body)
|
.post(config.API.command + `/person`, body)
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|
@ -210,6 +209,7 @@ function addPersonalToCommand(isRedirect: boolean) {
|
||||||
firstName: e.firstName,
|
firstName: e.firstName,
|
||||||
lastName: e.lastName,
|
lastName: e.lastName,
|
||||||
citizenId: e.citizenId,
|
citizenId: e.citizenId,
|
||||||
|
rootId: e.rootId,
|
||||||
}));
|
}));
|
||||||
const body = {
|
const body = {
|
||||||
commandId: selected.value[0].id,
|
commandId: selected.value[0].id,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue