소스 검색

报修列表增加受理人和学号,BUG修复

seimin 3 년 전
부모
커밋
9ce85b09a4
3개의 변경된 파일23개의 추가작업 그리고 7개의 파일을 삭제
  1. 19 5
      assets/js/controllers/desk/chartCtrl.js
  2. 3 1
      assets/views/desk/jry_wxDetail.html
  3. 1 1
      assets/views/system/tpl/department.html

+ 19 - 5
assets/js/controllers/desk/chartCtrl.js

@@ -145,6 +145,13 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
145 145
             cellTemplate: '<div>' +
146 146
                 '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.contacts}}</div>' +
147 147
                 '</div>'
148
+        },{
149
+            name: 'requester.account',
150
+            displayName: '学号',
151
+            width:150,
152
+            cellTemplate: '<div>' +
153
+                '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.requester.account}}</div>' +
154
+                '</div>'
148 155
         }, {
149 156
             name: 'contactsInformation',
150 157
             displayName: '联系电话',
@@ -152,6 +159,13 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
152 159
             cellTemplate: '<div>' +
153 160
                 '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{row.entity.contactsInformation}}</div>' +
154 161
                 '</div>'
162
+        },{
163
+            name: 'incident.acceptUser.name',
164
+            displayName: '受理人',
165
+            width:150,
166
+            cellTemplate: '<div>' +
167
+                '<div class="ui-grid-cell-contents" style="cursor:pointer;text-align:center"  >{{(row.entity.incident&&row.entity.incident.acceptUser)?row.entity.incident.acceptUser.name:""}}</div>' +
168
+                '</div>'
155 169
         },
156 170
         // {
157 171
         //     name: 'requester.name',
@@ -185,7 +199,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
185 199
         },
186 200
         {
187 201
             name: '操作',
188
-            width:150,
202
+            width:200,
189 203
             cellTemplate: '<wechatoperator item="row.entity" colobject="col">',
190 204
             enableFiltering: false
191 205
         }
@@ -282,7 +296,7 @@ app.controller('chartCtrl', ["$scope", "i18nService", "$rootScope", "$state", "$
282 296
         },
283 297
         {
284 298
             name: '操作',
285
-            width:150,
299
+            width:200,
286 300
             cellTemplate: '<wechatoperator item="row.entity" colobject="col">',
287 301
             enableFiltering: false
288 302
         }
@@ -760,17 +774,17 @@ app.controller('Wechatoperator', ['$rootScope', '$http', '$scope', '$modal', fun
760 774
     }
761 775
     $scope.edit = function () {
762 776
         $scope.colobject.grid.appScope.selectRowFunction($scope.item);
763
-        $scope.doEdit($scope.item.id);
777
+        // $scope.doEdit($scope.item.id);
764 778
     }
765 779
     //查看,查看详情
766 780
     $scope.look = function () {
767 781
         $scope.colobject.grid.appScope.lookFunction($scope.item);
768
-        $scope.doEdit($scope.item.id);
782
+        // $scope.doEdit($scope.item.id);
769 783
     }
770 784
     //处理
771 785
     $scope.handleFn = function () {
772 786
         $scope.colobject.grid.appScope.toHandleFunction($scope.item);
773
-        $scope.doEdit($scope.item.id);
787
+        // $scope.doEdit($scope.item.id);
774 788
     }
775 789
     //查看事件
776 790
     $scope.seeIncident = function () {

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

@@ -160,6 +160,7 @@
160 160
           <div class="message" ng-show="repairMain.valueconfig ==1">报修人:{{model.requester.name}}</div>
161 161
           <div class="message" ng-show="repairMain.valueconfig ==2">报修科室:{{model.departmentDTO.dept}}</div>
162 162
           <div class="message" ng-show="repairMain.valueconfig ==1">报修电话:{{model.requester.mphone}}</div>
163
+          <div class="message" ng-show="repairMain.valueconfig ==1">学号:{{model.requester.account}}</div>
163 164
           <div class="message">状态:{{model.serviceState.name}}</div>
164 165
           <div class="message" ng-show="repairMain.valueconfig ==2"></div>
165 166
           <div class="message">联系人:{{model.contacts}}</div>
@@ -168,6 +169,7 @@
168 169
           <div class="message">地点:{{model.place.place}}</div>
169 170
           <div class="message">详细地址:{{model.address}}</div>
170 171
           <div class="message" ng-if="model.category">报修类别:{{model.category.category}}</div>
172
+          <div class="message" ng-if="model.incident">受理人:{{model.incident.acceptUser.name}}</div>
171 173
           <div class="messageCont">报修内容:{{model.incidentDescription}}</div>
172 174
         </div>
173 175
       </div>
@@ -196,7 +198,7 @@
196 198
             <div class="date-str-wrap">
197 199
               <div class="date-str">{{v.startTime}}</div>
198 200
               <span ng-if="v.user">【</span>{{v.user.name}}
199
-              {{v.user.phone}}<span ng-if="v.user">】</span>{{v.desc}}
201
+              {{v.user.phone}}<span ng-if="v.user">】</span><span ng-bind-html="v.desc"></span>
200 202
             </div>
201 203
           </div>
202 204
         </div>

+ 1 - 1
assets/views/system/tpl/department.html

@@ -37,7 +37,7 @@
37 37
         <div class="row form-group">
38 38
             <label class="col-md-3 col-md-offset-1 control-label">电话*:</label>
39 39
             <div class="col-md-7">
40
-                <input class="form-control" ng-model="check.phone" placeholder="请输入电话" />
40
+                <input class="form-control" ng-model="check.phone" maxlength="12" placeholder="请输入电话" />
41 41
             </div>
42 42
         </div>
43 43
         <div class="row form-group">