浏览代码

责任部门管理

seimin 3 年之前
父节点
当前提交
bc73bfc543

+ 1 - 1
assets/js/controllers/dashboard/largedashboard.js

@@ -95,7 +95,7 @@ app.controller('watchMapCtrl', ['$rootScope', '$scope', '$http', '$state', '$mod
95 95
     //初始化地图上的点
96 96
 
97 97
     function initPointer() {
98
-        // var data = [{ "id": 1, "area": "主校区", "x": 625, "y": 420 }, { "id": 2, "area": "东校区", "x": 650, "y": 250 }, { "id": 3, "area": "同济校区", "x": 250, "y": 350 }, { "id": 4, "area": "商学院", "x": 426, "y": 500 }]
98
+        // var data = [{ "id": 1, "area": "主院区", "x": 625, "y": 420 }, { "id": 2, "area": "东院区", "x": 650, "y": 250 }, { "id": 3, "area": "同济院区", "x": 250, "y": 350 }, { "id": 4, "area": "商学院", "x": 426, "y": 500 }]
99 99
         // var url = "192.168.3.19:8080/service/api/bpm/bpm/getWatchAreaPosition";
100 100
         // $.getJSON(url, function(data) {
101 101
         api_bpm_domain.getWatchAreaPosition().then(function(data) {

+ 7 - 7
assets/js/controllers/system/hospitalCtrl.js

@@ -81,13 +81,13 @@ app.controller("hospitalCtrl", [
81 81
       },
82 82
       {
83 83
         name: "hosName",
84
-        displayName: "区名称",
84
+        displayName: "区名称",
85 85
         width: "35%",
86 86
         enableFiltering: false,
87 87
       },
88 88
       {
89 89
         name: "hosNo",
90
-        displayName: "区编码",
90
+        displayName: "区编码",
91 91
         width: "35%",
92 92
         enableFiltering: false,
93 93
       },
@@ -142,7 +142,7 @@ app.controller("hospitalCtrl", [
142 142
         controller: function ($scope, scope, $modalInstance, api_user_data) {
143 143
           $scope.hospital = {};
144 144
           $scope.hospital = selectdata;
145
-          $scope.title = "区编辑";
145
+          $scope.title = "区编辑";
146 146
           $scope.cancel = function () {
147 147
             $modalInstance.dismiss("cancel");
148 148
           };
@@ -174,7 +174,7 @@ app.controller("hospitalCtrl", [
174 174
                       SweetAlert.swal(
175 175
                         {
176 176
                           title: "修改失败!",
177
-                          text: "该区已存在",
177
+                          text: "该区已存在",
178 178
                           type: "error",
179 179
                         },
180 180
                         function () {
@@ -230,7 +230,7 @@ app.controller("hospitalCtrl", [
230 230
       var modalInstance = $modal.open({
231 231
         templateUrl: "assets/views/system/tpl/hospitalchange.html",
232 232
         controller: function ($scope, $modalInstance, api_user_data) {
233
-          $scope.title = "区新增";
233
+          $scope.title = "区新增";
234 234
           $scope.cancel = function () {
235 235
             $modalInstance.dismiss("cancel");
236 236
           };
@@ -301,8 +301,8 @@ app.controller("hospitalCtrl", [
301 301
         templateUrl: "assets/views/incident/tpl/acceptTask.tpl.html",
302 302
         controller: function ($scope, scope, $modalInstance, api_bpm_data) {
303 303
           var rmvList = [];
304
-          $scope.title = "区删除";
305
-          $scope.connect = "确定要删除此区?";
304
+          $scope.title = "区删除";
305
+          $scope.connect = "确定要删除此区?";
306 306
           rmvList.push(rmData);
307 307
           $scope.ok = function () {
308 308
             $modalInstance.close(rmvList);

+ 55 - 172
assets/js/controllers/system/organizationdesign/responsibilityDeptCtrl.js

@@ -62,7 +62,8 @@ app.controller("responsibilityDeptlistCtrl", [
62 62
     $scope.gridOptions.paginationPageSize = 10;
63 63
     $scope.gridOptions.multiSelect = false;
64 64
 
65
-    $scope.gridOptions.rowTemplate= "<div ng-dblclick=\"grid.appScope.onDblClick(row)\" ng-repeat=\"(colRenderIndex, col) in colContainer.renderedColumns track by col.uid\" ui-grid-one-bind-id-grid=\"rowRenderIndex + '-' + col.uid + '-cell'\" class=\"ui-grid-cell\" ng-class=\"{ 'ui-grid-row-header-cell': col.isRowHeader }\" role=\"{{col.isRowHeader ? 'rowheader' : 'gridcell'}}\" ui-grid-cell></div>";
65
+    $scope.gridOptions.rowTemplate =
66
+      '<div ng-dblclick="grid.appScope.onDblClick(row)" ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.uid" ui-grid-one-bind-id-grid="rowRenderIndex + \'-\' + col.uid + \'-cell\'" class="ui-grid-cell" ng-class="{ \'ui-grid-row-header-cell\': col.isRowHeader }" role="{{col.isRowHeader ? \'rowheader\' : \'gridcell\'}}" ui-grid-cell></div>';
66 67
 
67 68
     $scope.gridOptions.rowIdentity = function (row) {
68 69
       return row.id;
@@ -85,14 +86,10 @@ app.controller("responsibilityDeptlistCtrl", [
85 86
         enableFiltering: false,
86 87
       },
87 88
       {
88
-        name: "parent.dept",
89
-        displayName: "单位",
89
+        name: "branchName",
90
+        displayName: "院区",
90 91
         width: "20%",
91 92
         enableFiltering: false,
92
-        cellTemplate:
93
-          "<div>" +
94
-          '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center">{{grid.appScope.transferDept(row.entity.parent.dept)}}</div>' +
95
-          "</div>",
96 93
       },
97 94
       {
98 95
         name: "phone",
@@ -100,16 +97,6 @@ app.controller("responsibilityDeptlistCtrl", [
100 97
         width: "20%",
101 98
         enableFiltering: false,
102 99
       },
103
-      {
104
-        name: "area",
105
-        displayName: "区域地点",
106
-        width: "20%",
107
-        enableFiltering: false,
108
-        cellTemplate:
109
-          "<div>" +
110
-          '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center">{{row.entity.place.area.area+""+row.entity.place.place}}</div>' +
111
-          "</div>",
112
-      },
113 100
       {
114 101
         name: "操作",
115 102
         cellTemplate:
@@ -128,94 +115,46 @@ app.controller("responsibilityDeptlistCtrl", [
128 115
         return "无";
129 116
       }
130 117
     };
131
-    // 区域
132
-    $scope.getArea = function () {
133
-      var fildata = {
134
-        idx: 0,
135
-        sum: 1000,
136
-      };
137
-      api_user_data.fetchDataList("area", fildata).then(function (res) {
138
-        $scope.areaData = res.list;
139
-      });
140
-    };
141
-    $scope.getArea();
142
-    // 选择区域带出地点
143
-    $scope.changeArea = function (item) {
144
-      $scope.getPlace(item.id);
145
-    };
146
-    // 地点
147
-    $scope.getPlace = function (areaId) {
148
-      var fildata = {
149
-        idx: 0,
150
-        sum: 1000,
151
-        place: { area: { id: areaId } },
152
-      };
153
-      api_user_data.fetchDataList("place", fildata).then(function (res) {
154
-        $scope.placeData = res.list;
155
-      });
156
-    };
157 118
     $scope.saveData = function (selectdata) {
158 119
       console.log(selectdata);
159 120
       var modalInstance = $modal.open({
160
-        templateUrl: "assets/views/system/tpl/deptchange.html",
121
+        templateUrl: "assets/views/system/tpl/responsibilityDeptchange.html",
161 122
         controller: function ($scope, scope, $modalInstance, api_user_data) {
162
-          $scope.deptdata = {};
163
-          $scope.deptdata = selectdata;
164
-          $scope.areaData = scope.areaData;
165
-          $scope.deptchoice = {};
166
-          $scope.title = "部门修改";
167
-          var filterData = { idx: 0, sum: 100 };
123
+          $scope.deptdata = {
124
+            id: selectdata.id,
125
+            dept: selectdata.dept,
126
+            phone: selectdata.phone,
127
+            branch: { id: selectdata.branch, hosName: selectdata.branchName },
128
+          };
129
+          $scope.branchList = [];
130
+          $scope.title = "责任部门修改";
168 131
           api_user_data
169
-            .fetchDataList("department", filterData)
132
+            .fetchDataList("branch", { idx: 0, sum: 100 })
170 133
             .then(function (data) {
171
-              $scope.deptchoice = Restangular.stripRestangular(data).list;
134
+              $scope.branchList = Restangular.stripRestangular(data).list;
172 135
             });
173 136
           $scope.cancel = function () {
174 137
             $modalInstance.dismiss("cancel");
175 138
           };
176
-
177
-          $scope.changeArea = function (item) {
178
-            var postData = {
179
-              idx: 0,
180
-              sum: 1000,
181
-            };
182
-            if (item) {
183
-              postData.place = { area: { id: item.id } };
184
-            }
185
-            api_user_data
186
-              .fetchDataList("place", postData)
187
-              .then(function (data) {
188
-                $scope.placeData = Restangular.stripRestangular(data).list;
189
-              });
190
-          };
191
-          $scope.changeArea(selectdata.area);
139
+          // 保存
192 140
           $scope.savercode = function (deptdata) {
193 141
             if (
194 142
               deptdata &&
195 143
               deptdata.dept &&
196 144
               deptdata.phone &&
197
-              deptdata.area &&
198
-              deptdata.place
145
+              deptdata.branch
199 146
             ) {
200 147
               var fildata = {
201
-                department: {
148
+                dutyDepartment: {
202 149
                   id: deptdata.id,
203
-                  area: { id: deptdata.area.id },
204
-                  place: {
205
-                    id: deptdata.place.id,
206
-                    area: { id: deptdata.area.id },
207
-                  },
208 150
                   deleteFlag: 0,
209 151
                   phone: deptdata.phone,
210 152
                   dept: deptdata.dept,
153
+                  branch: deptdata.branch.id,
211 154
                 },
212 155
               };
213
-              if (deptdata.parent) {
214
-                fildata.department.parent = { id: deptdata.parent.id };
215
-              }
216
-              // console.log(fildata)
217 156
               api_user_data
218
-                .updData("department", fildata)
157
+                .updData("dutyDepartment", fildata)
219 158
                 .then(function (response) {
220 159
                   if (response) {
221 160
                     if (response.status == 200) {
@@ -286,31 +225,29 @@ app.controller("responsibilityDeptlistCtrl", [
286 225
 
287 226
     $scope.addData = function () {
288 227
       var modalInstance = $modal.open({
289
-        templateUrl: "assets/views/system/tpl/deptchange.html",
228
+        templateUrl: "assets/views/system/tpl/responsibilityDeptchange.html",
290 229
         controller: function ($scope, $modalInstance, api_user_data) {
291
-          var filterData = { idx: 0, sum: 100 };
292
-          $scope.title = "部门新增";
230
+          $scope.deptdata = {
231
+            dept: "",
232
+            phone: "",
233
+            branch: "",
234
+          };
235
+          $scope.title = "责任部门新增";
293 236
           api_user_data
294
-            .fetchDataList("department", filterData)
237
+            .fetchDataList("branch", { idx: 0, sum: 100 })
295 238
             .then(function (data) {
296
-              $scope.deptchoice = Restangular.stripRestangular(data).list;
239
+              $scope.branchList = Restangular.stripRestangular(data).list;
297 240
             });
298
-          api_user_data.fetchDataList("area", filterData).then(function (data) {
299
-            $scope.areaData = Restangular.stripRestangular(data).list;
300
-          });
301
-          // api_wechatfile.getDictionary('department').then(function(data) {
302
-          //     $scope.deptchoice = Restangular.stripRestangular(data).list;
303
-          // })
304 241
           $scope.cancel = function () {
305 242
             $modalInstance.dismiss("cancel");
306 243
           };
244
+          // 保存
307 245
           $scope.savercode = function (deptdata) {
308 246
             if (
309 247
               deptdata &&
310 248
               deptdata.dept &&
311 249
               deptdata.phone &&
312
-              deptdata.area &&
313
-              deptdata.place
250
+              deptdata.branch
314 251
             ) {
315 252
               $modalInstance.close(deptdata);
316 253
             } else {
@@ -325,50 +262,19 @@ app.controller("responsibilityDeptlistCtrl", [
325 262
               );
326 263
             }
327 264
           };
328
-          $scope.changeArea = function (item) {
329
-            var postData = {
330
-              idx: 0,
331
-              place: { area: { id: item.id } },
332
-              sum: 1000,
333
-            };
334
-            api_user_data
335
-              .fetchDataList("place", postData)
336
-              .then(function (data) {
337
-                $scope.placeData = Restangular.stripRestangular(data).list;
338
-              });
339
-          };
340 265
         },
341 266
       });
342 267
       modalInstance.result.then(function (selectedItem) {
343
-        if (
344
-          selectedItem.dept &&
345
-          selectedItem.phone &&
346
-          selectedItem.area &&
347
-          selectedItem.place
348
-        ) {
349
-          // angular.forEach($scope.myData,function(item){
350
-          //    if(item.dept==selectedItem.parent.dept){
351
-          //        selectedItem.parent.id=item.id;
352
-          //    }
353
-          // })
354
-
268
+        if (selectedItem.dept && selectedItem.phone && selectedItem.branch) {
355 269
           var fildata = {
356
-            department: {
270
+            dutyDepartment: {
357 271
               phone: selectedItem.phone,
358
-              area: { id: selectedItem.area.id },
359
-              place: {
360
-                id: selectedItem.place.id,
361
-                area: { id: selectedItem.area.id },
362
-              },
363 272
               dept: selectedItem.dept,
273
+              branch: selectedItem.branch.id,
364 274
             },
365 275
           };
366
-          if (selectedItem.parent) {
367
-            fildata.department.parent = { id: selectedItem.parent.id };
368
-          }
369
-          // console.log(fildata)
370 276
           api_user_data
371
-            .addData("department", fildata)
277
+            .addData("dutyDepartment", fildata)
372 278
             .then(function (response) {
373 279
               if (response) {
374 280
                 if (response.status == 200) {
@@ -432,7 +338,7 @@ app.controller("responsibilityDeptlistCtrl", [
432 338
         if (selectedItem) {
433 339
           if (selectedItem.length > 0) {
434 340
             console.log(selectedItem);
435
-            if (selectedItem[0].children.length > 0) {
341
+            if (selectedItem[0].children && selectedItem[0].children.length > 0) {
436 342
               SweetAlert.swal({
437 343
                 title: "该部门存在子类部门",
438 344
                 text: "请先删除该部门子类部门!",
@@ -440,7 +346,7 @@ app.controller("responsibilityDeptlistCtrl", [
440 346
               });
441 347
             } else {
442 348
               api_user_data
443
-                .rmvData("department", [selectedItem[0].id])
349
+                .rmvData("dutyDepartment", [selectedItem[0].id])
444 350
                 .then(function (response) {
445 351
                   if (response.status == 200) {
446 352
                     SweetAlert.swal(
@@ -476,33 +382,6 @@ app.controller("responsibilityDeptlistCtrl", [
476 382
       });
477 383
     };
478 384
 
479
-    // $scope.removeData = function() {
480
-    //     var rmvList = [$scope.selected.items.id]
481
-    //     if (rmvList.length > 0) {
482
-    //         api_user_data.rmvData('department', rmvList).then(function(response) {
483
-    //             if (response.status == 200) {
484
-    //                 SweetAlert.swal({
485
-    //                     title: "删除成功!",
486
-    //                     type: "success",
487
-    //                     confirmButtonColor: "#007AFF"
488
-    //                 }, function() {
489
-    //                     $scope.myData = _.reject($scope.myData, function(o) { return _.includes(rmvList, o.id); });
490
-    //                     $scope.selected = {
491
-    //                         items: []
492
-    //                     };
493
-    //                 });
494
-
495
-    //             } else {
496
-    //                 SweetAlert.swal({
497
-    //                     title: "操作异常!",
498
-    //                     text: "系统异常,请稍后重试,或者联系管理员!",
499
-    //                     type: "error"
500
-    //                 });
501
-    //             }
502
-    //         })
503
-    //     }
504
-    // }
505
-
506 385
     $scope.selected = {
507 386
       items: [],
508 387
     };
@@ -545,7 +424,7 @@ app.controller("responsibilityDeptlistCtrl", [
545 424
     $scope.fileData = {
546 425
       idx: 0,
547 426
       sum: 10,
548
-      department: {},
427
+      dutyDepartment: {},
549 428
     };
550 429
     $scope.ldloading = {};
551 430
     $scope.refreshData = function (style, filterData) {
@@ -560,7 +439,11 @@ app.controller("responsibilityDeptlistCtrl", [
560 439
       if ($scope.gridApi) {
561 440
         $scope.gridApi.grid.selection.selectedCount = 0;
562 441
       }
563
-      api_user_data.fetchDataList("department", filterData).then(
442
+      filterData = angular.copy(filterData);
443
+      if(filterData.dutyDepartment.branch){
444
+        filterData.dutyDepartment.branch = filterData.dutyDepartment.branch.id;
445
+      }
446
+      api_user_data.fetchDataList("dutyDepartment", filterData).then(
564 447
         function (data) {
565 448
           var myData = Restangular.stripRestangular(data);
566 449
           $scope.gridOptions.totalItems = myData.totalNum;
@@ -587,7 +470,11 @@ app.controller("responsibilityDeptlistCtrl", [
587 470
       if ($scope.gridApi) {
588 471
         $scope.gridApi.grid.selection.selectedCount = 0;
589 472
       }
590
-      api_user_data.fetchDataList("department", filterData).then(
473
+      filterData = angular.copy(filterData);
474
+      if(filterData.dutyDepartment.branch){
475
+        filterData.dutyDepartment.branch = filterData.dutyDepartment.branch.id;
476
+      }
477
+      api_user_data.fetchDataList("dutyDepartment", filterData).then(
591 478
         function (data) {
592 479
           var myData = Restangular.stripRestangular(data);
593 480
           $scope.gridOptions.totalItems = myData.totalNum;
@@ -608,25 +495,21 @@ app.controller("responsibilityDeptlistCtrl", [
608 495
     };
609 496
     // 清空
610 497
     $scope.clean = function () {
611
-      delete $scope.fileData.department.dept;
612
-      delete $scope.fileData.department.address;
613
-      delete $scope.fileData.department.phone;
614
-      delete $scope.fileData.department.parent;
615
-      delete $scope.fileData.department.area;
616
-      delete $scope.fileData.department.place;
498
+      delete $scope.fileData.dutyDepartment.dept;
499
+      delete $scope.fileData.dutyDepartment.phone;
500
+      delete $scope.fileData.dutyDepartment.branch;
617 501
       $scope.refreshData("expand-right", $scope.fileData);
618 502
     };
619
-    // 获取单位下拉
503
+    // 获取院区下拉
620 504
     $scope.model = {};
621
-    $scope.deptData = {};
505
+    $scope.branchData = [];
622 506
     $scope.getDeptData = function () {
623 507
       var data = {
624 508
         idx: 0,
625 509
         sum: 1000,
626 510
       };
627
-      api_user_data.fetchDataList("department", data).then(function (res) {
628
-        $scope.deptData = res.list;
629
-        // console.log($scope.deptData)
511
+      api_user_data.fetchDataList("branch", data).then(function (res) {
512
+        $scope.branchData = res.list;
630 513
       });
631 514
     };
632 515
     $scope.getDeptData();

+ 2 - 2
assets/views/system/hospital.html

@@ -35,8 +35,8 @@
35 35
   <div class="row">
36 36
     <div class="col-sm-8">
37 37
       <h1 class="mainTitle">
38
-        区设置<i
39
-          tooltip="新增或编辑区。"
38
+        区设置<i
39
+          tooltip="新增或编辑区。"
40 40
           tooltip-placement="right"
41 41
           class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"
42 42
         ></i>

+ 121 - 118
assets/views/system/organization/responsibilityDept.html

@@ -1,134 +1,137 @@
1
-<!-- <section id="page-title">
2
-    <div class="row">
3
-        <div class="col-sm-8">
4
-            <h1 class="mainTitle">部门设置</h1><span class="mainDescription">新增或编辑部门</span></div>
5
-    </div>
6
-</section> -->
7 1
 <style type="text/css">
8
-    .incidentsearch {
9
-        width: 30% !important;
10
-        margin-right: 16px
11
-    }
2
+  .incidentsearch {
3
+    width: 30% !important;
4
+    margin-right: 16px;
5
+  }
12 6
 
13
-    .iptSize {
14
-        width: 60% !important;
15
-        height: 28px !important;
16
-    }
7
+  .iptSize {
8
+    width: 60% !important;
9
+    height: 28px !important;
10
+  }
17 11
 
18
-    .tree-control .tree-input {
19
-        min-height: 28px !important;
20
-        /* width: 60%!important */
21
-    }
12
+  .tree-control .tree-input {
13
+    min-height: 28px !important;
14
+    /* width: 60%!important */
15
+  }
22 16
 
23
-    .clean {
24
-        border: 1px rgb(0, 83, 149) solid !important;
25
-        color: rgb(0, 83, 149) !important;
26
-        background-color: rgb(230, 238, 244) !important;
27
-        height: 28px !important;
28
-        width: 80px
29
-    }
17
+  .clean {
18
+    border: 1px rgb(0, 83, 149) solid !important;
19
+    color: rgb(0, 83, 149) !important;
20
+    background-color: rgb(230, 238, 244) !important;
21
+    height: 28px !important;
22
+    width: 80px;
23
+  }
30 24
 
31
-    .searchBtnBox {
32
-        padding-top: 10px;
33
-    }
25
+  .searchBtnBox {
26
+    padding-top: 10px;
27
+  }
34 28
 
35
-    .searchBtnBox>.btn {
36
-        margin: 0 8px 10px 0;
37
-    }
29
+  .searchBtnBox > .btn {
30
+    margin: 0 8px 10px 0;
31
+  }
38 32
 </style>
39 33
 <section id="page-title">
40
-    <div class="row">
41
-        <div class="col-sm-8">
42
-            <h1 class="mainTitle">责任部门设置<i tooltip='新增或编辑责任部门。' tooltip-placement="right"
43
-                    class="fa  ti-help-alt margin-left-10 fontcolor-five pointfont"></i></h1>
44
-        </div>
34
+  <div class="row">
35
+    <div class="col-sm-8">
36
+      <h1 class="mainTitle">
37
+        责任部门设置<i
38
+          tooltip="新增或编辑责任部门。"
39
+          tooltip-placement="right"
40
+          class="fa ti-help-alt margin-left-10 fontcolor-five pointfont"
41
+        ></i>
42
+      </h1>
45 43
     </div>
44
+  </div>
46 45
 </section>
47 46
 <div ng-controller="responsibilityDeptlistCtrl">
48
-    <!-- <div class="row margin-top-10 margin-bottom-10">
49
-        <div class="col-xs-12">
50
-            <div style="float:left;display:inline">
51
-                <a ladda="ldloading.expand_right" class="btn btn-primary" data-style="expand-right" ng-click="refreshData('expand-right')"><span translate="list.button.REFRESH">Refresh Data</span><i class="ti-reload"/></a>
52
-                <button type="button" id="addData" class="btn btn-success" ng-click="addData()"><span translate="list.button.CREATE">Add Data</span><i class="ti-plus"/></button>
53
-                <button type="button" id="removeData" class="btn btn-warning" ng-click="removeData()" ng-disabled="selected.items.length==0"><span translate="list.button.REMOVE">Remove First Row</span><i class="ti-trash"/></button>
47
+  <div class="schuback" id="searchid">
48
+    <div class="row" style="padding-right: 0px !important">
49
+      <form class="col-xs-12 form-inline">
50
+        <div class="col-xs-10">
51
+          <div class="form-group incidentsearch">
52
+            <div>
53
+              <div class="control-label pull-left" style="padding-top: 4px">
54
+                部门:
55
+              </div>
56
+              <input
57
+                class="form-control pull-right inputcolor iptSize"
58
+                style="border-color: #dedede; color: #93989e"
59
+                type="text"
60
+                ng-model="fileData.dutyDepartment.dept"
61
+                placeholder=""
62
+              />
54 63
             </div>
64
+          </div>
65
+          <div class="form-group incidentsearch">
66
+            <div>
67
+              <div class="control-label pull-left" style="padding-top: 4px">
68
+                部门电话:
69
+              </div>
70
+              <input
71
+                class="form-control pull-right inputcolor iptSize"
72
+                style="border-color: #dedede; color: #93989e"
73
+                type="text"
74
+                ng-model="fileData.dutyDepartment.phone"
75
+                placeholder=""
76
+              />
77
+            </div>
78
+          </div>
79
+          <div class="form-group incidentsearch">
80
+            <div class="pull-left" style="padding-top: 4px">院区:</div>
81
+            <ui-select
82
+              class="pull-right iptSize"
83
+              ng-model="fileData.dutyDepartment.branch"
84
+              theme="bootstrap"
85
+            >
86
+              <ui-select-match placeholder="">
87
+                {{$select.selected.hosName}}
88
+              </ui-select-match>
89
+              <ui-select-choices repeat="item in branchData">
90
+                <div
91
+                  ng-bind-html="item.hosName | highlight: $select.search"
92
+                ></div>
93
+              </ui-select-choices>
94
+            </ui-select>
95
+          </div>
55 96
         </div>
56
-    </div> -->
57
-    <div class=" schuback" id="searchid">
58
-        <div class="row" style="padding-right: 0px !important;">
59
-            <form class="col-xs-12 form-inline ">
60
-                <div class="col-xs-10">
61
-                    <div class="form-group incidentsearch">
62
-                        <div>
63
-                            <div class="control-label pull-left" style="padding-top:4px">部门:</div>
64
-                            <input class="form-control pull-right inputcolor iptSize"
65
-                                style="border-color: #dedede;color: #93989e;" type="text"
66
-                                ng-model="fileData.department.dept" placeholder="" />
67
-                        </div>
68
-                    </div>
69
-                    <div class="form-group incidentsearch">
70
-                        <div>
71
-                            <div class="control-label pull-left" style="padding-top:4px">部门电话:</div>
72
-                            <input class="form-control pull-right inputcolor iptSize"
73
-                                style="border-color: #dedede;color: #93989e;" type="text"
74
-                                ng-model="fileData.department.phone" placeholder="" />
75
-                        </div>
76
-                    </div>
77
-                    <!-- <div class="form-group incidentsearch ">
78
-                        <div class=" pull-left" style="padding-top:4px">单位:</div>
79
-                        <ui-select class="pull-right iptSize" ng-model="fileData.department.parent" theme="bootstrap">
80
-                            <ui-select-match placeholder="">
81
-                                {{$select.selected.dept}}
82
-                            </ui-select-match>
83
-                            <ui-select-choices repeat="item in deptData">
84
-                                <div ng-bind-html="item.dept | highlight: $select.search"></div>
85
-                            </ui-select-choices>
86
-                        </ui-select>
87
-                    </div>
88
-                    <div class="form-group incidentsearch">
89
-                        <div>
90
-                            <div class="control-label pull-left" style="padding-top:4px">区域:</div>
91
-                            <ui-select class="pull-right iptSize" ng-model="fileData.department.area" ng-change="changeArea($select.selected)" theme="bootstrap">
92
-                                <ui-select-match placeholder="">
93
-                                    {{$select.selected.area}}
94
-                                </ui-select-match>
95
-                                <ui-select-choices repeat="item in areaData">
96
-                                    <div ng-bind-html="item.area | highlight: $select.search"></div>
97
-                                </ui-select-choices>
98
-                            </ui-select>
99
-                        </div>
100
-                    </div>
101
-                    <div class="form-group incidentsearch">
102
-                        <div>
103
-                            <div class="control-label pull-left" style="padding-top:4px">地点:</div>
104
-                            <ui-select class="pull-right iptSize" ng-model="fileData.department.place" theme="bootstrap">
105
-                                <ui-select-match placeholder="">
106
-                                    {{$select.selected.place}}
107
-                                </ui-select-match>
108
-                                <ui-select-choices repeat="item in placeData">
109
-                                    <div ng-bind-html="item.place | highlight: $select.search"></div>
110
-                                </ui-select-choices>
111
-                            </ui-select>
112
-                        </div>
113
-                    </div> -->
114
-                </div>
115
-                <div class="col-xs-2 searchBtnBox">
116
-                    <!-- <a ladda="ldloading.expand_right" class="btn btn-reashbutton reashbutton" data-style="expand-right" ng-click="refreshData('expand-right')"><span translate="list.button.REFRESH">Refresh Data</span></a> -->
117
-                    <div type="button" class="btn btn_search" ng-click="searchData()">搜索</div>
118
-                    <div class="btn btn_clean" ng-click="clean()">重置</div>
119
-                    <div type="button" class="btn btn_search" ng-click="addData()" ng-show="xinzeng"><span
120
-                            translate="list.button.CREATE">Add Data</span></div>
121
-                    <div type="button" class="btn btn_remove" ng-class="isMousedown?'btn_removeMousedown':''"
122
-                        ng-mousedown="changeRemoveClass()" ng-click="removeData()" ng-show="shanchu"
123
-                        ng-disabled="selected.items.length==0"><span translate="list.button.REMOVE">Remove First
124
-                            Row</span></div>
125
-                </div>
126
-            </form>
97
+        <div class="col-xs-2 searchBtnBox">
98
+          <div type="button" class="btn btn_search" ng-click="searchData()">
99
+            搜索
100
+          </div>
101
+          <div class="btn btn_clean" ng-click="clean()">重置</div>
102
+          <div
103
+            type="button"
104
+            class="btn btn_search"
105
+            ng-click="addData()"
106
+            ng-show="xinzeng"
107
+          >
108
+            <span translate="list.button.CREATE">Add Data</span>
109
+          </div>
110
+          <div
111
+            type="button"
112
+            class="btn btn_remove"
113
+            ng-class="isMousedown?'btn_removeMousedown':''"
114
+            ng-mousedown="changeRemoveClass()"
115
+            ng-click="removeData()"
116
+            ng-show="shanchu"
117
+            ng-disabled="selected.items.length==0"
118
+          >
119
+            <span translate="list.button.REMOVE">Remove First Row</span>
120
+          </div>
127 121
         </div>
122
+      </form>
128 123
     </div>
124
+  </div>
129 125
 
130
-    <div class="tableList" ui-i18n="{{lang}}">
131
-        <div id="grid1" ui-grid="gridOptions" ui-grid-pagination external-scopes="$scope" ui-grid-resize-columns
132
-            ui-grid-selection class="grid"></div>
133
-    </div>
134
-</div>
126
+  <div class="tableList" ui-i18n="{{lang}}">
127
+    <div
128
+      id="grid1"
129
+      ui-grid="gridOptions"
130
+      ui-grid-pagination
131
+      external-scopes="$scope"
132
+      ui-grid-resize-columns
133
+      ui-grid-selection
134
+      class="grid"
135
+    ></div>
136
+  </div>
137
+</div>

+ 6 - 6
assets/views/system/processdesign/incidentplan/incidentSetUp.html

@@ -572,7 +572,7 @@
572 572
                                 </div>
573 573
                                 <div class="tab-mainDiv-body-lineDiv-50">
574 574
                                     <div class="tab-mainDiv-body-lable">
575
-                                        是否分区处理:
575
+                                        是否分区处理:
576 576
                                     </div>
577 577
                                     <div class="tab-mainDiv-body-content userGroupType">
578 578
                                         <label>
@@ -585,7 +585,7 @@
585 585
                                         </label>
586 586
                                     </div>
587 587
                                 </div>
588
-                                <!-- 分区处理-否 -->
588
+                                <!-- 分区处理-否 -->
589 589
                                 <div class="tab-mainDiv-body-lineDiv-50" ng-if="subdata.branchType == 0">
590 590
                                     <div class="tab-mainDiv-body-lable">运维组/运维人员:</div>
591 591
                                     <div class="userGroupType">
@@ -621,7 +621,7 @@
621 621
                                         </ui-select>
622 622
                                     </div>
623 623
                                 </div>
624
-                                <!-- 分区处理-是 -->
624
+                                <!-- 分区处理-是 -->
625 625
                                 <div class="tab-mainDiv-body-lineDiv-50" ng-if="subdata.branchType == 1" ng-repeat="item in subdata.branchUserGroups">
626 626
                                     <div class="tab-mainDiv-body-lable">{{item.branchName}} - 运维组/运维人员:</div>
627 627
                                     <div class="userGroupType">
@@ -787,7 +787,7 @@
787 787
                                     </div>
788 788
                                     <div class="tab-mainDiv-body-lineDiv-50">
789 789
                                         <div class="tab-mainDiv-body-lable">
790
-                                            是否分区处理:
790
+                                            是否分区处理:
791 791
                                         </div>
792 792
                                         <div class="tab-mainDiv-body-content userGroupType">
793 793
                                             <label>
@@ -800,7 +800,7 @@
800 800
                                             </label>
801 801
                                         </div>
802 802
                                     </div>
803
-                                    <!-- 分区处理-否 -->
803
+                                    <!-- 分区处理-否 -->
804 804
                                     <div class="tab-mainDiv-body-lineDiv-50" ng-if="adddata.branchType == 0">
805 805
                                         <div class="tab-mainDiv-body-lable">运维组/运维人员:</div>
806 806
                                         <div class="userGroupType">
@@ -836,7 +836,7 @@
836 836
                                             </ui-select>
837 837
                                         </div>
838 838
                                     </div>
839
-                                    <!-- 分区处理-是 -->
839
+                                    <!-- 分区处理-是 -->
840 840
                                     <div class="tab-mainDiv-body-lineDiv-50" ng-if="adddata.branchType == 1" ng-repeat="item in adddata.branchUserGroups">
841 841
                                         <div class="tab-mainDiv-body-lable">{{item.branchName}} - 运维组/运维人员:</div>
842 842
                                         <div class="userGroupType">

+ 1 - 1
assets/views/system/tpl/area.html

@@ -11,7 +11,7 @@
11 11
 <div class="modal-body">
12 12
     <div class="well-lg"><br/>
13 13
         <div class="row form-group">
14
-            <label class="col-md-3 col-md-offset-1 control-label">所属区*:</label>
14
+            <label class="col-md-3 col-md-offset-1 control-label">所属区*:</label>
15 15
             <div class="col-md-7">
16 16
                 <ui-select style="width: 100%;" ng-model="search.hospital"
17 17
                     theme="bootstrap">

+ 4 - 4
assets/views/system/tpl/hospitalchange.html

@@ -14,13 +14,13 @@
14 14
         <div
15 15
           class="pull-left openaddlable control-label fontcolor-two fontsizes-14"
16 16
         >
17
-          区名称*:
17
+          区名称*:
18 18
         </div>
19 19
         <div class="pull-right openaddinput">
20 20
           <input
21 21
             class="form-control"
22 22
             ng-model="hospital.hosName"
23
-            placeholder="区名称"
23
+            placeholder="区名称"
24 24
           />
25 25
         </div>
26 26
       </div>
@@ -28,13 +28,13 @@
28 28
         <div
29 29
           class="pull-left openaddlable control-label fontcolor-two fontsizes-14"
30 30
         >
31
-          区编码*:
31
+          区编码*:
32 32
         </div>
33 33
         <div class="pull-right openaddinput">
34 34
           <input
35 35
             class="form-control"
36 36
             ng-model="hospital.hosNo"
37
-            placeholder="区编码"
37
+            placeholder="区编码"
38 38
           />
39 39
         </div>
40 40
       </div>

+ 38 - 0
assets/views/system/tpl/responsibilityDeptchange.html

@@ -0,0 +1,38 @@
1
+<div class="modal-header">
2
+    <div class="modal-title fontcolor-two fontsizes-14">{{title}}<button type="button" class="close pull-right" ng-click="cancel()">×</button></div>
3
+</div>
4
+<div class="modal-body margin-top-15 margin-left-15 margin-bottom-15 margin-right-15 addrequster">
5
+    <form role="form" class="row">
6
+        <div class="margin-left-30 margin-right-30 margin-top-20">
7
+            <div class="margin-bottom-15 anline">
8
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">部门名称*:</div>
9
+                <div class="pull-right openaddinput">
10
+                    <input class="form-control" ng-model="deptdata.dept" placeholder="部门名称" />
11
+                </div>
12
+            </div>
13
+            <div class="margin-bottom-15 anline">
14
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">部门电话*:</div>
15
+                <div class="pull-right openaddinput">
16
+                    <input class="form-control" ng-model="deptdata.phone" placeholder="部门电话" />
17
+                </div>
18
+            </div>
19
+            <div class="margin-bottom-15 anline">
20
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">院区*:</div>
21
+                <div class="pull-right openaddinput">
22
+                    <ui-select ng-model="deptdata.branch" theme="bootstrap">
23
+                        <ui-select-match placeholder="请选择院区">
24
+                            {{$select.selected.hosName}}
25
+                        </ui-select-match>
26
+                        <ui-select-choices repeat="item in branchList | filter: $select.search">
27
+                            <div ng-bind-html="item.hosName | highlight: $select.search"></div>
28
+                        </ui-select-choices>
29
+                    </ui-select>
30
+                </div>
31
+            </div>
32
+        </div>
33
+    </form>
34
+</div>
35
+<div class="modal-footer">
36
+    <a ng-click="savercode(deptdata)" data-dismiss="modal" class="btn btn-primary">保存</a>
37
+    <button class="btn btn-primary btn-o" ng-click="cancel()" translate="modal.button.CANCEL">取消</button>
38
+</div>