refactor: add id

This commit is contained in:
Thanaphon Frappet 2024-11-19 18:02:11 +07:00
parent d18df61b3f
commit 7a74852ff6
2 changed files with 8 additions and 3 deletions

View file

@ -779,11 +779,15 @@ watch(
</div>
</div>
<EmployerFormAbout
prefixId="dialog"
:readonly="customerBranchFormState.dialogType === 'info'"
class="q-mb-xl"
:index="
customerBranchFormData.code &&
Number(customerBranchFormData.code.split('-').pop()).toString()
(customerBranchFormData.code &&
Number(
customerBranchFormData.code.split('-').pop(),
).toString()) ||
''
"
:customer-type="customerType"
v-model:citizen-id="customerBranchFormData.citizenId"
@ -911,6 +915,7 @@ watch(
</div>
</div>
<EmployerFormContact
prefixId="dialog"
class="q-mb-lg"
:readonly="customerBranchFormState.dialogType === 'info'"
v-model:contact-name="customerBranchFormData.contactName"

View file

@ -1148,7 +1148,7 @@ const emptyCreateDialog = ref(false);
'status-active': props.row.status !== 'INACTIVE',
'status-inactive': props.row.status === 'INACTIVE',
}"
:id="`row-table-${props.row.customerName}`"
:id="`row-table-${props.row.id}`"
:props="props"
@click="
$router.push(