fix: แก้ แก้ไขเป็น info

This commit is contained in:
Net 2024-06-25 16:30:22 +07:00
parent eb9e53d7fa
commit 82560b6abd

View file

@ -374,6 +374,7 @@ function openDialogCustomerType() {
async function openDialogInputForm(
action: 'FORM' | 'INFO' = 'FORM',
id?: string,
isPersonEdit: boolean = false,
) {
if (action === 'INFO') {
if (!id) return;
@ -381,7 +382,7 @@ async function openDialogInputForm(
if (selectorLabel.value === 'EMPLOYEE') {
await assignFormDataEmployee(id);
infoDrawerEmployee.value = true;
infoDrawerEmployeeEdit.value = false;
infoDrawerEmployeeEdit.value = isPersonEdit ? true : false;
const employee = currentEmployee.value;
infoEmployeePersonCard.value = employee
? [