Merge Invoice and Bill into Document
This commit is contained in:
22
resources/assets/js/views/portal/invoices.js
vendored
22
resources/assets/js/views/portal/invoices.js
vendored
@ -54,11 +54,20 @@ const app = new Vue({
|
||||
|
||||
let method = payment_method.split('.');
|
||||
|
||||
let path = url + '/portal/invoices/' + this.form.invoice_id + '/' + method[0];
|
||||
let path = url + '/portal/invoices/' + this.form.document_id + '/' + method[0];
|
||||
|
||||
//this.method_show_html = '<div id="loading" class="text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>';
|
||||
this.method_show_html = Vue.component('payment-method-confirm', function (resolve, reject) {
|
||||
resolve({
|
||||
template:'<div id="loading" class="description text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>'
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
axios.get(path)
|
||||
axios.get(path, {
|
||||
params: {
|
||||
payment_method: payment_method
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
this.method_show_html = '';
|
||||
|
||||
@ -130,6 +139,13 @@ const app = new Vue({
|
||||
|
||||
let payment_action = payment_action_path[payment_method];
|
||||
|
||||
this.method_show_html = Vue.component('payment-method-confirm', function (resolve, reject) {
|
||||
resolve({
|
||||
template:'<div id="loading" class="description text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>'
|
||||
|
||||
})
|
||||
});
|
||||
|
||||
axios.get(payment_action)
|
||||
.then(response => {
|
||||
this.method_show_html = '';
|
||||
|
Reference in New Issue
Block a user