129 lines
2.1 KiB
Vue
129 lines
2.1 KiB
Vue
<template>
|
|
<router-view
|
|
:translations="translations"
|
|
:currencies="currencies"
|
|
:taxes="taxes"
|
|
:modules="modules.data"
|
|
:currency_codes="currency_codes"
|
|
:company="company"
|
|
:pageLoad="page_loaded"
|
|
></router-view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "Wizard",
|
|
created() {
|
|
let self = this;
|
|
|
|
window
|
|
.axios({
|
|
method: "GET",
|
|
url: url + "/wizard/data",
|
|
})
|
|
.then((response) => {
|
|
let data = response.data.data;
|
|
|
|
for (let item in data) {
|
|
self[item] = data[item];
|
|
}
|
|
|
|
Object.keys(data.currency_codes).map((key) => {
|
|
return data.currency_codes[key];
|
|
});
|
|
|
|
self.page_loaded = false;
|
|
});
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
currencies: [],
|
|
currency_codes: [],
|
|
taxes: [],
|
|
modules: {},
|
|
company: {},
|
|
translations: {
|
|
company: {},
|
|
currencies: {},
|
|
taxes: {},
|
|
finish: {},
|
|
},
|
|
page_loaded: true
|
|
};
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
.document-loading {
|
|
width: 1140px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.document-loading div {
|
|
margin-top: unset;
|
|
margin-left: unset;
|
|
}
|
|
|
|
.current-tab {
|
|
background-color: #f6f9fc;
|
|
}
|
|
|
|
.current-tab-btn {
|
|
text-align: right;
|
|
padding: 0 40px;
|
|
}
|
|
|
|
.form-container {
|
|
flex-flow: row wrap;
|
|
}
|
|
|
|
.form-container .invalid-feedback {
|
|
position: absolute;
|
|
bottom: -18px;
|
|
}
|
|
|
|
.form-container .has-error {
|
|
position: relative;
|
|
margin-bottom: unset !important;
|
|
}
|
|
|
|
.form-container .has-error .form-control {
|
|
border-top-right-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
border-right: 1px solid;
|
|
}
|
|
|
|
.el-step__icon {
|
|
-webkit-transition: unset;
|
|
transition: unset;
|
|
}
|
|
|
|
@media screen and (max-width: 991px) {
|
|
.form-container .has-error {
|
|
position: relative;
|
|
margin-bottom: 1.5rem !important;
|
|
}
|
|
|
|
.current-tab-btn {
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.form-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.form-container .form-group {
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|