Explorar o código

用户处理数修改

seimin hai 1 ano
pai
achega
71fc8ef9c1

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

@@ -15920,11 +15920,11 @@ appFormly.config(function config(formlyConfigProvider) {
15920 15920
                     width: 130,
15921 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 15929
                 // $scope.selectButtonClick
15930 15930
                 $scope.gridOptions.onRegisterApi = function (gridApi) {
@@ -16393,11 +16393,11 @@ appFormly.config(function config(formlyConfigProvider) {
16393 16393
                     width: 130,
16394 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 16402
                 // $scope.selectButtonClick
16403 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 3957
                 "incomingPhone": $scope.incidentModel.incomingPhone||undefined,
3958 3958
               }
3959 3959
             };
3960
+            $scope.modelData && (postData.incident = Object.assign({}, $scope.modelData.incident, postData.incident));
3960 3961
             // if(modelData){
3961 3962
             //   // 微信报修转事件
3962 3963
             //   postData.flow = modelData.flow;
@@ -4041,6 +4042,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4041 4042
                 "incomingPhone": $scope.incidentModel.incomingPhone||undefined,
4042 4043
               }
4043 4044
             };
4045
+            $scope.modelData && (postData.incident = Object.assign({}, $scope.modelData.incident, postData.incident));
4044 4046
             // if(modelData){
4045 4047
             //   // 微信报修转事件
4046 4048
             //   postData.flow = modelData.flow;
@@ -4457,6 +4459,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4457 4459
                       "incomingPhone": scope.incidentModel.incomingPhone||undefined,
4458 4460
                     },
4459 4461
                   };
4462
+                  scope.modelData && (postData.incident = Object.assign({}, scope.modelData.incident, postData.incident));
4460 4463
                   // if(scope.modelData){
4461 4464
                   //   // 微信报修转事件
4462 4465
                   //   postData.flow = scope.modelData.flow;
@@ -4746,7 +4749,7 @@ function ($rootScope, $scope, $state, $translate, $localStorage, $cookieStore, $
4746 4749
             api_user_data.fetchDataList("user", userData).then(function (data) {
4747 4750
               $scope.jry_userData = data.list;
4748 4751
               if($scope.incidentModel.user){
4749
-                if(!$scope.incidentModel.user.userTaskCount){
4752
+                if(!$scope.incidentModel.user.name){
4750 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 4854
             $scope.showUserOrGroup();
4852 4855
             // 回显人员
4853 4856
             if($scope.incidentModel.user){
4854
-              if(!$scope.incidentModel.user.userTaskCount){
4857
+              if(!$scope.incidentModel.user.name){
4855 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 77
             <div class="pull-right">
78 78
                 <ui-select class="pull-left" style="width:230px" ng-model="assign.user" theme="bootstrap">
79 79
                     <ui-select-match placeholder="">
80
-                        {{$select.selected.name + '【'+$select.selected.taskCount+'】'}}
80
+                        {{$select.selected.name}}
81 81
                     </ui-select-match>
82 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 84
                     </ui-select-choices>
85 85
                 </ui-select>
86 86
             </div>

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

@@ -46,10 +46,10 @@
46 46
             <div class="pull-right">
47 47
                 <ui-select class="pull-left" style="width:220px" ng-model="assign.user" theme="bootstrap">
48 48
                     <ui-select-match placeholder="">
49
-                        {{$select.selected.name + '【'+$select.selected.taskCount+'】'}}
49
+                        {{$select.selected.name}}
50 50
                     </ui-select-match>
51 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 53
                     </ui-select-choices>
54 54
                 </ui-select>
55 55
             </div>

+ 2 - 2
assets/views/newOrderSeimin.html

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