瀏覽代碼

科室,上级科室文字修改为部门,单位

seimin 3 年之前
父節點
當前提交
02ce478792

+ 11 - 11
assets/js/controllers/system/organizationdesign/deptCtrl.js

@@ -51,17 +51,17 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
51
             width: 50,
51
             width: 50,
52
             enableFiltering: false
52
             enableFiltering: false
53
         },
53
         },
54
-        { name: 'dept', displayName: '科室', width: '20%', enableFiltering: false },
55
-        { name: 'phone', displayName: '科室电话', width: '20%', enableFiltering: false },
54
+        { name: 'dept', displayName: '部门', width: '20%', enableFiltering: false },
56
         { 
55
         { 
57
             name: 'parent.dept', 
56
             name: 'parent.dept', 
58
-            displayName: '上级科室', 
57
+            displayName: '单位', 
59
             width: '20%', 
58
             width: '20%', 
60
             enableFiltering: false,
59
             enableFiltering: false,
61
             cellTemplate: '<div>' +
60
             cellTemplate: '<div>' +
62
                 '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center">{{grid.appScope.transferDept(row.entity.parent.dept)}}</div>' +
61
                 '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center">{{grid.appScope.transferDept(row.entity.parent.dept)}}</div>' +
63
                 '</div>'
62
                 '</div>'
64
         },
63
         },
