2
0
mirror of https://github.com/frappe/books.git synced 2025-01-11 02:36:14 +00:00
books/src/pages/Settings/TabSystem.vue
2022-01-21 02:27:29 +05:30

45 lines
800 B
Vue

<template>
<div>
<TwoColumnForm
v-if="doc"
:doc="doc"
:fields="fields"
:autosave="true"
:emit-change="true"
@change="forwardChangeEvent"
/>
</div>
</template>
<script>
import frappe from 'frappe';
import TwoColumnForm from '@/components/TwoColumnForm';
export default {
name: 'TabSystem',
components: {
TwoColumnForm,
},
data() {
return {
doc: null,
};
},
async mounted() {
this.doc = frappe.SystemSettings;
this.companyName = frappe.AccountingSettings.companyName;
},
computed: {
fields() {
let meta = frappe.getMeta('SystemSettings');
return meta.getQuickEditFields();
},
},
methods: {
forwardChangeEvent(...args) {
this.$emit('change', ...args);
},
},
};
</script>