Исправила отображение контактов на записи
This commit is contained in:
@@ -34,20 +34,6 @@ const state = () => ({
|
||||
house: null,
|
||||
flat: null,
|
||||
},
|
||||
// insuranceDMS: {
|
||||
// series: null,
|
||||
// number: null,
|
||||
// photo: null,
|
||||
// id: null,
|
||||
// organization: null,
|
||||
// },
|
||||
// insuranceOMS: {
|
||||
// series: null,
|
||||
// number: null,
|
||||
// photo: null,
|
||||
// id: null,
|
||||
// organization: null,
|
||||
// },
|
||||
benefit: {
|
||||
id: null,
|
||||
discount: null,
|
||||
@@ -151,7 +137,7 @@ const getters = {
|
||||
(person?.gender &&
|
||||
genderOptions.find((el) => el.id === person?.gender)) ||
|
||||
"",
|
||||
birth_date: person?.birth_date ? new Date(person?.birth_date) : "",
|
||||
birth_date: person?.birth_date || "",
|
||||
photo: person?.photo
|
||||
? {
|
||||
photo: rootState.getUrl + person.photo,
|
||||
@@ -208,7 +194,8 @@ const getters = {
|
||||
series: document?.series || (isPolicy || isPassport ? "" : "000"),
|
||||
number: document?.number || "",
|
||||
issued_by: document?.issued_by || (isPassport ? "" : "000"),
|
||||
issued_by_org_code: document?.issued_by_org_code || "",
|
||||
issued_by_org_code:
|
||||
document?.issued_by_org_code || (isPassport ? "000-000" : ""),
|
||||
issued_at: document?.issued_at || "",
|
||||
attachments: document?.attachments?.length
|
||||
? {
|
||||
@@ -218,15 +205,6 @@ const getters = {
|
||||
: {},
|
||||
};
|
||||
});
|
||||
// passport = documents?.find(({ category }) => category === "passport"),
|
||||
// insurance_number = documents?.find(
|
||||
// ({ category }) => category === "insurance_number"
|
||||
// ),
|
||||
// tax_identification_number = documents?.find(
|
||||
// ({ category }) => category === "tax_identification_number"
|
||||
// ),
|
||||
// OMS = documents?.find(({ category }) => category === "OMS"),
|
||||
// DMS = documents?.find(({ category }) => category === "DMS");
|
||||
return result;
|
||||
},
|
||||
getContactsData(state) {
|
||||
|
||||
Reference in New Issue
Block a user