Browse Source

增加报修人区域地点保存复选框

seimin 3 years ago
parent
commit
60b0a99b35

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

@@ -11544,6 +11544,13 @@ appFormly.config(
11544 11544
             },
11545 11545
             controller: ['$scope', 'api_user_data', 'api_statistic', function ($scope, api_user_data, api_statistic) {
11546 11546
                 $scope.options.initialValue = $scope.model[$scope.options.key];
11547
+                $scope.saveReqPlace = false;
11548
+                $scope.model.saveReqPlace = false;
11549
+                $scope.selectGradeBox = function(){
11550
+                    $scope.saveReqPlace = !$scope.saveReqPlace;
11551
+                    console.log($scope);
11552
+                    $scope.model.saveReqPlace = $scope.saveReqPlace;
11553
+                }
11547 11554
                 if ($scope.model.requester && $scope.model.requester.requesterTypeDTO && $scope.model.requester.requesterTypeDTO.id == 2) {
11548 11555
                     $scope.$parent.$parent.$parent.model.incident.priority.id = 2;
11549 11556
                     $scope.$parent.$parent.$parent.model.incident.emergency.id = 2;
@@ -17238,6 +17245,7 @@ appFormly.controller('CustomformCtrl', ['$rootScope', '$scope', '$parse', '$inje
17238 17245
         // 创建事件seimin
17239 17246
         vm.submit = function (data, style) {
17240 17247
             console.log(vm,22222);
17248
+            // return;
17241 17249
             if (vm.model.handler_code == undefined) {
17242 17250
                 vm.model.handler_code = "resolve";
17243 17251
             }
@@ -17279,8 +17287,9 @@ appFormly.controller('CustomformCtrl', ['$rootScope', '$scope', '$parse', '$inje
17279 17287
                                     } else {
17280 17288
                                         startsub = false;
17281 17289
                                         $scope.ldloading.expand_right = false;
17290
+                                        console.log(vm)
17282 17291
                                         SweetAlert.swal({
17283
-                                            title: index.templateOptions.label + '未填',
17292
+                                            title: index.templateOptions.label + '未填2',
17284 17293
                                             text: "请填写此项!",
17285 17294
                                             type: "error",
17286 17295
                                             confirmButtonColor: "#DD6B55"
@@ -17451,6 +17460,7 @@ appFormly.controller('CustomformCtrl', ['$rootScope', '$scope', '$parse', '$inje
17451 17460
                                     //         id:$scope.$parent.$parent.$parent.$parent.$parent.$parent.selecthouseNumber.id
17452 17461
                                     //     }
17453 17462
                                     // }
17463
+                                    console.log(vm);
17454 17464
                                     api_bpm_domain.start(pdKey, data0327).then(function (response) {
17455 17465
 
17456 17466
                                         // console.log("response="+JSON.stringify(response)); 

+ 1 - 0
assets/views/customform/tpl/ui-requesterinformation.html

@@ -94,6 +94,7 @@
94 94
                     
95 95
         <button style=" margin: 0;line-height: 10px;" ng-click="options.templateOptions['addRequeter']('lg',options,to.modal,$event);"
96 96
             class="btn btn-addbutton  addbutton col-md-offset-5 col-md-12">添加报修人</button>
97
+        <div style="margin-top: 8px;float: left;"><input type="checkbox" ng-click="selectGradeBox()" ng-checked="saveReqPlace" id="saveAreaPlace" ng-disabled="!(model.place.id&&model.area.id)"><label for="saveAreaPlace" style="user-select: none;font-size: 15px;margin-left:8px;font-weight: bold;cursor: pointer;color: #333;">报修人区域地点保存</label></div>
97 98
         <!-- <button class="btn btn-default default col-md-4 col-md-offset-1" ng-click="options.templateOptions['changeRequeter']('lg',options,to.modal,model)">修改</button> -->
98 99
         <!-- </div> -->
99 100
     </div>