Explorar o código

事件详情添加回访

maotao hai 1 ano
pai
achega
f49548eb10

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

@@ -877,6 +877,13 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
877 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 887
         getUser(filuser, 1);
881 888
     }
882 889
     //处理人过滤
@@ -890,6 +897,13 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
890 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 907
         getUser(filuser, 2);
894 908
     }
895 909
 
@@ -1429,7 +1443,6 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
1429 1443
     };
1430 1444
     //回访
1431 1445
     $scope.visit = function (model) {
1432
-        console.log(model)
1433 1446
         var modalInstance = $modal.open({
1434 1447
             backdrop: false,
1435 1448
             templateUrl: 'assets/views/incident/tpl/callback.tpl.html',

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 115 - 3
assets/js/controllers/incident/incidentDetailCtrl.js


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

@@ -560,6 +560,8 @@
560 560
                 <button type="submit" ng-if="vm.model.submit" ladda="ldloading.expand_right " style="height: 34px;"
561 561
                     data-style="expand-right " class="btn btn-addbutton addbutton "
562 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 565
                 <button type="close" class="btn btn-default default" ng-click="closeModel()"
564 566
                     translate="form.button.CLOSE">CLOSE</button>
565 567
             </div>