refactor: customer
This commit is contained in:
parent
e50904bead
commit
f2b318060e
11 changed files with 596 additions and 355 deletions
|
|
@ -191,7 +191,7 @@ watch(
|
|||
:rules="[
|
||||
(val: string) => !!val || $t('form.error.required'),
|
||||
(val: string) =>
|
||||
/^[A-Za-z\s.,]+$/.test(val) || $t('form.error.letterOnly'),
|
||||
/^[0-9A-Za-z\s.,]+$/.test(val) || $t('form.error.letterOnly'),
|
||||
]"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -248,7 +248,7 @@ watch(
|
|||
</template>
|
||||
|
||||
<template v-if="customerType === 'PERS'">
|
||||
<div class="col-6 row q-col-gutter-sm">
|
||||
<div class="col-7 row q-col-gutter-sm">
|
||||
<q-input
|
||||
dense
|
||||
outlined
|
||||
|
|
@ -264,7 +264,7 @@ watch(
|
|||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:disable="index !== '0'"
|
||||
:disable="index !== '0' && !readonly"
|
||||
:readonly="readonly"
|
||||
hide-bottom-space
|
||||
class="col-12 col-md-7"
|
||||
|
|
@ -283,7 +283,7 @@ watch(
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div class="col-8 row q-col-gutter-sm">
|
||||
<div class="col-9 row q-col-gutter-sm">
|
||||
<q-select
|
||||
outlined
|
||||
use-input
|
||||
|
|
@ -342,7 +342,7 @@ watch(
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div class="col-8 row q-col-gutter-sm">
|
||||
<div class="col-9 row q-col-gutter-sm">
|
||||
<q-input
|
||||
:for="`${prefixId}-input-first-name`"
|
||||
dense
|
||||
|
|
@ -387,7 +387,7 @@ watch(
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div class="row col-8 q-col-gutter-sm">
|
||||
<div class="row col-9 q-col-gutter-sm">
|
||||
<q-input
|
||||
:for="`${prefixId}-input-telephone`"
|
||||
dense
|
||||
|
|
|
|||
|
|
@ -39,15 +39,15 @@ const registeredBranchId = defineModel<string>('registeredBranchId', {
|
|||
required: true,
|
||||
});
|
||||
|
||||
const customerName = defineModel<string>('customerName');
|
||||
const registerName = defineModel<string>('registerName');
|
||||
const customerName = defineModel<string>('customerName', { default: '' });
|
||||
const registerName = defineModel<string>('registerName', { default: '' });
|
||||
|
||||
const citizenId = defineModel<string>('citizenId');
|
||||
const legalPersonNo = defineModel<string>('legalPersonNo');
|
||||
const citizenId = defineModel<string>('citizenId', { default: '' });
|
||||
const legalPersonNo = defineModel<string>('legalPersonNo', { default: '' });
|
||||
|
||||
const businessType = defineModel<'strinf'>('businessType');
|
||||
const jobPosition = defineModel<'strinf'>('jobPosition');
|
||||
const telephoneNo = defineModel<string>('telephoneNo');
|
||||
const businessType = defineModel<'string'>('businessType');
|
||||
const jobPosition = defineModel<'string'>('jobPosition');
|
||||
const telephoneNo = defineModel<string>('telephoneNo', { default: '' });
|
||||
|
||||
const branchOptions = defineModel<{ id: string; name: string }[]>(
|
||||
'branchOptions',
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
map-options
|
||||
hide-selected
|
||||
hide-bottom-space
|
||||
hide-dropdown-icon
|
||||
:hide-dropdown-icon="readonly"
|
||||
input-debounce="0"
|
||||
option-value="value"
|
||||
option-label="label"
|
||||
|
|
@ -122,6 +122,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
:options="typeBusinessOptions"
|
||||
:for="`${prefixId}-select-business-type`"
|
||||
@filter="typeBusinessFilter"
|
||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
<q-item>
|
||||
|
|
@ -143,7 +144,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
map-options
|
||||
hide-selected
|
||||
hide-bottom-space
|
||||
hide-dropdown-icon
|
||||
:hide-dropdown-icon="readonly"
|
||||
input-debounce="0"
|
||||
option-value="value"
|
||||
option-label="label"
|
||||
|
|
@ -153,6 +154,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
:readonly="readonly"
|
||||
:options="typeBusinessENOptions"
|
||||
@filter="typeBusinessENFilter"
|
||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
<q-item>
|
||||
|
|
@ -172,7 +174,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
map-options
|
||||
hide-selected
|
||||
hide-bottom-space
|
||||
hide-dropdown-icon
|
||||
:hide-dropdown-icon="readonly"
|
||||
input-debounce="0"
|
||||
option-value="value"
|
||||
option-label="label"
|
||||
|
|
@ -184,6 +186,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
:options="jobPositionOptions"
|
||||
:for="`${prefixId}-select-job-position`"
|
||||
@filter="jobPositionFilter"
|
||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
<q-item>
|
||||
|
|
@ -203,7 +206,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
map-options
|
||||
hide-selected
|
||||
hide-bottom-space
|
||||
hide-dropdown-icon
|
||||
:hide-dropdown-icon="readonly"
|
||||
input-debounce="0"
|
||||
option-value="value"
|
||||
option-label="label"
|
||||
|
|
@ -216,6 +219,7 @@ let jobPositionENFilter = selectFilterOptionRefMod(
|
|||
:for="`${prefixId}-input-job-position-en`"
|
||||
:id="`${prefixId}-input-job-position-en`"
|
||||
@filter="jobPositionENFilter"
|
||||
:rules="[(val: string) => !!val || $t('form.error.required')]"
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
<q-item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue