Quellcode durchsuchen

用户处理数修改

seimin vor 1 Jahr
Ursprung
Commit
71fc8ef9c1

+ 10 - 10
assets/js/controllers/customform/customformCtrl.js

@@ -15920,11 +15920,11 @@ appFormly.config(function config(formlyConfigProvider) {
15920
                     width: 130,
15920
                     width: 130,
15921
                     enableFiltering: false,
15921
                     enableFiltering: false,
15922
                   },
15922
                   },
15923
-                  {
15924
-                    name: "taskCount",
15925
-                    displayName: "处理中事件数",
15926
-                    enableFiltering: false,
15927
-                  },
15923
+                  // {
15924
+                  //   name: "taskCount",
15925
+                  //   displayName: "处理中事件数",
15926
+                  //   enableFiltering: false,
15927
+                  // },
15928
                 ];
15928
                 ];
15929
                 // $scope.selectButtonClick
15929
                 // $scope.selectButtonClick
15930
                 $scope.gridOptions.onRegisterApi = function (gridApi) {
15930
                 $scope.gridOptions.onRegisterApi = function (gridApi) {
@@ -16393,11 +16393,11 @@ appFormly.config(function config(formlyConfigProvider) {
16393
                     width: 130,
16393
                     width: 130,
16394
                     enableFiltering: false,
16394
                     enableFiltering: false,
16395
                   },
16395
                   },
16396
-                  {
16397
-                    name: "taskCount",
16398
-                    displayName: "处理中事件数",
16399
-                    enableFiltering: false,
16400
-                  },
16396
+                  // {
16397
+                  //   name: "taskCount",
16398
+                  //   displayName: "处理中事件数",
16399
+                  //   enableFiltering: false,
16400
+                  // },
16401
                 ];
16401
                 ];
16402
                 // $scope.selectButtonClick
16402
                 // $scope.selectButtonClick
16403
                 $scope.gridOptions.onRegisterApi = function (gridApi) {
16403
                 $scope.gridOptions.onRegisterApi = function (gridApi) {

+ 5 - 2
assets/js/controllers/mainCtrl.js

@@ -3957,6 +3957,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
3957
                 "incomingPhone": $scope.incidentModel.incomingPhone||undefined,
3957
                 "incomingPhone": $scope.incidentModel.incomingPhone||undefined,
3958
               }
3958
               }
3959
             };
3959
             };
3960
+            $scope.modelData && (postData.incident = Object.assign({}, $scope.modelData.incident, postData.incident));
3960
             // if(modelData){
3961
             // if(modelData){
3961
             //   // 微信报修转事件
3962
             //   // 微信报修转事件
3962
             //   postData.flow = modelData.flow;
3963
             //   postData.flow = modelData.flow;
@@ -4041,6 +4042,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4041
                 "incomingPhone": $scope.incidentModel.incomingPhone||undefined,
4042
                 "incomingPhone": $scope.incidentModel.incomingPhone||undefined,
4042
               }
4043
               }
4043
             };
4044
             };
4045
+            $scope.modelData && (postData.incident = Object.assign({}, $scope.modelData.incident, postData.incident));
4044
             // if(modelData){
4046
             // if(modelData){
4045
             //   // 微信报修转事件
4047
             //   // 微信报修转事件
4046
             //   postData.flow = modelData.flow;
4048
             //   postData.flow = modelData.flow;
@@ -4457,6 +4459,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4457
                       "incomingPhone": scope.incidentModel.incomingPhone||undefined,
4459
                       "incomingPhone": scope.incidentModel.incomingPhone||undefined,
4458
                     },
4460
                     },
4459
                   };
4461
                   };
4462
+                  scope.modelData && (postData.incident = Object.assign({}, scope.modelData.incident, postData.incident));
4460
                   // if(scope.modelData){
4463
                   // if(scope.modelData){
4461
                   //   // 微信报修转事件
4464
                   //   // 微信报修转事件
4462
                   //   postData.flow = scope.modelData.flow;
4465
                   //   postData.flow = scope.modelData.flow;
