WIP Удалила лишние поиски
This commit is contained in:
@@ -63,6 +63,8 @@ const getters = {
|
|||||||
let residenceAddress =
|
let residenceAddress =
|
||||||
state?.medicalCard?.person?.address?.find((el) => el.residence_flg) || {};
|
state?.medicalCard?.person?.address?.find((el) => el.residence_flg) || {};
|
||||||
let person = state.medicalCard.person;
|
let person = state.medicalCard.person;
|
||||||
|
let OMS = person?.insurance_policy?.find((e) => e.title === "OMS");
|
||||||
|
let DMS = person?.insurance_policy?.find((e) => e.title === "DMS");
|
||||||
return {
|
return {
|
||||||
personalData: {
|
personalData: {
|
||||||
last_name: person?.last_name,
|
last_name: person?.last_name,
|
||||||
@@ -99,36 +101,28 @@ const getters = {
|
|||||||
id: residenceAddress?.id,
|
id: residenceAddress?.id,
|
||||||
},
|
},
|
||||||
insuranceDMS: {
|
insuranceDMS: {
|
||||||
series: person?.insurance_policy?.find((e) => e.title === "DMS")
|
series: DMS?.series,
|
||||||
?.series,
|
number: DMS?.number,
|
||||||
number: person.insurance_policy.find((e) => e.title === "DMS")?.number,
|
photo: DMS?.photo
|
||||||
photo: person.insurance_policy.find((e) => e.title === "DMS")?.photo
|
|
||||||
? {
|
? {
|
||||||
photo:
|
photo: rootState.getUrl + DMS?.photo,
|
||||||
rootState.getUrl +
|
|
||||||
person.insurance_policy.find((e) => e.title === "DMS")?.photo,
|
|
||||||
file: null,
|
file: null,
|
||||||
}
|
}
|
||||||
: {},
|
: {},
|
||||||
id: person?.insurance_policy?.find((e) => e.title === "DMS")?.id,
|
id: DMS?.id,
|
||||||
organization: person?.insurance_policy?.find((e) => e.title === "DMS")
|
organization: DMS?.organization,
|
||||||
?.organization,
|
|
||||||
},
|
},
|
||||||
insuranceOMS: {
|
insuranceOMS: {
|
||||||
series: person?.insurance_policy?.find((e) => e.title === "OMS")
|
series: OMS?.series,
|
||||||
?.series,
|
number: OMS?.number,
|
||||||
number: person.insurance_policy.find((e) => e.title === "OMS")?.number,
|
photo: OMS?.photo
|
||||||
photo: person.insurance_policy.find((e) => e.title === "OMS")?.photo
|
|
||||||
? {
|
? {
|
||||||
photo:
|
photo: rootState.getUrl + OMS?.photo,
|
||||||
rootState.getUrl +
|
|
||||||
person.insurance_policy.find((e) => e.title === "OMS")?.photo,
|
|
||||||
file: null,
|
file: null,
|
||||||
}
|
}
|
||||||
: {},
|
: {},
|
||||||
id: person?.insurance_policy?.find((e) => e.title === "OMS")?.id,
|
id: OMS?.id,
|
||||||
organization: person?.insurance_policy?.find((e) => e.title === "OMS")
|
organization: OMS?.organization,
|
||||||
?.organization,
|
|
||||||
},
|
},
|
||||||
benefit: {
|
benefit: {
|
||||||
name: person?.benefit?.name,
|
name: person?.benefit?.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user