66 lines
1.9 KiB
JavaScript
66 lines
1.9 KiB
JavaScript
|
import ngModule from '../module';
|
||
|
|
||
|
export default class Controller {
|
||
|
constructor($scope) {
|
||
|
this.$ = $scope;
|
||
|
this.ticketSelected = null;
|
||
|
|
||
|
this.filter = {
|
||
|
include: [
|
||
|
{
|
||
|
relation: 'address',
|
||
|
scope: {
|
||
|
fields: ['provinceFk'],
|
||
|
include: {
|
||
|
relation: 'province',
|
||
|
scope: {
|
||
|
fields: ['name']
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
relation: 'warehouse',
|
||
|
scope: {
|
||
|
fields: ['name']
|
||
|
}
|
||
|
}, {
|
||
|
relation: 'agencyMode',
|
||
|
scope: {
|
||
|
fields: ['name']
|
||
|
}
|
||
|
}, {
|
||
|
relation: 'tracking',
|
||
|
scope: {
|
||
|
fields: ['stateFk'],
|
||
|
include: {
|
||
|
relation: 'state',
|
||
|
scope: {
|
||
|
fields: ['name']
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}, {
|
||
|
relation: 'client',
|
||
|
scope: {
|
||
|
fields: ['salesPersonFk'],
|
||
|
include: {
|
||
|
relation: 'salesPerson',
|
||
|
scope: {
|
||
|
fields: ['name']
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
order: 'shipped DESC'
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Controller.$inject = ['$scope'];
|
||
|
|
||
|
ngModule.component('vnClaimIndex', {
|
||
|
template: require('./index.html'),
|
||
|
controller: Controller
|
||
|
});
|