|
|
@ -14,6 +14,8 @@ 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.orderOrdersFlag = true;
|
|
|
|
var echartsConfig = function (graph) {
|
|
|
|
var echartsConfig = function (graph) {
|
|
|
|
var categories = [];
|
|
|
|
var categories = [];
|
|
|
|
var c = 0;
|
|
|
|
var c = 0;
|
|
|
@ -229,7 +231,16 @@ define(['angular', 'static/commons/commons', 'static/commons/angular-ueditor', '
|
|
|
|
$scope.refundOrder = function (order) {
|
|
|
|
$scope.refundOrder = function (order) {
|
|
|
|
refunder.refunded(order.order_id)
|
|
|
|
refunder.refunded(order.order_id)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
$scope.clickOrderAmount = function () {
|
|
|
|
|
|
|
|
$scope.params.orderAmountFlag = !$scope.orderAmountFlag;
|
|
|
|
|
|
|
|
$scope.params.orderOrdersFlag = true;
|
|
|
|
|
|
|
|
$scope.listCustomers(1);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$scope.clickOrderOrders = function () {
|
|
|
|
|
|
|
|
$scope.params.orderOrdersFlag = !$scope.orderOrdersFlag;
|
|
|
|
|
|
|
|
$scope.params.orderAmountFlag = true;
|
|
|
|
|
|
|
|
$scope.listCustomers(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
|
|
return app;
|
|
|
|
return app;
|
|
|
|