fix bug ticket.sale
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
d9c63e3bc0
commit
4032bde243
|
@ -20,6 +20,11 @@ class Controller {
|
|||
this._sales = [];
|
||||
this.imagesPath = '//verdnatura.es/vn-image-data/catalog';
|
||||
}
|
||||
isTicketEditable() {
|
||||
this.$http.get(`/api/Tickets/${this.$state.params.id}/isEditable`).then(res => {
|
||||
this.isEditable = res.data;
|
||||
});
|
||||
}
|
||||
|
||||
get ticket() {
|
||||
return this._ticket;
|
||||
|
@ -27,7 +32,7 @@ class Controller {
|
|||
|
||||
set ticket(value) {
|
||||
this._ticket = value;
|
||||
this.isEditable();
|
||||
this.isTicketEditable();
|
||||
}
|
||||
|
||||
get sales() {
|
||||
|
@ -94,12 +99,6 @@ class Controller {
|
|||
callback.call(this);
|
||||
}
|
||||
|
||||
isEditable() {
|
||||
this.$http.get(`/api/Tickets/${this.$state.params.id}/isEditable`).then(res => {
|
||||
this.isEditable = res.data;
|
||||
});
|
||||
}
|
||||
|
||||
get isChecked() {
|
||||
if (this.sales) {
|
||||
for (let instance of this.sales)
|
||||
|
|
Loading…
Reference in New Issue