Konto new

This commit is contained in:
cgfhtw
2024-04-16 12:56:12 +02:00
parent 63d7716a6c
commit e15f4981fb
8 changed files with 442 additions and 24 deletions
+5
View File
@@ -0,0 +1,5 @@
import konto from './stv/konto.js';
export default {
konto
};
+31
View File
@@ -0,0 +1,31 @@
export default {
tabulatorConfig(config, self) {
config.ajaxURL = 'api/frontend/v1/stv/konto/get';
config.ajaxParams = () => {
const params = {
person_id: self.modelValue.person_id || self.modelValue.map(e => e.person_id),
only_open: self.filter,
studiengang_kz: self.studiengang_kz_intern ? self.stg_kz : ''
};
return params;
};
config.ajaxRequestFunc = (url, config, params) => this.$fhcApi.post(url, params, config);
config.ajaxResponse = (url, params, response) => response.data;
return config;
},
checkDoubles(data) {
return this.$fhcApi.post('api/frontend/v1/stv/konto/checkDoubles', data, {
confirmErrorHandler: error => true
});
},
insert(data) {
return this.$fhcApi.post('api/frontend/v1/stv/konto/insert', data);
},
edit(data) {
return this.$fhcApi.post('api/frontend/v1/stv/konto/update', data);
},
getBuchungstypen() {
return this.$fhcApi.get('api/frontend/v1/stv/konto/getBuchungstypen');
}
};