|
|
@ -14,8 +14,9 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
app.controller('customersListCtrl', ['$scope', '$http','$filter', '$uibModal', 'commonDialog', 'orderService', 'refunder', function ($scope, $http,$filter, $uibModal, commonDialog, orderService, refunder) {
|
|
|
|
app.controller('customersListCtrl', ['$scope', '$http','$filter', '$uibModal', 'commonDialog', 'orderService', 'refunder', function ($scope, $http,$filter, $uibModal, commonDialog, orderService, refunder) {
|
|
|
|
$scope.one_customer = {};
|
|
|
|
$scope.one_customer = {};
|
|
|
|
$scope.orderAmountFlag = true;
|
|
|
|
$scope.orderAmountFlag = false;
|
|
|
|
$scope.orderOrdersFlag = true;
|
|
|
|
$scope.orderOrdersFlag = true;
|
|
|
|
|
|
|
|
|
|
|
|
var echartsConfig = function (graph) {
|
|
|
|
var echartsConfig = function (graph) {
|
|
|
|
var categories = [];
|
|
|
|
var categories = [];
|
|
|
|
var c = 0;
|
|
|
|
var c = 0;
|
|
|
@ -68,6 +69,7 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.pagination = {};
|
|
|
|
$scope.pagination = {};
|
|
|
|
$scope.params = {};
|
|
|
|
$scope.params = {};
|
|
|
|
|
|
|
|
$scope.params.orderValue = "amount.desc";
|
|
|
|
$scope.params.openid_type = '0';
|
|
|
|
$scope.params.openid_type = '0';
|
|
|
|
|
|
|
|
|
|
|
|
$scope.today = new Date();
|
|
|
|
$scope.today = new Date();
|
|
|
@ -232,13 +234,15 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
refunder.refunded(order.order_id)
|
|
|
|
refunder.refunded(order.order_id)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.clickOrderAmount = function () {
|
|
|
|
$scope.clickOrderAmount = function () {
|
|
|
|
$scope.params.orderAmountFlag = !$scope.orderAmountFlag;
|
|
|
|
$scope.orderAmountFlag = !$scope.orderAmountFlag;
|
|
|
|
$scope.params.orderOrdersFlag = true;
|
|
|
|
$scope.params.orderValue = "amount"+($scope.orderAmountFlag?".asc":".desc")
|
|
|
|
|
|
|
|
$scope.orderOrdersFlag = true;
|
|
|
|
$scope.listCustomers(1);
|
|
|
|
$scope.listCustomers(1);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.clickOrderOrders = function () {
|
|
|
|
$scope.clickOrderOrders = function () {
|
|
|
|
$scope.params.orderOrdersFlag = !$scope.orderOrdersFlag;
|
|
|
|
$scope.orderOrdersFlag = !$scope.orderOrdersFlag;
|
|
|
|
$scope.params.orderAmountFlag = true;
|
|
|
|
$scope.params.orderValue = "orders"+($scope.orderOrdersFlag?".asc":".desc")
|
|
|
|
|
|
|
|
$scope.orderAmountFlag = true;
|
|
|
|
$scope.listCustomers(1);
|
|
|
|
$scope.listCustomers(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|