|
|
@@ -50,6 +50,41 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
templateUrl : "static/tpl/index/sale/index.html"
|
|
|
}
|
|
|
}
|
|
|
+ }).state('sale.todo', {
|
|
|
+ url : "/todo",
|
|
|
+ views : {
|
|
|
+ "sale-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/todo.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).state('sale.todo.inquiry', {
|
|
|
+ url : "/inquiry",
|
|
|
+ views : {
|
|
|
+ "todo-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/inquiry.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).state('sale.todo.order', {
|
|
|
+ url : "/order",
|
|
|
+ views : {
|
|
|
+ "todo-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/order.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).state('sale.todo.change', {
|
|
|
+ url : "/change",
|
|
|
+ views : {
|
|
|
+ "todo-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/change.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).state('sale.todo.notice', {
|
|
|
+ url : "/notice",
|
|
|
+ views : {
|
|
|
+ "todo-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/notice.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
}).state('sale.inquiry', {
|
|
|
url : "/inquiry",
|
|
|
views : {
|
|
|
@@ -57,6 +92,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
templateUrl : "static/tpl/index/sale/inquiry.html"
|
|
|
}
|
|
|
}
|
|
|
+ }).state('sale.inquiry.todo', {
|
|
|
+ url : "/todo",
|
|
|
+ views : {
|
|
|
+ "sale-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/inquiry.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
}).state('sale.order', {
|
|
|
url : "/order",
|
|
|
views : {
|
|
|
@@ -64,8 +106,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
templateUrl : "static/tpl/index/sale/order.html"
|
|
|
}
|
|
|
}
|
|
|
- }).state('sale.order.reply', {
|
|
|
- url : "/reply",
|
|
|
+ }).state('sale.order.todo', {
|
|
|
+ url : "/todo",
|
|
|
views : {
|
|
|
"sale-view" : {
|
|
|
templateUrl : "static/tpl/index/sale/order.html"
|
|
|
@@ -78,6 +120,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
templateUrl : "static/tpl/index/sale/change.html"
|
|
|
}
|
|
|
}
|
|
|
+ }).state('sale.change.todo', {
|
|
|
+ url : "/todo",
|
|
|
+ views : {
|
|
|
+ "sale-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/change.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
}).state('sale.notice', {
|
|
|
url : "/notice",
|
|
|
views : {
|
|
|
@@ -85,6 +134,13 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
templateUrl : "static/tpl/index/sale/notice.html"
|
|
|
}
|
|
|
}
|
|
|
+ }).state('sale.notice.todo', {
|
|
|
+ url : "/todo",
|
|
|
+ views : {
|
|
|
+ "sale-view" : {
|
|
|
+ templateUrl : "static/tpl/index/sale/notice.html"
|
|
|
+ }
|
|
|
+ }
|
|
|
}).state('user', {
|
|
|
url : "/user",
|
|
|
views : {
|
|
|
@@ -141,9 +197,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ui.
|
|
|
});
|
|
|
};
|
|
|
});
|
|
|
- app.controller('OnhandCtrl', function($scope, MessageService){
|
|
|
- MessageService.getOnhand(function(data){
|
|
|
- $scope.onhand = data;
|
|
|
+ app.controller('TodoCtrl', function($scope, MessageService){
|
|
|
+ MessageService.getTodo(function(data){
|
|
|
+ $scope.todo = data;
|
|
|
});
|
|
|
});
|
|
|
app.controller('DataCtrl', function($scope) {
|