#756 ticket.sale-tracking checking state functionality
This commit is contained in:
parent
0a0e3d6c1e
commit
53fe9b6103
|
@ -14,9 +14,9 @@ class Controller {
|
|||
fields: ['salesPersonFk', 'name', 'isActive', 'isFreezed', 'isTaxDataChecked'],
|
||||
include: {
|
||||
relation: 'salesPerson',
|
||||
fields: ['firstName', 'name']
|
||||
}
|
||||
}
|
||||
fields: ['firstName', 'name'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
relation: 'tracking',
|
||||
|
@ -24,11 +24,11 @@ class Controller {
|
|||
fields: ['stateFk'],
|
||||
include: {
|
||||
relation: 'state',
|
||||
fields: ['name']
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
fields: ['name'],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -37,11 +37,12 @@ class Controller {
|
|||
}
|
||||
|
||||
getCard() {
|
||||
let json = encodeURIComponent(JSON.stringify(this.filter));
|
||||
let query = `/ticket/api/Tickets/${this.$state.params.id}?filter=${json}`;
|
||||
this.$http.get(query).then(res => {
|
||||
if (res.data)
|
||||
const json = encodeURIComponent(JSON.stringify(this.filter));
|
||||
const query = `/ticket/api/Tickets/${this.$state.params.id}?filter=${json}`;
|
||||
this.$http.get(query).then((res) => {
|
||||
if (res.data) {
|
||||
this.ticket = res.data;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -54,5 +55,5 @@ Controller.$inject = ['$http', '$state'];
|
|||
|
||||
ngModule.component('vnTicketCard', {
|
||||
template: require('./index.html'),
|
||||
controller: Controller
|
||||
controller: Controller,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue