Przeglądaj źródła

[backend] Modification commande : correctif urls trop longues

dev
Guillaume 4 lat temu
rodzic
commit
4797f7d57e
1 zmienionych plików z 10 dodań i 1 usunięć
  1. +10
    -1
      backend/web/js/vuejs/distribution-index.js

+ 10
- 1
backend/web/js/vuejs/distribution-index.js Wyświetl plik

@@ -598,6 +598,14 @@ Vue.component('order-form',{
submitFormUpdate: function(event) {
var app = this ;
if(this.checkForm()) {

var productsArray = {};
for(key in this.order.productOrder) {
if(this.order.productOrder[key].quantity > 0) {
productsArray[key] = this.order.productOrder[key] ;
}
}

var processCredit = event.currentTarget.getAttribute('data-process-credit') ;
axios.get(UrlManager.getBaseUrlAbsolute()+"order/ajax-update",{params: {
date: this.date.getFullYear() + '-'
@@ -608,7 +616,8 @@ Vue.component('order-form',{
meanPayment: this.order.mean_payment,
idUser: this.order.id_user,
username: ''+this.order.username,
products: JSON.stringify(this.order.productOrder),
products: JSON.stringify(productsArray),
//products: JSON.stringify(this.order.productOrder),
comment: this.order.comment,
processCredit: processCredit
}})

Ładowanie…
Anuluj
Zapisz