[WIP] Фикс переменных, правка стилей
This commit is contained in:
@@ -78,9 +78,9 @@
|
||||
span.title-section.font-semibold.text-xs(v-if="settings[section].options") {{settings[section].options[key]}}
|
||||
span.title-section.font-semibold.text-xs(v-if="item.header") {{item.header}}
|
||||
.flex(v-if="settings[section].options && !isChange")
|
||||
span.text-sm.w-fit(:style="{fontWeight:key === 'numba'&&600}") {{key === 'issued_by_date' ? formattedDate : item}}
|
||||
span.text-sm.w-fit(:style="{fontWeight:key === 'number'&&600}") {{key === 'issued_by_date' ? formattedDate : item}}
|
||||
.copy.icon-copy.cursor-pointer.pl-4(
|
||||
v-if="key === 'numba'",
|
||||
v-if="key === 'number'",
|
||||
@click="() => copyValue(item)"
|
||||
)
|
||||
.flex(v-if="item.name && !isChange")
|
||||
@@ -105,7 +105,7 @@
|
||||
span.title-section.font-semibold.text-xs(v-if="item.header") {{item.header}}
|
||||
client-detail-input.text-sm.w-max-fit(
|
||||
v-if="section!=='docs' && section!=='additional' && isChange && settings[section].options[key] !== 'Дата выдачи'",
|
||||
:style="{fontWeight:key === 'numba'&&600}",
|
||||
:style="{fontWeight:key === 'number'&&600}",
|
||||
v-model:value="sectionInfo[key]",
|
||||
:rows="section ==='pass' ? 2 : 1",
|
||||
:placeholder="settings[section].placeholder[key] || settings[section].placeholder"
|
||||
@@ -137,7 +137,7 @@
|
||||
)
|
||||
client-detail-input.text-sm.w-max-fit.pr-12.relative(
|
||||
:maxLength="40",
|
||||
:style="{fontWeight:key === 'numba'&&600}",
|
||||
:style="{fontWeight:key === 'number'&&600}",
|
||||
v-model:value="sectionInfo[key].title",
|
||||
placeholder="Заголовок"
|
||||
)
|
||||
@@ -148,7 +148,7 @@
|
||||
.title-section.text-xxs.font-semibold Описание
|
||||
client-detail-input.text-sm.w-max-fit(
|
||||
:maxLength="40",
|
||||
:style="{fontWeight:key === 'numba'&&600}",
|
||||
:style="{fontWeight:key === 'number'&&600}",
|
||||
v-model:value="sectionInfo[key].description",
|
||||
placeholder="Описание"
|
||||
)
|
||||
|
||||
@@ -347,7 +347,7 @@ export default {
|
||||
.post("general/contact/create/", {
|
||||
kind: contact.kind,
|
||||
username: contact.username,
|
||||
person_id: this.client.id,
|
||||
person: this.client.id,
|
||||
})
|
||||
.then(() => {
|
||||
if (this.createdClientName) this.fetchCreatedClientData;
|
||||
@@ -359,7 +359,7 @@ export default {
|
||||
.post(`general/contact/${contact.id}/update/`, {
|
||||
kind: contact.kind,
|
||||
username: contact.username,
|
||||
person_id: this.client.id,
|
||||
person: this.client.id,
|
||||
})
|
||||
.then(() => {
|
||||
if (this.createdClientName) this.fetchCreatedClientData;
|
||||
@@ -430,7 +430,7 @@ export default {
|
||||
.then((data) => this.saveAttachment(data.results));
|
||||
},
|
||||
saveAttachment(data) {
|
||||
this.dataAttachments = data.filter((e) => e.person_id.id === this.id);
|
||||
this.dataAttachments = data.filter((e) => e.person.id === this.id);
|
||||
this.lackAttachments = this.dataAttachments[0]?.id ? true : false;
|
||||
},
|
||||
saveNote(data) {
|
||||
@@ -446,8 +446,8 @@ export default {
|
||||
if (data?.id) {
|
||||
this.docId = data.id;
|
||||
this.dataIdentityDocument = {
|
||||
numba:
|
||||
data.series && data.numba ? data?.series + " " + data?.numba : "",
|
||||
number:
|
||||
data.series && data.number ? data?.series + " " + data?.number : "",
|
||||
issued_by_org: data.issued_by_org ? data?.issued_by_org : "",
|
||||
issued_by_org_code: data.issued_by_org_code
|
||||
? data?.issued_by_org_code
|
||||
@@ -458,7 +458,7 @@ export default {
|
||||
} else {
|
||||
this.lackData = false;
|
||||
this.dataIdentityDocument = {
|
||||
numba: "",
|
||||
number: "",
|
||||
issued_by_org: "",
|
||||
issued_by_org_code: "",
|
||||
issued_by_date: "",
|
||||
@@ -469,7 +469,7 @@ export default {
|
||||
fetchWrapper
|
||||
.post(`general/identity_document/${this.docId}/update/`, {
|
||||
kind: "PASSPORT",
|
||||
series_number: this.dataIdentityDocument.numba,
|
||||
series_number: this.dataIdentityDocument.number,
|
||||
issued_by_org: this.dataIdentityDocument.issued_by_org,
|
||||
issued_by_org_code: this.dataIdentityDocument.issued_by_org_code,
|
||||
issued_by_date: this.dataIdentityDocument.issued_by_date,
|
||||
@@ -565,7 +565,7 @@ export default {
|
||||
this.dataAttachments = [...data];
|
||||
const formData = new FormData();
|
||||
this.dataAttachments.forEach((e) => {
|
||||
formData.append("person_id", this.id);
|
||||
formData.append("person", this.id);
|
||||
formData.append("document", e);
|
||||
formData.append("title", e.name.substr(0, e.name.lastIndexOf(".")));
|
||||
fetchWrapper
|
||||
@@ -581,7 +581,7 @@ export default {
|
||||
postCreateAddress() {
|
||||
fetchWrapper
|
||||
.post("general/address/create/", {
|
||||
person_id: this.id,
|
||||
person: this.id,
|
||||
full_address:
|
||||
this.mergeFullAddress() || this.dataAddress.full_address,
|
||||
})
|
||||
@@ -598,9 +598,9 @@ export default {
|
||||
postCreateIdentityDocument() {
|
||||
fetchWrapper
|
||||
.post("general/identity_document/create/", {
|
||||
person_id: this.id,
|
||||
person: this.id,
|
||||
kind: "PASSPORT",
|
||||
series_number: this.dataIdentityDocument.numba,
|
||||
series_number: this.dataIdentityDocument.number,
|
||||
issued_by_org: this.dataIdentityDocument.issued_by_org,
|
||||
issued_by_org_code: this.dataIdentityDocument.issued_by_org_code,
|
||||
issued_by_date: this.dataIdentityDocument.issued_by_date,
|
||||
@@ -639,7 +639,7 @@ export default {
|
||||
} else
|
||||
fetchWrapper
|
||||
.post("general/note/create/", {
|
||||
person_id: this.id,
|
||||
person: this.id,
|
||||
title: title,
|
||||
description: description,
|
||||
})
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
base-input.input-info(
|
||||
disabled,
|
||||
v-mask="'###-###-### ##'",
|
||||
v-model:value="identityDocument.snils.numba",
|
||||
v-model:value="identityDocument.snils.number",
|
||||
placeholder="000–000–000 00",
|
||||
:width-input="277",
|
||||
:style="{backgroundColor: 'var(--bg-disable-grey-color)'}"
|
||||
@@ -51,7 +51,7 @@
|
||||
base-input.input-info(
|
||||
disabled,
|
||||
v-mask="'############'",
|
||||
v-model:value="identityDocument.inn.numba",
|
||||
v-model:value="identityDocument.inn.number",
|
||||
placeholder="000000000000",
|
||||
:width-input="277",
|
||||
:style="{backgroundColor: 'var(--bg-disable-grey-color)'}"
|
||||
|
||||
Reference in New Issue
Block a user