Ограничение календаря для года
This commit is contained in:
@@ -5,25 +5,55 @@
|
||||
.grid.grid-cols-2.gap-x-4.gap-y-6
|
||||
.flex.flex-col(class="gap-y-1.5")
|
||||
span.text-sm Серия и номер
|
||||
base-input.input-info(v-mask="'#### ######'" v-model:value="identityDocument.pass.series_number" placeholder="0000 000000" :width-input="277")
|
||||
base-input.input-info(
|
||||
v-mask="'#### ######'",
|
||||
v-model:value="identityDocument.pass.series_number",
|
||||
placeholder="0000 000000",
|
||||
:width-input="277"
|
||||
)
|
||||
.flex.flex-col(class="gap-y-1.5")
|
||||
span.text-sm Кем и когда выдан
|
||||
base-input.input-info(v-model:value="identityDocument.pass.issued_by_org" placeholder="Точно как в паспорте" :width-input="277")
|
||||
base-input.input-info(
|
||||
v-model:value="identityDocument.pass.issued_by_org",
|
||||
placeholder="Точно как в паспорте",
|
||||
:width-input="277"
|
||||
)
|
||||
.flex.flex-col(class="gap-y-1.5")
|
||||
span.text-sm Код подразделения
|
||||
base-input.input-info(v-mask="'###-###'" v-model:value="identityDocument.pass.issued_by_org_code" placeholder="000–000" :width-input="277")
|
||||
base-input.input-info(
|
||||
v-mask="'###-###'",
|
||||
v-model:value="identityDocument.pass.issued_by_org_code",
|
||||
placeholder="000–000",
|
||||
:width-input="277"
|
||||
)
|
||||
.flex.flex-col(class="gap-y-1.5")
|
||||
span.text-sm Дата выдачи
|
||||
base-input.input-info( type="date" v-model:value="identityDocument.pass.issued_by_date" placeholder="Дата" :width-input="277")
|
||||
base-input.input-info(
|
||||
type="date",
|
||||
v-model:value="identityDocument.pass.issued_by_date",
|
||||
placeholder="Дата",
|
||||
:width-input="277",
|
||||
:max-date="`${currentYear}-12-31`"
|
||||
)
|
||||
.flex.flex-col.gap-y-6.px-4
|
||||
span.title-info.text-base.font-bold СНИЛС и ИНН
|
||||
.grid.grid-cols-2.gap-x-4.gap-y-6
|
||||
.flex.flex-col(class="gap-y-1.5")
|
||||
span.text-sm Номер СНИЛС
|
||||
base-input.input-info(v-mask="'###-###-### ##'" v-model:value="identityDocument.snils.numba" placeholder="000–000–000 00" :width-input="277")
|
||||
base-input.input-info(
|
||||
v-mask="'###-###-### ##'",
|
||||
v-model:value="identityDocument.snils.numba",
|
||||
placeholder="000–000–000 00",
|
||||
:width-input="277"
|
||||
)
|
||||
.flex.flex-col(class="gap-y-1.5")
|
||||
span.text-sm Номер ИНН
|
||||
base-input.input-info(v-mask="'##########'" v-model:value="identityDocument.inn.numba" placeholder="000000000000" :width-input="277")
|
||||
base-input.input-info(
|
||||
v-mask="'##########'",
|
||||
v-model:value="identityDocument.inn.numba",
|
||||
placeholder="000000000000",
|
||||
:width-input="277"
|
||||
)
|
||||
.px-4
|
||||
base-button(@click="saveClient" :size="40")
|
||||
span.font-semibold Создать клиента
|
||||
@@ -39,6 +69,7 @@ export default {
|
||||
props: {
|
||||
identityDocument: Object,
|
||||
saveClient: Function,
|
||||
currentYear: Number,
|
||||
},
|
||||
directives: { mask },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user