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