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