|
@@ -44,6 +44,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
44
|
44
|
{key: 'resolve', value: '由我解决', num: ''},
|
45
|
45
|
{key: 'owns', value: '与我关联', num: ''},
|
46
|
46
|
{key: 'storage', value: '暂存', num: ''},
|
|
47
|
+ // {key: 'badEvaluate', value: '异常评价', num: ''},
|
47
|
48
|
]
|
48
|
49
|
// /是否逾期
|
49
|
50
|
$scope.langs = i18nService.getAllLangs();
|
|
@@ -54,6 +55,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
54
|
55
|
$scope.allFlag = false;//全部事件
|
55
|
56
|
$scope.daochu = false;//导出
|
56
|
57
|
$scope.huifang = false;//回访
|
|
58
|
+ $scope.badEvaluate = false;//异常评价
|
57
|
59
|
for (var i = 0; i < loginUser.menu.length; i++) {
|
58
|
60
|
if (loginUser.menu[i].link == "shijianliebiao_all") {
|
59
|
61
|
$scope.allFlag = true;
|
|
@@ -72,6 +74,10 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
72
|
74
|
if (loginUser.menu[i].link == "shijianliebiao_daochu") {
|
73
|
75
|
$scope.daochu = true
|
74
|
76
|
}
|
|
77
|
+ if (loginUser.menu[i].link == "shijianliebiao_badEvaluate") {
|
|
78
|
+ $scope.badEvaluate = true
|
|
79
|
+ $scope.tabs.push({key: 'badEvaluate', value: '异常评价', num: ''});
|
|
80
|
+ }
|
75
|
81
|
}
|
76
|
82
|
var loginuserGroup = "";
|
77
|
83
|
for (var i = 0; i < $rootScope.user.group.length; i++) {
|
|
@@ -155,214 +161,296 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
155
|
161
|
}
|
156
|
162
|
return statecolor;
|
157
|
163
|
}
|
158
|
|
- if($scope.repairMain.valueconfig == 1){//报修人
|
159
|
|
- $scope.gridOptions.columnDefs = [
|
160
|
|
- {
|
161
|
|
- name: 'id',
|
162
|
|
- displayName: '',
|
163
|
|
- width: 35,
|
164
|
|
- cellTemplate: '<div>' +
|
165
|
|
- '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
|
166
|
|
- '</div>'
|
167
|
|
- },
|
168
|
|
- {
|
169
|
|
- name: 'item',
|
170
|
|
- displayName: '序号',
|
171
|
|
- width: 45,
|
172
|
|
- cellTemplate: '<div>' +
|
173
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
174
|
|
- '</div>'
|
175
|
|
- },
|
176
|
|
- {
|
177
|
|
- name: 'incidentsign',
|
178
|
|
- displayName: '事件单号',
|
179
|
|
- width: 120,
|
180
|
|
- cellTemplate: '<div>' +
|
181
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.incidentsign}}</div>' +
|
182
|
|
- '</div>'
|
183
|
|
- },
|
184
|
|
- {
|
185
|
|
- name: 'requester.name',
|
186
|
|
- displayName: '报修人',
|
187
|
|
- width: '6%',
|
188
|
|
- minWidth: '90',
|
189
|
|
- enableSorting: false,
|
190
|
|
- cellTemplate: '<div>' +
|
191
|
|
- '<div class="ui-grid-cell-contents" >{{row.entity.requester.name}}</div>' +
|
192
|
|
- '</div>'
|
193
|
|
- },
|
194
|
|
- {
|
195
|
|
- name: 'requester.account',
|
196
|
|
- displayName: '学工号',
|
197
|
|
- width: '6%',
|
198
|
|
- minWidth: '90',
|
199
|
|
- enableSorting: false,
|
200
|
|
- cellTemplate: '<div>' +
|
201
|
|
- '<div class="ui-grid-cell-contents" >{{row.entity.requester.account}}</div>' +
|
202
|
|
- '</div>'
|
203
|
|
- },
|
204
|
|
- {
|
205
|
|
- name: 'contactsInformation',
|
206
|
|
- displayName: '联系电话',
|
207
|
|
- width: '105',
|
208
|
|
- cellTemplate: '<div>' +
|
209
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.contactsInformation}}</div>' +
|
210
|
|
- '</div>'
|
211
|
|
- },
|
212
|
|
- {
|
213
|
|
- name: 'category',
|
214
|
|
- displayName: '故障现象',
|
215
|
|
- width: '10%',
|
216
|
|
- enableSorting: false,
|
217
|
|
- cellTemplate: '<div>' +
|
218
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.category.category}}</div>' +
|
219
|
|
- '</div>'
|
220
|
|
- },
|
221
|
|
- {
|
222
|
|
- name: 'houseNumber',
|
223
|
|
- displayName: '区域地点',
|
224
|
|
- width: '14%',
|
225
|
|
- enableFiltering: false,
|
226
|
|
- cellTemplate: '<div><div class="ui-grid-cell-contents" ng-bind-html="grid.appScope.areaplace(row.entity)"></div></div>'
|
227
|
|
- },
|
228
|
|
- {
|
229
|
|
- name: 'acceptUser.name',
|
230
|
|
- displayName: '受理人',
|
231
|
|
- width: '7%',
|
232
|
|
- minWidth: '80',
|
233
|
|
- enableSorting: false,
|
234
|
|
- cellTemplate: '<div>' +
|
235
|
|
- '<div class="ui-grid-cell-contents" >{{row.entity.acceptUser.name}}</div>' +
|
236
|
|
- '</div>'
|
237
|
|
- },
|
238
|
|
- {
|
239
|
|
- name: 'acceptDate',
|
240
|
|
- displayName: '登记时间',
|
241
|
|
- width: '10%',
|
242
|
|
- minWidth: '140',
|
243
|
|
- enableFiltering: false,
|
244
|
|
- cellTemplate: '<div><div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.acceptDate)}}</div></div>'
|
245
|
|
- },
|
246
|
|
- {
|
247
|
|
- name: 'groupORHandlerUser',
|
248
|
|
- displayName: '处理人/组',
|
249
|
|
- width: '10%',
|
250
|
|
- enableFiltering: false,
|
251
|
|
- cellTemplate: '<div>' +
|
252
|
|
- '<div class="ui-grid-cell-contents">' +
|
253
|
|
- '{{row.entity.groupORHandlerUser}}</div>' +
|
254
|
|
- '</div>'
|
255
|
|
- },
|
256
|
|
- {
|
257
|
|
- name: 'state.name',
|
258
|
|
- displayName: '状态',
|
259
|
|
- width: '7%',
|
260
|
|
- minWidth: '70',
|
261
|
|
- enableSorting: false,
|
262
|
|
- cellTemplate: '<div>' +
|
263
|
|
- '<div class="ui-grid-cell-contents" >{{row.entity.state.name}}</div>' +
|
264
|
|
- '</div>'
|
265
|
|
- },
|
266
|
|
- {
|
267
|
|
- name: '操作',
|
268
|
|
- enableSorting: false,
|
269
|
|
- width: 500,
|
270
|
|
- cellTemplate: '<incidentoperator style="background-color:{{row.entity.colourInfo.rgb}}" item="row.entity" colobject="col">',
|
271
|
|
- enableFiltering: false
|
272
|
|
- },
|
273
|
|
- ];
|
274
|
|
- if($scope.wxIncidentWithCmdb==1){
|
275
|
|
- let index = $scope.gridOptions.columnDefs.findIndex(v=>v.name == 'contactsInformation');
|
276
|
|
- $scope.gridOptions.columnDefs.splice(index,0,{
|
277
|
|
- name: 'assetId',
|
278
|
|
- displayName: '资产',
|
279
|
|
- width: 120
|
280
|
|
- },)
|
|
164
|
+
|
|
165
|
+ $scope.showColumn = function(){
|
|
166
|
+ if($scope.repairMain.valueconfig == 1){//报修人
|
|
167
|
+ $scope.gridOptions.columnDefs = [
|
|
168
|
+ {
|
|
169
|
+ name: 'id',
|
|
170
|
+ displayName: '',
|
|
171
|
+ width: 35,
|
|
172
|
+ cellTemplate: '<div>' +
|
|
173
|
+ '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
|
|
174
|
+ '</div>'
|
|
175
|
+ },
|
|
176
|
+ {
|
|
177
|
+ name: 'item',
|
|
178
|
+ displayName: '序号',
|
|
179
|
+ width: 45,
|
|
180
|
+ cellTemplate: '<div>' +
|
|
181
|
+ '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
|
182
|
+ '</div>'
|
|
183
|
+ },
|
|
184
|
+ {
|
|
185
|
+ name: 'incidentsign',
|
|
186
|
+ displayName: '事件单号',
|
|
187
|
+ width: 120,
|
|
188
|
+ cellTemplate: '<div>' +
|
|
189
|
+ '<div class="ui-grid-cell-contents">{{row.entity.incidentsign}}</div>' +
|
|
190
|
+ '</div>'
|
|
191
|
+ },
|
|
192
|
+ {
|
|
193
|
+ name: 'requester.name',
|
|
194
|
+ displayName: '报修人',
|
|
195
|
+ width: '6%',
|
|
196
|
+ minWidth: '90',
|
|
197
|
+ enableSorting: false,
|
|
198
|
+ cellTemplate: '<div>' +
|
|
199
|
+ '<div class="ui-grid-cell-contents" >{{row.entity.requester.name}}</div>' +
|
|
200
|
+ '</div>'
|
|
201
|
+ },
|
|
202
|
+ {
|
|
203
|
+ name: 'requester.account',
|
|
204
|
+ displayName: '学工号',
|
|
205
|
+ width: '6%',
|
|
206
|
+ minWidth: '90',
|
|
207
|
+ enableSorting: false,
|
|
208
|
+ cellTemplate: '<div>' +
|
|
209
|
+ '<div class="ui-grid-cell-contents" >{{row.entity.requester.account}}</div>' +
|
|
210
|
+ '</div>'
|
|
211
|
+ },
|
|
212
|
+ {
|
|
213
|
+ name: 'contactsInformation',
|
|
214
|
+ displayName: '联系电话',
|
|
215
|
+ width: '105',
|
|
216
|
+ cellTemplate: '<div>' +
|
|
217
|
+ '<div class="ui-grid-cell-contents">{{row.entity.contactsInformation}}</div>' +
|
|
218
|
+ '</div>'
|
|
219
|
+ },
|
|
220
|
+ {
|
|
221
|
+ name: 'category',
|
|
222
|
+ displayName: '故障现象',
|
|
223
|
+ width: '10%',
|
|
224
|
+ enableSorting: false,
|
|
225
|
+ cellTemplate: '<div>' +
|
|
226
|
+ '<div class="ui-grid-cell-contents">{{row.entity.category.category}}</div>' +
|
|
227
|
+ '</div>'
|
|
228
|
+ },
|
|
229
|
+ {
|
|
230
|
+ name: 'houseNumber',
|
|
231
|
+ displayName: '区域地点',
|
|
232
|
+ width: '14%',
|
|
233
|
+ enableFiltering: false,
|
|
234
|
+ cellTemplate: '<div><div class="ui-grid-cell-contents" ng-bind-html="grid.appScope.areaplace(row.entity)"></div></div>'
|
|
235
|
+ },
|
|
236
|
+ {
|
|
237
|
+ name: 'acceptUser.name',
|
|
238
|
+ displayName: '受理人',
|
|
239
|
+ width: '7%',
|
|
240
|
+ minWidth: '80',
|
|
241
|
+ enableSorting: false,
|
|
242
|
+ cellTemplate: '<div>' +
|
|
243
|
+ '<div class="ui-grid-cell-contents" >{{row.entity.acceptUser.name}}</div>' +
|
|
244
|
+ '</div>'
|
|
245
|
+ },
|
|
246
|
+ {
|
|
247
|
+ name: 'acceptDate',
|
|
248
|
+ displayName: '登记时间',
|
|
249
|
+ width: '10%',
|
|
250
|
+ minWidth: '140',
|
|
251
|
+ enableFiltering: false,
|
|
252
|
+ cellTemplate: '<div><div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.acceptDate)}}</div></div>'
|
|
253
|
+ },
|
|
254
|
+ {
|
|
255
|
+ name: 'groupORHandlerUser',
|
|
256
|
+ displayName: '处理人/组',
|
|
257
|
+ width: '10%',
|
|
258
|
+ enableFiltering: false,
|
|
259
|
+ cellTemplate: '<div>' +
|
|
260
|
+ '<div class="ui-grid-cell-contents">' +
|
|
261
|
+ '{{row.entity.groupORHandlerUser}}</div>' +
|
|
262
|
+ '</div>'
|
|
263
|
+ },
|
|
264
|
+ {
|
|
265
|
+ name: 'state.name',
|
|
266
|
+ displayName: '状态',
|
|
267
|
+ width: '7%',
|
|
268
|
+ minWidth: '70',
|
|
269
|
+ enableSorting: false,
|
|
270
|
+ cellTemplate: '<div>' +
|
|
271
|
+ '<div class="ui-grid-cell-contents" >{{row.entity.state.name}}</div>' +
|
|
272
|
+ '</div>'
|
|
273
|
+ },
|
|
274
|
+ {
|
|
275
|
+ name: '操作',
|
|
276
|
+ enableSorting: false,
|
|
277
|
+ width: 500,
|
|
278
|
+ cellTemplate: '<incidentoperator style="background-color:{{row.entity.colourInfo.rgb}}" item="row.entity" colobject="col">',
|
|
279
|
+ enableFiltering: false
|
|
280
|
+ },
|
|
281
|
+ ];
|
|
282
|
+ if($scope.wxIncidentWithCmdb==1){
|
|
283
|
+ let index = $scope.gridOptions.columnDefs.findIndex(v=>v.name == 'contactsInformation');
|
|
284
|
+ $scope.gridOptions.columnDefs.splice(index,0,{
|
|
285
|
+ name: 'assetId',
|
|
286
|
+ displayName: '资产',
|
|
287
|
+ width: 120
|
|
288
|
+ },)
|
|
289
|
+ }
|
|
290
|
+ }else if($scope.repairMain.valueconfig == 2){//报修科室
|
|
291
|
+ if($scope.searchstate === 'badEvaluate'){
|
|
292
|
+ // 异常评价
|
|
293
|
+ $scope.gridOptions.columnDefs = [
|
|
294
|
+ {
|
|
295
|
+ name: 'id',
|
|
296
|
+ displayName: '',
|
|
297
|
+ width: 35,
|
|
298
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
299
|
+ '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
|
|
300
|
+ '</div>'
|
|
301
|
+ },
|
|
302
|
+ {
|
|
303
|
+ name: 'row1',
|
|
304
|
+ displayName: '序号',
|
|
305
|
+ width: 45,
|
|
306
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
307
|
+ '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
|
308
|
+ '</div>'
|
|
309
|
+ },
|
|
310
|
+ {
|
|
311
|
+ name: 'row2',
|
|
312
|
+ displayName: '单号|报修科室',
|
|
313
|
+ width: 150,
|
|
314
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
315
|
+ '<div class="ui-grid-cell-contents">{{row.entity.incidentsign || "无"}}<br>{{row.entity.department ? row.entity.department.dept : "无"}}</div>' +
|
|
316
|
+ '</div>'
|
|
317
|
+ },
|
|
318
|
+ {
|
|
319
|
+ name: 'row3',
|
|
320
|
+ displayName: '报修人|来电电话',
|
|
321
|
+ width: 150,
|
|
322
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
323
|
+ '<div class="ui-grid-cell-contents">{{row.entity.requester ? row.entity.requester.name : "无"}}<br>{{row.entity.incomingPhone || "无"}}<a ng-click="grid.appScope.play(row.entity)" ng-if="row.entity.callID" tooltip="播放录音" tooltip-placement="left"><i class="ti-microphone"></i></a></div>' +
|
|
324
|
+ '</div>'
|
|
325
|
+ },
|
|
326
|
+ {
|
|
327
|
+ name: 'row5',
|
|
328
|
+ displayName: '故障现象|区域地点',
|
|
329
|
+ width: 350,
|
|
330
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
331
|
+ '<div class="ui-grid-cell-contents"><span title="{{row.entity.description}}">{{row.entity.description}}</span><br><span ng-bind-html="grid.appScope.areaplace(row.entity)"></span></div>' +
|
|
332
|
+ '</div>'
|
|
333
|
+ },
|
|
334
|
+ {
|
|
335
|
+ name: 'row6',
|
|
336
|
+ displayName: '受理人|处理人/组',
|
|
337
|
+ width: 150,
|
|
338
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
339
|
+ '<div class="ui-grid-cell-contents">{{row.entity.acceptUser ? row.entity.acceptUser.name : "无"}}<br><span tooltip="{{grid.appScope.transferSynergetic(row.entity)}}" tooltip-placement="top">{{grid.appScope.transferSynergetic(row.entity)}}</span></div>' +
|
|
340
|
+ '</div>'
|
|
341
|
+ },
|
|
342
|
+ {
|
|
343
|
+ name: 'row7',
|
|
344
|
+ displayName: '登记时间',
|
|
345
|
+ width: 150,
|
|
346
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
347
|
+ '<div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.acceptDate)}}</div>' +
|
|
348
|
+ '</div>'
|
|
349
|
+ },
|
|
350
|
+ {
|
|
351
|
+ name: 'row9',
|
|
352
|
+ displayName: '回访满意度|评价满意度',
|
|
353
|
+ width: 150,
|
|
354
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
355
|
+ '<div class="ui-grid-cell-contents" ><span tooltip={{row.entity.visitRemarks}} tooltip-placement="right">{{row.entity.degree ? row.entity.degree.name : ""}}</span><br><span tooltip={{row.entity.wxdegreeremark}} tooltip-placement="right">{{row.entity.wxdegree ? row.entity.wxdegree.name : ""}}</span></div>' +
|
|
356
|
+ '</div>'
|
|
357
|
+ },
|
|
358
|
+ {
|
|
359
|
+ name: '操作',
|
|
360
|
+ enableSorting: false,
|
|
361
|
+ width: 196,
|
|
362
|
+ cellTemplate: '<incidentoperator style="background-color:{{row.entity.colourInfo.rgb}}" item="row.entity" colobject="col">',
|
|
363
|
+ enableFiltering: false
|
|
364
|
+ },
|
|
365
|
+ ];
|
|
366
|
+ }else{
|
|
367
|
+ $scope.gridOptions.columnDefs = [
|
|
368
|
+ {
|
|
369
|
+ name: 'id',
|
|
370
|
+ displayName: '',
|
|
371
|
+ width: 35,
|
|
372
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
373
|
+ '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
|
|
374
|
+ '</div>'
|
|
375
|
+ },
|
|
376
|
+ {
|
|
377
|
+ name: 'row1',
|
|
378
|
+ displayName: '序号',
|
|
379
|
+ width: 45,
|
|
380
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
381
|
+ '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
|
382
|
+ '</div>'
|
|
383
|
+ },
|
|
384
|
+ {
|
|
385
|
+ name: 'row2',
|
|
386
|
+ displayName: '单号|报修科室',
|
|
387
|
+ width: 150,
|
|
388
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
389
|
+ '<div class="ui-grid-cell-contents">{{row.entity.incidentsign || "无"}}<br>{{row.entity.department ? row.entity.department.dept : "无"}}</div>' +
|
|
390
|
+ '</div>'
|
|
391
|
+ },
|
|
392
|
+ {
|
|
393
|
+ name: 'row3',
|
|
394
|
+ displayName: '报修人|来电电话',
|
|
395
|
+ width: 150,
|
|
396
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
397
|
+ '<div class="ui-grid-cell-contents">{{row.entity.requester ? row.entity.requester.name : "无"}}<br>{{row.entity.incomingPhone || "无"}}<a ng-click="grid.appScope.play(row.entity)" ng-if="row.entity.callID" tooltip="播放录音" tooltip-placement="left"><i class="ti-microphone"></i></a></div>' +
|
|
398
|
+ '</div>'
|
|
399
|
+ },
|
|
400
|
+ {
|
|
401
|
+ name: 'row5',
|
|
402
|
+ displayName: '故障现象|区域地点',
|
|
403
|
+ width: 350,
|
|
404
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
405
|
+ '<div class="ui-grid-cell-contents"><span title="{{row.entity.description}}">{{row.entity.description}}</span><br><span ng-bind-html="grid.appScope.areaplace(row.entity)"></span></div>' +
|
|
406
|
+ '</div>'
|
|
407
|
+ },
|
|
408
|
+ {
|
|
409
|
+ name: 'row6',
|
|
410
|
+ displayName: '受理人|处理人/组',
|
|
411
|
+ width: 150,
|
|
412
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
413
|
+ '<div class="ui-grid-cell-contents">{{row.entity.acceptUser ? row.entity.acceptUser.name : "无"}}<br><span tooltip="{{grid.appScope.transferSynergetic(row.entity)}}" tooltip-placement="top">{{grid.appScope.transferSynergetic(row.entity)}}</span></div>' +
|
|
414
|
+ '</div>'
|
|
415
|
+ },
|
|
416
|
+ {
|
|
417
|
+ name: 'row7',
|
|
418
|
+ displayName: '登记时间|接单时间',
|
|
419
|
+ width: 150,
|
|
420
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
421
|
+ '<div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.acceptDate)}}<br>{{grid.appScope.transferTime(row.entity.responseHandleTime)}}</div>' +
|
|
422
|
+ '</div>'
|
|
423
|
+ },
|
|
424
|
+ {
|
|
425
|
+ name: 'row9',
|
|
426
|
+ displayName: '状态|解决时间',
|
|
427
|
+ width: 150,
|
|
428
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
429
|
+ '<div class="ui-grid-cell-contents" ><span ng-switch="row.entity.state.value"><span ng-switch-when="pending" style="color:orange;">{{row.entity.state.name}}</span><span ng-switch-when="resolved" style="color:green;">{{row.entity.state.name}}</span><span ng-switch-when="handler" style="font-weight:bold;">{{row.entity.state.name}}</span><span ng-switch-default>{{row.entity.state.name}}</span></span><br>{{grid.appScope.transferTime(row.entity.handleTime)}}</div>' +
|
|
430
|
+ '</div>'
|
|
431
|
+ },
|
|
432
|
+ {
|
|
433
|
+ name: 'row10',
|
|
434
|
+ displayName: '最近维修记录',
|
|
435
|
+ width: 140,
|
|
436
|
+ cellTemplate: '<div style="width: 100%;">' +
|
|
437
|
+ '<div class="ui-grid-cell-contents" ng-bind-html="grid.appScope.transferHandlerLog(row.entity.currentLog)"></div>' +
|
|
438
|
+ '</div>'
|
|
439
|
+ },
|
|
440
|
+ {
|
|
441
|
+ name: '操作',
|
|
442
|
+ enableSorting: false,
|
|
443
|
+ width: 196,
|
|
444
|
+ cellTemplate: '<incidentoperator style="background-color:{{row.entity.colourInfo.rgb}}" item="row.entity" colobject="col">',
|
|
445
|
+ enableFiltering: false
|
|
446
|
+ },
|
|
447
|
+ ];
|
|
448
|
+ }
|
281
|
449
|
}
|
282
|
|
- }else if($scope.repairMain.valueconfig == 2){//报修科室
|
283
|
|
- $scope.gridOptions.columnDefs = [
|
284
|
|
- {
|
285
|
|
- name: 'id',
|
286
|
|
- displayName: '',
|
287
|
|
- width: 35,
|
288
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
289
|
|
- '<div class="ui-grid-cell-contents" tooltip={{grid.appScope.transfertip(row.entity)}} tooltip-placement="right"><i style="font-size: 18px !important;" class="{{grid.appScope.transferColor(row.entity)}}"></i></div></div>' +
|
290
|
|
- '</div>'
|
291
|
|
- },
|
292
|
|
- {
|
293
|
|
- name: 'row1',
|
294
|
|
- displayName: '序号',
|
295
|
|
- width: 45,
|
296
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
297
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
|
298
|
|
- '</div>'
|
299
|
|
- },
|
300
|
|
- {
|
301
|
|
- name: 'row2',
|
302
|
|
- displayName: '单号|报修科室',
|
303
|
|
- width: 150,
|
304
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
305
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.incidentsign || "无"}}<br>{{row.entity.department ? row.entity.department.dept : "无"}}</div>' +
|
306
|
|
- '</div>'
|
307
|
|
- },
|
308
|
|
- {
|
309
|
|
- name: 'row3',
|
310
|
|
- displayName: '报修人|来电电话',
|
311
|
|
- width: 150,
|
312
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
313
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.requester ? row.entity.requester.name : "无"}}<br>{{row.entity.incomingPhone || "无"}}<a ng-click="grid.appScope.play(row.entity)" ng-if="row.entity.callID" tooltip="播放录音" tooltip-placement="left"><i class="ti-microphone"></i></a></div>' +
|
314
|
|
- '</div>'
|
315
|
|
- },
|
316
|
|
- {
|
317
|
|
- name: 'row5',
|
318
|
|
- displayName: '故障现象|区域地点',
|
319
|
|
- width: 350,
|
320
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
321
|
|
- '<div class="ui-grid-cell-contents"><span title="{{row.entity.description}}">{{row.entity.description}}</span><br><span ng-bind-html="grid.appScope.areaplace(row.entity)"></span></div>' +
|
322
|
|
- '</div>'
|
323
|
|
- },
|
324
|
|
- {
|
325
|
|
- name: 'row6',
|
326
|
|
- displayName: '受理人|处理人/组',
|
327
|
|
- width: 150,
|
328
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
329
|
|
- '<div class="ui-grid-cell-contents">{{row.entity.acceptUser ? row.entity.acceptUser.name : "无"}}<br><span tooltip="{{grid.appScope.transferSynergetic(row.entity)}}" tooltip-placement="top">{{grid.appScope.transferSynergetic(row.entity)}}</span></div>' +
|
330
|
|
- '</div>'
|
331
|
|
- },
|
332
|
|
- {
|
333
|
|
- name: 'row7',
|
334
|
|
- displayName: '登记时间|接单时间',
|
335
|
|
- width: 150,
|
336
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
337
|
|
- '<div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.acceptDate)}}<br>{{grid.appScope.transferTime(row.entity.responseHandleTime)}}</div>' +
|
338
|
|
- '</div>'
|
339
|
|
- },
|
340
|
|
- {
|
341
|
|
- name: 'row9',
|
342
|
|
- displayName: '状态|解决时间',
|
343
|
|
- width: 150,
|
344
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
345
|
|
- '<div class="ui-grid-cell-contents" ><span ng-switch="row.entity.state.value"><span ng-switch-when="pending" style="color:orange;">{{row.entity.state.name}}</span><span ng-switch-when="resolved" style="color:green;">{{row.entity.state.name}}</span><span ng-switch-when="handler" style="font-weight:bold;">{{row.entity.state.name}}</span><span ng-switch-default>{{row.entity.state.name}}</span></span><br>{{grid.appScope.transferTime(row.entity.handleTime)}}</div>' +
|
346
|
|
- '</div>'
|
347
|
|
- },
|
348
|
|
- {
|
349
|
|
- name: 'row10',
|
350
|
|
- displayName: '最近维修记录',
|
351
|
|
- width: 140,
|
352
|
|
- cellTemplate: '<div style="width: 100%;">' +
|
353
|
|
- '<div class="ui-grid-cell-contents" ng-bind-html="grid.appScope.transferHandlerLog(row.entity.currentLog)"></div>' +
|
354
|
|
- '</div>'
|
355
|
|
- },
|
356
|
|
- {
|
357
|
|
- name: '操作',
|
358
|
|
- enableSorting: false,
|
359
|
|
- width: 196,
|
360
|
|
- cellTemplate: '<incidentoperator style="background-color:{{row.entity.colourInfo.rgb}}" item="row.entity" colobject="col">',
|
361
|
|
- enableFiltering: false
|
362
|
|
- },
|
363
|
|
- ];
|
364
|
450
|
}
|
365
|
451
|
|
|
452
|
+ $scope.showColumn();
|
|
453
|
+
|
366
|
454
|
$scope.transferTime = function (time) {
|
367
|
455
|
if(time){
|
368
|
456
|
return moment(time).format('YYYY-MM-DD HH:mm');
|
|
@@ -2251,6 +2339,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2251
|
2339
|
$scope.isDisabledState = false;
|
2252
|
2340
|
$scope.searchstate = searchstate;
|
2253
|
2341
|
$scope.chiceIncident($scope.searchkeys,$scope.othcode.state, isInit);
|
|
2342
|
+ $scope.showColumn();
|
2254
|
2343
|
}
|
2255
|
2344
|
// 是否逾期下拉框选择
|
2256
|
2345
|
$scope.selectTypeChange = function(isInit){
|
|
@@ -2317,7 +2406,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2317
|
2406
|
if(!filterData.incident){
|
2318
|
2407
|
filterData.incident = {};
|
2319
|
2408
|
}
|
2320
|
|
- if($scope.searchstate === 'all' || $scope.searchstate === 'callback'){
|
|
2409
|
+ if($scope.searchstate === 'all' || $scope.searchstate === 'callback' || $scope.searchstate === 'badEvaluate'){
|
2321
|
2410
|
if($rootScope.user.duty){
|
2322
|
2411
|
// 当前的所属责任科室
|
2323
|
2412
|
filterData.incident.duty = $rootScope.user.duty;
|
|
@@ -2375,7 +2464,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2375
|
2464
|
if(!incident){
|
2376
|
2465
|
incident = {};
|
2377
|
2466
|
}
|
2378
|
|
- if(incident.queryTask === 'all' || incident.queryTask === 'callback'){
|
|
2467
|
+ if(incident.queryTask === 'all' || incident.queryTask === 'callback' || incident.queryTask === 'badEvaluate'){
|
2379
|
2468
|
if($rootScope.user.duty){
|
2380
|
2469
|
// 当前的所属责任科室
|
2381
|
2470
|
incident.duty = $rootScope.user.duty;
|