Browse Source

事件详情添加回访

maotao 1 year ago
parent
commit
f49548eb10

+ 14 - 1
assets/js/controllers/incident/incidentCtrl.js

@@ -877,6 +877,13 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
877
                 engineer: 1,
877
                 engineer: 1,
878
             }
878
             }
879
         }
879
         }
880
+				if($rootScope.user.duty){
881
+						delete filuser.user.branchId
882
+				    filuser.user.dutyId = $rootScope.user.duty.id;
883
+				}else if($rootScope.user.branch){
884
+						delete filuser.user.dutyId
885
+				    filuser.user.branchId = $rootScope.user.branch.id;
886
+				}
880
         getUser(filuser, 1);
887
         getUser(filuser, 1);
881
     }
888
     }
882
     //处理人过滤
889
     //处理人过滤
@@ -890,6 +897,13 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
890
                 engineer: 1,
897
                 engineer: 1,
891
             }
898
             }
892
         }
899
         }
900
+				if($rootScope.user.duty){
901
+						delete filuser.user.branchId
902
+				    filuser.user.dutyId = $rootScope.user.duty.id;
903
+				}else if($rootScope.user.branch){
904
+						delete filuser.user.dutyId
905
+				    filuser.user.branchId = $rootScope.user.branch.id;
906
+				}
893
         getUser(filuser, 2);
907
         getUser(filuser, 2);
894
     }
908
     }
895
 
909
 
@@ -1429,7 +1443,6 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1429
     };
1443
     };
1430
     //回访
1444
     //回访
1431
     $scope.visit = function (model) {
1445
     $scope.visit = function (model) {
1432
-        console.log(model)
1433
         var modalInstance = $modal.open({
1446
         var modalInstance = $modal.open({
1434
             backdrop: false,
1447
             backdrop: false,
1435
             templateUrl: 'assets/views/incident/tpl/callback.tpl.html',
1448
             templateUrl: 'assets/views/incident/tpl/callback.tpl.html',

File diff suppressed because it is too large
+ 115 - 3
assets/js/controllers/incident/incidentDetailCtrl.js


+ 2 - 0
assets/views/incident/incidentDetail.html

@@ -560,6 +560,8 @@
560
                 <button type="submit" ng-if="vm.model.submit" ladda="ldloading.expand_right " style="height: 34px;"
560
                 <button type="submit" ng-if="vm.model.submit" ladda="ldloading.expand_right " style="height: 34px;"
561
                     data-style="expand-right " class="btn btn-addbutton addbutton "
561
                     data-style="expand-right " class="btn btn-addbutton addbutton "
562
                     ng-disabled="ldloading.expand_right ">{{vm.model.submit}}</button>
562
                     ng-disabled="ldloading.expand_right ">{{vm.model.submit}}</button>
563
+								<button type="close" ng-if="model.state.name=='已关闭'" class="btn btn-default default" ng-click="payReturn()"
564
+										>回访</button>
563
                 <button type="close" class="btn btn-default default" ng-click="closeModel()"
565
                 <button type="close" class="btn btn-default default" ng-click="closeModel()"
564
                     translate="form.button.CLOSE">CLOSE</button>
566
                     translate="form.button.CLOSE">CLOSE</button>
565
             </div>
567
             </div>