64
+        { name: 'phone', displayName: '部门电话', width: '20%', enableFiltering: false },
65
         {
65
         {
66
              name: 'area', displayName: '区域地点', width: '20%', enableFiltering: false,
66
              name: 'area', displayName: '区域地点', width: '20%', enableFiltering: false,
67
         cellTemplate: '<div>' +
67
         cellTemplate: '<div>' +
@@ -120,7 +120,7 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
120
                 $scope.deptdata = selectdata;
120
                 $scope.deptdata = selectdata;
121
                 $scope.areaData=scope.areaData
121
                 $scope.areaData=scope.areaData
122
                 $scope.deptchoice = {};
122
                 $scope.deptchoice = {};
123
-                $scope.title = '科室修改';
123
+                $scope.title = '部门修改';
124
                 var filterData = { "idx": 0, "sum": 100 };
124
                 var filterData = { "idx": 0, "sum": 100 };
125
                 api_user_data.fetchDataList('department', filterData).then(function(data) {
125
                 api_user_data.fetchDataList('department', filterData).then(function(data) {
126
                     $scope.deptchoice = Restangular.stripRestangular(data).list;
126
                     $scope.deptchoice = Restangular.stripRestangular(data).list;
@@ -161,7 +161,7 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
161
                                 } else if (response.status == 500) {
161
                                 } else if (response.status == 500) {
162
                                     SweetAlert.swal({
162
                                     SweetAlert.swal({
163
                                         title: "修改失败!",
163
                                         title: "修改失败!",
164
-                                        text: "该科室已存在",
164
+                                        text: "该部门已存在",
165
                                         type: "error"
165
                                         type: "error"
166
                                     }, function() {
166
                                     }, function() {
167
                                         scope.refreshData('expand-right', scope.fileData);
167
                                         scope.refreshData('expand-right', scope.fileData);
@@ -210,7 +210,7 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
210
             templateUrl: 'assets/views/system/tpl/deptchange.html',
210
             templateUrl: 'assets/views/system/tpl/deptchange.html',
211
             controller: function($scope, $modalInstance, api_user_data) {
211
             controller: function($scope, $modalInstance, api_user_data) {
212
                 var filterData = { "idx": 0, "sum": 100 };
212
                 var filterData = { "idx": 0, "sum": 100 };
213
-                $scope.title = '科室新增';
213
+                $scope.title = '部门新增';
214
                 api_user_data.fetchDataList('department', filterData).then(function(data) {
214
                 api_user_data.fetchDataList('department', filterData).then(function(data) {
215
                     $scope.deptchoice = Restangular.stripRestangular(data).list;
215
                     $scope.deptchoice = Restangular.stripRestangular(data).list;
216
                 })
216
                 })
@@ -302,8 +302,8 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
302
             templateUrl: 'assets/views/incident/tpl/acceptTask.tpl.html',
302
             templateUrl: 'assets/views/incident/tpl/acceptTask.tpl.html',
303
             controller: function($scope, scope, $modalInstance, api_bpm_data) {
303
             controller: function($scope, scope, $modalInstance, api_bpm_data) {
304
                 var rmvList = [];
304
                 var rmvList = [];
305
-                $scope.title = '科室删除';
306
-                $scope.connect = '确定要删除此科室?';
305
+                $scope.title = '部门删除';
306
+                $scope.connect = '确定要删除此部门?';
307
                 rmvList.push(scope.selected.items);
307
                 rmvList.push(scope.selected.items);
308
                 $scope.ok = function() {
308
                 $scope.ok = function() {
309
                     $modalInstance.close(rmvList);
309
                     $modalInstance.close(rmvList);
@@ -326,8 +326,8 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
326
                     console.log(selectedItem);
326
                     console.log(selectedItem);
327
                     if (selectedItem[0].children.length>0) {
327
                     if (selectedItem[0].children.length>0) {
328
                         SweetAlert.swal({
328
                         SweetAlert.swal({
329
-                            title: "该科室存在子类科室",
330
-                            text: "请先删除该科室子类科室!",
329
+                            title: "该部门存在子类部门",
330
+                            text: "请先删除该部门子类部门!",
331
                             type: "error"
331
                             type: "error"
332
                         });
332
                         });
333
                     } else {
333
                     } else {
@@ -492,7 +492,7 @@ app.controller('deptlistCtrl', ["$rootScope", "$scope", "$state", "$timeout", "$
492
         delete $scope.fileData.department.place;
492
         delete $scope.fileData.department.place;
493
         $scope.refreshData('expand-right', $scope.fileData);
493
         $scope.refreshData('expand-right', $scope.fileData);
494
     }
494
     }
495
-    // 获取上级科室下拉
495
+    // 获取单位下拉
496
     $scope.model={};
496
     $scope.model={};
497
     $scope.deptData={};
497
     $scope.deptData={};
498
     $scope.getDeptData=function(){
498
     $scope.getDeptData=function(){

+ 5 - 5
assets/views/system/organization/dept.html

@@ -1,7 +1,7 @@
1
 <!-- <section id="page-title">
1
 <!-- <section id="page-title">
2
     <div class="row">
2
     <div class="row">
3
         <div class="col-sm-8">
3
         <div class="col-sm-8">
4
-            <h1 class="mainTitle">科室设置</h1><span class="mainDescription">新增或编辑科室</span></div>
4
+            <h1 class="mainTitle">部门设置</h1><span class="mainDescription">新增或编辑部门</span></div>
5
     </div>
5
     </div>
6
 </section> -->
6
 </section> -->
7
 <style type="text/css">
7
 <style type="text/css">
@@ -39,7 +39,7 @@
39
 <section id="page-title">
39
 <section id="page-title">
40
     <div class="row">
40
     <div class="row">
41
         <div class="col-sm-8">
41
         <div class="col-sm-8">
42
-            <h1 class="mainTitle">科室设置<i tooltip='新增或编辑科室。' tooltip-placement="right"
42
+            <h1 class="mainTitle">部门设置<i tooltip='新增或编辑部门。' tooltip-placement="right"
43
                     class="fa  ti-help-alt margin-left-10 fontcolor-five pointfont"></i></h1>
43
                     class="fa  ti-help-alt margin-left-10 fontcolor-five pointfont"></i></h1>
44
         </div>
44
         </div>
45
     </div>
45
     </div>
@@ -60,7 +60,7 @@
60
                 <div class="col-xs-10">
60
                 <div class="col-xs-10">
61
                     <div class="form-group incidentsearch">
61
                     <div class="form-group incidentsearch">
62
                         <div>
62
                         <div>
63
-                            <div class="control-label pull-left" style="padding-top:4px">科室:</div>
63
+                            <div class="control-label pull-left" style="padding-top:4px">部门:</div>
64
                             <input class="form-control pull-right inputcolor iptSize"
64
                             <input class="form-control pull-right inputcolor iptSize"
65
                                 style="border-color: #dedede;color: #93989e;" type="text"
65
                                 style="border-color: #dedede;color: #93989e;" type="text"
66
                                 ng-model="fileData.department.dept" placeholder="" />
66
                                 ng-model="fileData.department.dept" placeholder="" />
@@ -68,14 +68,14 @@
68
                     </div>
68
                     </div>
69
                     <div class="form-group incidentsearch">
69
                     <div class="form-group incidentsearch">
70
                         <div>
70
                         <div>
71
-                            <div class="control-label pull-left" style="padding-top:4px">科室电话:</div>
71
+                            <div class="control-label pull-left" style="padding-top:4px">部门电话:</div>
72
                             <input class="form-control pull-right inputcolor iptSize"
72
                             <input class="form-control pull-right inputcolor iptSize"
73
                                 style="border-color: #dedede;color: #93989e;" type="text"
73
                                 style="border-color: #dedede;color: #93989e;" type="text"
74
                                 ng-model="fileData.department.phone" placeholder="" />
74
                                 ng-model="fileData.department.phone" placeholder="" />
75
                         </div>
75
                         </div>
76
                     </div>
76
                     </div>
77
                     <div class="form-group incidentsearch ">
77
                     <div class="form-group incidentsearch ">
78
-                        <div class=" pull-left" style="padding-top:4px">上级科室:</div>
78
+                        <div class=" pull-left" style="padding-top:4px">单位:</div>
79
                         <ui-select class="pull-right iptSize" ng-model="fileData.department.parent" theme="bootstrap">
79
                         <ui-select class="pull-right iptSize" ng-model="fileData.department.parent" theme="bootstrap">
80
                             <ui-select-match placeholder="">
80
                             <ui-select-match placeholder="">
81
                                 {{$select.selected.dept}}
81
                                 {{$select.selected.dept}}

+ 13 - 13
assets/views/system/tpl/deptchange.html

@@ -1,20 +1,20 @@
1
 <!-- <div class="modal-header bg-primary">
1
 <!-- <div class="modal-header bg-primary">
2
     <button type="button" class="close" ng-click="cancel()">×</button>
2
     <button type="button" class="close" ng-click="cancel()">×</button>
3
-    <i class="fa fa-inbox"></i><span class="label label-tag">科室设置</span>
3
+    <i class="fa fa-inbox"></i><span class="label label-tag">部门设置</span>
4
 </div>
4
 </div>
5
 <div class="modal-body">
5
 <div class="modal-body">
6
     <div class="well well-lg"><br/>
6
     <div class="well well-lg"><br/>
7
         <div class="row form-group">
7
         <div class="row form-group">
8
-            <label class="col-md-3 col-md-offset-1 control-label" for="dept">科室名称:</label>
8
+            <label class="col-md-3 col-md-offset-1 control-label" for="dept">部门名称:</label>
9
             <div class="col-md-7">
9
             <div class="col-md-7">
10
-                <input id="title" name="dept" class="form-control" ng-model="deptdata.dept" placeholder="科室名称" />
10
+                <input id="title" name="dept" class="form-control" ng-model="deptdata.dept" placeholder="部门名称" />
11
             </div>
11
             </div>
12
         </div>
12
         </div>
13
         <div class="row form-group">
13
         <div class="row form-group">
14
-            <label class="col-md-3 col-md-offset-1 control-label" for="priority">上级科室:</label>
14
+            <label class="col-md-3 col-md-offset-1 control-label" for="priority">单位:</label>
15
             <div class="col-md-7">
15
             <div class="col-md-7">
16
                 <ui-select ng-model="deptdata.parent" theme="bootstrap">
16
                 <ui-select ng-model="deptdata.parent" theme="bootstrap">
17
-                    <ui-select-match placeholder="上级科室">
17
+                    <ui-select-match placeholder="单位">
18
                         {{$select.selected.dept}}
18
                         {{$select.selected.dept}}
19
                     </ui-select-match>
19
                     </ui-select-match>
20
                     <ui-select-choices repeat="item in deptchoice | filter: $select.search">
20
                     <ui-select-choices repeat="item in deptchoice | filter: $select.search">
@@ -36,22 +36,22 @@
36
     <form role="form" class="row">
36
     <form role="form" class="row">
37
         <div class="margin-left-30 margin-right-30 margin-top-20">
37
         <div class="margin-left-30 margin-right-30 margin-top-20">
38
             <div class="margin-bottom-15 anline">
38
             <div class="margin-bottom-15 anline">
39
-                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">科室名称*:</div>
39
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">部门名称*:</div>
40
                 <div class="pull-right openaddinput">
40
                 <div class="pull-right openaddinput">
41
-                    <input class="form-control" ng-model="deptdata.dept" placeholder="科室名称" />
41
+                    <input class="form-control" ng-model="deptdata.dept" placeholder="部门名称" />
42
                 </div>
42
                 </div>
43
             </div>
43
             </div>
44
             <div class="margin-bottom-15 anline">
44
             <div class="margin-bottom-15 anline">
45
-                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">科室电话*:</div>
45
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">部门电话*:</div>
46
                 <div class="pull-right openaddinput">
46
                 <div class="pull-right openaddinput">
47
-                    <input class="form-control" ng-model="deptdata.phone" placeholder="科室电话" />
47
+                    <input class="form-control" ng-model="deptdata.phone" placeholder="部门电话" />
48
                 </div>
48
                 </div>
49
             </div>
49
             </div>
50
             <div class="margin-bottom-15 anline">
50
             <div class="margin-bottom-15 anline">
51
-                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">上级科室:</div>
51
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">单位:</div>
52
                 <div class="pull-right openaddinput">
52
                 <div class="pull-right openaddinput">
53
                     <ui-select ng-model="deptdata.parent" theme="bootstrap">
53
                     <ui-select ng-model="deptdata.parent" theme="bootstrap">
54
-                        <ui-select-match placeholder="请选择上级科室">
54
+                        <ui-select-match placeholder="请选择单位">
55
                             {{$select.selected.dept}}
55
                             {{$select.selected.dept}}
56
                         </ui-select-match>
56
                         </ui-select-match>
57
                         <ui-select-choices repeat="item in deptchoice | filter: $select.search">
57
                         <ui-select-choices repeat="item in deptchoice | filter: $select.search">
@@ -61,10 +61,10 @@
61
                 </div>
61
                 </div>
62
             </div>
62
             </div>
63
             <!-- <div class="margin-bottom-15 anline">
63
             <!-- <div class="margin-bottom-15 anline">
64
-                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">科室类型:</div>
64
+                <div class="pull-left openaddlable control-label fontcolor-two fontsizes-14">部门类型:</div>
65
                 <div class="pull-right openaddinput">
65
                 <div class="pull-right openaddinput">
66
                     <ui-select ng-model="deptdata.parent" theme="bootstrap">
66
                     <ui-select ng-model="deptdata.parent" theme="bootstrap">
67
-                        <ui-select-match placeholder="请选择科室类型">
67
+                        <ui-select-match placeholder="请选择部门类型">
68
                             {{$select.selected.dept}}
68
                             {{$select.selected.dept}}
69
                         </ui-select-match>
69
                         </ui-select-match>
70
                         <ui-select-choices repeat="item in deptchoice | filter: $select.search">
70
                         <ui-select-choices repeat="item in deptchoice | filter: $select.search">