Procházet zdrojové kódy

认证计费接口修改

seimin před 5 měsíci
rodič
revize
f953ea3657

+ 31 - 31
assets/js/controllers/customform/customformCtrl.js

@@ -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
                     // 沟通记录不为空并且事件是处理中状态

+ 27 - 31
assets/views/partials/off-right-hk.html

@@ -17,43 +17,47 @@
17 17
                 <div>
18 18
                     <div>
19 19
                         <div class="col-md-6 padding-top-5 pull-left">
20
-                            用户名:<span class="recentin">{{sumInfo.userId}}</span>
20
+                            名称: <span class="recentin">{{sumInfo.user_name}}</span>
21 21
                         </div>
22 22
                         <div class=" col-md-6 padding-top-5 pull-left">
23
-                            用户姓名:<span class="recentin"> {{sumInfo.userName}}</span>
23
+                            账号名称: <span class="recentin"> {{sumInfo.user_real_name}}</span>
24 24
                         </div>
25 25
                         <div class=" col-md-6 padding-top-5 pull-left">
26
-                            套餐: <span class="recentin">{{sumInfo.packageName}}</span>
26
+                            到期时间: <span class="recentin">{{sumInfo.user_expire_time}}</span>
27 27
                         </div>
28 28
                         <div class=" col-md-6 padding-top-5 pull-left">
29
-                            计费策略: <span class="recentin">{{sumInfo.policyId}}</span>
29
+                            余额(分): <span class="recentin">{{sumInfo.balance}}</span>
30 30
                         </div>
31 31
                         <div class=" col-md-6 padding-top-5 pull-left">
32
-                            账户余额: <span class="recentin">{{sumInfo.accountFee}}元</span>
32
+                            状态: <span class="recentin">{{sumInfo.user_status}}</span>
33 33
                         </div>
34
+                    </div>
35
+                </div>
36
+
37
+            </div>
38
+
39
+        </tab>
40
+        <tab heading="套餐信息" style="min-width:50%;">
41
+            <div class="category">
42
+                <div>
43
+                    <div>
34 44
                         <div class="col-md-6 padding-top-5 pull-left">
35
-                            模版名: <span class="recentin">{{sumInfo.atName}}</span>
45
+                            套餐名称: <span class="recentin">{{(sumInfo.packageInfos && sumInfo.packageInfos[0]) ? sumInfo.packageInfos[0].package_name : ''}}</span>
36 46
                         </div>
37 47
                         <div class=" col-md-6 padding-top-5 pull-left">
38
-                            自动销户时间: <span class="recentin">{{sumInfo.autologicDestroyTime}}</span>
48
+                            套餐描述: <span class="recentin"> {{(sumInfo.packageInfos && sumInfo.packageInfos[0]) ? sumInfo.packageInfos[0].description : ''}}</span>
39 49
                         </div>
40 50
                         <div class=" col-md-6 padding-top-5 pull-left">
41
-                            移动电话: <span class="recentin">{{sumInfo.mobile}}</span>
51
+                            总流量(kb): <span class="recentin">{{(sumInfo.packageInfos && sumInfo.packageInfos[0]) ? sumInfo.packageInfos[0].package_remain_bytes : ''}}</span>
42 52
                         </div>
43 53
                         <div class=" col-md-6 padding-top-5 pull-left">
44
-                            电话号码: <span class="recentin">{{sumInfo.tel}}</span>
54
+                            总时长(分钟): <span class="recentin">{{(sumInfo.packageInfos && sumInfo.packageInfos[0]) ? sumInfo.packageInfos[0].package_remain_seconds : ''}}</span>
45 55
                         </div>
46 56
                         <div class=" col-md-6 padding-top-5 pull-left">
47
-                            住址: <span class="recentin">{{sumInfo.address}}</span>
57
+                            套餐金额: <span class="recentin">{{(sumInfo.packageInfos && sumInfo.packageInfos[0]) ? sumInfo.packageInfos[0].checkout_amount : ''}}</span>
48 58
                         </div>
49
-                        <div class=" col-md-6 padding-top-5 pull-left">
50
-                            本周期起始: <span class="recentin">{{sumInfo.periodStartTime}}</span>
51
-                        </div>
52
-                        <div class=" col-md-6 padding-top-5 pull-left">
53
-                            下次记账时刻:<span class="recentin"> {{sumInfo.nextBillingTime}}</span>
54
-                        </div>
55
-                        <div class=" col-md-6 padding-top-5 pull-left">
56
-                            是否是黑名单: <span class="recentin">{{sumInfo.blacklist}}</span>
59
+                        <div class="col-md-6 padding-top-5 pull-left">
60
+                            有效起始日期: <span class="recentin">{{(sumInfo.packageInfos && sumInfo.packageInfos[0]) ? sumInfo.packageInfos[0].checkout_date : ''}}</span>
57 61
                         </div>
58 62
                     </div>
59 63
                 </div>
@@ -61,14 +65,9 @@
61 65
             </div>
62 66
 
63 67
         </tab>
64
-        <tab heading="报修人上网登录信息 " style="min-width:50% ">
68
+        <!-- <tab heading="报修人上网登录信息 " style="min-width:50% ">
65 69
             <div class="changechar active">
66
-                <!-- <div class="showright active"> -->
67
-                <!-- <div class="grid"> -->
68
-                <!--<div class="grid__item" ng-repeat="item in [1,2,3,4,5,6,7,8,9,10,11,12]">-->
69 70
                 <div>
70
-                    <!-- <a ng-click="showpage(item)"> -->
71
-                    <!-- <div class="title--preview">{{item.userip}}</div> -->
72 71
                     <div ng-repeat="item in logininform_sumInfo">
73 72
                         <div class="col-sm-12 ">
74 73
                             <span class="category pull-left ">用户IPv4:<span class="recentin">{{item.userIpv4}}</span></span>
@@ -97,12 +96,9 @@
97 96
                             <hr style="margin-top: 0px;margin-bottom: 0px;margin-left:-15px;width:500px; height:1px;border:none;border-top:1px double #185598;" />
98 97
                         </div>
99 98
                     </div>
100
-                    <!-- </a> -->
101 99
                 </div>
102
-                <!-- </div> -->
103
-                <!-- </div> -->
104 100
             </div>
105
-        </tab>
101
+        </tab> -->
106 102
     </tabset>
107 103
     <!-- end: FIXED HEADER -->
108 104
 </div>
@@ -115,12 +111,12 @@
115 111
         overflow-x: hidden;
116 112
         font-size: 12px;
117 113
     }
118
-    
114
+
119 115
     .tab-content>.active {
120 116
         /* display: none; */
121 117
         padding: 0px;
122 118
     }
123
-    
119
+
124 120
     .nav-tabs>li>a {
125 121
         border: 0 none;
126 122
         border-radius: 5;
@@ -129,7 +125,7 @@
129 125
         font-size: 12px;
130 126
         padding: 10px 5px;
131 127
     }
132
-    
128
+
133 129
     .loaderinform {
134 130
         height: 1px;
135 131
         width: 100%;