seimin 9 months ago
parent
commit
afbdba2bd1

+ 1 - 1
assets/js/config.router.js

@@ -1432,7 +1432,7 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
1432 1432
 
1433 1433
             //管理事件>维修汇总单
1434 1434
             .state('app.incident.summaryDetail', {
1435
-                url: '/summaryDetail/{id}/{incidentId}/{dutyId}/{categoryId}',
1435
+                url: '/summaryDetail/{type}/{id}/{incidentId}/{dutyId}/{categoryId}',
1436 1436
                 templateUrl: "assets/views/inspect/summaryDetail.html",
1437 1437
                 resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'summaryDetailCtrl'),
1438 1438
                 title: 'inspection.LIST',

File diff suppressed because it is too large
+ 134 - 128
assets/js/controllers/file/jry_fileCtrl.js


File diff suppressed because it is too large
+ 61 - 59
assets/js/controllers/file/jry_indexesCtrl.js


+ 77 - 3
assets/js/controllers/incident/incidentCtrl.js

@@ -676,6 +676,9 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
676 676
                     }
677 677
                     $scope.my_data = convertParentToChildList(objects);
678 678
                     $scope.select_treedata = angular.copy($scope.my_data);
679
+
680
+                    var incidentParameter = sessionStorage.incidentParameter && JSON.parse(sessionStorage.incidentParameter);
681
+                    incidentParameter && selectItem(incidentParameter.searchkeys.levelCategory, $scope.select_treedata);
679 682
                 }
680 683
                 if ($scope.my_data.length > 0) {
681 684
                     $scope.doing_async = false;
@@ -759,14 +762,56 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
759 762
             if(window.sessionStorage.getItem('isGoyuqi') === 'yes'){
760 763
                 $scope.selectTypeChange(true);
761 764
             }else{
762
-                $scope.refreshData('expand-right', undefined, true);
765
+                var incidentParameter = sessionStorage.incidentParameter && JSON.parse(sessionStorage.incidentParameter);
766
+                if(incidentParameter){
767
+                    $scope.searchkeys = incidentParameter.searchkeys;
768
+                    $scope.searchstate = incidentParameter.searchstate;
769
+                    $scope.othcode = incidentParameter.othcode;
770
+                    $scope.postData = incidentParameter.postData;
771
+                    // selectItem(incidentParameter.searchkeys.levelCategory, $scope.select_treedata);
772
+                    if($scope.postData.idx){
773
+                        $scope.gridOptions.paginationCurrentPage = $scope.postData.idx + 1;
774
+                    }
775
+                    $scope.chiceIncident($scope.searchkeys,$scope.othcode.state,);
776
+                }else{
777
+                    $scope.refreshData('expand-right', undefined, true);
778
+                }
763 779
             }
764 780
         })
765 781
     }
766 782
 
