fix: employee handle tab
This commit is contained in:
parent
ad942e7035
commit
f5a746e84c
1 changed files with 22 additions and 1 deletions
|
|
@ -829,6 +829,7 @@ async function assignFormDataEmployee(id: string) {
|
||||||
citizenId: fetchOther.citizenId,
|
citizenId: fetchOther.citizenId,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
formDataEmployeeTab.value = 'personalInfo';
|
||||||
currentEmployee.value = foundEmployee;
|
currentEmployee.value = foundEmployee;
|
||||||
profileUrl.value = foundEmployee.profileImageUrl;
|
profileUrl.value = foundEmployee.profileImageUrl;
|
||||||
profileSubmit.value = true;
|
profileSubmit.value = true;
|
||||||
|
|
@ -994,7 +995,7 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
</div>
|
</div>
|
||||||
<div class="row full-width" style="overflow-x: auto">
|
<div class="row full-width" style="overflow-x: auto">
|
||||||
<StatCardComponent
|
<StatCardComponent
|
||||||
v-if="customerStats"
|
v-if="customerStats && selectorLabel === 'EMPLOYER'"
|
||||||
labelI18n
|
labelI18n
|
||||||
:branch="
|
:branch="
|
||||||
customerStats.map((v) => ({
|
customerStats.map((v) => ({
|
||||||
|
|
@ -1012,6 +1013,26 @@ watch(fieldSelectedCustomer, async () => {
|
||||||
:dark="$q.dark.isActive"
|
:dark="$q.dark.isActive"
|
||||||
class="no-wrap"
|
class="no-wrap"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<StatCardComponent
|
||||||
|
v-if="customerStats && selectorLabel === 'EMPLOYEE'"
|
||||||
|
labelI18n
|
||||||
|
:branch="
|
||||||
|
customerStats.map((v) => ({
|
||||||
|
count:
|
||||||
|
v.name === 'CORP'
|
||||||
|
? statsCustomerType?.CORP ?? 0
|
||||||
|
: statsCustomerType?.PERS ?? 0,
|
||||||
|
label:
|
||||||
|
v.name === 'CORP'
|
||||||
|
? 'customerLegalEntity'
|
||||||
|
: 'customerNaturalPerson',
|
||||||
|
color: v.name === 'CORP' ? 'pink' : 'green',
|
||||||
|
}))
|
||||||
|
"
|
||||||
|
:dark="$q.dark.isActive"
|
||||||
|
class="no-wrap"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</AppBox>
|
</AppBox>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue