Добавлен журнал заказов
Добавлены отчеты: по переносам, по объединениям, по разбиениям
This commit is contained in:
miroman-afk
2022-06-13 13:16:50 +03:00
parent 2d148e3eb5
commit ebd1180d89
9 changed files with 605 additions and 7 deletions

View File

@@ -20,6 +20,7 @@
$scope.currentPage = 1;
$scope.statistic = {};
$scope.staffs = [];
$scope.parseFloat = parseFloat;
$scope.add = function() {
$scope.reImport = {};
@@ -76,6 +77,39 @@
});
};
$scope.reportMerged = function (shift) {
smartRequest.get('v1/datareport?type=merge&shift_id=' + shift.id, function (data) {
$scope.report_merge = data.data;
$scope.report_merge.count = data.count;
$scope.report_merge.shift_id = data.shift_id;
$scope.start_date = shift.opened;
$scope.end_date = shift.closed;
$('#report-merge').modal();
});
};
$scope.reportMoved = function (shift) {
smartRequest.get('v1/datareport?type=move&shift_id=' + shift.id, function (data) {
$scope.report_move = data.data;
$scope.report_move.count = data.count;
$scope.start_date = shift.opened;
$scope.end_date = shift.closed;
$('#report-move').modal();
});
};
$scope.reportSliced = function (shift) {
smartRequest.get('v1/datareport?type=slice&shift_id=' + shift.id, function (data) {
$scope.report_slice = data.data;
$scope.report_slice.count = data.count;
$scope.report_slice.shift_id = data.shift_id;
$scope.start_date = shift.opened;
$scope.end_date = shift.closed;
$('#report-slice').modal();
});
};
$scope.reportDelete = function (shift) {
smartRequest.get('report/deleted?shift_id=' + shift.id, function (data) {
$scope.report_delete = data.deleted;

View File

@@ -169,7 +169,7 @@
terminal: $scope.terminal_id,
task: task.code
}, function (data) {
Notification.success('Задача запушена');
Notification.success('Задача запущена');
});
};