|
@@ -6,8 +6,8 @@ app.controller('realtimeBroadcastCtrl', ['$scope', '$modal', '$timeout', 'SweetA
|
6
|
6
|
rotationIntervals: [3, 5, 10, 15, 20, 25, 30, 35, 40, 45],
|
7
|
7
|
logTimeConst: 60,
|
8
|
8
|
logTimeConsts: [30, 60, 90, 120, 150, 180, 210, 240, 270, 300],
|
9
|
|
- }
|
10
|
|
- console.log($scope.intervalTime);
|
|
9
|
+ }
|
|
10
|
+ console.log($scope.intervalTime);
|
11
|
11
|
$scope.logTimer = null; //定时器
|
12
|
12
|
$scope.logTime = 0; //自动刷新秒数
|
13
|
13
|
$scope.logTimeConst = $scope.intervalTime.logTimeConst; //自动刷新秒数
|
|
@@ -71,14 +71,13 @@ app.controller('realtimeBroadcastCtrl', ['$scope', '$modal', '$timeout', 'SweetA
|
71
|
71
|
break;
|
72
|
72
|
}
|
73
|
73
|
let postData = {
|
74
|
|
- "assignee": $scope.user.id,
|
75
|
|
- "candidateGroups": $scope.user.group.map(v=>v.id).toString(),
|
76
|
|
- "searchType": "all",
|
77
|
74
|
"idx": 0,
|
78
|
75
|
"sum": 9999,
|
79
|
76
|
"incident": {
|
80
|
|
- "deleted": false,
|
81
|
|
- "statusId": statusId,
|
|
77
|
+ "assignee": $scope.user.id,
|
|
78
|
+ "candidateGroups": $scope.user.group.map(v=>v.id).toString(),
|
|
79
|
+ "statusId": statusId,
|
|
80
|
+ "queryTask": "all",
|
82
|
81
|
}
|
83
|
82
|
};
|
84
|
83
|
if($scope.user.duty){
|
|
@@ -99,7 +98,6 @@ app.controller('realtimeBroadcastCtrl', ['$scope', '$modal', '$timeout', 'SweetA
|
99
|
98
|
$scope.loading1 = false;
|
100
|
99
|
data.list.forEach(v => {
|
101
|
100
|
v.acceptDate = v.acceptDate ? moment(v.acceptDate).format('MM-DD HH:mm') : '';
|
102
|
|
- v.handlerLogs = v.handlerLogs.length ? v.handlerLogs.reverse().slice(0, 1) : [];
|
103
|
101
|
})
|
104
|
102
|
$scope.waitingOrderList = _.chunk(data.list, $scope.sum);
|
105
|
103
|
console.log($scope.waitingOrderList);
|
|
@@ -108,7 +106,6 @@ app.controller('realtimeBroadcastCtrl', ['$scope', '$modal', '$timeout', 'SweetA
|
108
|
106
|
$scope.loading2 = false;
|
109
|
107
|
data.list.forEach(v => {
|
110
|
108
|
v.acceptDate = v.acceptDate ? moment(v.acceptDate).format('MM-DD HH:mm') : '';
|
111
|
|
- v.handlerLogs = v.handlerLogs.length ? v.handlerLogs.reverse().slice(0, 1) : [];
|
112
|
109
|
})
|
113
|
110
|
$scope.inProcessList = _.chunk(data.list, $scope.sum);
|
114
|
111
|
break;
|
|
@@ -125,14 +122,26 @@ app.controller('realtimeBroadcastCtrl', ['$scope', '$modal', '$timeout', 'SweetA
|
125
|
122
|
});
|
126
|
123
|
}
|
127
|
124
|
|
128
|
|
- // 初始化
|
129
|
|
- $(function(){
|
130
|
|
- // 待接单列表
|
131
|
|
- $scope.getPharmacyList(1, true);
|
132
|
|
- // 处理中列表
|
133
|
|
- $scope.getPharmacyList(2, true);
|
134
|
|
- // 自动刷新倒计时 start
|
135
|
|
- $scope.autoUpdate();
|
136
|
|
- // 自动刷新倒计时 end
|
137
|
|
- })
|
|
125
|
+ $scope.transferHandlerLog = function (currentLog) {
|
|
126
|
+ if(!currentLog){
|
|
127
|
+ return '无';
|
|
128
|
+ }
|
|
129
|
+ currentLog = angular.copy(currentLog);
|
|
130
|
+ if(currentLog.extra1DTO && currentLog.extra2 && currentLog.startTime){
|
|
131
|
+ return currentLog.extra1DTO.name+" "+ moment(currentLog.startTime).add(+currentLog.extra2, 'days').format('MM月DD日前完成');
|
|
132
|
+ }else{
|
|
133
|
+ return '无';
|
|
134
|
+ }
|
|
135
|
+ }
|
|
136
|
+
|
|
137
|
+ // 初始化
|
|
138
|
+ $(function(){
|
|
139
|
+ // 待接单列表
|
|
140
|
+ $scope.getPharmacyList(1, true);
|
|
141
|
+ // 处理中列表
|
|
142
|
+ $scope.getPharmacyList(2, true);
|
|
143
|
+ // 自动刷新倒计时 start
|
|
144
|
+ $scope.autoUpdate();
|
|
145
|
+ // 自动刷新倒计时 end
|
|
146
|
+ })
|
138
|
147
|
}])
|