fix: submit employee basic info
This commit is contained in:
parent
89ae3039b9
commit
3416c78b99
2 changed files with 10 additions and 3 deletions
|
|
@ -91,7 +91,7 @@ onMounted(() => {
|
||||||
<!-- v-if="!readonly" -->
|
<!-- v-if="!readonly" -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<UndoButton
|
<UndoButton
|
||||||
v-if="!readonly"
|
v-if="!readonly && !showBtnSave"
|
||||||
id="btn-info-basic-undo"
|
id="btn-info-basic-undo"
|
||||||
icon-only
|
icon-only
|
||||||
@click="$emit('undo')"
|
@click="$emit('undo')"
|
||||||
|
|
@ -105,14 +105,14 @@ onMounted(() => {
|
||||||
type="button"
|
type="button"
|
||||||
/>
|
/>
|
||||||
<EditButton
|
<EditButton
|
||||||
v-if="readonly"
|
v-if="readonly && !showBtnSave"
|
||||||
id="btn-info-basic-edit"
|
id="btn-info-basic-edit"
|
||||||
icon-only
|
icon-only
|
||||||
@click="$emit('edit')"
|
@click="$emit('edit')"
|
||||||
type="button"
|
type="button"
|
||||||
/>
|
/>
|
||||||
<DeleteButton
|
<DeleteButton
|
||||||
v-if="readonly"
|
v-if="readonly && !showBtnSave"
|
||||||
id="btn-info-basic-delete"
|
id="btn-info-basic-delete"
|
||||||
icon-only
|
icon-only
|
||||||
@click="$emit('delete')"
|
@click="$emit('delete')"
|
||||||
|
|
|
||||||
|
|
@ -2197,6 +2197,7 @@ watch(
|
||||||
<BasicInformation
|
<BasicInformation
|
||||||
id="form-information"
|
id="form-information"
|
||||||
prefix-id="form-employee"
|
prefix-id="form-employee"
|
||||||
|
showBtnSave
|
||||||
employee
|
employee
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -2207,6 +2208,12 @@ watch(
|
||||||
v-model:employee-id="employeeFormState.currentEmployeeCode"
|
v-model:employee-id="employeeFormState.currentEmployeeCode"
|
||||||
v-model:nrc-no="currentFromDataEmployee.nrcNo"
|
v-model:nrc-no="currentFromDataEmployee.nrcNo"
|
||||||
v-model:code="currentFromDataEmployee.code"
|
v-model:code="currentFromDataEmployee.code"
|
||||||
|
@save="
|
||||||
|
async () => {
|
||||||
|
await employeeFormStore.submitPersonal();
|
||||||
|
await fetchListEmployee();
|
||||||
|
}
|
||||||
|
"
|
||||||
@filter-owner-branch="employeeFormStore.employeeFilterOwnerBranch"
|
@filter-owner-branch="employeeFormStore.employeeFilterOwnerBranch"
|
||||||
/>
|
/>
|
||||||
<FormPerson
|
<FormPerson
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue