Исправила мелкие несоответствия
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
size="M"
|
||||
)
|
||||
base-input(
|
||||
v-if="field.type === 'text'",
|
||||
v-if="field.type === 'text' && field.key !== 'issued_by_org'",
|
||||
v-model="docData[data.dataKey][field.key]",
|
||||
:name="field.key",
|
||||
@update:model-value="checkChangeDocData",
|
||||
@@ -63,13 +63,27 @@
|
||||
:width="302",
|
||||
:mask="field?.inputMask",
|
||||
:rule="[(val) => !personDataField.includes(field.key) ? checkPassportFields(val, field.rules) : field.rules(val)]",
|
||||
:autogrow="field.key === 'issued_by_org'",
|
||||
:size="field.key !== 'issued_by_org' ? 'M' : 'auto'"
|
||||
size="M"
|
||||
)
|
||||
.icon-copy.my-auto.text-lg.label-field.cursor-pointer(
|
||||
v-if="checkCopiedFields(field.key) && !!docData[data.dataKey][field.key]",
|
||||
@click="copyValue(docData[data.dataKey][field.key])"
|
||||
)
|
||||
base-textarea(
|
||||
v-if="field.type === 'text' && field.key === 'issued_by_org'",
|
||||
v-model="docData[data.dataKey][field.key]",
|
||||
:name="field.key",
|
||||
@update:model-value="checkChangeDocData",
|
||||
:readonly="!isEdit",
|
||||
:type="field.type",
|
||||
:width="302",
|
||||
:mask="field?.inputMask",
|
||||
:rule="[(val) => !personDataField.includes(field.key) ? checkPassportFields(val, field.rules) : field.rules(val)]",
|
||||
autogrow,
|
||||
size="auto",
|
||||
height="57px"
|
||||
padding="10px 16px"
|
||||
)
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -87,6 +101,7 @@ import TheNotificationProvider from "@/components/Notifications/TheNotificationP
|
||||
import { addNotification } from "@/components/Notifications/notificationContext";
|
||||
import BaseInput from "@/components/base/BaseInput.vue";
|
||||
import BaseInputDate from "@/components/base/BaseInputDate.vue";
|
||||
import BaseTextarea from "@/components/base/BaseTextarea.vue.vue";
|
||||
export default {
|
||||
name: "DocumentsForm",
|
||||
components: {
|
||||
@@ -97,6 +112,7 @@ export default {
|
||||
BaseUploadPhoto,
|
||||
TheNotificationProvider,
|
||||
BaseInputDate,
|
||||
BaseTextarea,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
multiple,
|
||||
title-type="снимок",
|
||||
:returned-fields="['photo', 'id', 'name', 'size']"
|
||||
)
|
||||
)
|
||||
.grey-border.rounded-md.flex.w-full.py-2.pr-4.pl-2.justify-between.items-center(v-for="picture in dataEntry.pictures")
|
||||
.flex.items-center
|
||||
img.grey-border.rounded.w-8.h-8.mr-3(:src="picture.photo")
|
||||
@@ -36,7 +36,7 @@
|
||||
label="Отменить"
|
||||
)
|
||||
base-button(
|
||||
width="126px",
|
||||
width="132px",
|
||||
label="Сохранить",
|
||||
@click="createNewEntry",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user