Merge branch 'master' into UC-21
This commit is contained in:
493
server.js
493
server.js
@@ -3,136 +3,253 @@ import { createServer } from "miragejs";
|
|||||||
const dataClients = [
|
const dataClients = [
|
||||||
{
|
{
|
||||||
id: "1",
|
id: "1",
|
||||||
fullName: "Вильгейльм Арнольд Витальевич",
|
last_name: "Вильгейльм",
|
||||||
age: "34",
|
first_name: "Арнольд",
|
||||||
jobTitle: "Менеджер",
|
patronymic: "Витальевич",
|
||||||
priority: "Высокий",
|
identity_document_to_person: {
|
||||||
phone: "+7 (915) 657–21–14",
|
pass: {
|
||||||
email: "Superboyband@yandex.ru",
|
number: {
|
||||||
networks: [],
|
value: "5261 918732",
|
||||||
meeting: {
|
copy: true,
|
||||||
date: "02.06.22",
|
},
|
||||||
time: "18:30–19:30",
|
issuedBy: {
|
||||||
|
value: "Отделом УФМС России по рязанской области",
|
||||||
|
},
|
||||||
|
divisionCode: {
|
||||||
|
value: "426–234",
|
||||||
|
},
|
||||||
|
dateIssue: {
|
||||||
|
value: "02.04.2022",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
note_to_person: {
|
||||||
|
basic_info: {
|
||||||
|
age: "34",
|
||||||
|
jobTitle: "Менеджер",
|
||||||
|
priority: "Высокий",
|
||||||
|
phone: "+7 (915) 657–21–14",
|
||||||
|
email: "Superboyband@yandex.ru",
|
||||||
|
networks: [],
|
||||||
|
meeting: {
|
||||||
|
date: "02.06.22",
|
||||||
|
time: "18:30–19:30",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
additional_info: {
|
||||||
|
snils: {
|
||||||
|
number: {
|
||||||
|
value: "812–183–139 21",
|
||||||
|
copy: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
inn: {
|
||||||
|
number: {
|
||||||
|
value: "138291382731",
|
||||||
|
copy: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
birthday: {
|
||||||
|
date: {
|
||||||
|
value: "21.04.1999",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
addresses: {
|
||||||
|
registrationPlace: {
|
||||||
|
value:
|
||||||
|
"371311, Московская обл., г. Москва, ул. Комсомольская, д.6, кв. 13",
|
||||||
|
},
|
||||||
|
actualPlace: {
|
||||||
|
value:
|
||||||
|
"371311, Московская обл., г. Москва, ул. Комсомольская, д.6, кв. 13",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
docs: [
|
||||||
|
{
|
||||||
|
name: "Договор оферты.pdf",
|
||||||
|
type: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Договор о долевом строительстве.pdf",
|
||||||
|
type: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Какое-то очень очень очень очень длинное название.doc",
|
||||||
|
type: "application/msword",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Договор об оплате.doc",
|
||||||
|
type: "application/msword",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Коммерческое предложение.xls",
|
||||||
|
type: "application/vnd.ms-excel",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Таблица заказов.xls",
|
||||||
|
type: "application/vnd.ms-excel",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
additional: [
|
||||||
|
{
|
||||||
|
header: "Предпочтения",
|
||||||
|
value: "Разговор на “Вы”\nТолько по делу\nТолько официальный стиль",
|
||||||
|
name: "",
|
||||||
|
type: "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Доп.документы",
|
||||||
|
value: "",
|
||||||
|
name: "Памятка с вопросами на созвоне.pdf",
|
||||||
|
type: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Его должность",
|
||||||
|
value: "Вроде бы важная шишка, пусть будет – Гуру в дизайне",
|
||||||
|
name: "",
|
||||||
|
type: "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Чтобы не забыть",
|
||||||
|
value: "Не забудь!",
|
||||||
|
name: "",
|
||||||
|
type: "",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "2",
|
id: "2",
|
||||||
fullName: "Астафоркина Екатерина Геннадьевна",
|
last_name: "Астафоркина",
|
||||||
age: "54",
|
first_name: "Екатерина",
|
||||||
jobTitle: "Менеджер",
|
patronymic: "Геннадьевна",
|
||||||
priority: "-",
|
identity_document_to_person: {
|
||||||
phone: "+7 (574) 364–53–36",
|
pass: {
|
||||||
email: "antimag@gmail.com",
|
number: {
|
||||||
networks: [],
|
value: "1324 103496",
|
||||||
meeting: {
|
copy: true,
|
||||||
date: "14.07.22",
|
},
|
||||||
time: "17:30–21:30",
|
issuedBy: {
|
||||||
},
|
value: "Отделом УФМС России по владимирской области",
|
||||||
},
|
},
|
||||||
];
|
divisionCode: {
|
||||||
|
value: "675–901",
|
||||||
const clientsDetail = [
|
},
|
||||||
{
|
dateIssue: {
|
||||||
id: "5",
|
value: "01.01.2011",
|
||||||
idClient: "1",
|
},
|
||||||
pass: {
|
|
||||||
number: {
|
|
||||||
value: "5261 918732",
|
|
||||||
copy: true,
|
|
||||||
},
|
|
||||||
issuedBy: {
|
|
||||||
value: "Отделом УФМС России по рязанской области",
|
|
||||||
},
|
|
||||||
divisionCode: {
|
|
||||||
value: "426–234",
|
|
||||||
},
|
|
||||||
dateIssue: {
|
|
||||||
value: "02.04.2022",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
snils: {
|
note_to_person: {
|
||||||
number: {
|
basic_info: {
|
||||||
value: "812–183–139 21",
|
age: "54",
|
||||||
copy: true,
|
jobTitle: "Менеджер",
|
||||||
|
priority: "-",
|
||||||
|
phone: "+7 (574) 364–53–36",
|
||||||
|
email: "antimag@gmail.com",
|
||||||
|
networks: [],
|
||||||
|
meeting: {
|
||||||
|
date: "14.07.22",
|
||||||
|
time: "17:30–21:30",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
additional_info: {
|
||||||
inn: {
|
snils: {
|
||||||
number: {
|
number: {
|
||||||
value: "138291382731",
|
value: "834–001–555 35",
|
||||||
copy: true,
|
copy: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
inn: {
|
||||||
|
number: {
|
||||||
|
value: "371942327342",
|
||||||
|
copy: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
birthday: {
|
||||||
|
date: {
|
||||||
|
value: "07.12.1993",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
addresses: {
|
||||||
|
registrationPlace: {
|
||||||
|
value:
|
||||||
|
"371311, Московская обл., г. Владимир, ул. Гагарина, д.12, кв. 24",
|
||||||
|
},
|
||||||
|
actualPlace: {
|
||||||
|
value:
|
||||||
|
"371311, Московская обл., г. Владимир, ул. Гагарина, д.12, кв. 24",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
docs: [
|
||||||
|
{
|
||||||
|
name: "Договор покупки.pdf",
|
||||||
|
type: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Договор о оптовых поставках.pdf",
|
||||||
|
type: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Договор о предоставлении услуг.pdf",
|
||||||
|
type: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Какое-то очень очень очень очень короткое название.doc",
|
||||||
|
type: "application/msword",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Документация.doc",
|
||||||
|
type: "application/msword",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Отчет.xls",
|
||||||
|
type: "application/vnd.ms-excel",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Заказы.xls",
|
||||||
|
type: "application/vnd.ms-excel",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
additional: [
|
||||||
|
{
|
||||||
|
header: "По каким вопросам обращатся",
|
||||||
|
value: "Обращатся только по вопросам закупок",
|
||||||
|
name: "",
|
||||||
|
type: "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Доп.документы",
|
||||||
|
value: "Ответственные за работу",
|
||||||
|
name: "Список ответсвенных.xls",
|
||||||
|
type: "application/vnd.ms-excel",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
header: "Портфолио",
|
||||||
|
value: "Информация о клиенте",
|
||||||
|
name: "Портфолио.doc",
|
||||||
|
type: "application/msword",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
birthday: {
|
|
||||||
date: {
|
|
||||||
value: "21.04.1999",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
addresses: {
|
|
||||||
registrationPlace: {
|
|
||||||
value:
|
|
||||||
"371311, Московская обл., г. Москва, ул. Комсомольская, д.6, кв. 13",
|
|
||||||
},
|
|
||||||
actualPlace: {
|
|
||||||
value:
|
|
||||||
"371311, Московская обл., г. Москва, ул. Комсомольская, д.6, кв. 13",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
docs: {
|
|
||||||
info: [
|
|
||||||
{
|
|
||||||
value: "Договор оферты.pdf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "Договор о долевом строительстве.pdf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "Какое-то очень очень очень очень длинное название.doc",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "Договор об оплате.doc",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "Коммерческое предложение.xls",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: "Таблица заказов.xls",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
additional: {
|
|
||||||
info: [
|
|
||||||
{
|
|
||||||
name: "Предпочтения",
|
|
||||||
value: "Разговор на “Вы”\nТолько по делу\nТолько официальный стиль",
|
|
||||||
file: "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Доп.документы",
|
|
||||||
value: "",
|
|
||||||
file: "Памятка с вопросами на созвоне.pdf",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Его должность",
|
|
||||||
value: "Вроде бы важная шишка, пусть будет – Гуру в дизайне",
|
|
||||||
file: "",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Чтобы не забыть",
|
|
||||||
value: "Не забудь!",
|
|
||||||
file: "",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
export function clientsServer() {
|
export function clientsServer() {
|
||||||
createServer({
|
createServer({
|
||||||
routes() {
|
routes() {
|
||||||
this.get("/api/clients", () => ({
|
this.get("/api/clients", () => {
|
||||||
dataClients,
|
return dataClients.map((el) => ({
|
||||||
}));
|
...el.note_to_person.basic_info,
|
||||||
|
id: el.id,
|
||||||
|
last_name: el.last_name,
|
||||||
|
first_name: el.first_name,
|
||||||
|
patronymic: el.patronymic,
|
||||||
|
}));
|
||||||
|
});
|
||||||
this.get("/registry/event/", () => ({
|
this.get("/registry/event/", () => ({
|
||||||
count: 1,
|
count: 4,
|
||||||
next: null,
|
next: null,
|
||||||
previous: null,
|
previous: null,
|
||||||
results: [
|
results: [
|
||||||
@@ -157,6 +274,16 @@ export function clientsServer() {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
employees: [
|
employees: [
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
|
employee: {
|
||||||
|
id: "db541a67-e836-481f-a653-6325de7c567e",
|
||||||
|
last_name: "Захарова",
|
||||||
|
first_name: "Ольга",
|
||||||
|
patronymic: "Александровна",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
employee: {
|
employee: {
|
||||||
@@ -169,12 +296,146 @@ export function clientsServer() {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "7faa7bb7-2de6-422c-a401-1b35cd455303",
|
||||||
|
start: "2022-10-20T10:00:00Z",
|
||||||
|
end: "2022-10-20T11:10:00Z",
|
||||||
|
kind: "call",
|
||||||
|
subkind: null,
|
||||||
|
description: "",
|
||||||
|
location: null,
|
||||||
|
members: [
|
||||||
|
{
|
||||||
|
id: "b0509f9a-e824-4bb3-a260-2b32dae9bc81",
|
||||||
|
person: {
|
||||||
|
id: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||||
|
last_name: "Гагарин",
|
||||||
|
first_name: "Юрий",
|
||||||
|
patronymic: "Алексеевич",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
employees: [
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c734-4f79-92c2-d7a5674459e422",
|
||||||
|
employee: {
|
||||||
|
id: "db831a15-e876-481f-a658-6325de7c311e",
|
||||||
|
last_name: "Константинопольская",
|
||||||
|
first_name: "Юлия",
|
||||||
|
patronymic: "Викторовна",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
|
employee: {
|
||||||
|
id: "db541a67-e836-481f-a653-6325de7c567e",
|
||||||
|
last_name: "Захарова",
|
||||||
|
first_name: "Ольга",
|
||||||
|
patronymic: "Александровна",
|
||||||
|
},
|
||||||
|
role: "owner",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "2faa7bb2-2de6-422c-a401-1b35cd455223",
|
||||||
|
start: "2022-10-20T10:00:00Z",
|
||||||
|
end: "2022-10-20T11:10:00Z",
|
||||||
|
kind: "call",
|
||||||
|
subkind: null,
|
||||||
|
description: "",
|
||||||
|
location: null,
|
||||||
|
members: [
|
||||||
|
{
|
||||||
|
id: "b0509f9a-e824-4bb3-a260-2b32dae9bc81",
|
||||||
|
person: {
|
||||||
|
id: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||||
|
last_name: "Гагарин",
|
||||||
|
first_name: "Юрий",
|
||||||
|
patronymic: "Алексеевич",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
employees: [
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c734-4f79-92c2-d7a5674459e422",
|
||||||
|
employee: {
|
||||||
|
id: "db831a15-e876-481f-a658-6325de7c311e",
|
||||||
|
last_name: "Константинопольская",
|
||||||
|
first_name: "Юлия",
|
||||||
|
patronymic: "Викторовна",
|
||||||
|
},
|
||||||
|
role: "owner",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
|
employee: {
|
||||||
|
id: "db541a67-e836-481f-a653-6325de7c567e",
|
||||||
|
last_name: "Захарова",
|
||||||
|
first_name: "Ольга",
|
||||||
|
patronymic: "Александровна",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "6faa6bb2-1de4-425c-a401-1b35cd455303",
|
||||||
|
start: "2022-10-20T20:23:49Z",
|
||||||
|
end: "2022-10-20T21:23:53Z",
|
||||||
|
kind: "call",
|
||||||
|
subkind: null,
|
||||||
|
description: "",
|
||||||
|
location: null,
|
||||||
|
members: [
|
||||||
|
{
|
||||||
|
id: "b0509f9a-e824-4bb3-a260-2b32dae9bc81",
|
||||||
|
person: {
|
||||||
|
id: "14ff401c-2b7b-4d9a-9159-720c74d8b23c",
|
||||||
|
last_name: "Гагарин",
|
||||||
|
first_name: "Юрий",
|
||||||
|
patronymic: "Алексеевич",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
employees: [
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
|
employee: {
|
||||||
|
id: "db541a67-e836-481f-a653-6325de7c567e",
|
||||||
|
last_name: "Захарова",
|
||||||
|
first_name: "Ольга",
|
||||||
|
patronymic: "Александровна",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "f941a0c6-c750-4f79-92c0-d7a19354e422",
|
||||||
|
employee: {
|
||||||
|
id: "db831a14-e836-481f-a653-6325de7c311e",
|
||||||
|
last_name: "Жмыхов",
|
||||||
|
first_name: "Егор",
|
||||||
|
patronymic: "Сергеевич",
|
||||||
|
},
|
||||||
|
role: null,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}));
|
}));
|
||||||
this.passthrough("http://45.84.227.122:8080/**");
|
this.passthrough("http://45.84.227.122:8080/**");
|
||||||
this.get("/api/detail/:id", (schema, request) => {
|
this.get("/api/detail/:id", (schema, request) => {
|
||||||
let id = request.params.id;
|
let id = request.params.id;
|
||||||
return clientsDetail.find((el) => el.idClient === id);
|
let client = dataClients.find((el) => el.id === id);
|
||||||
|
return {
|
||||||
|
...client.note_to_person.additional_info,
|
||||||
|
id: client.id,
|
||||||
|
pass: client.identity_document_to_person.pass,
|
||||||
|
};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.flex.flex-col.w-full.h-full.gap-y-4
|
.flex.flex-col.w-full.h-full.gap-y-2
|
||||||
the-header
|
the-header
|
||||||
.flex.flex-auto
|
.flex.flex-auto
|
||||||
the-sidebar
|
the-sidebar
|
||||||
|
|||||||
@@ -25,3 +25,6 @@
|
|||||||
--bg-event-planning-color: #E93131
|
--bg-event-planning-color: #E93131
|
||||||
--bg-event-interview-color: #E5E931
|
--bg-event-interview-color: #E5E931
|
||||||
--bg-event-work-color: #3BA3EE
|
--bg-event-work-color: #3BA3EE
|
||||||
|
--light-grey-bg-color: #f8f9fa
|
||||||
|
--btn-green-color: rgba(60, 217, 75, 1)
|
||||||
|
--btn-light-green-color: rgba(60, 217, 75, 0.2)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default {
|
|||||||
|
|
||||||
.header
|
.header
|
||||||
width: 314px
|
width: 314px
|
||||||
height: 42px
|
height: 40px
|
||||||
position: relative
|
position: relative
|
||||||
background-color: var(--btn-blue-color)
|
background-color: var(--btn-blue-color)
|
||||||
border-radius: 40px
|
border-radius: 40px
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export default {
|
|||||||
transform: rotate(180deg)
|
transform: rotate(180deg)
|
||||||
|
|
||||||
.header-inputs-wrapper
|
.header-inputs-wrapper
|
||||||
|
height: 40px
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
border: 1px solid var(--border-light-grey-color)
|
border: 1px solid var(--border-light-grey-color)
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export default {
|
|||||||
|
|
||||||
.header-wrapper
|
.header-wrapper
|
||||||
width: 100%
|
width: 100%
|
||||||
|
height: 56px
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
position: relative
|
position: relative
|
||||||
z-index: 2
|
z-index: 2
|
||||||
|
|||||||
45
src/components/base/buttons/BaseButtonOk.vue
Normal file
45
src/components/base/buttons/BaseButtonOk.vue
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
<template lang="pug">
|
||||||
|
button.button-ok.flex.items-center.justify-center.cursor-pointer.text-xs.box-border(:style="{width:size + 'px', height:size + 'px'}" :class="{change:darkStyle}")
|
||||||
|
.flex.w-fit.h-fit
|
||||||
|
span.icon-ok.leading-none(:style="{fontSize:iconSize + 'px'}")
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "BaseButtonOk",
|
||||||
|
props: {
|
||||||
|
size: {
|
||||||
|
default: 24,
|
||||||
|
},
|
||||||
|
iconSize: {
|
||||||
|
default: 14,
|
||||||
|
},
|
||||||
|
darkStyle: {
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
.button-ok
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
border: 1.5px solid var(--btn-blue-color-3)
|
||||||
|
border-radius: 50%
|
||||||
|
&:hover
|
||||||
|
border: none
|
||||||
|
background-color: var(--btn-blue-color-3)
|
||||||
|
&:active
|
||||||
|
border: none
|
||||||
|
background-color: var(--btn-light-green-color)
|
||||||
|
color: var(--btn-green-color)
|
||||||
|
.change
|
||||||
|
border-color: var(--btn-blue-color)
|
||||||
|
&:hover
|
||||||
|
border: none
|
||||||
|
background-color: var(--btn-blue-color)
|
||||||
|
color: var(--default-white)
|
||||||
|
&:active
|
||||||
|
background-color: var(--btn-light-green-color)
|
||||||
|
color: var(--btn-green-color)
|
||||||
|
</style>
|
||||||
@@ -1,10 +1,23 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
button.cursor-pointer.icon-plus.button-plus.text-xs.pt-1
|
button.flex.items-center.justify-center.cursor-pointer.button-plus.text-xs.box-border(:style="{width:size + 'px', height:size + 'px'}" :class="{change:withBorder}")
|
||||||
|
.flex.w-fit.h-fit
|
||||||
|
span.icon-plus.leading-none(:style="{fontSize:iconSize + 'px'}")
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "ButtonPlus",
|
name: "BaseButtonPlus",
|
||||||
|
props: {
|
||||||
|
size: {
|
||||||
|
default: 24,
|
||||||
|
},
|
||||||
|
iconSize: {
|
||||||
|
default: 14,
|
||||||
|
},
|
||||||
|
withBorder: {
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -12,10 +25,14 @@ export default {
|
|||||||
.button-plus
|
.button-plus
|
||||||
outline: none
|
outline: none
|
||||||
border: none
|
border: none
|
||||||
width: 24px
|
|
||||||
height: 24px
|
|
||||||
max-height: 24px
|
|
||||||
color: var(--btn-blue-color)
|
color: var(--btn-blue-color)
|
||||||
background-color: var(--bg-ligth-blue-color)
|
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
|
.change
|
||||||
|
background-color: var(--btn-blue-color-0)
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
border: 1.5px solid var(--btn-blue-color)
|
||||||
|
&:hover
|
||||||
|
border: none
|
||||||
|
background-color: var(--btn-blue-color)
|
||||||
|
color: var(--default-white)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
calendar-schedule(
|
calendar-schedule(
|
||||||
:current-date="currentDate"
|
:current-date="currentDate"
|
||||||
:time-information="timeInformation"
|
:time-information="timeInformation"
|
||||||
:column-information="columnInformation"
|
:events-data="eventsData"
|
||||||
@previous-date="switchPreviousDate"
|
@previous-date="switchPreviousDate"
|
||||||
@next-date="switchNextDate"
|
@next-date="switchNextDate"
|
||||||
@selected-layout="changeCalendarLayout"
|
@selected-layout="changeCalendarLayout"
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.calendar-background-wrapper.flex.flex-col(
|
.calendar-background-wrapper.flex.flex-col(
|
||||||
ref="backgroundWrapper"
|
ref="backgroundWrapper"
|
||||||
|
:class="scrollPresence"
|
||||||
)
|
)
|
||||||
calendar-column(
|
calendar-column(
|
||||||
v-for="(owner, index) in columnInformation.owners"
|
v-for="(owner, index) in filteredOwners"
|
||||||
:key="owner"
|
:key="owner.id"
|
||||||
:column-information="owner"
|
:owner-data="owner"
|
||||||
:style="calculateColumnPosition(index)"
|
:style="calculateColumnPosition(index)"
|
||||||
)
|
)
|
||||||
.header(:style="backgroundExtendedWidth")
|
.header(:style="backgroundExtendedWidth")
|
||||||
@@ -27,7 +28,7 @@ export default {
|
|||||||
components: { CalendarColumn },
|
components: { CalendarColumn },
|
||||||
props: {
|
props: {
|
||||||
hoursArray: Array,
|
hoursArray: Array,
|
||||||
columnInformation: Object,
|
eventsData: Array,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -39,7 +40,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
ownersArrayLength() {
|
ownersArrayLength() {
|
||||||
return this.columnInformation.owners.length;
|
return this.filteredOwners.length;
|
||||||
},
|
},
|
||||||
backgroundExtendedWidth() {
|
backgroundExtendedWidth() {
|
||||||
if (this.ownersArrayLength > 3) {
|
if (this.ownersArrayLength > 3) {
|
||||||
@@ -54,6 +55,42 @@ export default {
|
|||||||
backgroundHeight() {
|
backgroundHeight() {
|
||||||
return (this.hoursArray.length - 1) * this.pixelsPerHour + 48;
|
return (this.hoursArray.length - 1) * this.pixelsPerHour + 48;
|
||||||
},
|
},
|
||||||
|
scrollPresence() {
|
||||||
|
return {
|
||||||
|
scroll: this.ownersArrayLength > 3,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
filteredOwners() {
|
||||||
|
let filteredArray = [];
|
||||||
|
let ownerAbsence = {
|
||||||
|
id: null,
|
||||||
|
last_name: null,
|
||||||
|
first_name: null,
|
||||||
|
patronymic: null,
|
||||||
|
};
|
||||||
|
this.eventsData.forEach(({ employees }) => {
|
||||||
|
let findedElement = employees.find((elem) => elem.role === "owner");
|
||||||
|
let emptyObjectPresence = this.findObjectInArray(
|
||||||
|
filteredArray,
|
||||||
|
ownerAbsence
|
||||||
|
);
|
||||||
|
if (!findedElement && !emptyObjectPresence) {
|
||||||
|
filteredArray.push(ownerAbsence);
|
||||||
|
}
|
||||||
|
if (findedElement) {
|
||||||
|
let ownerPresence = this.findObjectInArray(
|
||||||
|
filteredArray,
|
||||||
|
findedElement.employee
|
||||||
|
);
|
||||||
|
if (!ownerPresence) {
|
||||||
|
filteredArray.push(findedElement.employee);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return filteredArray.sort(
|
||||||
|
(previous, subsequent) => Boolean(subsequent.id) - Boolean(previous.id)
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
calculateColumnPosition(elemIndex) {
|
calculateColumnPosition(elemIndex) {
|
||||||
@@ -74,6 +111,11 @@ export default {
|
|||||||
calculateBackgroundWidth() {
|
calculateBackgroundWidth() {
|
||||||
this.backgroundWidth = this.$refs.backgroundWrapper.offsetWidth;
|
this.backgroundWidth = this.$refs.backgroundWrapper.offsetWidth;
|
||||||
},
|
},
|
||||||
|
findObjectInArray(array, object) {
|
||||||
|
return array.find(
|
||||||
|
(item) => JSON.stringify(item) === JSON.stringify(object)
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.calculateBackgroundWidth();
|
this.calculateBackgroundWidth();
|
||||||
@@ -82,10 +124,12 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
|
.scroll
|
||||||
|
overflow-x: scroll
|
||||||
|
|
||||||
.calendar-background-wrapper
|
.calendar-background-wrapper
|
||||||
width: 100%
|
width: 100%
|
||||||
position: relative
|
position: relative
|
||||||
overflow-x: scroll
|
|
||||||
|
|
||||||
.header
|
.header
|
||||||
height: 48px
|
height: 48px
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.calendar-clock-column.flex.flex-col.items-end.gap-y-43.pt-9.pb-12.px-3
|
.calendar-clock-column.flex.flex-col.items-end.gap-y-43.pt-9.pb-45px.px-3
|
||||||
span.text-base(
|
span.text-base(
|
||||||
v-for="hour in hoursArray"
|
v-for="hour in hoursArray"
|
||||||
:key="hour"
|
:key="hour"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
.header.flex.items-center.justify-between.py-2.px-6
|
.header.flex.items-center.justify-between.py-2.px-6
|
||||||
.flex.items-center
|
.flex.items-center
|
||||||
img.avatar-wrapper.mr-2(src="@/assets/images/team-member.svg" alt="Team member")
|
img.avatar-wrapper.mr-2(src="@/assets/images/team-member.svg" alt="Team member")
|
||||||
span.owner-name.font-medium.text-base.mr-6 {{ columnInformation }}
|
span.owner-name.font-medium.text-base.mr-6 {{ ownerName }}
|
||||||
img.icon-wrapper.cursor-pointer(src="@/assets/icons/lock.svg")
|
img.icon-wrapper.cursor-pointer(src="@/assets/icons/lock.svg")
|
||||||
base-doc-ok-button
|
base-doc-ok-button
|
||||||
div
|
div
|
||||||
@@ -15,7 +15,18 @@ export default {
|
|||||||
name: "CalendarColumn",
|
name: "CalendarColumn",
|
||||||
components: { BaseDocOkButton },
|
components: { BaseDocOkButton },
|
||||||
props: {
|
props: {
|
||||||
columnInformation: String,
|
ownerData: Object,
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
ownerName() {
|
||||||
|
if (this.ownerData.id) {
|
||||||
|
return `${this.ownerData.last_name} ${this.ownerData.first_name.slice(
|
||||||
|
0,
|
||||||
|
1
|
||||||
|
)}.${this.ownerData.patronymic.slice(0, 1)}.`;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
)
|
)
|
||||||
calendar-background(
|
calendar-background(
|
||||||
:hours-array="hoursArray"
|
:hours-array="hoursArray"
|
||||||
:column-information="columnInformation"
|
:events-data="eventsData"
|
||||||
)
|
)
|
||||||
.time-circle-indicator.left-74px(
|
.time-circle-indicator.left-74px(
|
||||||
v-if="isShownIndicator"
|
v-if="isShownIndicator"
|
||||||
@@ -54,10 +54,10 @@ export default {
|
|||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
columnInformation: {
|
eventsData: {
|
||||||
type: Object,
|
type: Array,
|
||||||
default() {
|
default() {
|
||||||
return {};
|
return [];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -219,7 +219,7 @@ export default {
|
|||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.schedule
|
.schedule
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
width: calc(100% - 8px)
|
width: calc(100% - 80px)
|
||||||
|
|
||||||
.time-line-indicator
|
.time-line-indicator
|
||||||
width: calc(100% - 80px)
|
width: calc(100% - 80px)
|
||||||
|
|||||||
@@ -1,30 +1,56 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.section-wrapper.flex.flex-col.h-fit(:style="{ minWidth : settings.width + 'px' }" :class="{flexRow:settings.rollFlex}")
|
.section-wrapper.flex.flex-col.h-fit.cursor-pointer(@dblclick="openInterfaceChange" :class="{click:isOpenChange}" :style="{ flexDirection:settings[section].rowFlex&&'row', width : settings[section].width + 'px', height : settings[section].height+'px'}")
|
||||||
.section-header.flex.items-center.justify-start.pt-4.pb-3.pl-4(:class="{styleBorder:settings.rollFlex}")
|
.section-header.flex.items-center.justify-between.pl-4.pr-3(:class="{small:settings[section].rowFlex}")
|
||||||
span.text-sm.font-semibold {{settings.title}}
|
span.text-sm.font-semibold.whitespace-nowrap {{settings[section].title}}
|
||||||
|
.flex.items-center.gap-x-8(v-if="isOpenChange")
|
||||||
|
base-button-ok(@click="saveChange" v-if="isChange" :size="20" :icon-size="10" :dark-style="true")
|
||||||
|
.edit.icon-edit.cursor-pointer.text-sm(v-if="!isChange" @click="changeClientData")
|
||||||
|
base-button-plus(v-if="settings[section].addFile" :size="20" :icon-size="10" :with-border="true")
|
||||||
.section-body.w-full.flex.flex-col.px-4.pt-3.pb-4.gap-y-4
|
.section-body.w-full.flex.flex-col.px-4.pt-3.pb-4.gap-y-4
|
||||||
.flex.flex-col(v-for="(item, key) in sectionInfo" class="gap-y-1.5")
|
.flex.flex-col(v-for="(item, key) in sectionInfo" class="gap-y-1.5")
|
||||||
span.title-section.font-semibold.text-xs(v-if="settings.options") {{settings.options[key]}}
|
span.title-section.font-semibold.text-xs(v-if="settings[section].options") {{settings[section].options[key]}}
|
||||||
.flex.gap-x-4
|
span.title-section.font-semibold.text-xs(v-if="item.header") {{item.header}}
|
||||||
.icon-files.cursor-pointer(v-if="!!item.file" style="color:red")
|
client-detail-input.text-sm.text-sm.w-max-fit(v-if="isChange && item.value" :style="{fontWeight:item.copy&&600}" v-model:value="item.value" :width="settings[section].width")
|
||||||
span.text-sm.text-sm.text-center.w-fit(v-if="!!item.value" :style="{fontWeight:item.copy&&600}") {{item.value}}
|
.copy.icon-copy.cursor-pointer(v-if="item.copy")
|
||||||
span.text-sm.text-center(v-if="!!item.file") {{item.file}}
|
.flex.gap-x-4(v-if="item.value && !isChange")
|
||||||
.icon-copy.cursor-pointer(v-if="item.copy")
|
span.text-sm.w-fit(:style="{fontWeight:item.copy&&600}") {{item.value}}
|
||||||
|
.copy.icon-copy.cursor-pointer(v-if="item.copy")
|
||||||
|
.flex.gap-x-4(v-if="item.name")
|
||||||
|
.icon-files.cursor-pointer(:style="{color:settings.docsColor[item.type]}")
|
||||||
|
span.text-sm {{item.name}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import ClientDetailInput from "@/pages/clients/components/ClientDetailInput";
|
||||||
|
import BaseButtonOk from "@/components/base/buttons/BaseButtonOk";
|
||||||
|
import BaseButtonPlus from "@/components/base/buttons/BaseButtonPlus";
|
||||||
import { detail } from "@/pages/clients/utils/tableConfig";
|
import { detail } from "@/pages/clients/utils/tableConfig";
|
||||||
export default {
|
export default {
|
||||||
name: "ClientDetailInfoSection",
|
name: "ClientDetailInfoSection",
|
||||||
|
components: { BaseButtonPlus, BaseButtonOk, ClientDetailInput },
|
||||||
props: {
|
props: {
|
||||||
sectionInfo: Object,
|
sectionInfo: Object,
|
||||||
section: String,
|
section: String,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
settings: detail.find((el) => el.name === this.section),
|
isOpenChange: false,
|
||||||
|
isChange: false,
|
||||||
|
settings: detail,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
openInterfaceChange() {
|
||||||
|
this.isOpenChange = !this.isOpenChange;
|
||||||
|
},
|
||||||
|
changeClientData() {
|
||||||
|
this.isChange = true;
|
||||||
|
},
|
||||||
|
saveChange() {
|
||||||
|
this.isOpenChange = false;
|
||||||
|
this.isChange = false;
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -33,13 +59,32 @@ export default {
|
|||||||
border: 1px solid var(--border-light-grey-color)
|
border: 1px solid var(--border-light-grey-color)
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
color: var(--font-dark-blue-color)
|
color: var(--font-dark-blue-color)
|
||||||
&.flex-row
|
&.click
|
||||||
flex-direction: row
|
background-color: var(--light-grey-bg-color)
|
||||||
.section-header
|
.section-header
|
||||||
|
min-height: 44px
|
||||||
border-bottom: 1px solid var(--border-light-grey-color)
|
border-bottom: 1px solid var(--border-light-grey-color)
|
||||||
&.style-border
|
.small
|
||||||
border-bottom: none
|
border-bottom: none
|
||||||
border-right: 1px solid var(--border-light-grey-color)
|
border-right: 1px solid var(--border-light-grey-color)
|
||||||
|
min-width: 180px
|
||||||
.title-section
|
.title-section
|
||||||
color: var(--font-grey-color)
|
color: var(--font-grey-color)
|
||||||
|
.copy
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
opacity: 0.6
|
||||||
|
.section-body
|
||||||
|
overflow-y: auto
|
||||||
|
&::-webkit-scrollbar
|
||||||
|
width: 4px
|
||||||
|
&::-webkit-scrollbar-track
|
||||||
|
background-color: rgba(211, 212, 220, 0.5)
|
||||||
|
border-radius: 8px
|
||||||
|
&::-webkit-scrollbar-thumb
|
||||||
|
border-radius: 8px
|
||||||
|
background-color: var(--btn-blue-color)
|
||||||
|
.edit
|
||||||
|
color: var(--btn-blue-color)
|
||||||
|
&:hover
|
||||||
|
opacity: 0.6
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.w-full.h-fit.pt-4.flex.gap-x-4(class="px-[52px] pb-[30px]")
|
.w-full.h-fit.pt-4.flex.gap-x-4(class="px-[52px] pb-[30px]")
|
||||||
client-detail-info-section(:section-info="dataDetail.pass" section="pass")
|
client-detail-info-section(v-model:section-info="dataDetail.pass" section="pass")
|
||||||
.flex.flex-col.gap-y-2
|
.flex.flex-col.gap-y-2
|
||||||
client-detail-info-section(:section-info="dataDetail.snils" section="snils" )
|
client-detail-info-section(:section-info="dataDetail.snils" section="snils" )
|
||||||
client-detail-info-section(:section-info="dataDetail.inn" section="inn" )
|
client-detail-info-section(:section-info="dataDetail.inn" section="inn" )
|
||||||
.flex.flex-col.gap-y-2
|
.flex.flex-col.gap-y-2
|
||||||
client-detail-info-section(:section-info="dataDetail.birthday" section="birthday")
|
client-detail-info-section(:section-info="dataDetail.birthday" section="birthday")
|
||||||
client-detail-info-section(:section-info="dataDetail.addresses" section="addresses")
|
client-detail-info-section(:section-info="dataDetail.addresses" section="addresses")
|
||||||
|
client-detail-info-section(:section-info="dataDetail.docs" section="docs")
|
||||||
|
client-detail-info-section(:section-info="dataDetail.additional" section="additional")
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
27
src/pages/clients/components/ClientDetailInput.vue
Normal file
27
src/pages/clients/components/ClientDetailInput.vue
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
<template lang="pug">
|
||||||
|
.input-wrapper.flex.gap-x-2.px-3.box-border.w-max-fit(class="py-2.5")
|
||||||
|
textarea.place-input.w-full.outline-0.text-sm.not-italic.resize-none(:rows="Math.ceil(value.length/heightInput)" :value="value" @input="$emit('update:value', $event.target.value)")
|
||||||
|
slot
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "ClientDetailInput",
|
||||||
|
props: {
|
||||||
|
value: String,
|
||||||
|
width: Number,
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
heightInput() {
|
||||||
|
return ((this.width / 100) * 70) / 8;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped>
|
||||||
|
.input-wrapper
|
||||||
|
border: 2px solid var(--border-light-grey-color)
|
||||||
|
border-radius: 4px
|
||||||
|
background-color: var(--default-white)
|
||||||
|
</style>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
:id="client.id"
|
:id="client.id"
|
||||||
:is-check="marked.includes(client.id)"
|
:is-check="marked.includes(client.id)"
|
||||||
:check="selectedCheck"
|
:check="selectedCheck"
|
||||||
:full-name="client.fullName"
|
:full-name="`${client.last_name} ${client.first_name} ${client.patronymic}`"
|
||||||
:age="client.age"
|
:age="client.age"
|
||||||
:job-title="client.jobTitle"
|
:job-title="client.jobTitle"
|
||||||
:priority="client.priority"
|
:priority="client.priority"
|
||||||
@@ -46,7 +46,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
saveDataClients(data) {
|
saveDataClients(data) {
|
||||||
this.dataClients = data.dataClients;
|
this.dataClients = data;
|
||||||
},
|
},
|
||||||
fetchDataClients() {
|
fetchDataClients() {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import BaseCreateButton from "@/components/base/buttons/BaseCreateButton";
|
|||||||
import BassExportButton from "@/components/base/buttons/BassExportButton";
|
import BassExportButton from "@/components/base/buttons/BassExportButton";
|
||||||
import BaseInput from "@/components/base/BaseInput";
|
import BaseInput from "@/components/base/BaseInput";
|
||||||
export default {
|
export default {
|
||||||
name: "ClientsTAbleHeader",
|
name: "ClientsTableHat",
|
||||||
components: {
|
components: {
|
||||||
BaseInput,
|
BaseInput,
|
||||||
BassExportButton,
|
BassExportButton,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.row-wrapper.flex.flex-col.w-full
|
.row-wrapper.flex.flex-col.w-full
|
||||||
.row-body.flex.w-full.cursor-pointer(@click="openDetailInfo")
|
.row-body.flex.w-full.cursor-pointer(:id="id" @dblclick="(e) => openDetailInfo(e)")
|
||||||
.check-box.flex.justify-center.items-center
|
.check-box.flex.justify-center.items-center
|
||||||
clients-table-checkbox(:id="id" :check="check" :is-check="isCheck")
|
clients-table-checkbox(:id="id" :check="check" :is-check="isCheck")
|
||||||
table-cell-body-name(:value="fullName" :width="columnBody.find(el => el.name === 'fullName').width")
|
table-cell-body-name(:value="fullName" :width="columnBody.find(el => el.name === 'fullName').width")
|
||||||
@@ -67,9 +67,9 @@ export default {
|
|||||||
meetingTime: Object,
|
meetingTime: Object,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchClientDetail() {
|
fetchClientDetail(id) {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
fetch("/api/detail/1").then((res) => res.json()).then((data) => this.saveClientDetail(data))
|
fetch(`/api/detail/${id}`).then((res) => res.json()).then((data) => this.saveClientDetail(data))
|
||||||
},
|
},
|
||||||
saveClientDetail(data) {
|
saveClientDetail(data) {
|
||||||
this.dataDetail = data;
|
this.dataDetail = data;
|
||||||
@@ -78,9 +78,9 @@ export default {
|
|||||||
e.target.focus();
|
e.target.focus();
|
||||||
this.isOpenPopup = !this.isOpenPopup;
|
this.isOpenPopup = !this.isOpenPopup;
|
||||||
},
|
},
|
||||||
openDetailInfo() {
|
openDetailInfo(e) {
|
||||||
this.isOpenDetailInfo = !this.isOpenDetailInfo;
|
this.isOpenDetailInfo = !this.isOpenDetailInfo;
|
||||||
this.isOpenDetailInfo && this.fetchClientDetail();
|
this.isOpenDetailInfo && this.fetchClientDetail(e.currentTarget.id);
|
||||||
},
|
},
|
||||||
handleUnFocusPopup() {
|
handleUnFocusPopup() {
|
||||||
this.isOpenPopup = false;
|
this.isOpenPopup = false;
|
||||||
|
|||||||
@@ -60,9 +60,8 @@ export const column = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const detail = [
|
export const detail = {
|
||||||
{
|
pass: {
|
||||||
name: "pass",
|
|
||||||
title: "Паспортные данные",
|
title: "Паспортные данные",
|
||||||
options: {
|
options: {
|
||||||
number: "Серия и номер",
|
number: "Серия и номер",
|
||||||
@@ -72,30 +71,26 @@ export const detail = [
|
|||||||
},
|
},
|
||||||
width: 280,
|
width: 280,
|
||||||
},
|
},
|
||||||
{
|
snils: {
|
||||||
name: "snils",
|
|
||||||
title: "СНИЛС",
|
title: "СНИЛС",
|
||||||
options: {
|
options: {
|
||||||
number: "Номер",
|
number: "Номер",
|
||||||
},
|
},
|
||||||
width: 180,
|
width: 180,
|
||||||
},
|
},
|
||||||
{
|
inn: {
|
||||||
name: "inn",
|
|
||||||
title: "ИНН",
|
title: "ИНН",
|
||||||
options: {
|
options: {
|
||||||
number: "Номер",
|
number: "Номер",
|
||||||
},
|
},
|
||||||
width: 180,
|
width: 180,
|
||||||
},
|
},
|
||||||
{
|
birthday: {
|
||||||
name: "birthday",
|
|
||||||
title: "Дата рождения",
|
title: "Дата рождения",
|
||||||
width: 292,
|
width: 292,
|
||||||
rollFlex: true,
|
rowFlex: true,
|
||||||
},
|
},
|
||||||
{
|
addresses: {
|
||||||
name: "addresses",
|
|
||||||
title: "Адреса",
|
title: "Адреса",
|
||||||
options: {
|
options: {
|
||||||
registrationPlace: "Адрес постоянной регистрации",
|
registrationPlace: "Адрес постоянной регистрации",
|
||||||
@@ -103,16 +98,21 @@ export const detail = [
|
|||||||
},
|
},
|
||||||
width: 292,
|
width: 292,
|
||||||
},
|
},
|
||||||
{
|
docs: {
|
||||||
name: "docs",
|
|
||||||
title: "Документы",
|
title: "Документы",
|
||||||
height: 280,
|
height: 280,
|
||||||
width: 360,
|
width: 360,
|
||||||
|
addFile: true,
|
||||||
},
|
},
|
||||||
{
|
additional: {
|
||||||
name: "additional",
|
|
||||||
title: "Дополнительные данные",
|
title: "Дополнительные данные",
|
||||||
height: 280,
|
height: 280,
|
||||||
width: 360,
|
width: 360,
|
||||||
|
addFile: true,
|
||||||
},
|
},
|
||||||
];
|
docsColor: {
|
||||||
|
"application/pdf": "#ff6969",
|
||||||
|
"application/msword": "#6993ff",
|
||||||
|
"application/vnd.ms-excel": "#61c57d",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ module.exports = {
|
|||||||
"10px": "10px",
|
"10px": "10px",
|
||||||
"13px": "13px",
|
"13px": "13px",
|
||||||
"19px": "19px",
|
"19px": "19px",
|
||||||
|
"45px": "45px",
|
||||||
"74px": "74px",
|
"74px": "74px",
|
||||||
"148px": "148px",
|
"148px": "148px",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user