783
+    function selectItem(pmodel, childrens) {
784
+        if (angular.isArray(pmodel)) {
785
+          angular.forEach(pmodel, function (index) {
786
+            if (index && index.id) {
787
+              angular.forEach(childrens, function (item) {
788
+                if (item.id == index.id) {
789
+                  item.selected = true;
790
+                }
791
+                if (item && item.children) {
792
+                  selectItem(pmodel, item.children);
793
+                }
794
+              });
795
+            }
796
+          });
797
+        } else {
798
+          if (pmodel && pmodel.id) {
799
+            angular.forEach(childrens, function (item) {
800
+              if (item.id == pmodel.id) {
801
+                item.selected = true;
802
+              }
803
+              if (item && item.children) {
804
+                selectItem(pmodel, item.children);
805
+              }
806
+            });
807
+          }
808
+        }
809
+      }
810
+
767 811
     $scope.clear = function () {
768 812
         $scope.searchkeys = {};
769 813
         $scope.othcode = {};
814
+        sessionStorage.removeItem('incidentParameter');
770 815
 
771 816
         $scope.try_async_load();
772 817
         defaultFilterData = {
@@ -1081,7 +1126,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1081 1126
         $scope.jry_idx = 0;
1082 1127
         $scope.jry_sum = 10;
1083 1128
         gridApi.pagination.on.paginationChanged($scope, function (newPage, pageSize) {
1084
-            var filtersData = $scope.memoryfilterData;
1129
+            var filtersData = $scope.memoryfilterData || {};
1085 1130
             filtersData.idx = newPage - 1;
1086 1131
             $scope.jry_idx = newPage - 1;
1087 1132
             filtersData.sum = pageSize;
@@ -2318,6 +2363,25 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2318 2363
         });
2319 2364
     }
2320 2365
 
2366
+    //汇总单
2367
+    $scope.toSummary = function (data) {
2368
+        console.log(data)
2369
+        console.log($scope.searchkeys)
2370
+        sessionStorage.incidentParameter = JSON.stringify({
2371
+            searchkeys: $scope.searchkeys,
2372
+            searchstate: $scope.searchstate,
2373
+            othcode: $scope.othcode,
2374
+            postData: $scope.postData,
2375
+        });
2376
+        $state.go("app.incident.summaryDetail", {
2377
+            type: 'incident.list',
2378
+            incidentId: data.id || '',
2379
+            categoryId: data.category ? data.category.id : '',
2380
+            dutyId: data.duty ? data.duty.id : '',
2381
+            id: data.summaryId || '',
2382
+        });
2383
+    };
2384
+
2321 2385
     if ($stateParams.model) {
2322 2386
         if (JSON.parse($stateParams.model).searchType && JSON.parse($stateParams.model).searchType != null) {
2323 2387
             $scope.searchstate = JSON.parse($stateParams.model).searchType;
@@ -2377,6 +2441,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2377 2441
         $scope.onChange('all', isInit);
2378 2442
     }
2379 2443
     //获取列表数据
2444
+    $scope.postData = {};
2380 2445
     $scope.refreshData = _.debounce(function (style, filterData, isInit) {
2381 2446
         $scope.ldloading[style.replace('-', '_')] = true;
2382 2447
         if (angular.isUndefined(filterData)) {
@@ -2443,7 +2508,7 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2443 2508
         }else{
2444 2509
             delete filterData.incident.candidateGroups;
2445 2510
         }
2446
-
2511
+        $scope.postData = filterData;
2447 2512
         // 调用接口-查列表
2448 2513
         api_user_data.fetchDataList('incident', filterData).then(function (data) {
2449 2514
             if (data.list) {
@@ -2540,6 +2605,7 @@ app.controller('IncidentOperCtrl', ['$rootScope', '$scope', '$state', function (
2540 2605
     $scope.assignFlag = false;//指派
2541 2606
     $scope.transferFlag = false;//转派
2542 2607
     $scope.shijianliebiao_duty = false;//设置责任科室
2608
+    $scope.shijianliebiao_summary = false;//汇总单
2543 2609
 
2544 2610
     for (var i = 0; i < loginUser.menu.length; i++) {
2545 2611
         if (loginUser.menu[i].link == "shijianliebiao_all") {
@@ -2572,6 +2638,9 @@ app.controller('IncidentOperCtrl', ['$rootScope', '$scope', '$state', function (
2572 2638
         if (loginUser.menu[i].link == "shijianliebiao_duty") {
2573 2639
             $scope.shijianliebiao_duty = true
2574 2640
         }
2641
+        if (loginUser.menu[i].link == "shijianliebiao_summary") {
2642
+            $scope.shijianliebiao_summary = true
2643
+        }
2575 2644
     }
2576 2645
     $scope.up = true;
2577 2646
     $scope.fuwutaiRenYuan = false;//服务台人员
@@ -2652,6 +2721,10 @@ app.controller('IncidentOperCtrl', ['$rootScope', '$scope', '$state', function (
2652 2721
     $scope.setDuty = function () {
2653 2722
         $scope.colobject.grid.appScope.setDuty($scope.item);
2654 2723
     }
2724
+    // 汇总单
2725
+    $scope.toSummary = function () {
2726
+        $scope.colobject.grid.appScope.toSummary($scope.item);
2727
+    }
2655 2728
 
2656 2729
     $scope.play = function () { //record
2657 2730
         $scope.colobject.grid.appScope.play($scope.item);
@@ -2685,6 +2758,7 @@ app.directive('incidentoperator', function () {
2685 2758
             '<a ng-click="toDetail(item)" class="bianjifont" >查看</a>' +
2686 2759
             '<a ng-click="changeCenter()" ng-show="jry_modify(item, user)" class="luyinfont">编辑</a>' +
2687 2760
             '<a ng-click="delSj()" ng-show="{{delFlag && item.deleteFlag !== 1}}" class="assign" >删除</a>' +
2761
+            '<a ng-click="toSummary()" ng-show="{{shijianliebiao_summary && item.state.value == \'close\' && item.duty.addSummary == 1 && item.summaryId && item.deleteFlag !== 1}}" class="assign" >汇总单</a>' +
2688 2762
             '<a ng-click="storageSj()" ng-show="{{storageFlag && item.state.value === \'storage\' && item.deleteFlag !== 1}}" class="assign" >继续创建</a><br>' +
2689 2763
             '<a ng-click="edit()"  ng-show="{{item.state.value == \'handler\' && item.handlingPersonnelUser && item.handlingPersonnelUser.id == user.id && chuli && item.deleteFlag !== 1}}"  class="bianjifont">处理</a>' +
2690 2764
             '<a ng-click="handler()" ng-show="{{item.state.value == \'pending\' && ((item.currentLog && item.currentLog.workerId == user.id) || item.tiquPower) && qiangdan && item.deleteFlag !== 1}}" class="bianjifont" >接单</a>' +

+ 80 - 35
assets/js/controllers/inspect/summaryCtrl.js

@@ -49,6 +49,7 @@ app.controller("summaryCtrl", [
49 49
     $scope.shanchu = false;
50 50
     $scope.shenhe = false;
51 51
     $scope.summary_recalculate = false;
52
+    $scope.summary_incident = false;
52 53
     for (var i = 0; i < loginUser.menu.length; i++) {
53 54
       if (loginUser.menu[i].link == "summary_chakan") {
54 55
         $scope.chakan = true;
@@ -62,6 +63,9 @@ app.controller("summaryCtrl", [
62 63
       if (loginUser.menu[i].link == "summary_recalculate") {
63 64
         $scope.summary_recalculate = true;
64 65
       }
66
+      if (loginUser.menu[i].link == "summary_incident") {
67
+        $scope.summary_incident = true;
68
+      }
65 69
     }
66 70
     var defaultFilterData = {
67 71
       idx: 0,
@@ -69,15 +73,15 @@ app.controller("summaryCtrl", [
69 73
       repairSummary:{}
70 74
     };
71 75
 
72
-    var repairSummaryParameter = {
73
-      idx: 0,
74
-      sum: 10,
75
-      operation: "",
76
-      status: "",
77
-      repairSummary: {},
78
-    };
76
+    // var repairSummaryParameter = {
77
+    //   idx: 0,
78
+    //   sum: 10,
79
+    //   operation: "",
80
+    //   status: "",
81
+    //   repairSummary: {},
82
+    // };
79 83
     //本地存储
80
-    sessionStorage.repairSummaryParameter = JSON.stringify(repairSummaryParameter);
84
+    // sessionStorage.repairSummaryParameter = JSON.stringify(repairSummaryParameter);
81 85
 
82 86
     $scope.memoryfilterData = {
83 87
       idx: 0,
@@ -88,6 +92,7 @@ app.controller("summaryCtrl", [
88 92
 
89 93
     $scope.gridOptions = {};
90 94
     $scope.gridOptions.data = "myData";
95
+    $scope.gridOptions.rowHeight = 54;
91 96
     $scope.gridOptions.enableColumnResizing = true;
92 97
     $scope.gridOptions.enableFiltering = false;
93 98
     $scope.gridOptions.enableGridMenu = true;
@@ -172,23 +177,30 @@ app.controller("summaryCtrl", [
172 177
         width: 50,
173 178
         enableFiltering: false,
174 179
       },
175
-
176 180
       {
177 181
         name: "incidentSign",
178
-        displayName: "事件单号",
182
+        displayName: "事件单号|报修科室",
183
+        width: "10%",
184
+        enableFiltering: false,
185
+        cellTemplate: '<div class="ui-grid-cell-contents">{{row.entity.incidentSign}}<br>{{row.entity.incidentDTO.department ? row.entity.incidentDTO.department.dept : "无"}}</div>'
186
+      },
187
+      {
188
+        name: "incidentSign1",
189
+        displayName: "登记时间|维修人",
179 190
         width: "10%",
180 191
         enableFiltering: false,
192
+        cellTemplate: '<div class="ui-grid-cell-contents">{{grid.appScope.transferTime(row.entity.incidentDTO.acceptDate)}}<br>{{row.entity.maintainer ? row.entity.maintainer.name : ""}}</div>'
181 193
       },
182 194
       {
183 195
         name: "description",
184
-        displayName: "故障描述",
196
+        displayName: "故障描述|区域地点",
185 197
         width: "400",
186 198
         enableFiltering: false,
187
-        // cellTemplate: '<div class="ui-grid-cell-contents">{{row.entity.planStartTime.length>16?grid.appScope.transferTime(row.entity.planStartTime):row.entity.planStartTime}}</div>'
199
+        cellTemplate: '<div class="ui-grid-cell-contents">{{row.entity.description}}<br>{{row.entity.incidentDTO.area ? row.entity.incidentDTO.area.area : ""}} {{row.entity.incidentDTO.place ? row.entity.incidentDTO.place.place : ""}}</div>'
188 200
       },
189 201
       {
190 202
         name: "maintainer",
191
-        displayName: "维修人",
203
+        displayName: "耗材名称",
192 204
         width: "10%",
193 205
         enableFiltering: false,
194 206
         cellTemplate: '<div class="ui-grid-cell-contents">{{row.entity.maintainer ? row.entity.maintainer.name : ""}}</div>'
@@ -200,23 +212,23 @@ app.controller("summaryCtrl", [
200 212
         enableFiltering: false,
201 213
         cellTemplate: '<div class="ui-grid-cell-contents">{{row.entity.totalMaintenancePrice || 0}}元</div>'
202 214
       },
215
+      // {
216
+      //   name: "createTime",
217
+      //   displayName: "生成时间",
218
+      //   width: "11%",
219
+      //   enableFiltering: false,
220
+      //   cellTemplate: '<div class="ui-grid-cell-contents">{{ grid.appScope.transferTime(row.entity.createTime) }}</div>'
221
+      // },
222
+      // {
223
+      //   name: "state",
224
+      //   displayName: "状态",
225
+      //   width: "6%",
226
+      //   enableFiltering: false,
227
+      //   cellTemplate:
228
+      //     '<div class="ui-grid-cell-contents"><span ng-if="row.entity.state == 1">暂存</span><span ng-if="row.entity.state == 2">未审核</span><span ng-if="row.entity.state == 3">审核通过</span></div>',
229
+      // },
203 230
       {
204
-        name: "createTime",
205
-        displayName: "生成时间",
206
-        width: "11%",
207
-        enableFiltering: false,
208
-        cellTemplate: '<div class="ui-grid-cell-contents">{{ grid.appScope.transferTime(row.entity.createTime) }}</div>'
209
-      },
210
-      {
211
-        name: "state",
212
-        displayName: "状态",
213
-        width: "6%",
214
-        enableFiltering: false,
215
-        cellTemplate:
216
-          '<div class="ui-grid-cell-contents"><span ng-if="row.entity.state == 1">暂存</span><span ng-if="row.entity.state == 2">未审核</span><span ng-if="row.entity.state == 3">审核通过</span></div>',
217
-      },
218
-      {
219
-        minWidth: "230",
231
+        minWidth: "250",
220 232
         name: "操作",
221 233
         enableFiltering: false,
222 234
         cellTemplate:
@@ -225,6 +237,7 @@ app.controller("summaryCtrl", [
225 237
           '<a ng-click="grid.appScope.removeData(row.entity)" ng-if="grid.appScope.shanchu" class="bianjifont">删除</a>' +
226 238
           '<a ng-click="grid.appScope.runFunction(row.entity)" ng-if="grid.appScope.shenhe && row.entity.state == 2" class="bianjifont">审核通过</a>' +
227 239
           '<a ng-click="grid.appScope.recalculate(row.entity)" ng-if="grid.appScope.summary_recalculate && (row.entity.state == 1 || row.entity.state == 2)" class="bianjifont">重算</a>' +
240
+          '<a ng-click="grid.appScope.toIncident(row.entity)" ng-if="grid.appScope.summary_incident" class="bianjifont">查看事件</a>' +
228 241
           "</div>",
229 242
       },
230 243
       // { name: 'planTime2', displayName: '截止时间', width: 160, enableFiltering: false },
@@ -241,7 +254,15 @@ app.controller("summaryCtrl", [
241 254
     //跳转到查看列表
242 255
     $scope.seeFunction = function (data) {
243 256
       console.log(data)
257
+      console.log($scope.searchkeys)
258
+      sessionStorage.summaryParameter = JSON.stringify(
259
+        {
260
+          searchkeys: $scope.searchkeys,
261
+          postData: $scope.postData,
262
+        }
263
+      );
244 264
       $state.go("app.incident.summaryDetail", {
265
+        type: 'incident.summary',
245 266
         incidentId: data.incidentId || '',
246 267
         categoryId: data.incidentCategoryId || '',
247 268
         dutyId: data.incidentDutyId || '',
@@ -361,6 +382,13 @@ app.controller("summaryCtrl", [
361 382
       });
362 383
     };
363 384
 
385
+    // 查看事件
386
+    $scope.toIncident = function(data){
387
+      $state.go('app.incident.incidentDetail', {
388
+        id: data.incidentId,
389
+      });
390
+    }
391
+
364 392
     //行删除
365 393
     $scope.removeData = function (item) {
366 394
       console.log($scope.selected.items);
@@ -453,16 +481,16 @@ app.controller("summaryCtrl", [
453 481
       gridApi.pagination.on.paginationChanged(
454 482
         $scope,
455 483
         function (newPage, pageSize) {
456
-          var filterData = JSON.parse(sessionStorage.repairSummaryParameter);
484
+          // var filterData = JSON.parse(sessionStorage.repairSummaryParameter);
457 485
           var filtersData = {};
458 486
           filtersData.idx = newPage - 1;
459 487
           filtersData.sum = pageSize;
460 488
           $scope.pageNum = $scope.gridApi.pagination.getPage() - 1;
461 489
           // console.log(pp);
462
-          filterData.idx = $scope.pageNum;
490
+          // filterData.idx = $scope.pageNum;
463 491
           $scope.fileData.idx = newPage - 1;
464 492
           $scope.fileData.sum = pageSize;
465
-          sessionStorage.repairSummaryParameter = JSON.stringify(filterData);
493
+          // sessionStorage.repairSummaryParameter = JSON.stringify(filterData);
466 494
           $scope.refreshData("expand-right", $scope.fileData);
467 495
         }
468 496
       );
@@ -529,7 +557,8 @@ app.controller("summaryCtrl", [
529 557
       gridApi.core.on.filterChanged($scope, function () {
530 558
         var grid = this.grid;
531 559
 
532
-        var filterData = JSON.parse(sessionStorage.repairSummaryParameter);
560
+        // var filterData = JSON.parse(sessionStorage.repairSummaryParameter);
561
+        var filterData = {};
533 562
 
534 563
         angular.forEach(grid.columns, function (item) {
535 564
           if (item.enableFiltering) {
@@ -545,7 +574,7 @@ app.controller("summaryCtrl", [
545 574
           }
546 575
         });
547 576
 
548
-        sessionStorage.repairSummaryParameter = JSON.stringify(filterData);
577
+        // sessionStorage.repairSummaryParameter = JSON.stringify(filterData);
549 578
         $scope.refreshData("expand-right", filterData);
550 579
       });
551 580
     };
@@ -557,6 +586,7 @@ app.controller("summaryCtrl", [
557 586
   }
558 587
 
559 588
     //数据刷新
589
+    $scope.postData = {};
560 590
     $scope.refreshData = function (style, filterData) {
561 591
       $scope.ldloading[style.replace("-", "_")] = true;
562 592
 
@@ -578,6 +608,7 @@ app.controller("summaryCtrl", [
578 608
         state: $scope.searchkeys.state ? $scope.searchkeys.state.id : undefined,
579 609
         maintainer: $scope.searchkeys.maintainer || undefined,
580 610
       })
611
+      $scope.postData = filterData;
581 612
       api_bpm_data.fetchDataList("repairSummary", filterData).then(
582 613
         function (data) {
583 614
           var myData = Restangular.stripRestangular(data);
@@ -644,6 +675,7 @@ app.controller("summaryCtrl", [
644 675
         state: $scope.searchkeys.state ? $scope.searchkeys.state.id : undefined,
645 676
         maintainer: $scope.searchkeys.maintainer || undefined,
646 677
       })
678
+      $scope.postData = filterData;
647 679
       api_bpm_data.fetchDataList("repairSummary", filterData).then(
648 680
         function (data) {
649 681
           var myData = Restangular.stripRestangular(data);
@@ -702,7 +734,7 @@ app.controller("summaryCtrl", [
702 734
     };
703 735
 
704 736
     $scope.refresh = function () {
705
-      var jry_filterData = JSON.parse(sessionStorage.repairSummaryParameter);
737
+      // var jry_filterData = JSON.parse(sessionStorage.repairSummaryParameter);
706 738
       var intervalData = {};
707 739
       intervalData.idx = jry_filterData.idx;
708 740
       intervalData.sum = jry_filterData.sum;
@@ -710,6 +742,19 @@ app.controller("summaryCtrl", [
710 742
       $scope.refreshData("expand-right", intervalData);
711 743
     };
712 744
 
745
+    // init
746
+    $scope.init = function(){
747
+      var summaryParameter = sessionStorage.summaryParameter && JSON.parse(sessionStorage.summaryParameter);
748
+      if(summaryParameter){
749
+        $scope.searchkeys = summaryParameter.searchkeys;
750
+        $scope.postData = summaryParameter.postData;
751
+        if($scope.postData.idx){
752
+          $scope.gridOptions.paginationCurrentPage = $scope.postData.idx + 1;
753
+        }
754
+      }
755
+    }
756
+    $scope.init();
757
+
713 758
     $scope.refreshData("expand-right", $scope.fileData);
714 759
     $scope.timer = $interval(function () {
715 760
       $scope.refreshData2("expand-right", $scope.fileData);

+ 3 - 2
assets/js/controllers/inspect/summaryDetailCtrl.js

@@ -75,6 +75,7 @@ app.controller("summaryDetailCtrl", [
75 75
     }
76 76
 
77 77
     // 获取信息
78
+    $scope.type = $stateParams.type;
78 79
     $scope.consumableList = [];
79 80
     $scope.incidentDTO = {};
80 81
     $scope.workHourManagementList = [];
@@ -101,8 +102,8 @@ app.controller("summaryDetailCtrl", [
101 102
     }
102 103
     $scope.getInfo();
103 104
     //返回列表
104
-    $scope.goToList = function(){
105
-      $state.go("app.incident.summary");
105
+    $scope.goToList = function(type){
106
+      $state.go("app." + type);
106 107
     }
107 108
     $scope.transferTime = function (time) {
108 109
       if(time){

+ 7 - 0
assets/js/controllers/mainCtrl.js

@@ -163,6 +163,13 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
163 163
         //     $scope.isShowTj = false;
164 164
         // }
165 165
       }
166
+      // 汇总单详情=>返回事件列表|返回汇总单列表
167
+      if(fromState.name !== 'app.incident.summaryDetail' && toState.name === 'app.incident.summary'){
168
+        sessionStorage.removeItem('summaryParameter');
169
+      }
170
+      if(fromState.name !== 'app.incident.summaryDetail' && toState.name === 'app.incident.list'){
171
+        sessionStorage.removeItem('incidentParameter');
172
+      }
166 173
       if($rootScope.isZncd || $rootScope.isXy){
167 174
         // 中南财大
168 175
         if ((toState.name == 'app.incident.chart' || toState.name == 'app.incident.editor') &&

+ 4 - 0
assets/js/main.js

@@ -599,6 +599,10 @@ app.factory('api_user_data', ['UserRestangular', function (UserRestangular) {
599 599
     var dataService = UserRestangular.all("user/data");
600 600
     var userService = UserRestangular.all("auth");
601 601
     return {
602
+        // 校验密码
603
+        checkDelFileDoc: function (data) {
604
+            return dataService.customPOST(data, 'checkDelFileDoc', {});
605
+        },
602 606
         cacheFresh: function (model) {
603 607
             return dataService.customPOST({}, 'cache/fresh/' + model, {});
604 608
         },

+ 5 - 5
assets/views/file/indexes.html

@@ -56,7 +56,7 @@
56 56
                     </div>
57 57
                     <div class="right">
58 58
                         <button class="search" ng-click="list_search()">搜索</button>
59
-                        <button class="clean" ng-click="clean()">清空</button>                       
59
+                        <button class="clean" ng-click="clean()">清空</button>
60 60
                     </div>
61 61
                 </div>
62 62
                 <div class="body">
@@ -87,7 +87,7 @@
87 87
                 </div>
88 88
                 <div>
89 89
                     <span class="left"></span><input type="text" class="file_name" placeholder="请输入文件夹名称" maxlength="20" ng-model="add_file_name">
90
-                </div>         
90
+                </div>
91 91
                 <div class="tit">
92 92
                     <span class="left"></span><span>是否有父类:</span>
93 93
                 </div>
@@ -147,7 +147,7 @@
147 147
         <!-- 确定删除弹框 -->
148 148
         <div class="deleteTree_box">
149 149
             <div class="head">提示</div>
150
-            <div class="body">               
150
+            <div class="body">
151 151
                 <div>请输入登录密码:</div>
152 152
                 <input type="password" class="password" ng-model="delete_password">
153 153
                 <div class="titsc"><i class="iconfont icon-gantan"></i>输入登录密码后,点击"确认",<span class="file_name">{{modify_data.label}}</span>文件夹以及<span class="file_name">{{modify_data.label}}</span>文件夹下的所有文件将被删除!</div>
@@ -201,7 +201,7 @@
201 201
         margin: 0 auto;
202 202
         display: flex;
203 203
         justify-content:center;
204
-        margin-top: 8px 
204
+        margin-top: 8px
205 205
     }
206 206
     .jry_box .folder .search input{
207 207
         border-radius: 4px 0 0 4px;
@@ -521,7 +521,7 @@
521 521
         background-color: white;
522 522
         border-radius: 2px;
523 523
         display: none
524
-        
524
+
525 525
     }
526 526
     .fix_back .deleteTree_box .head{
527 527
         height: 35px;

+ 11 - 11
assets/views/file/list.html

@@ -59,7 +59,7 @@
59 59
                     </div>
60 60
                     <div class="right">
61 61
                         <button class="search" ng-click="list_search()">搜索</button>
62
-                        <button class="clean" ng-click="clean()">清空</button>                       
62
+                        <button class="clean" ng-click="clean()">清空</button>
63 63
                     </div>
64 64
                     <!-- <input type="text"> -->
65 65
                 </div>
@@ -91,7 +91,7 @@
91 91
                 </div>
92 92
                 <div>
93 93
                     <span class="left"></span><input type="text" class="file_name" placeholder="请输入文件夹名称" maxlength="20" ng-model="add_file_name">
94
-                </div>         
94
+                </div>
95 95
                 <div class="tit">
96 96
                     <span class="left"></span><span>是否有父类:</span>
97 97
                 </div>
@@ -151,7 +151,7 @@
151 151
         <!-- 确定删除树弹框 -->
152 152
         <div class="deleteTree_box">
153 153
             <div class="head">提示</div>
154
-            <div class="body">               
154
+            <div class="body">
155 155
                 <div>请输入登录密码:</div>
156 156
                 <input type="password" class="password" ng-model="delete_password">
157 157
                 <div class="titsc"><i class="iconfont icon-gantan"></i>输入登录密码后,点击"确认",<span class="file_name">{{modify_data.label}}</span>文件夹以及<span class="file_name">{{modify_data.label}}</span>文件夹下的所有文件将被删除!</div>
@@ -164,7 +164,7 @@
164 164
         <!-- 确定删除文件弹框 -->
165 165
         <div class="deleteDoc_box">
166 166
             <div class="head">提示</div>
167
-            <div class="body">               
167
+            <div class="body">
168 168
                 <div>请输入登录密码:</div>
169 169
                 <input type="password" class="password" ng-model="delete_doc_password">
170 170
                 <div class="titsc"><i class="iconfont icon-gantan"></i>输入登录密码后,点击"确认",<span class="file_name">{{list_doc_name}}</span>文件以及文件下{{list_doc_version}}个版本将被删除!</div>
@@ -177,7 +177,7 @@
177 177
         <!-- 确认删除历史版本弹框 -->
178 178
         <div class="deleteVersion_box">
179 179
             <div class="head">提示</div>
180
-            <div class="body">               
180
+            <div class="body">
181 181
                 <div>请输入登录密码:</div>
182 182
                 <input type="password" class="password" ng-model="delete_version_password">
183 183
                 <div class="titsc"><i class="iconfont icon-gantan"></i>输入登录密码后,点击"确认",该历史版本将被删除!</div>
@@ -256,7 +256,7 @@
256 256
         height: 25px;
257 257
         line-height: 25px;
258 258
         font-size: 16px;
259
-        
259
+
260 260
     }
261 261
     .jry_box .folder{
262 262
         border:1px rgb(185, 184, 184) solid;
@@ -309,7 +309,7 @@
309 309
         margin: 0 auto;
310 310
         display: flex;
311 311
         justify-content:center;
312
-        margin-top: 8px 
312
+        margin-top: 8px
313 313
     }
314 314
     .jry_box .folder .search input{
315 315
         border-radius: 4px 0 0 4px;
@@ -498,7 +498,7 @@
498 498
         color: white
499 499
     }
500 500
     /* .fix_back .add_new_box .foot button:nth-child(1){
501
-        
501
+
502 502
     } */
503 503
     .fix_back .add_new_box .foot button:nth-child(2){
504 504
         border:1px rgb(230,230,230) solid;
@@ -711,7 +711,7 @@
711 711
         background-color: white;
712 712
         border-radius: 2px;
713 713
         display: none
714
-        
714
+
715 715
     }
716 716
     .fix_back .deleteTree_box .head{
717 717
         height: 35px;
@@ -789,7 +789,7 @@
789 789
         background-color: white;
790 790
         border-radius: 2px;
791 791
         display: none
792
-        
792
+
793 793
     }
794 794
     .fix_back .deleteDoc_box .head{
795 795
         height: 35px;
@@ -867,7 +867,7 @@
867 867
         background-color: white;
868 868
         border-radius: 2px;
869 869
         display: none
870
-        
870
+
871 871
     }
872 872
     .fix_back .deleteVersion_box .head{
873 873
         height: 35px;

+ 7 - 3
assets/views/inspect/summary.html

@@ -153,18 +153,22 @@
153 153
     }
154 154
 
155 155
     .ui-grid-row:nth-child(even) .ui-grid-cell {
156
-        background: #fafafa;
156
+        /* background: #fafafa; */
157 157
         display: flex;
158
-        justify-content: center;
158
+        /* justify-content: center; */
159 159
         align-items: center;
160 160
     }
161 161
 
162 162
     .ui-grid-row:nth-child(odd) .ui-grid-cell {
163 163
         display: flex;
164
-        justify-content: center;
164
+        /* justify-content: center; */
165 165
         align-items: center;
166 166
     }
167 167
 
168
+    .ui-grid-cell-contents{
169
+        height: auto;
170
+    }
171
+
168 172
     .ui-grid-row .ui-grid-cell:last-of-type {
169 173
         justify-content: flex-start;
170 174
     }

+ 2 - 1
assets/views/inspect/summaryDetail.html

@@ -346,7 +346,8 @@
346 346
             <div class="totalPrice" style="font-size: 16px;">汇总单总价:{{ totalMaintenancePrice }}元</div>
347 347
             <div class="btnWrap">
348 348
                 <div class="btn btn_search" ng-click="goToIncident()"><span>查看事件</span></div>
349
-                <div class="btn btn_search" style="margin-left: 8px;" ng-click="goToList()"><span>返回列表</span></div>
349
+                <div class="btn btn_search" style="margin-left: 8px;" ng-click="goToList(type)" ng-if="type === 'incident.summary'"><span>返回汇总单列表</span></div>
350
+                <div class="btn btn_search" style="margin-left: 8px;" ng-click="goToList(type)" ng-if="type === 'incident.list'"><span>返回事件列表</span></div>
350 351
             </div>
351 352
         </div>
352 353
     </div>