fix: running number of branch

fix: error
This commit is contained in:
Methapon2001 2024-08-29 22:28:57 +07:00
parent 3b4e6b8fbf
commit fe3c396a06

View file

@ -61,7 +61,7 @@ defineProps<{
:label="$t('customer.form.branchCode')"
:disable="!readonly"
:readonly="readonly"
:model-value="branchCode"
:model-value="`${branchCode?.slice(0, -2) || '-'}${index.toString().padStart(2, '0')}`"
/>
<q-input
@ -168,7 +168,7 @@ defineProps<{
class="col-12 col-md-3"
:label="$t('customer.form.branchCode')"
for="input-branch-code"
:model-value="`${branchCode}`"
:model-value="`${branchCode?.slice(0, -2) || '-'}${index.toString().padStart(2, '0')}`"
/>
<q-input