@@ -4746,7 +4749,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4746
             api_user_data.fetchDataList("user", userData).then(function (data) {
4749
             api_user_data.fetchDataList("user", userData).then(function (data) {
4747
               $scope.jry_userData = data.list;
4750
               $scope.jry_userData = data.list;
4748
               if($scope.incidentModel.user){
4751
               if($scope.incidentModel.user){
4749
-                if(!$scope.incidentModel.user.userTaskCount){
4752
+                if(!$scope.incidentModel.user.name){
4750
                   $scope.incidentModel.user = data.list.find(v=>v.id == $scope.incidentModel.user.id);
4753
                   $scope.incidentModel.user = data.list.find(v=>v.id == $scope.incidentModel.user.id);
4751
                 }
4754
                 }
4752
               }
4755
               }
@@ -4851,7 +4854,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4851
             $scope.showUserOrGroup();
4854
             $scope.showUserOrGroup();
4852
             // 回显人员
4855
             // 回显人员
4853
             if($scope.incidentModel.user){
4856
             if($scope.incidentModel.user){
4854
-              if(!$scope.incidentModel.user.userTaskCount){
4857
+              if(!$scope.incidentModel.user.name){
4855
                 $scope.incidentModel.user = $scope.jry_userData.find(v=>v.id == $scope.incidentModel.user.id);
4858
                 $scope.incidentModel.user = $scope.jry_userData.find(v=>v.id == $scope.incidentModel.user.id);
4856
               }
4859
               }
4857
             }
4860
             }

+ 2 - 2
assets/views/incident/tpl/toAssign.tpl.html

@@ -77,10 +77,10 @@
77
             <div class="pull-right">
77
             <div class="pull-right">
78
                 <ui-select class="pull-left" style="width:230px" ng-model="assign.user" theme="bootstrap">
78
                 <ui-select class="pull-left" style="width:230px" ng-model="assign.user" theme="bootstrap">
79
                     <ui-select-match placeholder="">
79
                     <ui-select-match placeholder="">
80
-                        {{$select.selected.name + '【'+$select.selected.taskCount+'】'}}
80
+                        {{$select.selected.name}}
81
                     </ui-select-match>
81
                     </ui-select-match>
82
                     <ui-select-choices repeat="item in user | filter:{$:$select.search}">
82
                     <ui-select-choices repeat="item in user | filter:{$:$select.search}">
83
-                        <div ng-bind-html="(item.name + '【'+item.taskCount+'】') | highlight: $select.search"></div>
83
+                        <div ng-bind-html="(item.name) | highlight: $select.search"></div>
84
                     </ui-select-choices>
84
                     </ui-select-choices>
85
                 </ui-select>
85
                 </ui-select>
86
             </div>
86
             </div>

+ 2 - 2
assets/views/incident/tpl/toTransfer.tpl.html

@@ -46,10 +46,10 @@
46
             <div class="pull-right">
46
             <div class="pull-right">
47
                 <ui-select class="pull-left" style="width:220px" ng-model="assign.user" theme="bootstrap">
47
                 <ui-select class="pull-left" style="width:220px" ng-model="assign.user" theme="bootstrap">
48
                     <ui-select-match placeholder="">
48
                     <ui-select-match placeholder="">
49
-                        {{$select.selected.name + '【'+$select.selected.taskCount+'】'}}
49
+                        {{$select.selected.name}}
50
                     </ui-select-match>
50
                     </ui-select-match>
51
                     <ui-select-choices repeat="item in user | filter:{$:$select.search}">
51
                     <ui-select-choices repeat="item in user | filter:{$:$select.search}">
52
-                        <div ng-bind-html="(item.name + '【'+item.taskCount+'】') | highlight: $select.search"></div>
52
+                        <div ng-bind-html="(item.name) | highlight: $select.search"></div>
53
                     </ui-select-choices>
53
                     </ui-select-choices>
54
                 </ui-select>
54
                 </ui-select>
55
             </div>
55
             </div>

+ 2 - 2
assets/views/newOrderSeimin.html

@@ -341,14 +341,14 @@
341
             reset-search-input="false"
341
             reset-search-input="false"
342
           >
342
           >
343
             <ui-select-match placeholder="请选择处理人">
343
             <ui-select-match placeholder="请选择处理人">
344
-              <span ng-bind="$select.selected.userTaskCount"></span>
344
+              <span ng-bind="$select.selected.name"></span>
345
             </ui-select-match>
345
             </ui-select-match>
346
             <ui-select-choices
346
             <ui-select-choices
347
               repeat="item in jry_userData| filter:{$:$select.search}"
347
               repeat="item in jry_userData| filter:{$:$select.search}"
348
               refresh="jry_userSearch($select.search)"
348
               refresh="jry_userSearch($select.search)"
349
             >
349
             >
350
               <div
350
               <div
351
-                ng-bind-html="item.userTaskCount | highlight: $select.search"
351
+                ng-bind-html="item.name | highlight: $select.search"
352
               ></div>
352
               ></div>
353
             </ui-select-choices>
353
             </ui-select-choices>
354
           </ui-select>
354
           </ui-select>