Kaynağa Gözat

Merge branch 'lmm'

seimin 11 ay önce
ebeveyn
işleme
4260c43a06

+ 1 - 1
assets/css/styles.css

@@ -12228,7 +12228,7 @@ fieldset[disabled] .btn-gray.active {
12228 12228
 
12229 12229
 .ui-select-multiple.ui-select-bootstrap {
12230 12230
     height: auto;
12231
-    padding: 3px 3px 0;
12231
+    padding: 1px 3px 1px!important;
12232 12232
 }
12233 12233
 
12234 12234
 .btn-xs,

+ 296 - 207
assets/js/controllers/incident/incidentCtrl.js

@@ -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;

+ 11 - 1
assets/js/controllers/report/event_formCtrl.js

@@ -522,6 +522,10 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
522 522
             value: $scope.groupSelected[1]//选中
523 523
         };
524 524
         $scope.own.duty && $scope.tap == 'CLRZ' && $scope.mdxquery();
525
+
526
+        $scope.companySelected = [];
527
+        $scope.companySelectedOne.value = {id:-1,name:''};
528
+        $scope.own.duty && $scope.tap == 'SFGS' && $scope.mdxquery();
525 529
     }
526 530
     // 获取院区
527 531
     $scope.branchs = [];
@@ -981,12 +985,16 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
981 985
                 api_user_data.fetchDataList('company', {
982 986
                     idx: 0,
983 987
                     sum: 1000,
984
-                    company: {}
988
+                    company: {
989
+                        "duty": $scope.own.duty || undefined,
990
+                    }
985 991
                 }).then(res => {
986 992
                     if (res.status == 200) {
987 993
                         $scope.companySelected = res.list;//下拉框数据
988 994
                         // 请求列表
989 995
                         var postData = {
996
+                            "dutyId": $scope.own.duty ? $scope.own.duty.id : undefined,
997
+                            "branchId": $scope.own.duty ? undefined: ($scope.own.branch ? $scope.own.branch.id : undefined),
990 998
                             "startTime": moment($scope.starttimesModel).format('YYYY-MM-DD'),
991 999
                             "endTime": moment($scope.endtimesModel).format('YYYY-MM-DD'),
992 1000
                             "sortData": name,
@@ -1147,6 +1155,8 @@ app.controller('event_formCtrl', ["$scope", "$rootScope", "$state", "$timeout",
1147 1155
                 postData.key = 'mdv2_incident_repot_handle';
1148 1156
                 break;
1149 1157
             case 'SFGS'://三方公司
1158
+                postData.dutyId = $scope.own.duty ? $scope.own.duty.id : undefined;
1159
+                postData.branchId = $scope.own.duty ? undefined : ($scope.own.branch ? $scope.own.branch.id : undefined);
1150 1160
                 postData.key = 'mdv2_incident_repot_company';
1151 1161
                 postData.titles = [($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName)?'人员名称':'公司名称', '人员总数', '事件数量', '平均响应时长', '平均解决时长'];
1152 1162
                 if($scope.sfgs_list[0]&&$scope.sfgs_list[0].userName){

+ 5 - 0
assets/js/controllers/system/notificationCtrl.js

@@ -245,6 +245,11 @@ app.controller('notificationCtr', ["$rootScope", "$scope", "$state", "$timeout",
245 245
                     "[$转派人$]",
246 246
                     "[$延期原因$]",
247 247
                     "[$进入系统$]",
248
+                    "[$回访满意度$]",
249
+                    "[$回访备注$]",
250
+                    "[$回访处理结果$]",
251
+                    "[$评价满意度$]",
252
+                    "[$评价内容$]",
248 253
                 ];
249 254
                 $scope.varPlaceholder = '';
250 255
                 // switch ($scope.editData.noticeCode) {

+ 22 - 14
assets/js/controllers/system/thirdPartyCompanyCtrl.js

@@ -55,8 +55,7 @@ app.controller('thirdPartyCompanyCtrl', ["$rootScope", "$scope", "$state", "$tim
55 55
     $scope.gridOptions.columnDefs = [{
56 56
             name: 'item',
57 57
             displayName: '序号',
58
-            width: '5%',
59
-            minWidth: '70',
58
+            width: '50',
60 59
             enableFiltering: false,
61 60
             cellTemplate: '<div>' +
62 61
                 '<div class="ui-grid-cell-contents">{{row.entity.item}}</div>' +
@@ -65,29 +64,37 @@ app.controller('thirdPartyCompanyCtrl', ["$rootScope", "$scope", "$state", "$tim
65 64
         {
66 65
             name: 'name',
67 66
             displayName: '公司名称',
68
-            width: '20%',
69
-            minWidth: '100',
67
+            width: '300',
68
+            enableFiltering: false
69
+        },
70
+        {
71
+            name: 'duty.dept',
72
+            displayName: '责任科室',
73
+            width: '200',
74
+            enableFiltering: false
75
+        },
76
+        {
77
+            name: 'code',
78
+            displayName: '公司编码',
79
+            width: '200',
70 80
             enableFiltering: false
71 81
         },
72 82
         {
73 83
             name: 'contacts',
74 84
             displayName: '公司联系人',
75
-            width: '20%',
76
-            minWidth: '100',
85
+            width: '100',
77 86
             enableFiltering: false
78 87
         },
79 88
         {
80
-            name: 'phone',
89
+            name: 'mphone',
81 90
             displayName: '联系人电话',
82
-            width: '20%',
83
-            minWidth: '120',
91
+            width: '200',
84 92
             enableFiltering: false
85 93
         },
86 94
         {
87 95
             name: 'serviceTypeNames',
88 96
             displayName: '公司服务种类',
89
-            width: '20%',
90
-            minWidth: '120',
97
+            width: '100',
91 98
             enableFiltering: false,
92 99
             // cellTemplate: '<div>' +
93 100
             //     '<div class="ui-grid-cell-contents">{{row.entity.userType.value == 2 ?row.entity.company.name:row.entity.userType.name}}</div>' +
@@ -95,8 +102,7 @@ app.controller('thirdPartyCompanyCtrl', ["$rootScope", "$scope", "$state", "$tim
95 102
         },
96 103
         {
97 104
             name: '操作',
98
-            width: '10%',
99
-            minWidth: '100',
105
+            width: '100',
100 106
             cellTemplate: '<div><div class="cl-effect-1 ui-grid-cell-contents pull-left">' +
101 107
                 '<a ng-click="grid.appScope.saveData(row.entity)" ng-show="grid.appScope.bianji" class="bianjifont">编辑</a>' +
102 108
                 '</div></div>',
@@ -119,7 +125,9 @@ app.controller('thirdPartyCompanyCtrl', ["$rootScope", "$scope", "$state", "$tim
119 125
             categoryTypeIds: data.categoryTypeIds,//故障现象
120 126
             contacts: data.contacts,//联系人
121 127
             id: data.id,//id
122
-            phone: data.phone,//联系电话
128
+            code: data.code,//code
129
+            duty: data.duty,//duty
130
+            mphone: data.mphone,//联系电话
123 131
             name: data.name,//公司名称
124 132
             startTime: data.startTime,//开始时间
125 133
             endTime: data.endTime,//结束时间

+ 2 - 2
assets/views/report/event_form.html

@@ -84,7 +84,7 @@
84 84
                         </div>
85 85
                     </div>
86 86
                     <!-- 院区 -->
87
-                    <div class="selectSj P-0 fl" ng-if="tap != 'SFGS'">
87
+                    <div class="selectSj P-0 fl">
88 88
                         <div class="selectSj-hd">院区:</div>
89 89
                         <ui-select class="sj-select" ng-model="own.branch" theme="bootstrap" ng-change="changeBranch()">
90 90
                             <ui-select-match placeholder="选择院区" allow-clear>
@@ -96,7 +96,7 @@
96 96
                         </ui-select>
97 97
                     </div>
98 98
                     <!-- 责任科室 -->
99
-                    <div class="selectSj P-0 fl" ng-if="tap != 'SFGS'">
99
+                    <div class="selectSj P-0 fl">
100 100
                         <div class="selectSj-hd">责任科室:</div>
101 101
                         <ui-select class="sj-select" ng-model="own.duty" theme="bootstrap" ng-change="changeDuty()">
102 102
                             <ui-select-match placeholder="选择责任科室" allow-clear>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1993 - 2612
bower_components/angular-ui-grid/ui-grid.css


Dosya farkı çok büyük olduğundan ihmal edildi
+ 24184 - 22823
bower_components/angular-ui-grid/ui-grid.js