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