moneygroup fixes.
This commit is contained in:
parent
4a9d486321
commit
27e027c564
@ -137,8 +137,8 @@ export default {
|
|||||||
input(event) {
|
input(event) {
|
||||||
this.model = event;
|
this.model = event;
|
||||||
|
|
||||||
this.$emit('change', this.model);
|
//this.$emit('change', this.model);
|
||||||
this.$emit('interface', this.model);
|
//this.$emit('interface', this.model);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -157,8 +157,8 @@ export default {
|
|||||||
this.model = value;
|
this.model = value;
|
||||||
},
|
},
|
||||||
model: function (model) {
|
model: function (model) {
|
||||||
//this.$emit('change', this.model);
|
this.$emit('change', this.model);
|
||||||
//this.$emit('interface', this.model);
|
this.$emit('interface', this.model);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
3
resources/assets/js/mixins/global.js
vendored
3
resources/assets/js/mixins/global.js
vendored
@ -14,7 +14,7 @@ import NProgress from 'nprogress';
|
|||||||
import 'nprogress/nprogress.css';
|
import 'nprogress/nprogress.css';
|
||||||
import NProgressAxios from './../plugins/nprogress-axios';
|
import NProgressAxios from './../plugins/nprogress-axios';
|
||||||
|
|
||||||
import { Select, Option, Steps, Step, Button, Link } from 'element-ui';
|
import { Select, Option, Steps, Step, Button, Link, Tooltip } from 'element-ui';
|
||||||
|
|
||||||
import Form from './../plugins/form';
|
import Form from './../plugins/form';
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ export default {
|
|||||||
[Step.name]: Step,
|
[Step.name]: Step,
|
||||||
[Button.name]: Button,
|
[Button.name]: Button,
|
||||||
[Link.name]: Link,
|
[Link.name]: Link,
|
||||||
|
[Tooltip.name]: Tooltip,
|
||||||
},
|
},
|
||||||
|
|
||||||
data: function () {
|
data: function () {
|
||||||
|
6
resources/assets/js/views/purchases/bills.js
vendored
6
resources/assets/js/views/purchases/bills.js
vendored
@ -342,12 +342,6 @@ const app = new Vue({
|
|||||||
this.transaction_form.currency = response.data.currency_name;
|
this.transaction_form.currency = response.data.currency_name;
|
||||||
this.transaction_form.currency_code = response.data.currency_code;
|
this.transaction_form.currency_code = response.data.currency_code;
|
||||||
this.transaction_form.currency_rate = response.data.currency_rate;
|
this.transaction_form.currency_rate = response.data.currency_rate;
|
||||||
|
|
||||||
this.money.decimal = response.data.decimal_mark;
|
|
||||||
this.money.thousands = response.data.thousands_separator;
|
|
||||||
this.money.prefix = (response.data.symbol_first) ? response.data.symbol : '';
|
|
||||||
this.money.suffix = !(response.data.symbol_first) ? response.data.symbol : '';
|
|
||||||
this.money.precision = response.data.precision;
|
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
});
|
});
|
||||||
|
16
resources/assets/js/views/purchases/payments.js
vendored
16
resources/assets/js/views/purchases/payments.js
vendored
@ -15,18 +15,12 @@ import Global from './../../mixins/global';
|
|||||||
import Form from './../../plugins/form';
|
import Form from './../../plugins/form';
|
||||||
import BulkAction from './../../plugins/bulk-action';
|
import BulkAction from './../../plugins/bulk-action';
|
||||||
|
|
||||||
import {Tooltip} from 'element-ui';
|
|
||||||
|
|
||||||
// plugin setup
|
// plugin setup
|
||||||
Vue.use(DashboardPlugin, Tooltip);
|
Vue.use(DashboardPlugin);
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
|
||||||
components: {
|
|
||||||
[Tooltip.name]: Tooltip,
|
|
||||||
},
|
|
||||||
|
|
||||||
mixins: [
|
mixins: [
|
||||||
Global
|
Global
|
||||||
],
|
],
|
||||||
@ -34,7 +28,13 @@ const app = new Vue({
|
|||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
form: new Form('payment'),
|
form: new Form('payment'),
|
||||||
bulk_action: new BulkAction('payments')
|
bulk_action: new BulkAction('payments'),
|
||||||
|
currency: null,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
onCalcualte() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
6
resources/assets/js/views/sales/invoices.js
vendored
6
resources/assets/js/views/sales/invoices.js
vendored
@ -342,12 +342,6 @@ const app = new Vue({
|
|||||||
this.transaction_form.currency = response.data.currency_name;
|
this.transaction_form.currency = response.data.currency_name;
|
||||||
this.transaction_form.currency_code = response.data.currency_code;
|
this.transaction_form.currency_code = response.data.currency_code;
|
||||||
this.transaction_form.currency_rate = response.data.currency_rate;
|
this.transaction_form.currency_rate = response.data.currency_rate;
|
||||||
|
|
||||||
this.money.decimal = response.data.decimal_mark;
|
|
||||||
this.money.thousands = response.data.thousands_separator;
|
|
||||||
this.money.prefix = (response.data.symbol_first) ? response.data.symbol : '';
|
|
||||||
this.money.suffix = !(response.data.symbol_first) ? response.data.symbol : '';
|
|
||||||
this.money.precision = response.data.precision;
|
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
});
|
});
|
||||||
|
8
resources/assets/js/views/sales/revenues.js
vendored
8
resources/assets/js/views/sales/revenues.js
vendored
@ -15,18 +15,12 @@ import Global from './../../mixins/global';
|
|||||||
import Form from './../../plugins/form';
|
import Form from './../../plugins/form';
|
||||||
import BulkAction from './../../plugins/bulk-action';
|
import BulkAction from './../../plugins/bulk-action';
|
||||||
|
|
||||||
import {Tooltip} from 'element-ui';
|
|
||||||
|
|
||||||
// plugin setup
|
// plugin setup
|
||||||
Vue.use(DashboardPlugin, Tooltip);
|
Vue.use(DashboardPlugin);
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
el: '#app',
|
el: '#app',
|
||||||
|
|
||||||
components: {
|
|
||||||
[Tooltip.name]: Tooltip,
|
|
||||||
},
|
|
||||||
|
|
||||||
mixins: [
|
mixins: [
|
||||||
Global
|
Global
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user