|
|
|
|
|
|
|
|
var app = this; |
|
|
var app = this; |
|
|
var quantityMax = event.currentTarget.value; |
|
|
var quantityMax = event.currentTarget.value; |
|
|
var idProduct = event.currentTarget.getAttribute('data-id-product'); |
|
|
var idProduct = event.currentTarget.getAttribute('data-id-product'); |
|
|
|
|
|
app.showLoading = true; |
|
|
axios.get("ajax-process-product-quantity-max", { |
|
|
axios.get("ajax-process-product-quantity-max", { |
|
|
params: { |
|
|
params: { |
|
|
idDistribution: this.distribution.id, |
|
|
idDistribution: this.distribution.id, |
|
|
|
|
|
|
|
|
.then(function (response) { |
|
|
.then(function (response) { |
|
|
Vue.set(app.products[app.getProductIndex(idProduct)], 'quantity_max', response.data.quantity_max); |
|
|
Vue.set(app.products[app.getProductIndex(idProduct)], 'quantity_max', response.data.quantity_max); |
|
|
Vue.set(app.products[app.getProductIndex(idProduct)], 'quantity_remaining', response.data.quantity_remaining); |
|
|
Vue.set(app.products[app.getProductIndex(idProduct)], 'quantity_remaining', response.data.quantity_remaining); |
|
|
|
|
|
app.showLoading = false; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
productActiveClick: function (event) { |
|
|
productActiveClick: function (event) { |