Procházet zdrojové kódy

区域地点回归,故障地点取消

seimin před 3 roky
rodič
revize
91be484e1e

+ 34 - 36
assets/js/controllers/customform/customformCtrl.js

@@ -9172,11 +9172,9 @@ appFormly.config(
9172 9172
                                     // if (selectedItem.dept.place.place) {
9173 9173
                                     //     scope.$parent.$parent.$parent.model.incident.houseNumber = selectedItem.dept.place.area.area + selectedItem.dept.place.place
9174 9174
                                     // }
9175
-                                    if(selectedItem.houseNumber){//微信web报障传过来的
9176
-                                        scope.$parent.$parent.$parent.model.incident.houseNumber = selectedItem.houseNumber;
9177
-                                    }else if (selectedItem.place&&selectedItem.place.place) {
9178
-                                        scope.$parent.$parent.$parent.model.incident.houseNumber = selectedItem.place.area.area + selectedItem.place.place
9179
-                                    }
9175
+                                    scope.$parent.$parent.$parent.model.incident.houseNumber = selectedItem.houseNumber?selectedItem.houseNumber:'';
9176
+                                    scope.$parent.$parent.$parent.model.incident.area.id = selectedItem.place?selectedItem.place.area.id:null;
9177
+                                    scope.$parent.$parent.$parent.model.incident.place.id = selectedItem.place?selectedItem.place.id:null;
9180 9178
                                     console.log(scope,89898998)
9181 9179
                                     // console.log(scope.formData,'接单页面');
9182 9180
                                     //1,选择报修人后带入区域地点2020年4月23日19:34:17
@@ -9217,9 +9215,9 @@ appFormly.config(
9217 9215
                                                 //         scope.$parent.$parent.$parent.model.incident.area.id = selectedItem.place.area.id
9218 9216
                                                 //     };
9219 9217
                                                 // }
9220
-                                                if(scope.$parent.$parent.$parent.model.incident.area){
9221
-                                                    scope.$parent.$parent.$parent.model.incident.area.id = 1;//teshu
9222
-                                                }
9218
+                                                // if(scope.$parent.$parent.$parent.model.incident.area){
9219
+                                                //     scope.$parent.$parent.$parent.model.incident.area.id = 1;//teshu
9220
+                                                // }
9223 9221
                                                 if (selectedItem.id) {
9224 9222
                                                     scope.$parent.$parent.$parent.model.incident.account = selectedItem.account;
9225 9223
                                                 }
@@ -9264,10 +9262,10 @@ appFormly.config(
9264 9262
                             if ($scope.$parent && $scope.$parent.$parent.$parent.model && $scope.$parent.$parent.$parent.model.incident.area && $scope.$parent.$parent.$parent.model.incident.area.id) {
9265 9263
                                 $scope.options.templateOptions.linkage("place", {
9266 9264
                                     "place": {
9267
-                                        // "areaId": $scope.$parent.$parent.$parent.model.incident.area.id
9268
-                                        area:{
9269
-                                            id:$scope.$parent.$parent.$parent.model.incident.area.id
9270
-                                        }
9265
+                                        "areaId": $scope.$parent.$parent.$parent.model.incident.area.id
9266
+                                        // area:{
9267
+                                        //     id:$scope.$parent.$parent.$parent.model.incident.area.id
9268
+                                        // }
9271 9269
                                     }
9272 9270
                                 }, $scope.$parent.$parent.$parent.model, "incident", "place");
9273 9271
                             }
@@ -11214,9 +11212,9 @@ appFormly.config(
11214 11212
                                     };
11215 11213
                                     $scope.searchKey = selectedItem.account;
11216 11214
                                     // $scope.$parent.$parent.$parent.model['requestershow'] = selectedItem;
11217
-                                    if (selectedItem.place && selectedItem.place.place) {
11218
-                                        $scope.$parent.$parent.$parent.model.incident.houseNumber = selectedItem.place.area.area + selectedItem.place.place
11219
-                                    }
11215
+                                    // if (selectedItem.place && selectedItem.place.place) {
11216
+                                    //     $scope.$parent.$parent.$parent.model.incident.houseNumber = selectedItem.place.area.area + selectedItem.place.place
11217
+                                    // }
11220 11218
                                     options.templateOptions.UserService.addData('requester', data).then(function (response) {
11221 11219
                                         if (response.status == 200) {
11222 11220
                                             if (options.model) {
@@ -11252,23 +11250,23 @@ appFormly.config(
11252 11250
                                             //新增报修人带入区域地点2020年4月23日19:48:15
11253 11251
                                             $scope.model.selecthouseNumber = selectedItem.place?selectedItem.place:{};
11254 11252
                                             $scope.$root.selecthouseNumber = selectedItem.place?selectedItem.place:{};
11255
-                                            // if ($scope.$parent.$parent.$parent.model.saveAgain) {
11256
-                                            //     if (selectedItem.place && selectedItem.place.id) {
11257
-                                            //         options.model.place.id = selectedItem.place.id
11258
-                                            //         options.model.place.area.id = selectedItem.place.area.id
11259
-                                            //     };
11260
-                                            // } else {
11261
-                                            //     if (selectedItem.place && selectedItem.place.id) {
11262
-                                            //         options.model.place.id = selectedItem.place.id
11263
-                                            //         options.model.area.id = selectedItem.place.area.id
11264
-                                            //     };
11265
-                                            // }
11253
+                                            if ($scope.$parent.$parent.$parent.model.saveAgain) {
11254
+                                                if (selectedItem.place && selectedItem.place.id) {
11255
+                                                    options.model.place.id = selectedItem.place.id
11256
+                                                    options.model.place.area.id = selectedItem.place.area.id
11257
+                                                };
11258
+                                            } else {
11259
+                                                if (selectedItem.place && selectedItem.place.id) {
11260
+                                                    options.model.place.id = selectedItem.place.id
11261
+                                                    options.model.area.id = selectedItem.place.area.id
11262
+                                                };
11263
+                                            }
11266 11264
                                             // if (selectedItem.areaDTO && selectedItem.place.area.id) {
11267 11265
                                             //     options.model.area.id = selectedItem.place.area.id
11268 11266
                                             // }
11269
-                                            // if (selectedItem.houseNumber) {
11270
-                                            //     options.model.houseNumber = selectedItem.houseNumber
11271
-                                            // }
11267
+                                            if (selectedItem.houseNumber) {
11268
+                                                options.model.houseNumber = selectedItem.houseNumber
11269
+                                            }
11272 11270
                                             // if (selectedItem.id) {
11273 11271
                                             options.model.account = selectedItem.account;
11274 11272
                                             // 找到表单报修人组件,并使用组件内部方法重新获取增加报修人后的报修人下拉选项
@@ -16616,13 +16614,13 @@ appFormly.controller('CustomformCtrl', ['$rootScope', '$scope', '$parse', '$inje
16616 16614
             // console.log("modelWatch:"+ JSON.stringify(modelWatch));
16617 16615
             // 进入页面时判断有无携带区域地点2020年4月24日10:30:41
16618 16616
             console.log(modelWatch,$rootScope)
16619
-            if(modelWatch.model.incident){
16620
-                if(modelWatch.model.incident.place){
16621
-                    $rootScope.selecthouseNumber = modelWatch.modle.incident.place;
16622
-                }else{
16623
-                    $rootScope.selecthouseNumber = undefined;
16624
-                }
16625
-            }
16617
+            // if(modelWatch.model.incident){
16618
+            //     if(modelWatch.model.incident.place){
16619
+            //         $rootScope.selecthouseNumber = modelWatch.modle.incident.place;
16620
+            //     }else{
16621
+            //         $rootScope.selecthouseNumber = undefined;
16622
+            //     }
16623
+            // }
16626 16624
         }
16627 16625
         if (angular.isDefined($state.current.pdKey) && $state.current.pdKey != "") {
16628 16626
             pdKey = $state.current.pdKey;

+ 2 - 2
assets/js/controllers/incident/incidentCtrl.js

@@ -242,10 +242,10 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
242 242
             },
243 243
             {
244 244
                 name: 'houseNumber',
245
-                displayName: '故障地点',
245
+                displayName: '区域地点',
246 246
                 width: '14%',
247 247
                 enableFiltering: false,
248
-                cellTemplate: '<div><div class="ui-grid-cell-contents">{{row.entity.houseNumber}}</div></div>'
248
+                cellTemplate: '<div><div class="ui-grid-cell-contents">{{grid.appScope.areaplace(row.entity)}}</div></div>'
249 249
             },
250 250
             {
251 251
                 name: 'acceptUser.name',

+ 2 - 2
assets/js/controllers/system/systemFormCtrl.js

@@ -447,8 +447,8 @@ sysFormly.controller('SystemformCtrl', ['$rootScope', '$scope', '$parse', '$filt
447 447
                 'model': {
448 448
                     'incident': {
449 449
                         'requester': data.incident.requester,
450
-                        // 'area': data.incident.place.area,
451
-                        // 'place': data.incident.place,
450
+                        'area': data.incident.place.area,
451
+                        'place': data.incident.place,
452 452
                         'houseNumber': data.incident.address,
453 453
                         'contacts': data.incident.contacts,
454 454
                         'contactsInformation': data.incident.contactsInformation,

+ 3 - 3
assets/views/desk/jry_wxDetail.html

@@ -164,9 +164,9 @@
164 164
           <div class="message" ng-show="repairMain.valueconfig ==2"></div>
165 165
           <div class="message">联系人:{{model.contacts}}</div>
166 166
           <div class="message">联系电话:{{model.contactsInformation}}</div>
167
-          <!-- <div class="message">区域:{{model.place.area.area}}</div> -->
168
-          <!-- <div class="message">地点:{{model.place.place}}</div> -->
169
-          <div class="message">故障地点:{{model.address}}</div>
167
+          <div class="message">区域:{{model.place.area.area}}</div>
168
+          <div class="message">地点:{{model.place.place}}</div>
169
+          <div class="message">详细地址:{{model.address}}</div>
170 170
           <div class="messageCont">报修内容:{{model.incidentDescription}}</div>
171 171
         </div>
172 172
       </div>

+ 29 - 3
assets/views/incident/list.html

@@ -110,11 +110,9 @@
110 110
                             </div>
111 111
                         </div>
112 112
 
113
-                        <div class="form-group incidentsearch  wt_width">
113
+                        <!-- <div class="form-group incidentsearch  wt_width">
114 114
                             <div class="">
115 115
                                 <div class="control-label pull-left margin-top-5">故障地点:</div>
116
-                                <!-- <input class=" inputcolor wt_width1 wt_width3 pull-right" type="text"
117
-                                    ng-model="searchkeys.houseNumber" placeholder="" /> -->
118 116
                                 <div class="address-wrap pull-right wt_width1 wt_width3">
119 117
                                     <input class=" inputcolor"
120 118
                                         type="text" ng-model="searchkeys.houseNumber" id="bx_address" placeholder=""
@@ -125,6 +123,34 @@
125 123
                                     </ul>
126 124
                                 </div>
127 125
                             </div>
126
+                        </div> -->
127
+                        <div class="form-group incidentsearch wt_width">
128
+                            <!-- <div class="pull-right"> -->
129
+                            <div class="control-label pull-left margin-top-5 ">区域:</div>
130
+                            <ui-select class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.area" theme="bootstrap"
131
+                                ng-change="onChangearea(searchkeys)">
132
+                                <ui-select-match placeholder="">
133
+                                    {{$select.selected.area}}
134
+                                </ui-select-match>
135
+                                <ui-select-choices repeat="item in outarea | filter: $select.search">
136
+                                    <div ng-bind-html="item.area | highlight: $select.search"></div>
137
+                                </ui-select-choices>
138
+                            </ui-select>
139
+                            <!-- </div> -->
140
+                        </div>
141
+                        <div class="form-group incidentsearch wt_width">
142
+                            <!-- <div class="pull-right"> -->
143
+                            <div class="control-label pull-left margin-top-5">地点:</div>
144
+                            <ui-select class="pull-right selectzise wt_width1 wt_width3" ng-model="searchkeys.place" theme="bootstrap"
145
+                                ng-change="onChangeplace(key)">
146
+                                <ui-select-match placeholder="">
147
+                                    {{$select.selected.place}}
148
+                                </ui-select-match>
149
+                                <ui-select-choices repeat="item in outplace | filter: $select.search">
150
+                                    <div ng-bind-html="item.place | highlight: $select.search"></div>
151
+                                </ui-select-choices>
152
+                            </ui-select>
153
+                            <!-- </div> -->
128 154
                         </div>
129 155
                         <div class="form-group incidentsearch  wt_width">
130 156
                             <div class="control-label pull-left margin-top-5">状态:</div>