seimin 2 years ago
parent
commit
4c1b070545
1 changed files with 5 additions and 1 deletions
  1. 5 1
      assets/js/controllers/customform/customformCtrl.js

+ 5 - 1
assets/js/controllers/customform/customformCtrl.js

@@ -21760,7 +21760,10 @@ appFormly.controller("CustomformCtrl", [
21760
               }
21760
               }
21761
             });
21761
             });
21762
           });
21762
           });
21763
-          if (vm.model.incident && !vm.model.incident.branch.id && !vm.model.incident.area.id && !vm.model.incident.place.id){}else {
21763
+          if (vm.model.incident){
21764
+            if(vm.model.incident.branch.id && vm.model.incident.area.id && vm.model.incident.place.id){
21765
+
21766
+            }else if(vm.model.incident.branch.id || vm.model.incident.area.id || vm.model.incident.place.id){
21764
               startsub = false;
21767
               startsub = false;
21765
               $scope.ldloading.expand_right = false;
21768
               $scope.ldloading.expand_right = false;
21766
               SweetAlert.swal({
21769
               SweetAlert.swal({
@@ -21769,6 +21772,7 @@ appFormly.controller("CustomformCtrl", [
21769
                   type: "error",
21772
                   type: "error",
21770
                   confirmButtonColor: "#DD6B55"
21773
                   confirmButtonColor: "#DD6B55"
21771
               });
21774
               });
21775
+            }
21772
           }
21776
           }
21773
           // if (vm.model.requestershow && vm.model.requestershow != null && vm.model.requestershow != '') {} else {
21777
           // if (vm.model.requestershow && vm.model.requestershow != null && vm.model.requestershow != '') {} else {
21774
           //     startsub = false;
21778
           //     startsub = false;