Explorar o código

生成事件自动带出认证计费和最近报修

seimin %!s(int64=3) %!d(string=hai) anos
pai
achega
4ef08d5d41
Modificáronse 1 ficheiros con 10 adicións e 2 borrados
  1. 10 2
      assets/js/controllers/customform/customformCtrl.js

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

@@ -11130,7 +11130,8 @@ appFormly.config(function config(formlyConfigProvider) {
11130 11130
           "$scope",
11131 11131
           "$rootScope",
11132 11132
           "api_bpm_domain",
11133
-          function ($scope, $rootScope, api_bpm_domain) {
11133
+          "$stateParams",
11134
+          function ($scope, $rootScope, api_bpm_domain,$stateParams) {
11134 11135
             // $scope.myFilter = function(item) {
11135 11136
             //     return !$scope.search || $select.selected[to.labelProp || 'name'] == $scope.search;
11136 11137
             // }
@@ -11170,8 +11171,15 @@ appFormly.config(function config(formlyConfigProvider) {
11170 11171
             $scope.myFilter = $scope;
11171 11172
             // console.log($scope.options.templateOptions)
11172 11173
             console.log($scope, 77777);
11174
+            if (angular.isDefined($stateParams.model) && $stateParams.model != "") {
11175
+              var paramsModel = JSON.parse($stateParams.model)
11176
+              if ($scope.options.templateOptions.onlyKey == "c_account"&&paramsModel.model.incident.requester.account) {
11177
+                $scope.$parent.$parent.$parent.model.repeatIncidentShow = true;
11178
+                $scope.$parent.$parent.$parent.model.incident.account = paramsModel.model.incident.requester.account;
11179
+              }
11180
+            }
11173 11181
             //处理人根据事件分类自动带入baba
11174
-            if ($scope.options.templateOptions.pkey == "incident.handlerUser") {
11182
+            if ($scope.options.templateOptions.onlyKey == "c_handlerUser") {
11175 11183
               console.log($scope.options.templateOptions.pkey);
11176 11184
               if ($scope.$parent.$parent.$parent.model.incident.handlerUser) {
11177 11185
                 if (