Исправила мелкие несоответствия

This commit is contained in:
Daria Golova
2023-07-19 11:35:07 +03:00
parent 926efdb64a
commit 370970b26c
5 changed files with 34 additions and 8 deletions

View File

@@ -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 {