diff --git a/client/order/routes.json b/client/order/routes.json
index 621ce05290..a73605a057 100644
--- a/client/order/routes.json
+++ b/client/order/routes.json
@@ -11,11 +11,25 @@
"component": "ui-view",
"acl": ["developer"]
},
+ {
+ "url": "/index?q",
+ "state": "order.index",
+ "component": "vn-order-index"
+ },
{
"url": "/:id",
"state": "order.card",
+ "abstract": true,
"component": "vn-order-card"
},
+ {
+ "url": "/summary",
+ "state": "order.card.summary",
+ "component": "vn-order-summary",
+ "params": {
+ "order": "$ctrl.order"
+ }
+ },
{
"url": "/create",
"state": "order.create",
diff --git a/client/order/src/index.js b/client/order/src/index.js
index 6a6422f320..83aa44a1ff 100644
--- a/client/order/src/index.js
+++ b/client/order/src/index.js
@@ -1,5 +1,6 @@
export * from './module';
import './descriptor';
-import './index';
+import './index/';
import './card';
+import './summary';
diff --git a/client/order/src/index/index.html b/client/order/src/index/index.html
new file mode 100644
index 0000000000..1559f681f1
--- /dev/null
+++ b/client/order/src/index/index.html
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+ Id
+ Client
+ Company
+ Created
+
+
+
+
+ {{::order.id}}
+ {{::order.clientFk}}
+ {{::order.companyFk}}
+ {{::order.created}}
+
+
+
+ No results
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/client/order/src/index/index.js b/client/order/src/index/index.js
new file mode 100644
index 0000000000..3190e56ecc
--- /dev/null
+++ b/client/order/src/index/index.js
@@ -0,0 +1,48 @@
+import ngModule from '../module';
+
+export default class Controller {
+ constructor($scope) {
+ this.$ = $scope;
+ this.ticketSelected = null;
+
+ this.filter = {
+ include: [
+ ],
+ order: 'shipped DESC'
+ };
+ }
+
+/* exprBuilder(param, value) {
+ switch (param) {
+ case 'search':
+ return /^\d+$/.test(value)
+ ? {id: value}
+ : {nickname: {regexp: value}};
+ case 'from':
+ return {shipped: {gte: value}};
+ case 'to':
+ return {shipped: {lte: value}};
+ case 'nickname':
+ return {[param]: {regexp: value}};
+ case 'id':
+ case 'clientFk':
+ case 'agencyModeFk':
+ case 'warehouseFk':
+ return {[param]: value};
+ }
+ } */
+
+ preview(event, ticket) {
+ event.preventDefault();
+ event.stopImmediatePropagation();
+ this.$.dialogSummaryTicket.show();
+ this.ticketSelected = ticket;
+ }
+}
+
+Controller.$inject = ['$scope'];
+
+ngModule.component('vnOrderIndex', {
+ template: require('./index.html'),
+ controller: Controller
+});
diff --git a/client/order/src/summary/index.html b/client/order/src/summary/index.html
new file mode 100644
index 0000000000..c5fdbff8b5
--- /dev/null
+++ b/client/order/src/summary/index.html
@@ -0,0 +1,9 @@
+
+
+
+
+ Order
+
+
+
+
\ No newline at end of file
diff --git a/client/order/src/summary/index.js b/client/order/src/summary/index.js
new file mode 100644
index 0000000000..8ce557321f
--- /dev/null
+++ b/client/order/src/summary/index.js
@@ -0,0 +1,17 @@
+import ngModule from '../module';
+
+class Controller {
+ constructor($http) {
+ this.$http = $http;
+ }
+}
+
+Controller.$inject = ['$http'];
+
+ngModule.component('vnOrderSummary', {
+ template: require('./index.html'),
+ controller: Controller,
+ bindings: {
+ order: '<'
+ }
+});