seimin 2 gadi atpakaļ
vecāks
revīzija
e4f58c5acf
2 mainītis faili ar 13 papildinājumiem un 2 dzēšanām
  1. 9 2
      assets/js/controllers/incident/incidentCtrl.js
  2. 4 0
      assets/js/main.js

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

@@ -2366,10 +2366,17 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
2366 2366
                             console.log(data);
2367 2367
                             $rootScope.isMask = false;
2368 2368
                             if (data.errno == 0) {
2369
-                                $scope.callId = '暂时写死';
2370 2369
                                 $rootScope.status = 6;
2370
+                                api_bpm_data.getCallRecordId('getCallRecordId',{ano: data.ano, bno: data.bno, agentId: data.agentID}).then(function(response){
2371
+                                    console.log(response)
2372
+                                    if (response.status == 200) {
2373
+                                        $scope.callId = response.data || undefined;//暂时写死
2374
+                                    } else {
2375
+                                        $scope.callId = undefined;
2376
+                                    }
2377
+                                });
2371 2378
                             }else{
2372
-                                $scope.callId = '';
2379
+                                $scope.callId = undefined;
2373 2380
                             }
2374 2381
                         })
2375 2382
                       } else {

+ 4 - 0
assets/js/main.js

@@ -957,6 +957,10 @@ app.factory('api_bpm_data', ['BpmRestangular', function (BpmRestangular) {
957 957
     var inspectionProcessActual = BpmRestangular.all("InspectionProcessActual");
958 958
     var solutionService = BpmRestangular.all("solution");
959 959
     return {
960
+        // 沟通记录获取callId
961
+        getCallRecordId: function (data) {
962
+            return dataService.customPOST(data, 'getCallRecordId');
963
+        },
960 964
         // 获取首页今日上班清空
961 965
         getManagerIndexInfo: function (data) {
962 966
             return dataService.customPOST(data, 'getManagerIndexInfo');