From a06f7fb01f77246265551df954d4daa232bbe5c4 Mon Sep 17 00:00:00 2001 From: Joan Date: Tue, 7 Aug 2018 12:48:55 +0200 Subject: [PATCH] added claim list #443 --- client/claim/src/index/index.html | 85 ++++++++++++------------------- client/claim/src/index/index.js | 60 ++++++++-------------- client/claim/src/locale/es.yml | 4 +- client/modules.yml | 2 +- 4 files changed, 56 insertions(+), 95 deletions(-) diff --git a/client/claim/src/index/index.html b/client/claim/src/index/index.html index b7175f05d..3fdc3169c 100644 --- a/client/claim/src/index/index.html +++ b/client/claim/src/index/index.html @@ -1,9 +1,9 @@
@@ -17,64 +17,43 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IdSalespersonDateHourAliasProvinceStateAgencyWarehouseInvoiceRoute
{{::ticket.id}}{{::ticket.client.salesPerson.name | dashIfEmpty}}{{::ticket.shipped | date:'dd/MM/yyyy'}}{{::ticket.shipped | date:'HH:mm'}} - - {{::ticket.nickname}} - - {{::ticket.address.province.name}}{{::ticket.tracking.state.name}}{{::ticket.agencyMode.name}}{{::ticket.warehouse.name}}{{::ticket.refFk | dashIfEmpty}}{{::ticket.routeFk | dashIfEmpty}} + + + + Id + Client Id + Client + Created + Worker + Observation + Responsible + State + + + + + + {{::claim.id}} + {{::claim.client.id}} + {{::claim.client.name}} + {{::claim.created | date:'dd/MM/yyyy'}} + {{::claim.worker.firstName}} {{::claim.worker.name}} + {{::claim.observation}} + {{::claim.claimResponsible.description}} + {{::claim.claimState.description}} + -
- + + + +
- - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/client/claim/src/index/index.js b/client/claim/src/index/index.js index 4027f5043..3721fb0fa 100644 --- a/client/claim/src/index/index.js +++ b/client/claim/src/index/index.js @@ -8,51 +8,31 @@ export default class Controller { 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'] - } - } + fields: ['name'] + } + }, + { + relation: 'worker', + scope: { + fields: ['firstName', 'name'] + } + }, + { + relation: 'claimResponsible', + scope: { + fields: ['description'] + } + }, + { + relation: 'claimState', + scope: { + fields: ['description'] } } ], - order: 'shipped DESC' + order: 'claimStateFk ASC, created DESC' }; } } diff --git a/client/claim/src/locale/es.yml b/client/claim/src/locale/es.yml index 9799c2a8d..fc6b2c490 100644 --- a/client/claim/src/locale/es.yml +++ b/client/claim/src/locale/es.yml @@ -1,5 +1,7 @@ #Ordenar alfabeticamente - +Client Id: Id cliente +Observation: Observación +Responsible: Responsable #sections Claims: Reclamaciones diff --git a/client/modules.yml b/client/modules.yml index ceef9935b..617a08969 100644 --- a/client/modules.yml +++ b/client/modules.yml @@ -8,4 +8,4 @@ salix: [] #route: [] ticket: [item, client] order: [item, ticket] -claim: [] +claim: [item, client]