mirror of
https://github.com/frappe/books.git
synced 2025-01-11 02:36:14 +00:00
45 lines
800 B
Vue
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>
|