|
@@ -2336,25 +2336,70 @@ app.controller('incidentListCtrl', ["$scope", "$http", "i18nService", "$rootScop
|
2336
|
2336
|
}
|
2337
|
2337
|
});
|
2338
|
2338
|
}
|
2339
|
|
- // 新增处理日志弹窗baba
|
|
2339
|
+ // 新增未沟通记录弹窗
|
2340
|
2340
|
$scope.toHandlerLog = function (model) {
|
2341
|
2341
|
console.log(model)
|
2342
|
2342
|
var modalInstance = $modal.open({
|
2343
|
2343
|
templateUrl: 'assets/views/incident/tpl/toHandlerLog.tpl.html',
|
2344
|
|
- controller: function ($scope, $modalInstance, api_bpm_domain,api_bpm_data, modelData, currentUserId, Alert, api_user_data) {
|
|
2344
|
+ controller: function ($scope, $rootScope, $modalInstance, api_bpm_domain,api_bpm_data, modelData, currentUserId, Alert, api_user_data) {
|
|
2345
|
+ $scope.model = model;
|
2345
|
2346
|
console.log(model,loginUser);
|
2346
|
2347
|
$scope.handlerLog = '';
|
|
2348
|
+ $scope.hdPhone = '';
|
|
2349
|
+ $scope.callId = '';
|
2347
|
2350
|
$scope.user = [];
|
|
2351
|
+ $scope.copyTo = function(phone){
|
|
2352
|
+ $scope.hdPhone = phone;
|
|
2353
|
+ }
|
|
2354
|
+
|
|
2355
|
+ $scope.dialout = function (teleno) {
|
|
2356
|
+ $rootScope.callout = 2;
|
|
2357
|
+ if (localStorage.getItem('fenjiNumber')) {
|
|
2358
|
+ $rootScope.toggle('off-sidebar');
|
|
2359
|
+ }else if(localStorage.getItem('hk_phone')){
|
|
2360
|
+ var gid = "@0"
|
|
2361
|
+ var telephone = '9' + teleno
|
|
2362
|
+ $rootScope.callout = 2;
|
|
2363
|
+ if ($rootScope.takes) {
|
|
2364
|
+ $rootScope.isMask = true;
|
|
2365
|
+ api_text.dialout($rootScope.takes, gid, telephone).then(function (data) {
|
|
2366
|
+ console.log(data);
|
|
2367
|
+ $rootScope.isMask = false;
|
|
2368
|
+ if (data.errno == 0) {
|
|
2369
|
+ $scope.callId = '暂时写死';
|
|
2370
|
+ $rootScope.status = 6;
|
|
2371
|
+ }else{
|
|
2372
|
+ $scope.callId = '';
|
|
2373
|
+ }
|
|
2374
|
+ })
|
|
2375
|
+ } else {
|
|
2376
|
+ SweetAlert.swal({
|
|
2377
|
+ title: "呼叫失败",
|
|
2378
|
+ text: "请先签入呼叫中心!",
|
|
2379
|
+ type: "error",
|
|
2380
|
+ confirmButtonColor: "#DD6B55"
|
|
2381
|
+ });
|
|
2382
|
+ }
|
|
2383
|
+ } else {
|
|
2384
|
+ SweetAlert.swal({
|
|
2385
|
+ title: "呼叫失败",
|
|
2386
|
+ text: "请先签入呼叫中心!",
|
|
2387
|
+ type: "error",
|
|
2388
|
+ confirmButtonColor: "#DD6B55",
|
|
2389
|
+ });
|
|
2390
|
+ }
|
|
2391
|
+ };
|
|
2392
|
+
|
2348
|
2393
|
$scope.ok = function () {
|
2349
|
2394
|
if (!$scope.handlerLog.trim()){
|
2350
|
2395
|
Alert.swal({
|
2351
|
2396
|
title: "操作失败",
|
2352
|
|
- text: "请填写处理日志!",
|
|
2397
|
+ text: "请填写沟通结果!",
|
2353
|
2398
|
type: "error"
|
2354
|
2399
|
});
|
2355
|
2400
|
return;
|
2356
|
2401
|
}
|
2357
|
|
- api_bpm_data.addData('operationLog',{operationLog:{opType:'handlerLog',opValue:$scope.handlerLog,extra1:model.id}}).then(function(response){
|
|
2402
|
+ api_bpm_data.addData('operationLog',{operationLog:{opType:'handlerLog',opValue:$scope.handlerLog,extra1:model.id, extra2: $scope.callId}}).then(function(response){
|
2358
|
2403
|
console.log(response)
|
2359
|
2404
|
if (response.status == 200) {
|
2360
|
2405
|
Alert.swal({
|
|
@@ -3047,7 +3092,7 @@ app.controller('IncidentOperCtrl', ['$rootScope', '$http', '$scope', '$modal', '
|
3047
|
3092
|
$scope.delSj = function () {
|
3048
|
3093
|
$scope.colobject.grid.appScope.delSj($scope.item);
|
3049
|
3094
|
}
|
3050
|
|
- // 新增处理日志
|
|
3095
|
+ // 新增未沟通记录
|
3051
|
3096
|
$scope.toHandlerLog = function () { //print
|
3052
|
3097
|
$scope.colobject.grid.appScope.toHandlerLog($scope.item);
|
3053
|
3098
|
// $scope.doEdit($scope.item.id);
|
|
@@ -3130,7 +3175,7 @@ app.directive('incidentoperator', function () {
|
3130
|
3175
|
'<a ng-click="visit()" ng-show="{{item.huifang&&huifang}}" class="bianjifont">回访</a>' +
|
3131
|
3176
|
'<a ng-click="changeCenter()" ng-show="jry_modify(item)" class="luyinfont">编辑</a>' +
|
3132
|
3177
|
'<a ng-click="toAssign()" ng-show="{{(item.state.id==1543||item.state.id==1544)&&assignFlag&&item.assignee}}" class="assign" >指派</a>' +
|
3133
|
|
- '<a ng-click="toHandlerLog()" ng-show="{{item.state.id==1544}}" class="assign" >新增处理日志</a>' +
|
|
3178
|
+ '<a ng-click="toHandlerLog()" ng-show="{{item.state.id==1544}}" class="assign" >新增未沟通记录</a>' +
|
3134
|
3179
|
'<a ng-click="delSj()" ng-show="{{delFlag&&item.state.value!== \'deleted\'}}" class="assign" >删除</a>' +
|
3135
|
3180
|
'<a ng-click="print()" ng-show="dayin" class="bianjifont" >打印</a>' +
|
3136
|
3181
|
// '<a ng-click="jry_evaluate()" ng-show="jry_evaluateShow()" class="luyinfont" >评价</a>' +
|