WIP Сделано удаление, breadcrumbs
This commit is contained in:
@@ -410,7 +410,7 @@ export default {
|
||||
"handler-click-popup",
|
||||
"medical",
|
||||
this.client.id,
|
||||
this.client?.medical_history[0]?.id
|
||||
this.client?.medical_history?.find((elem) => elem?.id)?.id
|
||||
);
|
||||
},
|
||||
transmitDeleteClient() {
|
||||
@@ -453,7 +453,7 @@ export default {
|
||||
this.lackAttachments = this.dataAttachments[0]?.id ? true : false;
|
||||
},
|
||||
saveNote(data) {
|
||||
this.dataNotes = data?.note.filter((e) => e?.deleted_flg === false);
|
||||
this.dataNotes = data?.note.filter((e) => !e?.deleted_flg);
|
||||
if (this.dataNotes[0]) {
|
||||
this.lackNotes = true;
|
||||
} else {
|
||||
@@ -715,7 +715,7 @@ export default {
|
||||
(el) =>
|
||||
el.priority === this.client.priority ||
|
||||
this.client.priority === el.id
|
||||
).text,
|
||||
)?.text,
|
||||
phone: {
|
||||
id:
|
||||
this.client.contacts.find((el) => el.kind === "PHONE")?.id ||
|
||||
@@ -741,8 +741,8 @@ export default {
|
||||
avatar: this.client.first_name
|
||||
? this.client.last_name[0] + this.client.first_name[0]
|
||||
: this.client.last_name.substr(0, 2),
|
||||
color: this.client.color,
|
||||
photo: this.client.photo,
|
||||
color: this.client?.color,
|
||||
photo: this.client?.photo,
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template lang="pug">
|
||||
.flex.box-border.px-4.items-center.w-full.gap-x-2(:style="{ width : width + 'px'}")
|
||||
.flex.gap-x-2.items-center(v-if="!isOpenChange")
|
||||
.dot.w-2.h-2(:style="{ backgroundColor: prioritySettings.settings.find((el) => el.text == value.priority).color }")
|
||||
span.text-sm(:style="{ color: prioritySettings.settings.find((el) => el.text == value.priority).color }") {{value.priority}}
|
||||
.dot.w-2.h-2(:style="{ backgroundColor: prioritySettings.settings.find((el) => el.text == value.priority)?.color }")
|
||||
span.text-sm(:style="{ color: prioritySettings.settings.find((el) => el.text == value.priority)?.color }") {{value?.priority}}
|
||||
.flex.gap-x-2.text-sm(class="w-[164px]")
|
||||
base-select(
|
||||
v-if="isOpenChange",
|
||||
|
||||
Reference in New Issue
Block a user