Fix deal css
This commit is contained in:
parent
c9db3f3f17
commit
5839d8e1be
@ -1,32 +1,87 @@
|
|||||||
.addDeal {
|
.addDeal, .p-dialog {
|
||||||
.p-2 {
|
.p-2 {
|
||||||
padding: calc(var(--spacing) * 2)!important;
|
padding: calc(var(--spacing) * 2)!important;
|
||||||
}
|
}
|
||||||
|
.p-3 {
|
||||||
|
padding: calc(var(--spacing) * 3)!important;
|
||||||
|
}
|
||||||
.p-4 {
|
.p-4 {
|
||||||
padding: calc(var(--spacing) * 4)!important;
|
padding: calc(var(--spacing) * 4)!important;
|
||||||
}
|
}
|
||||||
.mb-3 {
|
.p-5 {
|
||||||
margin-bottom: calc(var(--spacing) * 3)!important;
|
padding: calc(var(--spacing) * 5)!important;
|
||||||
|
}
|
||||||
|
.p-6 {
|
||||||
|
padding: calc(var(--spacing) * 6)!important;
|
||||||
|
}
|
||||||
|
.pr-2 {
|
||||||
|
padding-right: calc(var(--spacing) * 2);
|
||||||
|
}
|
||||||
|
.pr-3 {
|
||||||
|
padding-right: calc(var(--spacing) * 3);
|
||||||
|
}
|
||||||
|
.pr-4 {
|
||||||
|
padding-right: calc(var(--spacing) * 4);
|
||||||
|
}
|
||||||
|
.pl-2 {
|
||||||
|
padding-left: calc(var(--spacing) * 2);
|
||||||
|
}
|
||||||
|
.pl-3 {
|
||||||
|
padding-left: calc(var(--spacing) * 3);
|
||||||
|
}
|
||||||
|
.pl-4 {
|
||||||
|
padding-left: calc(var(--spacing) * 4);
|
||||||
|
}
|
||||||
|
.pb-2 {
|
||||||
|
padding-bottom: calc(var(--spacing) * 2);
|
||||||
|
}
|
||||||
|
.pt-2 {
|
||||||
|
padding-top: calc(var(--spacing) * 2);
|
||||||
|
}
|
||||||
|
.ml-3 {
|
||||||
|
margin-left: calc(var(--spacing) * 3)!important;
|
||||||
}
|
}
|
||||||
.ml-4 {
|
.ml-4 {
|
||||||
margin-left: calc(var(--spacing) * 4)!important;
|
margin-left: calc(var(--spacing) * 4)!important;
|
||||||
}
|
}
|
||||||
|
.mr-3 {
|
||||||
|
margin-right: calc(var(--spacing) * 3)!important;
|
||||||
|
}
|
||||||
.mr-4 {
|
.mr-4 {
|
||||||
margin-right: calc(var(--spacing) * 4)!important;
|
margin-right: calc(var(--spacing) * 4)!important;
|
||||||
}
|
}
|
||||||
.p-4 {
|
|
||||||
padding: calc(var(--spacing) * 4)!important;
|
|
||||||
}
|
|
||||||
.mt-3 {
|
.mt-3 {
|
||||||
margin-top: calc(var(--spacing) * 3);
|
margin-top: calc(var(--spacing) * 3);
|
||||||
}
|
}
|
||||||
.mt-4 {
|
.mt-4 {
|
||||||
margin-top: calc(var(--spacing) * 4)!important;
|
margin-top: calc(var(--spacing) * 4)!important;
|
||||||
}
|
}
|
||||||
|
.mb-3 {
|
||||||
|
margin-bottom: calc(var(--spacing) * 3);
|
||||||
|
}
|
||||||
|
.mb-4 {
|
||||||
|
margin-bottom: calc(var(--spacing) * 4);
|
||||||
|
}
|
||||||
.ml-auto {
|
.ml-auto {
|
||||||
margin-left: auto!important;
|
margin-left: auto!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.space-x-2 {
|
||||||
|
:where(& > :not(:last-child)) {
|
||||||
|
--tw-space-x-reverse: 0;
|
||||||
|
margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
|
||||||
|
margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.space-x-3 {
|
||||||
|
:where(& > :not(:last-child)) {
|
||||||
|
--tw-space-x-reverse: 0;
|
||||||
|
margin-inline-start: calc(calc(var(--spacing) * 3) * var(--tw-space-x-reverse));
|
||||||
|
margin-inline-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-x-reverse)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.space-x-4 {
|
.space-x-4 {
|
||||||
:where(& > :not(:last-child)) {
|
:where(& > :not(:last-child)) {
|
||||||
--tw-space-x-reverse: 0;
|
--tw-space-x-reverse: 0;
|
||||||
|
|||||||
@ -135,8 +135,8 @@
|
|||||||
<div class="flex w-full flex-wrap">
|
<div class="flex w-full flex-wrap">
|
||||||
<EmployeeAddModal v-if="showModalDealManager" :employees="employeesList" :selected="selectedEmployees" @close="closeModalDealManager" @select="addEmployee" />
|
<EmployeeAddModal v-if="showModalDealManager" :employees="employeesList" :selected="selectedEmployees" @close="closeModalDealManager" @select="addEmployee" />
|
||||||
<EmployeeCard v-for="employee in selectedEmployees" :key="employee.id" :employee="employee" :url="url" @remove="removeEmployee" />
|
<EmployeeCard v-for="employee in selectedEmployees" :key="employee.id" :employee="employee" :url="url" @remove="removeEmployee" />
|
||||||
<div class="sm:w-1/2 md:w-1/3 lg:w-1/4 p-2">
|
<div class="sm:w-1/2 md:w-1/3 lg:w-1/4">
|
||||||
<button @click="openModalDealManager" class="w-full h-full p-2 rounded flex flex-col items-center justify-center add-employee-button">
|
<button @click="openModalDealManager" class="w-full h-full p-6 rounded flex flex-col items-center justify-center add-employee-button">
|
||||||
<img src="@/shared/assets/icons/plus-green.svg" alt="Добавить сотрудника">
|
<img src="@/shared/assets/icons/plus-green.svg" alt="Добавить сотрудника">
|
||||||
<p>Добавить сотрудника</p>
|
<p>Добавить сотрудника</p>
|
||||||
</button>
|
</button>
|
||||||
@ -245,7 +245,7 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form__item flex flex-col gap-1 w-full">
|
<div class="form__item flex flex-col gap-1 w-full mb-3">
|
||||||
<label for="deal_e_registration">Электронная регистрация:</label>
|
<label for="deal_e_registration">Электронная регистрация:</label>
|
||||||
<div class="deal_e_registration">
|
<div class="deal_e_registration">
|
||||||
<label class="mr-4">
|
<label class="mr-4">
|
||||||
@ -368,8 +368,8 @@
|
|||||||
:urlLaravel="urlLaravel"
|
:urlLaravel="urlLaravel"
|
||||||
@remove="removeDoc"
|
@remove="removeDoc"
|
||||||
/>
|
/>
|
||||||
<div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 p-2">
|
<div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4">
|
||||||
<button @click="openModalDealDoc" class="w-full h-full p-2 rounded flex flex-col items-center justify-center add-deal-doc-button">
|
<button @click="openModalDealDoc" class="w-full h-full p-6 rounded flex flex-col items-center justify-center add-deal-doc-button">
|
||||||
<img src="@/shared/assets/icons/plus-green.svg" alt="Добавить документ" class="w-6 h-6">
|
<img src="@/shared/assets/icons/plus-green.svg" alt="Добавить документ" class="w-6 h-6">
|
||||||
<p>Добавить документ</p>
|
<p>Добавить документ</p>
|
||||||
</button>
|
</button>
|
||||||
@ -722,7 +722,7 @@ const deal = ref({
|
|||||||
deal_date: null,
|
deal_date: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
const deal_sides_list = ['Покупатель', 'Продавец', 'Арендодатель', 'Арендатор', 'Наниматель', 'Наймодатель'];
|
const deal_sides_list = ['Покупатель', 'Продавец', 'Арендодатель', 'Арендатор', 'Застройщик'];
|
||||||
|
|
||||||
const originalRequisitionsList = ref([]);
|
const originalRequisitionsList = ref([]);
|
||||||
const requisitionsList = ref([]);
|
const requisitionsList = ref([]);
|
||||||
@ -967,7 +967,14 @@ const openModalDealDoc = () => {
|
|||||||
props: {
|
props: {
|
||||||
header: 'Добавление документа',
|
header: 'Добавление документа',
|
||||||
style: { width: '50vw' },
|
style: { width: '50vw' },
|
||||||
modal: true
|
modal: true,
|
||||||
|
pt: {
|
||||||
|
header: {
|
||||||
|
style: {
|
||||||
|
padding: '0.75rem 1rem'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
deal: deal.value
|
deal: deal.value
|
||||||
@ -1305,7 +1312,7 @@ defineExpose({ closeModel });
|
|||||||
.p-inputtext {
|
.p-inputtext {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: #495057;
|
color: #000;
|
||||||
background:#fff;
|
background:#fff;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
line-height: 10px;
|
line-height: 10px;
|
||||||
@ -1416,6 +1423,7 @@ defineExpose({ closeModel });
|
|||||||
label {
|
label {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
color: #757575;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item__content {
|
.item__content {
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 p-2">
|
<div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 pr-4">
|
||||||
<div class="document-card p-4 rounded flex">
|
<div class="document-card p-4 rounded flex">
|
||||||
<div class="deal-document-thumbnail w-16 h-16 flex-shrink-0 rounded-lg overflow-hidden">
|
<div class="deal-document-thumbnail w-16 h-16 flex-shrink-0 rounded-lg overflow-hidden">
|
||||||
<img v-if="isImage" :src="fileUrl" alt="Превью документа" class="w-full h-full object-cover" />
|
<img v-if="isImage" :src="fileUrl" alt="Превью документа" class="w-full h-full object-cover" />
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sm:w-1/2 md:w-1/3 lg:w-1/4 p-2">
|
<div class="sm:w-1/2 md:w-1/3 lg:w-1/4 pr-4">
|
||||||
<div class="employee-card p-4 rounded flex">
|
<div class="employee-card p-4 rounded flex">
|
||||||
<div class="deal-employee-logo w-16 h-16 flex-shrink-0 rounded-full overflow-hidden">
|
<div class="deal-employee-logo w-16 h-16 flex-shrink-0 rounded-full overflow-hidden">
|
||||||
<img class="w-full" v-if="employee.user_logo" :src="`${url}/photos/agency/${employee.user_logo}`" alt="">
|
<img class="w-full" v-if="employee.user_logo" :src="`${url}/photos/agency/${employee.user_logo}`" alt="">
|
||||||
|
|||||||
@ -80,10 +80,9 @@ const getTemplateData = () => {
|
|||||||
const sidesMap = {
|
const sidesMap = {
|
||||||
'Продавец': 'sobstv',
|
'Продавец': 'sobstv',
|
||||||
'Арендодатель': 'sobstv',
|
'Арендодатель': 'sobstv',
|
||||||
'Наймодатель': 'sobstv',
|
'Застройщик': 'sobstv',
|
||||||
'Покупатель': 'clients',
|
'Покупатель': 'clients',
|
||||||
'Арендатор': 'clients',
|
'Арендатор': 'clients',
|
||||||
'Наниматель': 'clients'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const result = {
|
const result = {
|
||||||
|
|||||||
@ -110,12 +110,14 @@
|
|||||||
optionLabel="fio"
|
optionLabel="fio"
|
||||||
optionValue="id"
|
optionValue="id"
|
||||||
placeholder="Выбрать клиента"
|
placeholder="Выбрать клиента"
|
||||||
class="w-full choiceDealClient"
|
class="w-full choiceDealClient hide-selected-values"
|
||||||
:maxSelectedLabels="3"
|
:maxSelectedLabels="3"
|
||||||
:filter="true"
|
:filter="true"
|
||||||
display="chip"
|
|
||||||
:virtualScrollerOptions="{ itemSize: 40 }"
|
:virtualScrollerOptions="{ itemSize: 40 }"
|
||||||
>
|
>
|
||||||
|
<template #value>
|
||||||
|
<span class="p-multiselect-placeholder">Выбрать клиента</span>
|
||||||
|
</template>
|
||||||
<template #dropdownicon>
|
<template #dropdownicon>
|
||||||
<DropdownIcon />
|
<DropdownIcon />
|
||||||
</template>
|
</template>
|
||||||
@ -442,5 +444,9 @@ const typeReq = computed(() => {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hide-selected-value .p-multiselect-chip-item {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user