fix: submit employee basic info

This commit is contained in:
puriphatt 2024-08-09 02:26:49 +00:00
parent 89ae3039b9
commit 3416c78b99
2 changed files with 10 additions and 3 deletions

View file

@ -91,7 +91,7 @@ onMounted(() => {
<!-- v-if="!readonly" -->
<div class="row">
<UndoButton
v-if="!readonly"
v-if="!readonly && !showBtnSave"
id="btn-info-basic-undo"
icon-only
@click="$emit('undo')"
@ -105,14 +105,14 @@ onMounted(() => {
type="button"
/>
<EditButton
v-if="readonly"
v-if="readonly && !showBtnSave"
id="btn-info-basic-edit"
icon-only
@click="$emit('edit')"
type="button"
/>
<DeleteButton
v-if="readonly"
v-if="readonly && !showBtnSave"
id="btn-info-basic-delete"
icon-only
@click="$emit('delete')"

View file

@ -2197,6 +2197,7 @@ watch(
<BasicInformation
id="form-information"
prefix-id="form-employee"
showBtnSave
employee
dense
outlined
@ -2207,6 +2208,12 @@ watch(
v-model:employee-id="employeeFormState.currentEmployeeCode"
v-model:nrc-no="currentFromDataEmployee.nrcNo"
v-model:code="currentFromDataEmployee.code"
@save="
async () => {
await employeeFormStore.submitPersonal();
await fetchListEmployee();
}
"
@filter-owner-branch="employeeFormStore.employeeFilterOwnerBranch"
/>
<FormPerson