[WIP] Добавил возможность создания страховки

This commit is contained in:
megavrilinvv
2023-04-17 17:16:23 +03:00
parent 604115ccf5
commit c21cc639b0
2 changed files with 128 additions and 14 deletions

View File

@@ -53,6 +53,7 @@ const state = () => ({
},
documents: {},
avatar: "",
benefitData: [],
});
const getters = {
@@ -154,6 +155,11 @@ const getters = {
};
const actions = {
getBenefitData({ commit }) {
fetchWrapper.get("general/benefit/").then((res) => {
commit("setBenefitData", res.results);
});
},
getMedicalCardData({ commit }) {
fetchWrapper
.get(
@@ -223,6 +229,9 @@ const actions = {
};
const mutations = {
setBenefitData(state, data) {
state.benefitData = data;
},
setMedicalCard(state, card) {
state.medicalCard = card;
},