seimin 2 anos atrás
pai
commit
28906c512b

+ 14 - 12
assets/js/controllers/report/service_formCtrl.js

@@ -283,40 +283,42 @@ app.controller('service_formCtrl', ["$scope", "$rootScope", "$state", "$timeout"
283
         $state.go(url,data);
283
         $state.go(url,data);
284
     }
284
     }
285
     $scope.serviceFormTo = function(rowData,type){
285
     $scope.serviceFormTo = function(rowData,type){
286
+        var starttimesModel = moment($scope.starttimesModel).format('YYYY-MM-DD');
287
+        var endtimesModel = moment($scope.endtimesModel).format('YYYY-MM-DD');
286
         console.log(rowData.userId);
288
         console.log(rowData.userId);
287
-        console.log($scope.starttimesModel);
288
-        console.log($scope.endtimesModel);
289
+        console.log(starttimesModel);
290
+        console.log(endtimesModel);
289
         switch(type){
291
         switch(type){
290
             case 'total':
292
             case 'total':
291
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId});
293
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId});
292
             break;
294
             break;
293
             case 'p_total':
295
             case 'p_total':
294
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, isDirectProcess:1});
296
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, isDirectProcess:1});
295
             break;
297
             break;
296
             case 'unp_total':
298
             case 'unp_total':
297
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, isDirectProcess:0});
299
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, isDirectProcess:0});
298
             break;
300
             break;
299
 
301
 
300
             case 'handle_phone':
302
             case 'handle_phone':
301
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'phone'});
303
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'phone'});
302
             break;
304
             break;
303
             case 'handle_wxweb':
305
             case 'handle_wxweb':
304
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'im'});
306
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'im'});
305
             break;
307
             break;
306
             case 'handle_msg':
308
             case 'handle_msg':
307
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'record'});
309
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'record'});
308
             break;
310
             break;
309
             case 'handle_desk':
311
             case 'handle_desk':
310
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'desk'});
312
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'desk'});
311
             break;
313
             break;
312
             case 'handle_other':
314
             case 'handle_other':
313
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'other'});
315
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'other'});
314
             break;
316
             break;
315
             case 'handle_discover':
317
             case 'handle_discover':
316
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'discover'});
318
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'discover'});
317
             break;
319
             break;
318
             case 'handle_leader':
320
             case 'handle_leader':
319
-            $scope.goTo('app.incident.list',{tab:'all',date:$scope.starttimesModel + 'to' + $scope.endtimesModel, acceptorId:rowData.userId, source:'leader'});
321
+            $scope.goTo('app.incident.list',{tab:'all',date:starttimesModel + 'to' + endtimesModel, acceptorId:rowData.userId, source:'leader'});
320
             break;
322
             break;
321
         }
323
         }
322
     }
324
     }

+ 1 - 2
assets/views/inspect/inspectReport.html

@@ -206,8 +206,7 @@
206
       </style>
206
       </style>
207
       <div class="fm">
207
       <div class="fm">
208
         <h1>巡&nbsp;&nbsp;检&nbsp;&nbsp;报&nbsp;&nbsp;告</h1>
208
         <h1>巡&nbsp;&nbsp;检&nbsp;&nbsp;报&nbsp;&nbsp;告</h1>
209
-          <!-- <div class="h2">{{queryList.title?queryList.title.title.split('').join('&nbsp;'):''}}</div> -->
210
-        <h2>我&nbsp是&nbsp你&nbsp的&nbsp小&nbsp平&nbsp阿&nbsp松&nbsp大&nbsp大&nbsp大&nbsp大</h2>
209
+        <h2>{{queryList.title?queryList.title.title.split('').join('&nbsp;'):''}}</h2>
211
         <h3>批次号:{{queryList.batchNo?queryList.batchNo.name:''}}</h3>
210
         <h3>批次号:{{queryList.batchNo?queryList.batchNo.name:''}}</h3>
212
       </div>
211
       </div>
213
       <table>
212
       <table>