typo
This commit is contained in:
parent
1689c9139e
commit
90f7453659
31
resources/assets/js/views/common/documents.js
vendored
31
resources/assets/js/views/common/documents.js
vendored
@ -4,22 +4,21 @@
|
|||||||
* building robust, powerful web applications using Vue and Laravel.
|
* building robust, powerful web applications using Vue and Laravel.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('./../../bootstrap');
|
require('./../../bootstrap');
|
||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
import DashboardPlugin from './../../plugins/dashboard-plugin';
|
import DashboardPlugin from './../../plugins/dashboard-plugin';
|
||||||
|
|
||||||
import Global from './../../mixins/global';
|
import Global from './../../mixins/global';
|
||||||
|
|
||||||
import Form from './../../plugins/form';
|
import Form from './../../plugins/form';
|
||||||
import Error from './../../plugins/error';
|
import BulkAction from './../../plugins/bulk-action';
|
||||||
import BulkAction from './../../plugins/bulk-action';
|
|
||||||
|
|
||||||
// plugin setup
|
// plugin setup
|
||||||
Vue.use(DashboardPlugin);
|
Vue.use(DashboardPlugin);
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
el: '#main-body',
|
el: '#main-body',
|
||||||
|
|
||||||
mixins: [
|
mixins: [
|
||||||
@ -265,6 +264,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
this.currencyConversion();
|
this.currencyConversion();
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -552,6 +552,7 @@
|
|||||||
this.edit.currency++;
|
this.edit.currency++;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.currencies.length) {
|
if (!this.currencies.length) {
|
||||||
let currency_promise = Promise.resolve(window.axios.get((url + '/settings/currencies')));
|
let currency_promise = Promise.resolve(window.axios.get((url + '/settings/currencies')));
|
||||||
|
|
||||||
@ -571,8 +572,10 @@
|
|||||||
|
|
||||||
this.form.currency_code = currency.code;
|
this.form.currency_code = currency.code;
|
||||||
this.form.currency_rate = currency.rate;
|
this.form.currency_rate = currency.rate;
|
||||||
|
|
||||||
this.currencyConversion();
|
this.currencyConversion();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (company_currency_code == currency.code) {
|
if (company_currency_code == currency.code) {
|
||||||
this.currency_symbol = currency;
|
this.currency_symbol = currency;
|
||||||
}
|
}
|
||||||
@ -585,13 +588,14 @@
|
|||||||
|
|
||||||
currencyConversion() {
|
currencyConversion() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(document.querySelectorAll('.js-conversion-input')) {
|
if (document.querySelectorAll('.js-conversion-input')) {
|
||||||
let currency_input = document.querySelectorAll('.js-conversion-input');
|
let currency_input = document.querySelectorAll('.js-conversion-input');
|
||||||
|
|
||||||
for(let input of currency_input) {
|
for(let input of currency_input) {
|
||||||
input.setAttribute('size', input.value.length);
|
input.setAttribute('size', input.value.length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 250)
|
}, 250);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -690,5 +694,4 @@
|
|||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user