[WIP] Добавил страницу Зубных формул

This commit is contained in:
DwCay
2023-07-04 18:09:23 +03:00
parent e9e737e851
commit d7c304fbee
10 changed files with 224 additions and 27 deletions

View File

@@ -421,6 +421,9 @@ const actions = {
deleteItemData({ commit }, props) {
commit("setDataWithouDeleted", props);
},
deleteProtocolFormData({ commit }, props) {
commit("setDeletedProtocolForm", props);
},
addNewListData({ commit }, props) {
commit("setNewListData", props);
},
@@ -496,6 +499,9 @@ const mutations = {
(item) => item.id !== props.itemId
);
},
setDeletedProtocolForm(state, props) {
state.protocolData[props.key] = this.getters.getInitProtocol[props.key];
},
setNewListData(state, props) {
state[props.stateKey] = [...state[props.stateKey], props.data];
},