|
@@ -9121,36 +9121,36 @@ appFormly.config(function config(formlyConfigProvider) {
|
9121
|
9121
|
$scope.isHk = true;
|
9122
|
9122
|
if($rootScope.isHk){
|
9123
|
9123
|
//用户信息
|
9124
|
|
- api_webservice1.fetchDataList("queryUser", { "userId": $scope.model.incident.account }).then(function(response) {
|
|
9124
|
+ api_bpm_data.sumInfo($scope.model.incident.account).then(function(response) {
|
9125
|
9125
|
// if (response.status == 200) {
|
9126
|
9126
|
if (response && response.data) {
|
9127
|
|
- angular.extend($scope.sumInfo, response.data[0]);
|
|
9127
|
+ angular.extend($scope.sumInfo, response.data);
|
9128
|
9128
|
// $scope.sumInfo = response.data[0];
|
9129
|
|
- $scope.sumInfo.autologicDestroyTime = moment(response.data[0].autologicDestroyTime).format('YYYY-MM-DD');
|
9130
|
|
- $scope.sumInfo.periodStartTime = moment(response.data[0].periodStartTime).format('YYYY-MM-DD');
|
9131
|
|
- $scope.sumInfo.nextBillingTime = moment(response.data[0].nextBillingTime).format('YYYY-MM-DD');
|
|
9129
|
+ // $scope.sumInfo.autologicDestroyTime = moment(response.data[0].autologicDestroyTime).format('YYYY-MM-DD');
|
|
9130
|
+ // $scope.sumInfo.periodStartTime = moment(response.data[0].periodStartTime).format('YYYY-MM-DD');
|
|
9131
|
+ // $scope.sumInfo.nextBillingTime = moment(response.data[0].nextBillingTime).format('YYYY-MM-DD');
|
9132
|
9132
|
} else if (response.err) {
|
9133
|
9133
|
SweetAlert.swal("系统错误!", "用户信息未取到,请刷新重试", "error");
|
9134
|
9134
|
}
|
9135
|
9135
|
// }
|
9136
|
9136
|
})
|
9137
|
9137
|
//上网明细
|
9138
|
|
- api_webservice1.fetchDataList("queryOnlineDetail", { "userId": $scope.model.incident.account, "limit": "10", "fromLoginTime": moment(new Date().getTime() - 86400000 * 6).format('YYYY-MM-DD HH:mm:ss'), "toLogoutTime": moment(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss') }).then(function(response) {
|
9139
|
|
- // if (response.status == 200) {
|
9140
|
|
- if (response && response.data) {
|
9141
|
|
- angular.forEach(response.data, function(item, index) {
|
9142
|
|
- if (item.logoutTime) {
|
9143
|
|
- response.data[index].logoutTime = moment(item.logoutTime).format('YYYY-MM-DD HH:mm:ss');
|
9144
|
|
- }
|
9145
|
|
- if (item.loginTime) {
|
9146
|
|
- response.data[index].loginTime = moment(item.loginTime).format('YYYY-MM-DD HH:mm:ss');
|
9147
|
|
- }
|
9148
|
|
- })
|
9149
|
|
- $scope.logininform_sumInfo = response.data;
|
9150
|
|
- } else if (response.err) {
|
9151
|
|
- SweetAlert.swal("上网明细未取到", "该用户暂无上网明细", "error");
|
9152
|
|
- }
|
9153
|
|
- })
|
|
9138
|
+ // api_webservice1.fetchDataList("queryOnlineDetail", { "userId": $scope.model.incident.account, "limit": "10", "fromLoginTime": moment(new Date().getTime() - 86400000 * 6).format('YYYY-MM-DD HH:mm:ss'), "toLogoutTime": moment(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss') }).then(function(response) {
|
|
9139
|
+ // // if (response.status == 200) {
|
|
9140
|
+ // if (response && response.data) {
|
|
9141
|
+ // angular.forEach(response.data, function(item, index) {
|
|
9142
|
+ // if (item.logoutTime) {
|
|
9143
|
+ // response.data[index].logoutTime = moment(item.logoutTime).format('YYYY-MM-DD HH:mm:ss');
|
|
9144
|
+ // }
|
|
9145
|
+ // if (item.loginTime) {
|
|
9146
|
+ // response.data[index].loginTime = moment(item.loginTime).format('YYYY-MM-DD HH:mm:ss');
|
|
9147
|
+ // }
|
|
9148
|
+ // })
|
|
9149
|
+ // $scope.logininform_sumInfo = response.data;
|
|
9150
|
+ // } else if (response.err) {
|
|
9151
|
+ // SweetAlert.swal("上网明细未取到", "该用户暂无上网明细", "error");
|
|
9152
|
+ // }
|
|
9153
|
+ // })
|
9154
|
9154
|
//黑名单
|
9155
|
9155
|
// $scope.sumInfo.blacklist = "否"
|
9156
|
9156
|
api_webservice1.fetchDataList("queryInhibit", { "userId": $scope.model.incident.account }).then(function(response) {
|
|
@@ -11296,7 +11296,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
11296
|
11296
|
$scope.$parent.$parent.$parent.model.incident.account = paramsModel.model.incident.requester.account;
|
11297
|
11297
|
}
|
11298
|
11298
|
}
|
11299
|
|
-
|
|
11299
|
+
|
11300
|
11300
|
//处理人根据事件分类自动带入baba
|
11301
|
11301
|
if ($scope.options.templateOptions.onlyKey == "c_handlerUser") {
|
11302
|
11302
|
console.log($scope.options.templateOptions.pkey);
|
|
@@ -13230,7 +13230,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
13230
|
13230
|
'<div class="ui-grid-cell-contents">{{row.entity.endTime?grid.appScope.transferTime(row.entity.endTime):""}}</div>' +
|
13231
|
13231
|
'</div>'
|
13232
|
13232
|
},
|
13233
|
|
-
|
|
13233
|
+
|
13234
|
13234
|
// {
|
13235
|
13235
|
// name: "batchNo",
|
13236
|
13236
|
// displayName: "批次号",
|
|
@@ -14220,7 +14220,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
14220
|
14220
|
if (options.model.area) {
|
14221
|
14221
|
options.model.area.id = "";
|
14222
|
14222
|
}
|
14223
|
|
-
|
|
14223
|
+
|
14224
|
14224
|
options.model.contacts = selectedItem.name;
|
14225
|
14225
|
if (
|
14226
|
14226
|
selectedItem.mphone &&
|
|
@@ -14341,7 +14341,7 @@ appFormly.config(function config(formlyConfigProvider) {
|
14341
|
14341
|
});
|
14342
|
14342
|
}
|
14343
|
14343
|
});
|
14344
|
|
-
|
|
14344
|
+
|
14345
|
14345
|
// }
|
14346
|
14346
|
// $scope.$parent.$parent.$parent.model.incident.requester = selectedItem
|
14347
|
14347
|
// 选择重复事件侧滑框
|
|
@@ -22193,7 +22193,7 @@ appFormly.controller("CustomformCtrl", [
|
22193
|
22193
|
currentUserRoles = $rootScope.user.role ? $rootScope.user.role.map(v=>String(v.id)) : [];
|
22194
|
22194
|
intersection = integralRoles.filter(function (val) { return currentUserRoles.indexOf(val) > -1 });
|
22195
|
22195
|
}
|
22196
|
|
-
|
|
22196
|
+
|
22197
|
22197
|
if(resetDuty === "false" && vm.model.start_code == "close"&&((integralMechanism == 1 && (intersection.length || integralRoles.length === 0)) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
|
22198
|
22198
|
$modal.open({
|
22199
|
22199
|
templateUrl: 'assets/views/incident/tpl/toIntegralMechanism.tpl.html',
|
|
@@ -22242,7 +22242,7 @@ appFormly.controller("CustomformCtrl", [
|
22242
|
22242
|
$scope.auditors = [];
|
22243
|
22243
|
$scope.onChangehandling();
|
22244
|
22244
|
$scope.onChangeComplexity = function(item){
|
22245
|
|
-
|
|
22245
|
+
|
22246
|
22246
|
}
|
22247
|
22247
|
$scope.ok = function () {
|
22248
|
22248
|
if (!$scope.complexityConfirm.complexity){
|
|
@@ -22357,7 +22357,7 @@ appFormly.controller("CustomformCtrl", [
|
22357
|
22357
|
if(resetDuty === "false" && vm.model.start_code == "close"&&((integralMechanism == 1 && (intersection.length || integralRoles.length === 0)) || (integralMechanism == 2 && $rootScope.user.userType.value == 2))){
|
22358
|
22358
|
api_wechatfile.getDictionary({"key":"incident_integral_state","type":"list"}).then(function(res){
|
22359
|
22359
|
var auditState = res.find(v=>v.value == 0);
|
22360
|
|
- var postData = {
|
|
22360
|
+ var postData = {
|
22361
|
22361
|
incidentIntegral: {
|
22362
|
22362
|
incidentId:resData.bussId,
|
22363
|
22363
|
auditState:auditState,
|
|
@@ -22424,7 +22424,7 @@ appFormly.controller("CustomformCtrl", [
|
22424
|
22424
|
}
|
22425
|
22425
|
);
|
22426
|
22426
|
}
|
22427
|
|
-
|
|
22427
|
+
|
22428
|
22428
|
} else {
|
22429
|
22429
|
SweetAlert.swal({
|
22430
|
22430
|
title: "系统错误",
|
|
@@ -22544,7 +22544,7 @@ appFormly.controller("CustomformCtrl", [
|
22544
|
22544
|
api_wechatfile.getDictionary({"key":"incident_integral_state","type":"list"}).then(function(res){
|
22545
|
22545
|
// var auditState = $scope.complexityConfirm.complexity.value == $scope.complexity?res.find(v=>v.value == 1):res.find(v=>v.value == 0);
|
22546
|
22546
|
var auditState = $scope.complexityConfirm.complexity.value != $scope.complexity ? res.find(v=>v.value == 0) : res.find(v=>v.value == 1);
|
22547
|
|
- var postData = {
|
|
22547
|
+ var postData = {
|
22548
|
22548
|
incidentIntegral: {
|
22549
|
22549
|
incidentId:incidentData.id,
|
22550
|
22550
|
auditState:auditState,
|
|
@@ -22605,7 +22605,7 @@ appFormly.controller("CustomformCtrl", [
|
22605
|
22605
|
}else{
|
22606
|
22606
|
handlerLogFn();
|
22607
|
22607
|
}
|
22608
|
|
-
|
|
22608
|
+
|
22609
|
22609
|
function handlerLogFn(){
|
22610
|
22610
|
//沟通记录
|
22611
|
22611
|
// 沟通记录不为空并且事件是处理中状态
|