[WIP] Добавил update страховки, а также возможность замены фото на вкладке страховки
This commit is contained in:
@@ -35,11 +35,15 @@ const state = () => ({
|
||||
series: null,
|
||||
number: null,
|
||||
photo: null,
|
||||
id: null,
|
||||
organization: null,
|
||||
},
|
||||
insuranceOMS: {
|
||||
series: null,
|
||||
number: null,
|
||||
photo: null,
|
||||
id: null,
|
||||
organization: null,
|
||||
},
|
||||
benefit: {
|
||||
name: null,
|
||||
@@ -116,25 +120,36 @@ const getters = {
|
||||
?.series,
|
||||
number: person.insurance_policy.find((e) => e.title === "DMS")?.number,
|
||||
photo: person.insurance_policy.find((e) => e.title === "DMS")?.photo
|
||||
? rootState.getUrl +
|
||||
person.insurance_policy.find((e) => e.title === "DMS")?.photo
|
||||
: null,
|
||||
? {
|
||||
photo:
|
||||
rootState.getUrl +
|
||||
person.insurance_policy.find((e) => e.title === "DMS")?.photo,
|
||||
file: null,
|
||||
}
|
||||
: {},
|
||||
id: person?.insurance_policy?.find((e) => e.title === "DMS")?.id,
|
||||
organization: person?.insurance_policy?.find((e) => e.title === "DMS")
|
||||
?.organization,
|
||||
},
|
||||
insuranceOMS: {
|
||||
series: person?.insurance_policy?.find((e) => e.title === "OMS")
|
||||
?.series,
|
||||
number: person.insurance_policy.find((e) => e.title === "OMS")?.number,
|
||||
photo: person.insurance_policy.find((e) => e.title === "OMS")?.photo
|
||||
? rootState.getUrl +
|
||||
person.insurance_policy.find((e) => e.title === "OMS")?.photo
|
||||
: null,
|
||||
? {
|
||||
photo:
|
||||
rootState.getUrl +
|
||||
person.insurance_policy.find((e) => e.title === "OMS")?.photo,
|
||||
file: null,
|
||||
}
|
||||
: {},
|
||||
id: person?.insurance_policy?.find((e) => e.title === "OMS")?.id,
|
||||
organization: person?.insurance_policy?.find((e) => e.title === "OMS")
|
||||
?.organization,
|
||||
},
|
||||
benefit: {
|
||||
name: person?.benefit?.name,
|
||||
discount: person?.benefit?.discount,
|
||||
photo: person?.photo_benefit
|
||||
? rootState.getUrl + person.photo_benefit
|
||||
: null,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user