refactor: add defineProps ocr
This commit is contained in:
parent
6103a05660
commit
11767a722b
1 changed files with 30 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ defineProps<{
|
||||||
outlined?: boolean;
|
outlined?: boolean;
|
||||||
readonly?: boolean;
|
readonly?: boolean;
|
||||||
separator?: boolean;
|
separator?: boolean;
|
||||||
|
ocr?: boolean;
|
||||||
|
|
||||||
prefixId: string;
|
prefixId: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
@ -84,7 +85,35 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="row col-12">
|
<div class="row col-12" v-if="ocr">
|
||||||
|
<div class="col-12 row">
|
||||||
|
<div class="col-6 flex flex-center">
|
||||||
|
<q-img
|
||||||
|
src="/images/customer-CORP-avartar.png "
|
||||||
|
style="height: 100px; max-width: 50%"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-6 column">
|
||||||
|
<q-input
|
||||||
|
lazy-rules="ondemand"
|
||||||
|
:for="`${prefixId}-input-passport-no`"
|
||||||
|
:dense="dense"
|
||||||
|
outlined
|
||||||
|
:readonly="readonly"
|
||||||
|
hide-bottom-space
|
||||||
|
class="col-md-3 col-6"
|
||||||
|
:label="$t('customerEmployee.form.passportNo')"
|
||||||
|
v-model="passportNumber"
|
||||||
|
:rules="[
|
||||||
|
(val: string) =>
|
||||||
|
!!val || $t('inputValidate') + $t('formDialogInputPassportNo'),
|
||||||
|
]"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row col-12" v-else>
|
||||||
<div class="col-12 q-pb-sm text-weight-bold text-body1">
|
<div class="col-12 q-pb-sm text-weight-bold text-body1">
|
||||||
<q-icon
|
<q-icon
|
||||||
flat
|
flat
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue