fix: edit not sent

This commit is contained in:
Methapon2001 2024-07-08 17:55:53 +07:00
parent 7469fa17d1
commit 33ca54adca

View file

@ -1223,8 +1223,6 @@ async function assignFormDataEmployee(id: string) {
zipCode: foundBranch.zipCode,
};
formDataEmployee.value = {
code: foundEmployee.code,
image: null,
@ -2379,8 +2377,6 @@ watch([inputSearch, currentStatus], async () => {
<q-td
v-if="fieldSelected.includes('formDialogInputAge')"
>
<div class="row items-center">
<div class="col">
<div class="col">
@ -2388,15 +2384,13 @@ watch([inputSearch, currentStatus], async () => {
</div>
<div class="col app-text-muted">
{{
$i18n.locale === 'en-US' ? `${props.row.customerBranch.nameEN}` : `${props.row.customerBranch.name}`
$i18n.locale === 'en-US'
? `${props.row.customerBranch.nameEN}`
: `${props.row.customerBranch.name}`
}}
</div>
</div>
</div>
</q-td>
<q-td>
<q-btn
@ -2407,7 +2401,8 @@ watch([inputSearch, currentStatus], async () => {
flat
@click.stop="
() => {
openDialogInputForm('INFO', props.row.id) }
openDialogInputForm('INFO', props.row.id);
}
"
/>
@ -3339,16 +3334,8 @@ watch([inputSearch, currentStatus], async () => {
:isEdit="infoDrawerEdit"
:close="() => onClose()"
:editData="() => (infoDrawerEdit = true)"
:submit="
() => () => {
onSubmitEdit(currentCustomerId);
}
"
:deleteData="
() => {
deleteCustomerById(currentCustomerId);
}
"
:submit="() => onSubmitEdit(currentCustomerId)"
:deleteData="() => deleteCustomerById(currentCustomerId)"
>
<template #info>
<InfoForm>
@ -3809,16 +3796,14 @@ watch([inputSearch, currentStatus], async () => {
no-hover
no-action
no-detail
:data="
{
name:formDataEmployee.firstName + ' ' + formDataEmployee.lastName,
:data="{
name:
formDataEmployee.firstName + ' ' + formDataEmployee.lastName,
code: formDataEmployee.code,
male: formDataEmployee.gender === 'male',
female: formDataEmployee.gender === 'female',
img: profileUrl || undefined,
}
"
}"
:list="infoEmployeePersonCard ? infoEmployeePersonCard : []"
:gridColumns="1"
@edit-profile="