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

View file

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