fix: customer form empty field to '-'
This commit is contained in:
parent
96fe308220
commit
28a5c70c07
5 changed files with 44 additions and 17 deletions
|
|
@ -18,7 +18,10 @@ const authorizedNameEN = defineModel<string>('authorizedNameEN');
|
|||
hide-bottom-space
|
||||
class="col-md-6 col-12"
|
||||
:label="$t('customerBranch.tab.authorized')"
|
||||
v-model="authorizedName"
|
||||
:model-value="readonly ? authorizedName || '-' : authorizedName"
|
||||
@update:model-value="
|
||||
(v) => (typeof v === 'string' ? (authorizedName = v) : '')
|
||||
"
|
||||
/>
|
||||
<q-input
|
||||
:for="`${prefixId}-input-contact-name`"
|
||||
|
|
@ -29,7 +32,10 @@ const authorizedNameEN = defineModel<string>('authorizedNameEN');
|
|||
hide-bottom-space
|
||||
class="col-md-6 col-12"
|
||||
:label="`${$t('customerBranch.tab.authorized')} (EN)`"
|
||||
v-model="authorizedNameEN"
|
||||
:model-value="readonly ? authorizedNameEN || '-' : authorizedNameEN"
|
||||
@update:model-value="
|
||||
(v) => (typeof v === 'string' ? (authorizedNameEN = v) : '')
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue