Обновление отчета по персоналу
This commit is contained in:
miroman-afk
2022-06-14 12:22:42 +03:00
parent ebd1180d89
commit 7fdcbcc9e8
8 changed files with 403 additions and 76 deletions

View File

@@ -323,7 +323,7 @@
$scope.total = data.total;
});
smartRequest.get('dashboard/online/staff', function (data) {
smartRequest.get('v1/onlinestaff?method=dashboard', function (data) {
$scope.personals = data.staff;
});
@@ -503,7 +503,7 @@
$scope.total = data.total;
});
smartRequest.get('dashboard/online/staff', function (data) {
smartRequest.get('v1/onlinestaff?method=dashboard', function (data) {
$scope.personals = data.staff;
});
@@ -730,6 +730,14 @@
});
};
$scope.getItemsStaff = function (order) {
$('#get-more-staff').modal('toggle');
smartRequest.get('v1/onlinestaff?method=items&order=' + order.number, function (data) {
$scope.order = data;
$('#items-staff').modal('toggle');
});
};
$scope.getItemsDiscount = function (order) {
$('#get-more-discount').modal('toggle');
smartRequest.get('v1/discountitems?order=' + order.number, function (data) {

View File

@@ -89,7 +89,7 @@
};
$scope.reportStaff = function() {
smartRequest.get('report/staff?start_date=' + encodeURIComponent($scope.start_date) + '&end_date=' + encodeURIComponent($scope.end_date), function(data) {
smartRequest.get('v1/datareport?type=staff&start_date=' + encodeURIComponent($scope.start_date) + '&end_date=' + encodeURIComponent($scope.end_date), function(data) {
$scope.staffs = data.staffs;
$('#report-staff').modal();
}, function(data) {

View File

@@ -150,7 +150,7 @@
};
$scope.reportStaff = function (shift) {
smartRequest.get('report/staff?shift_id=' + shift.id, function (data) {
smartRequest.get('v1/datareport?type=staff&shift_id=' + shift.id, function (data) {
$scope.staffs = data.staffs;
$scope.start_date = shift.opened;
$scope.end_date = shift.closed;