소스 검색

[Administration] Distributions > formulaire commande : URI too long #613

prodstable
Guillaume Bourgeois 2 년 전
부모
커밋
2ec48f3fc9
1개의 변경된 파일13개의 추가작업 그리고 2개의 파일을 삭제
  1. +13
    -2
      backend/web/js/vuejs/distribution-index.js

+ 13
- 2
backend/web/js/vuejs/distribution-index.js 파일 보기

@@ -759,6 +759,17 @@ Vue.component('order-form',{
this.errors.push('Veuillez sélectionner au moins un produit') ;
}
},
getProductOrderArrayRequest: function() {
var productOrderArrayRequest = {};
for(var key in this.order.productOrder) {
productOrderArrayRequest[key] = {
quantity: this.order.productOrder[key].quantity,
unit: this.order.productOrder[key].unit,
price: this.order.productOrder[key].price
};
}
return JSON.stringify(productOrderArrayRequest);
},
submitFormCreate: function(event) {
var app = this ;
if(this.checkForm()) {
@@ -771,7 +782,7 @@ Vue.component('order-form',{
idUser: this.order.id_user,
username: this.order.username,
meanPayment: this.order.mean_payment,
products: JSON.stringify(this.order.productOrder),
products: app.getProductOrderArrayRequest(),
comment: this.order.comment,
processCredit: processCredit
}})
@@ -805,7 +816,7 @@ Vue.component('order-form',{
data.append('meanPayment', this.order.mean_payment) ;
data.append('idUser', this.order.id_user) ;
data.append('username', ''+this.order.username) ;
data.append('products', JSON.stringify(this.order.productOrder)) ;
data.append('products', app.getProductOrderArrayRequest()) ;
data.append('comment', this.order.comment && this.order.comment.length ? this.order.comment : '') ;
data.append('processCredit', processCredit) ;


Loading…
취소
저장