ปรับเเก้

This commit is contained in:
setthawutttty 2023-12-19 15:05:48 +07:00
parent d2c6837a86
commit 46f82b78fc
18 changed files with 446 additions and 190 deletions

View file

@ -83,9 +83,11 @@ function addEmployee() {
keyword: idCard.value,
})
.then((res) => {
console.log(res)
const dataApi = res.data.result;
if (dataApi.length > 0) {
const dataList = dataApi[0];
formData.personalId = dataList.personId;
formData.prefix = dataList.prefix;
formData.firstname = dataList.firstName;
formData.lastname = dataList.lastName;