Kaynağa Gözat

定时报告

seimin 3 yıl önce
ebeveyn
işleme
2861a97fee

+ 2 - 0
assets/js/config.constant.js

@@ -113,6 +113,8 @@ app.constant('JS_REQUIRES', {
113 113
         'inspectListCtrl': 'assets/js/controllers/inspect/inspectListCtrl.js',
114 114
         'inspectForm': 'assets/js/controllers/inspect/inspectForm.js',
115 115
         'calllogCtrl': 'assets/js/controllers/desk/calllogCtrl.js',
116
+        // 计划任务
117
+        'timingMessageSendingCtrl': 'assets/js/controllers/plan/timingMessageSendingCtrl.js',
116 118
         //文档管理
117 119
         'jry_fileCtrl':'assets/js/controllers/file/jry_fileCtrl.js',//文档管理
118 120
         'jry_indexesCtrl':'assets/js/controllers/file/jry_indexesCtrl.js',//索引管理

+ 21 - 0
assets/js/config.router.js

@@ -1320,6 +1320,27 @@ app.config(['$authProvider', '$httpProvider', '$stateProvider', '$urlRouterProvi
1320 1320
                 }
1321 1321
             })
1322 1322
 
1323
+            //计划任务
1324
+            .state('app.plan', {
1325
+                url: '/plan',
1326
+                template: '<div ui-view class="fade-in-up"></div>',
1327
+                title: 'plan Elements',
1328
+                ncyBreadcrumb: {
1329
+                    label: 'plan Elements'
1330
+                }
1331
+            })
1332
+            //计划任务>定时报告
1333
+            .state('app.plan.timingMessageSending', {
1334
+                url: '/timingMessageSending',
1335
+                templateUrl: "assets/views/plan/timingMessageSending.html",
1336
+                resolve: loadSequence('jquery-nestable-plugin', 'ng-nestable', 'ui.select', 'angularBootstrapNavTree', 'multi.select.tree', 'ckeditor-plugin', 'ckeditor', 'angularFileUpload', 'spin', 'ladda', 'angular-ladda', 'ui.grid', 'timingMessageSendingCtrl'),
1337
+                title: 'inspection.LIST',
1338
+                icon: 'ti-list',
1339
+                ncyBreadcrumb: {
1340
+                    label: 'inspection list'
1341
+                }
1342
+            })
1343
+
1323 1344
             //巡检管理>巡检计划
1324 1345
             .state('app.inspection.inspectPlan', {
1325 1346
                 url: '/inspectPlan',

+ 1 - 0
assets/js/controllers/consumables/consumablesCtrl.js

@@ -349,6 +349,7 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
349 349
     $scope.refreshDat_company = function (name,companyIds=[]) {
350 350
         $scope.updata_company = [];
351 351
         name = name || "";
352
+        companyIds = companyIds || [];
352 353
         var dat = {
353 354
             "company": {
354 355
                 serviceTypeIds:"1708",

+ 7 - 0
assets/js/controllers/customform/customformCtrl.js

@@ -21225,6 +21225,13 @@ appFormly.controller("CustomformCtrl", [
21225 21225
                     data0327.incident.directProcess = 1;
21226 21226
                   }
21227 21227
                   console.log(vm);
21228
+                  if (angular.isDefined($stateParams.model) && $stateParams.model != "") {
21229
+                    var paramsModel = JSON.parse($stateParams.model)
21230
+                    //来电-传话机id
21231
+                    if(paramsModel.model.incident.sockid){
21232
+                      data0327.incident.callID = paramsModel.model.incident.sockid;
21233
+                    }
21234
+                  }
21228 21235
                   api_bpm_domain
21229 21236
                     .start(pdKey, data0327)
21230 21237
                     .then(function (response) {

+ 425 - 421
assets/js/controllers/mainCtrl.js

@@ -841,442 +841,442 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
841 841
       $rootScope['getExtnDirect' + $rootScope.seiminHj]();
842 842
     }
843 843
     // --------------------------1------------------------------
844
-    // $rootScope.getExtnDirect1 = function () {
845
-    //     var jry_data_dictionary = {
846
-    //         key: "hjzx_cornet",
847
-    //         type: "list"
848
-    //     }
849
-    //     api_wechatfile.getDictionary(jry_data_dictionary).then(function (res) {
850
-    //         var websocket_url = "ws://192.168.3.122:29003/ola_socket";
851
-    //         var ola_queue = "10009";	//通话配置-队列配置-队列ID
852
-    //         // var ola_extn = "1001";		//个人信息-座席分机号
853
-    //         $rootScope.jry_extnNumberSelect = [];
854
-    //         $rootScope.jry_extnNumberObj = {};
855
-    //         $rootScope.jry_extnNumberSelect = res;
856
-    //         $rootScope.jry_extnNumberObj.jry_extnNumber = $rootScope.jry_extnNumberSelect[0];
857
-    //         function log(msg) {
858
-    //             //IE has no console
859
-    //             if ('console' in window) console.log(msg);
860
-    //         }
861
-
862
-    //         function websocket_connect() {
863
-    //             ola.connect(websocket_url);
864
-    //             ola.onConnect = onConnect;
865
-    //             ola.onClose = onClose;
866
-    //             ola.onMessage = onMessage;
867
-    //         }
868
-    //         $(document).ready(function () {
869
-    //             // if(ola_extn!=""){
870
-    //             if ($rootScope.jry_extnNumberObj.jry_extnNumber) {
871
-    //                 websocket_connect();
872
-    //             }
873
-    //         });
844
+    $rootScope.getExtnDirect1 = function () {
845
+        var jry_data_dictionary = {
846
+            key: "hjzx_cornet",
847
+            type: "list"
848
+        }
849
+        api_wechatfile.getDictionary(jry_data_dictionary).then(function (res) {
850
+            var websocket_url = "ws://192.168.3.122:29003/ola_socket";
851
+            var ola_queue = "10009";	//通话配置-队列配置-队列ID
852
+            // var ola_extn = "1001";		//个人信息-座席分机号
853
+            $rootScope.jry_extnNumberSelect = [];
854
+            $rootScope.jry_extnNumberObj = {};
855
+            $rootScope.jry_extnNumberSelect = res;
856
+            $rootScope.jry_extnNumberObj.jry_extnNumber = $rootScope.jry_extnNumberSelect[0];
857
+            function log(msg) {
858
+                //IE has no console
859
+                if ('console' in window) console.log(msg);
860
+            }
874 861
 
862
+            function websocket_connect() {
863
+                ola.connect(websocket_url);
864
+                ola.onConnect = onConnect;
865
+                ola.onClose = onClose;
866
+                ola.onMessage = onMessage;
867
+            }
868
+            $(document).ready(function () {
869
+                // if(ola_extn!=""){
870
+                if ($rootScope.jry_extnNumberObj.jry_extnNumber) {
871
+                    websocket_connect();
872
+                }
873
+            });
875 874
 
876
-    //         /* callbacks */
877
-    //         function onMessage(evt) {
878
-    //             var phoneData = JSON.parse(evt.data);
879
-    //             if (phoneData.event_type == "agent_state") {
880
-    //                 console.log(phoneData);
881
-    //                 if (phoneData.state == "busy") {
882
-    //                     $('#agent_state').append(" (" + phoneData.private_data + ")");
883
-    //                     // 来电
884
-    //                     if (phoneData.private_data == "ring") {
885
-    //                         console.log(phoneData);
886
-    //                         $rootScope.jry_state = "laidian";
887
-    //                         var Notification = window.Notification;
888
-    //                         Notification.requestPermission();
889
-    //                         var n = new Notification("你有来电", {
890
-    //                             body: "来电号码:" + phoneData.ani,
891
-    //                             icon: '../bower_components/HTML5-Desktop-Notifications/alert.ico',
892
-    //                         });
893
-    //                         // 摘机
894
-    //                     } else if (phoneData.private_data == "answered") {
895
-    //                         $rootScope.jry_state = "tonghuazhong";
896
-    //                         var jry_findPhone = "";
897
-    //                         if (phoneData.ani) {
898
-    //                             jry_findPhone = phoneData.ani
899
-    //                         } else if (phoneData.dnis && phoneData.other_answered) {
900
-    //                             jry_findPhone = phoneData.dnis
901
-    //                         }
902
-    //                         var filterData = {
903
-    //                             "idx": 0,
904
-    //                             "sum": 100,
905
-    //                             "requester": {
906
-    //                                 "mphone": jry_findPhone,
907
-    //                                 "telephone": jry_findPhone,
908
-    //                                 "selectType": 1
909
-    //                             }
910
-    //                         }
911
-    //                         api_user_data.fetchDataList('requester', filterData).then(function (data) {
912
-    //                             var myData = Restangular.stripRestangular(data);
913
-    //                             // $rootScope.phone="";
914
-    //                             // 新增报修人
915
-    //                             if (myData.list.length == 0) {
916
-    //                                 var modalInstance = $modal.open({
917
-    //                                     templateUrl: 'assets/views/customform/tpl/modal-add-callrequester.html',
918
-    //                                     controller: function ($scope, $modalInstance, api_user_data, SweetAlert, api_wechatfile) {
919
-    //                                         $scope.title = "新增报修人";
920
-    //                                         $scope.requester = {};
921
-    //                                         $scope.onChangeadd = function (searchData) {
922
-    //                                             $scope.searchKey = searchData.account;
923
-    //                                             // $scope.searchDataadd = searchData;
924
-    //                                             var requesdata = angular.copy(searchData)
925
-    //                                             // if (requesdata.mphone) {
926
-    //                                             //     delete requesdata.mphone;
927
-    //                                             // }
928
-    //                                             if (requesdata.telephone) {
929
-    //                                                 delete requesdata.telephone;
930
-    //                                             }
931
-    //                                             angular.extend($scope.requester, requesdata);
932
-    //                                         }
933
-    //                                         $scope.refreshUseradd = function (searchKey) { //请求人搜索
934
-    //                                             $scope.requester.account = searchKey;
935
-    //                                             $scope.searchData = searchKey;
936
-    //                                             serchdataadd(searchKey);
937
-    //                                         }
938
-    //                                         $scope.getMydata = function (x) {
939
-    //                                             var reqestdatap = JSON.parse(x[0])
940
-    //                                             // if ($scope.requester.mphone) {
941
-    //                                             //     delete reqestdatap.mphone;
942
-    //                                             // }
943
-    //                                             if ($scope.requester.telephone) {
944
-    //                                                 delete reqestdatap.telephone;
945
-    //                                             }
946
-    //                                             $scope.searchField = JSON.parse(x[0]).account;
947
-    //                                             angular.extend($scope.requester, reqestdatap);
948
-    //                                         }
949
-    //                                         $scope.getMydataone = function (x) {
950
-    //                                             $scope.searchField = x;
951
-    //                                             $scope.requester.account = x;
952
-    //                                         }
953
-    //                                         serchdataadd();
954
-
955
-    //                                         function serchdataadd(searchKey) {
956
-    //                                             if (searchKey) {
957
-    //                                                 var filterData = {
958
-    //                                                     'requester': {
959
-    //                                                         'searchKey': searchKey,
960
-    //                                                     },
961
-    //                                                     idx: 0,
962
-    //                                                     sum: 10
963
-    //                                                 };
964
-    //                                             } else {
965
-    //                                                 var filterData = {
966
-    //                                                     idx: 0,
967
-    //                                                     sum: 10
968
-    //                                                 };
969
-    //                                             }
970
-    //                                             api_user_data.fetchDataList('requester', filterData).then(function (response) {
971
-    //                                                 var myData = response;
972
-    //                                                 $scope.myData = myData.list;
973
-    //                                             });
974
-    //                                         }
975
-    //                                         api_user_data.fetchDataList('area', {
976
-    //                                             idx: 0,
977
-    //                                             sum: 100
978
-    //                                         }).then(function (response) {
979
-    //                                             if (response.status == 200) {
980
-    //                                                 $scope.areas = response.list;
981
-    //                                             }
982
-    //                                         })
983
-    //                                         api_wechatfile.getDictionary({
984
-    //                                             "key": "requester_type",
985
-    //                                             "type": "list"
986
-    //                                         }).then(function (response) {
987
-    //                                             // if (response.status == 200) {
988
-    //                                             $scope.networktypes = response;
989
-    //                                             // }
990
-    //                                         })
991
-    //                                         $scope.requesterAreaid = "";
992
-    //                                         $scope.onChange = function (item) {
993
-    //                                             $scope.requesterAreaid = item.id;
994
-    //                                             $scope.requester.placeDTO = {};
995
-    //                                             api_user_data.fetchDataList('place', {
996
-    //                                                 place: {
997
-    //                                                     areaId: item.id
998
-    //                                                 },
999
-    //                                                 idx: 0,
1000
-    //                                                 sum: 1000
1001
-    //                                             }).then(function (response) {
1002
-    //                                                 if (response.status == 200) {
1003
-    //                                                     $scope.places = response.list;
1004
-    //                                                 }
1005
-    //                                             })
1006
-    //                                         }
1007
-    //                                         //地点搜索
1008
-    //                                         $scope.refresh = function (searchVal) {
1009
-    //                                             var faildata = {};
1010
-    //                                             if ($scope.requesterAreaid) {
1011
-    //                                                 faildata = {
1012
-    //                                                     'idx': 0,
1013
-    //                                                     'sum': 1000,
1014
-    //                                                     'place': {
1015
-    //                                                         'areaId': $scope.requesterAreaid,
1016
-    //                                                         'place': searchVal,
1017
-    //                                                         'selectType': 'pinyin_qs'
1018
-    //                                                     }
1019
-    //                                                 }
1020
-    //                                             } else {
1021
-    //                                                 faildata = {
1022
-    //                                                     'idx': 0,
1023
-    //                                                     'sum': 1000,
1024
-    //                                                     'place': {
1025
-    //                                                         'place': searchVal,
1026
-    //                                                         'selectType': 'pinyin_qs'
1027
-    //                                                     }
1028
-    //                                                 }
1029
-    //                                             }
1030
-    //                                             api_user_data.fetchDataList('place', faildata).then(function (response) {
1031
-    //                                                 $scope.places = response.list;
1032
-    //                                                 delete $scope.requester.placeDTO;
1033
-    //                                             })
1034
-    //                                         }
1035
-
1036
-
1037
-    //                                         $scope.requester = {
1038
-    //                                             'telephone': jry_findPhone
1039
-    //                                         };
1040
-    //                                         $scope.ok = function () {
1041
-    //                                             var reg1 = /^1[3456789][0-9]{9}$/; //手机号
1042
-    //                                             var reg2 = /^((0\d{2,3})-)*(\d{7,8})(-(\d{3,}))?$/; //座机号
1043
-    //                                             var flag1 = reg1.test($scope.requester.mphone);
1044
-    //                                             var flag2 = reg2.test($scope.requester.mphone);
1045
-    //                                             console.log($scope.requester)
1046
-    //                                             if (angular.isUndefined($scope.requester.name) || $scope.requester.name == null || $scope.requester.name == "") {
1047
-    //                                                 SweetAlert.swal("报修人姓名未填!", "请填写报修人姓名", "error");
1048
-    //                                             } else if (angular.isUndefined($scope.requester.requesterType)) {
1049
-    //                                                 SweetAlert.swal("人员类型未填!", "请填写人员类型", "error");
1050
-    //                                             } else if (angular.isUndefined($scope.requester.mphone) || $scope.requester.mphone == null || $scope.requester.mphone == "") {
1051
-    //                                                 SweetAlert.swal("报修人电话未填!", "请填写报修人电话", "error");
1052
-    //                                             }
1053
-    //                                             else {
1054
-    //                                                 $modalInstance.close($scope.requester);
1055
-    //                                             }
1056
-    //                                         };
1057 875
 
1058
-    //                                         $scope.cancel = function () {
1059
-    //                                             $modalInstance.dismiss('cancel');
1060
-    //                                         };
1061
-    //                                     },
1062
-    //                                 });
1063
-    //                                 modalInstance.result.then(function (selectedItem) {
1064
-    //                                     if (selectedItem) {
1065
-    //                                         if (selectedItem.telephone && !selectedItem.mphone) {
1066
-    //                                             selectedItem.telephone = angular.copy(selectedItem.mphone);
1067
-    //                                             delete selectedItem.mphone;
1068
-    //                                         }
1069
-    //                                         var data = {
1070
-    //                                             'requester': selectedItem
1071
-    //                                         };
1072
-    //                                         api_user_data.addData('requester', data).then(function (response) {
1073
-    //                                             if (response.status == 200) {
1074
-    //                                                 var data = {
1075
-    //                                                     'model': {
1076
-    //                                                         'requestershow': response.data,
1077
-    //                                                         'incident': {
1078
-    //                                                             'requester': response.data,
1079
-    //                                                             'area': response.data.areaDTO,
1080
-    //                                                             'place': response.data.placeDTO,
1081
-    //                                                             'houseNumber': response.data.houseNumber,
1082
-    //                                                             // 'callID': cdrid,
1083
-    //                                                             'source': {
1084
-    //                                                                 'id': 1547
1085
-    //                                                             }
1086
-    //                                                         }
1087
-    //                                                     }
1088
-    //                                                 }
1089
-    //                                                 $state.go('app.incident.title', {
1090
-    //                                                     'model': JSON.stringify(data)
1091
-    //                                                 });
1092
-    //                                             }
1093
-    //                                         })
1094
-    //                                     }
1095
-    //                                 });
1096
-    //                             } else if (myData.list.length == 1) {
1097
-    //                                 var data = {
1098
-    //                                     'model': {
1099
-    //                                         'requestershow': myData.list[0],
1100
-    //                                         'incident': {
1101
-    //                                             'requester': myData.list[0],
1102
-    //                                             'area': myData.list[0].areaDTO,
1103
-    //                                             'place': myData.list[0].placeDTO,
1104
-    //                                             'houseNumber': myData.list[0].houseNumber,
1105
-    //                                             // 'callID': cdrid,
1106
-    //                                             'source': {
1107
-    //                                                 'id': 1547
1108
-    //                                             }
1109
-    //                                         }
1110
-    //                                     }
1111
-    //                                 }
1112
-    //                                 $state.go('app.incident.title', {
1113
-    //                                     'model': JSON.stringify(data)
1114
-    //                                 });
1115
-    //                             } else {
1116
-    //                                 var modalInstance = $modal.open({
1117
-    //                                     templateUrl: 'assets/views/createincident.html',
1118
-    //                                     controller: function ($scope, $modalInstance, api_user_data) {
1119
-    //                                         $scope.title = "请确定报修人";
1120
-    //                                         $scope.requester = myData.list;
1121
-    //                                         $scope.choice = function (requester) {
1122
-    //                                             $modalInstance.dismiss('cancel');
1123
-    //                                             var data = {
1124
-    //                                                 'model': {
1125
-    //                                                     'requestershow': requester,
1126
-    //                                                     'incident': {
1127
-    //                                                         'requester': requester,
1128
-    //                                                         'area': requester.areaDTO,
1129
-    //                                                         'place': requester.placeDTO,
1130
-    //                                                         'houseNumber': requester.houseNumber,
1131
-    //                                                         // 'callID': cdrid,
1132
-    //                                                         'source': {
1133
-    //                                                             'id': 1547
1134
-    //                                                         }
1135
-    //                                                     }
1136
-    //                                                 }
1137
-    //                                             }
1138
-    //                                             $state.go('app.incident.title', {
1139
-    //                                                 'model': JSON.stringify(data)
1140
-    //                                             });
1141
-    //                                         };
1142
-
1143
-    //                                         $scope.cancel = function () {
1144
-    //                                             $modalInstance.dismiss('cancel');
1145
-    //                                         };
1146
-    //                                     },
1147
-    //                                     size: "lg"
1148
-    //                                 });
1149
-    //                             }
876
+            /* callbacks */
877
+            function onMessage(evt) {
878
+                var phoneData = JSON.parse(evt.data);
879
+                if (phoneData.event_type == "agent_state") {
880
+                    console.log(phoneData);
881
+                    if (phoneData.state == "busy") {
882
+                        $('#agent_state').append(" (" + phoneData.private_data + ")");
883
+                        // 来电
884
+                        if (phoneData.private_data == "ring") {
885
+                            console.log(phoneData);
886
+                            $rootScope.jry_state = "laidian";
887
+                            var Notification = window.Notification;
888
+                            Notification.requestPermission();
889
+                            var n = new Notification("你有来电", {
890
+                                body: "来电号码:" + phoneData.ani,
891
+                                icon: '../bower_components/HTML5-Desktop-Notifications/alert.ico',
892
+                            });
893
+                            // 摘机
894
+                        } else if (phoneData.private_data == "answered") {
895
+                            $rootScope.jry_state = "tonghuazhong";
896
+                            var jry_findPhone = "";
897
+                            if (phoneData.ani) {
898
+                                jry_findPhone = phoneData.ani
899
+                            } else if (phoneData.dnis && phoneData.other_answered) {
900
+                                jry_findPhone = phoneData.dnis
901
+                            }
902
+                            var filterData = {
903
+                                "idx": 0,
904
+                                "sum": 100,
905
+                                "requester": {
906
+                                    "mphone": jry_findPhone,
907
+                                    "telephone": jry_findPhone,
908
+                                    "selectType": 1
909
+                                }
910
+                            }
911
+                            api_user_data.fetchDataList('requester', filterData).then(function (data) {
912
+                                var myData = Restangular.stripRestangular(data);
913
+                                // $rootScope.phone="";
914
+                                // 新增报修人
915
+                                if (myData.list.length == 0) {
916
+                                    var modalInstance = $modal.open({
917
+                                        templateUrl: 'assets/views/customform/tpl/modal-add-callrequester.html',
918
+                                        controller: function ($scope, $modalInstance, api_user_data, SweetAlert, api_wechatfile) {
919
+                                            $scope.title = "新增报修人";
920
+                                            $scope.requester = {};
921
+                                            $scope.onChangeadd = function (searchData) {
922
+                                                $scope.searchKey = searchData.account;
923
+                                                // $scope.searchDataadd = searchData;
924
+                                                var requesdata = angular.copy(searchData)
925
+                                                // if (requesdata.mphone) {
926
+                                                //     delete requesdata.mphone;
927
+                                                // }
928
+                                                if (requesdata.telephone) {
929
+                                                    delete requesdata.telephone;
930
+                                                }
931
+                                                angular.extend($scope.requester, requesdata);
932
+                                            }
933
+                                            $scope.refreshUseradd = function (searchKey) { //请求人搜索
934
+                                                $scope.requester.account = searchKey;
935
+                                                $scope.searchData = searchKey;
936
+                                                serchdataadd(searchKey);
937
+                                            }
938
+                                            $scope.getMydata = function (x) {
939
+                                                var reqestdatap = JSON.parse(x[0])
940
+                                                // if ($scope.requester.mphone) {
941
+                                                //     delete reqestdatap.mphone;
942
+                                                // }
943
+                                                if ($scope.requester.telephone) {
944
+                                                    delete reqestdatap.telephone;
945
+                                                }
946
+                                                $scope.searchField = JSON.parse(x[0]).account;
947
+                                                angular.extend($scope.requester, reqestdatap);
948
+                                            }
949
+                                            $scope.getMydataone = function (x) {
950
+                                                $scope.searchField = x;
951
+                                                $scope.requester.account = x;
952
+                                            }
953
+                                            serchdataadd();
954
+
955
+                                            function serchdataadd(searchKey) {
956
+                                                if (searchKey) {
957
+                                                    var filterData = {
958
+                                                        'requester': {
959
+                                                            'searchKey': searchKey,
960
+                                                        },
961
+                                                        idx: 0,
962
+                                                        sum: 10
963
+                                                    };
964
+                                                } else {
965
+                                                    var filterData = {
966
+                                                        idx: 0,
967
+                                                        sum: 10
968
+                                                    };
969
+                                                }
970
+                                                api_user_data.fetchDataList('requester', filterData).then(function (response) {
971
+                                                    var myData = response;
972
+                                                    $scope.myData = myData.list;
973
+                                                });
974
+                                            }
975
+                                            api_user_data.fetchDataList('area', {
976
+                                                idx: 0,
977
+                                                sum: 100
978
+                                            }).then(function (response) {
979
+                                                if (response.status == 200) {
980
+                                                    $scope.areas = response.list;
981
+                                                }
982
+                                            })
983
+                                            api_wechatfile.getDictionary({
984
+                                                "key": "requester_type",
985
+                                                "type": "list"
986
+                                            }).then(function (response) {
987
+                                                // if (response.status == 200) {
988
+                                                $scope.networktypes = response;
989
+                                                // }
990
+                                            })
991
+                                            $scope.requesterAreaid = "";
992
+                                            $scope.onChange = function (item) {
993
+                                                $scope.requesterAreaid = item.id;
994
+                                                $scope.requester.placeDTO = {};
995
+                                                api_user_data.fetchDataList('place', {
996
+                                                    place: {
997
+                                                        areaId: item.id
998
+                                                    },
999
+                                                    idx: 0,
1000
+                                                    sum: 1000
1001
+                                                }).then(function (response) {
1002
+                                                    if (response.status == 200) {
1003
+                                                        $scope.places = response.list;
1004
+                                                    }
1005
+                                                })
1006
+                                            }
1007
+                                            //地点搜索
1008
+                                            $scope.refresh = function (searchVal) {
1009
+                                                var faildata = {};
1010
+                                                if ($scope.requesterAreaid) {
1011
+                                                    faildata = {
1012
+                                                        'idx': 0,
1013
+                                                        'sum': 1000,
1014
+                                                        'place': {
1015
+                                                            'areaId': $scope.requesterAreaid,
1016
+                                                            'place': searchVal,
1017
+                                                            'selectType': 'pinyin_qs'
1018
+                                                        }
1019
+                                                    }
1020
+                                                } else {
1021
+                                                    faildata = {
1022
+                                                        'idx': 0,
1023
+                                                        'sum': 1000,
1024
+                                                        'place': {
1025
+                                                            'place': searchVal,
1026
+                                                            'selectType': 'pinyin_qs'
1027
+                                                        }
1028
+                                                    }
1029
+                                                }
1030
+                                                api_user_data.fetchDataList('place', faildata).then(function (response) {
1031
+                                                    $scope.places = response.list;
1032
+                                                    delete $scope.requester.placeDTO;
1033
+                                                })
1034
+                                            }
1035
+
1036
+
1037
+                                            $scope.requester = {
1038
+                                                'telephone': jry_findPhone
1039
+                                            };
1040
+                                            $scope.ok = function () {
1041
+                                                var reg1 = /^1[3456789][0-9]{9}$/; //手机号
1042
+                                                var reg2 = /^((0\d{2,3})-)*(\d{7,8})(-(\d{3,}))?$/; //座机号
1043
+                                                var flag1 = reg1.test($scope.requester.mphone);
1044
+                                                var flag2 = reg2.test($scope.requester.mphone);
1045
+                                                console.log($scope.requester)
1046
+                                                if (angular.isUndefined($scope.requester.name) || $scope.requester.name == null || $scope.requester.name == "") {
1047
+                                                    SweetAlert.swal("报修人姓名未填!", "请填写报修人姓名", "error");
1048
+                                                } else if (angular.isUndefined($scope.requester.requesterType)) {
1049
+                                                    SweetAlert.swal("人员类型未填!", "请填写人员类型", "error");
1050
+                                                } else if (angular.isUndefined($scope.requester.mphone) || $scope.requester.mphone == null || $scope.requester.mphone == "") {
1051
+                                                    SweetAlert.swal("报修人电话未填!", "请填写报修人电话", "error");
1052
+                                                }
1053
+                                                else {
1054
+                                                    $modalInstance.close($scope.requester);
1055
+                                                }
1056
+                                            };
1057
+
1058
+                                            $scope.cancel = function () {
1059
+                                                $modalInstance.dismiss('cancel');
1060
+                                            };
1061
+                                        },
1062
+                                    });
1063
+                                    modalInstance.result.then(function (selectedItem) {
1064
+                                        if (selectedItem) {
1065
+                                            if (selectedItem.telephone && !selectedItem.mphone) {
1066
+                                                selectedItem.telephone = angular.copy(selectedItem.mphone);
1067
+                                                delete selectedItem.mphone;
1068
+                                            }
1069
+                                            var data = {
1070
+                                                'requester': selectedItem
1071
+                                            };
1072
+                                            api_user_data.addData('requester', data).then(function (response) {
1073
+                                                if (response.status == 200) {
1074
+                                                    var data = {
1075
+                                                        'model': {
1076
+                                                            'requestershow': response.data,
1077
+                                                            'incident': {
1078
+                                                                'requester': response.data,
1079
+                                                                'area': response.data.areaDTO,
1080
+                                                                'place': response.data.placeDTO,
1081
+                                                                'houseNumber': response.data.houseNumber,
1082
+                                                                // 'callID': cdrid,
1083
+                                                                'source': {
1084
+                                                                    'id': 1547
1085
+                                                                }
1086
+                                                            }
1087
+                                                        }
1088
+                                                    }
1089
+                                                    $state.go('app.incident.title', {
1090
+                                                        'model': JSON.stringify(data)
1091
+                                                    });
1092
+                                                }
1093
+                                            })
1094
+                                        }
1095
+                                    });
1096
+                                } else if (myData.list.length == 1) {
1097
+                                    var data = {
1098
+                                        'model': {
1099
+                                            'requestershow': myData.list[0],
1100
+                                            'incident': {
1101
+                                                'requester': myData.list[0],
1102
+                                                'area': myData.list[0].areaDTO,
1103
+                                                'place': myData.list[0].placeDTO,
1104
+                                                'houseNumber': myData.list[0].houseNumber,
1105
+                                                // 'callID': cdrid,
1106
+                                                'source': {
1107
+                                                    'id': 1547
1108
+                                                }
1109
+                                            }
1110
+                                        }
1111
+                                    }
1112
+                                    $state.go('app.incident.title', {
1113
+                                        'model': JSON.stringify(data)
1114
+                                    });
1115
+                                } else {
1116
+                                    var modalInstance = $modal.open({
1117
+                                        templateUrl: 'assets/views/createincident.html',
1118
+                                        controller: function ($scope, $modalInstance, api_user_data) {
1119
+                                            $scope.title = "请确定报修人";
1120
+                                            $scope.requester = myData.list;
1121
+                                            $scope.choice = function (requester) {
1122
+                                                $modalInstance.dismiss('cancel');
1123
+                                                var data = {
1124
+                                                    'model': {
1125
+                                                        'requestershow': requester,
1126
+                                                        'incident': {
1127
+                                                            'requester': requester,
1128
+                                                            'area': requester.areaDTO,
1129
+                                                            'place': requester.placeDTO,
1130
+                                                            'houseNumber': requester.houseNumber,
1131
+                                                            // 'callID': cdrid,
1132
+                                                            'source': {
1133
+                                                                'id': 1547
1134
+                                                            }
1135
+                                                        }
1136
+                                                    }
1137
+                                                }
1138
+                                                $state.go('app.incident.title', {
1139
+                                                    'model': JSON.stringify(data)
1140
+                                                });
1141
+                                            };
1142
+
1143
+                                            $scope.cancel = function () {
1144
+                                                $modalInstance.dismiss('cancel');
1145
+                                            };
1146
+                                        },
1147
+                                        size: "lg"
1148
+                                    });
1149
+                                }
1150
+
1151
+                            });
1152
+                        }
1153
+                        // 挂机
1154
+                    } else if (phoneData.state == "login") {
1155
+                        go_ready()
1156
+                    } else if (phoneData.state == "logout") {
1157
+                        $rootScope.jry_state = "weiqianru";
1158
+                    } else if (phoneData.state == "ready") {
1159
+                        // 来电挂机
1160
+                        if (phoneData.old_state == "busy" && phoneData.private_data == "answered") {
1161
+                            go_break()
1162
+                        } else {
1163
+                            $rootScope.jry_state = "shixian";
1164
+                        }
1165
+                    }
1166
+                    // else if (data.old_state == "busy") {
1150 1167
 
1151
-    //                         });
1152
-    //                     }
1153
-    //                     // 挂机
1154
-    //                 } else if (phoneData.state == "login") {
1155
-    //                     go_ready()
1156
-    //                 } else if (phoneData.state == "logout") {
1157
-    //                     $rootScope.jry_state = "weiqianru";
1158
-    //                 } else if (phoneData.state == "ready") {
1159
-    //                     // 来电挂机
1160
-    //                     if (phoneData.old_state == "busy" && phoneData.private_data == "answered") {
1161
-    //                         go_break()
1162
-    //                     } else {
1163
-    //                         $rootScope.jry_state = "shixian";
1164
-    //                     }
1165
-    //                 }
1166
-    //                 // else if (data.old_state == "busy") {
1168
+                    // }
1169
+                } else if (phoneData.event_type == "agent_caller_state") {
1170
+                    // special feature, never mind
1171
+                    if (phoneData.action == "in") {
1167 1172
 
1168
-    //                 // }
1169
-    //             } else if (phoneData.event_type == "agent_caller_state") {
1170
-    //                 // special feature, never mind
1171
-    //                 if (phoneData.action == "in") {
1173
+                    } else {
1172 1174
 
1173
-    //                 } else {
1175
+                    }
1176
+                } else if (phoneData.event_type == "command/reply") {
1177
+                    if (phoneData.phoneData && phoneData.phoneData.state) {
1174 1178
 
1175
-    //                 }
1176
-    //             } else if (phoneData.event_type == "command/reply") {
1177
-    //                 if (phoneData.phoneData && phoneData.phoneData.state) {
1179
+                    }
1180
+                }
1181
+            }
1178 1182
 
1179
-    //                 }
1180
-    //             }
1181
-    //         }
1183
+            function onConnect() {
1184
+                console.log("websocket connected!");
1185
+                // ola._extn = ola_extn;
1186
+                // ola.subscribe('ola.queue.' + ola_queue + '.' +  ola_extn);
1187
+                // ola.subscribe('ola.caller.' + ola_extn);
1188
+                // ola.get_agent_state(ola_extn);
1189
+                ola._extn = $rootScope.jry_extnNumberObj.jry_extnNumber.name;
1190
+                ola.subscribe('ola.queue.' + ola_queue + '.' + $rootScope.jry_extnNumberObj.jry_extnNumber.name);
1191
+                ola.subscribe('ola.caller.' + $rootScope.jry_extnNumberObj.jry_extnNumber.name);
1192
+                ola.get_agent_state($rootScope.jry_extnNumberObj.jry_extnNumber.name);
1193
+            };
1182 1194
 
1183
-    //         function onConnect() {
1184
-    //             console.log("websocket connected!");
1185
-    //             // ola._extn = ola_extn;
1186
-    //             // ola.subscribe('ola.queue.' + ola_queue + '.' +  ola_extn);
1187
-    //             // ola.subscribe('ola.caller.' + ola_extn);
1188
-    //             // ola.get_agent_state(ola_extn);
1189
-    //             ola._extn = $rootScope.jry_extnNumberObj.jry_extnNumber.name;
1190
-    //             ola.subscribe('ola.queue.' + ola_queue + '.' + $rootScope.jry_extnNumberObj.jry_extnNumber.name);
1191
-    //             ola.subscribe('ola.caller.' + $rootScope.jry_extnNumberObj.jry_extnNumber.name);
1192
-    //             ola.get_agent_state($rootScope.jry_extnNumberObj.jry_extnNumber.name);
1193
-    //         };
1194
-
1195
-    //         function onClose() {
1196
-    //         }
1195
+            function onClose() {
1196
+            }
1197 1197
 
1198
-    //         function login() {
1199
-    //             // ola.login(ola_queue, ola_extn, {type: "onhook"});
1200
-    //             console.log($rootScope.jry_extnNumberObj.jry_extnNumber);
1201
-    //             ola.login(ola_queue, $rootScope.jry_extnNumberObj.jry_extnNumber.name, { type: "onhook" });
1202
-    //         }
1198
+            function login() {
1199
+                // ola.login(ola_queue, ola_extn, {type: "onhook"});
1200
+                console.log($rootScope.jry_extnNumberObj.jry_extnNumber);
1201
+                ola.login(ola_queue, $rootScope.jry_extnNumberObj.jry_extnNumber.name, { type: "onhook" });
1202
+            }
1203 1203
 
1204
-    //         function logout() {
1205
-    //             ola.logout();
1206
-    //         }
1204
+            function logout() {
1205
+                ola.logout();
1206
+            }
1207 1207
 
1208
-    //         function go_ready() {
1209
-    //             ola.go_ready();
1210
-    //         }
1208
+            function go_ready() {
1209
+                ola.go_ready();
1210
+            }
1211 1211
 
1212
-    //         function go_break() {
1213
-    //             ola.go_break($('#break_reason').val());
1214
-    //             $rootScope.jry_state = "shimang";
1215
-    //         }
1212
+            function go_break() {
1213
+                ola.go_break($('#break_reason').val());
1214
+                $rootScope.jry_state = "shimang";
1215
+            }
1216 1216
 
1217
-    //         function answer() {
1218
-    //             ola.answer();
1219
-    //         }
1217
+            function answer() {
1218
+                ola.answer();
1219
+            }
1220 1220
 
1221
-    //         function dial(dst) {
1222
-    //             ola.dial(dst);
1223
-    //         }
1224
-    //         $rootScope.dial = function (dst) {
1225
-    //             ola.dial(dst);
1226
-    //         }
1227
-    //         function conference(dst) {
1228
-    //             ola.conference(dst);
1229
-    //         }
1221
+            function dial(dst) {
1222
+                ola.dial(dst);
1223
+            }
1224
+            $rootScope.dial = function (dst) {
1225
+                ola.dial(dst);
1226
+            }
1227
+            function conference(dst) {
1228
+                ola.conference(dst);
1229
+            }
1230 1230
 
1231
-    //         function conference_uuid(channel_uuid) {
1232
-    //             ola.conference_uuid(channel_uuid);
1233
-    //         }
1231
+            function conference_uuid(channel_uuid) {
1232
+                ola.conference_uuid(channel_uuid);
1233
+            }
1234 1234
 
1235
-    //         function hangup() {
1236
-    //             ola.hangup();
1237
-    //         }
1235
+            function hangup() {
1236
+                ola.hangup();
1237
+            }
1238 1238
 
1239
-    //         function take_call(uuid) {
1240
-    //             // ola.take_call(ola_extn, uuid);
1241
-    //             ola.take_call($rootScope.jry_extnNumberObj.jry_extnNumber.name, uuid);
1242
-    //         }
1243
-    //         // 签入
1244
-    //         $rootScope.jry_qianru = function () {
1245
-    //             login();
1246
-    //         }
1247
-    //         // 示闲
1248
-    //         $rootScope.jry_shixian = function () {
1249
-    //             go_ready()
1250
-    //         }
1251
-    //         // 示忙
1252
-    //         $rootScope.jry_shimang = function () {
1253
-    //             go_break()
1254
-    //         }
1255
-    //         // 签出
1256
-    //         $rootScope.jry_qianchu = function () {
1257
-    //             logout()
1258
-    //         }
1259
-    //         $rootScope.jry_bohao = function (res) {
1260
-    //             if ($rootScope.jry_state == "weiqianru") {
1261
-    //                 // SweetAlert.swal({
1262
-    //                 //     title: "拨打失败",
1263
-    //                 //     text: "请先签入!",
1264
-    //                 //     type: "error",
1265
-    //                 //     confirmButtonColor: "#DD6B55"
1266
-    //                 // });
1267
-    //             } else if ($rootScope.jry_state == "shimang") {
1268
-    //                 // SweetAlert.swal({
1269
-    //                 //     title: "拨打失败",
1270
-    //                 //     text: "请先示闲!",
1271
-    //                 //     type: "error",
1272
-    //                 //     confirmButtonColor: "#DD6B55"
1273
-    //                 // });
1274
-    //             } else {
1275
-    //                 dial(res);
1276
-    //             }
1277
-    //         }
1278
-    //     })
1279
-    // }
1239
+            function take_call(uuid) {
1240
+                // ola.take_call(ola_extn, uuid);
1241
+                ola.take_call($rootScope.jry_extnNumberObj.jry_extnNumber.name, uuid);
1242
+            }
1243
+            // 签入
1244
+            $rootScope.jry_qianru = function () {
1245
+                login();
1246
+            }
1247
+            // 示闲
1248
+            $rootScope.jry_shixian = function () {
1249
+                go_ready()
1250
+            }
1251
+            // 示忙
1252
+            $rootScope.jry_shimang = function () {
1253
+                go_break()
1254
+            }
1255
+            // 签出
1256
+            $rootScope.jry_qianchu = function () {
1257
+                logout()
1258
+            }
1259
+            $rootScope.jry_bohao = function (res) {
1260
+                if ($rootScope.jry_state == "weiqianru") {
1261
+                    // SweetAlert.swal({
1262
+                    //     title: "拨打失败",
1263
+                    //     text: "请先签入!",
1264
+                    //     type: "error",
1265
+                    //     confirmButtonColor: "#DD6B55"
1266
+                    // });
1267
+                } else if ($rootScope.jry_state == "shimang") {
1268
+                    // SweetAlert.swal({
1269
+                    //     title: "拨打失败",
1270
+                    //     text: "请先示闲!",
1271
+                    //     type: "error",
1272
+                    //     confirmButtonColor: "#DD6B55"
1273
+                    // });
1274
+                } else {
1275
+                    dial(res);
1276
+                }
1277
+            }
1278
+        })
1279
+    }
1280 1280
     // ------------------------------2--------------------------
1281 1281
     $rootScope.getExtnDirect2 = function () {
1282 1282
       var jry_data_dictionary = {
@@ -1615,6 +1615,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1615 1615
         function oncallin(jso) {
1616 1616
           console.log(jso);//lmm
1617 1617
           $rootScope.callInPhoneNumber = jso.caller;//来电的电话
1618
+          $rootScope.sockid = jso.sockid;//来电的话机id
1618 1619
           if (jso) {
1619 1620
             console.log('呼入坐席成功,请摘机-----seimin');
1620 1621
             $.toaster({
@@ -1661,7 +1662,8 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1661 1662
                         incident: {
1662 1663
                           requester: {
1663 1664
                             hjzxPhone: $rootScope.callInPhoneNumber
1664
-                          }
1665
+                          },
1666
+                          sockid: $rootScope.sockid
1665 1667
                         }
1666 1668
                       }
1667 1669
                     })
@@ -1673,7 +1675,8 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1673 1675
                       model: {
1674 1676
                         incident: {
1675 1677
                           requester: requesters[0],
1676
-                          contactsInformation: requesters[0].mphone
1678
+                          contactsInformation: requesters[0].mphone,
1679
+                          sockid: $rootScope.sockid
1677 1680
                         },
1678 1681
                       }
1679 1682
                     })
@@ -1700,7 +1703,8 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
1700 1703
                               model: {
1701 1704
                                 incident: {
1702 1705
                                   requester: item,
1703
-                                  contactsInformation: item.mphone
1706
+                                  contactsInformation: item.mphone,
1707
+                                  sockid: $rootScope.sockid
1704 1708
                                 },
1705 1709
                               }
1706 1710
                             })

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1027 - 0
assets/js/controllers/plan/timingMessageSendingCtrl.js


+ 1 - 1
assets/views/consumables/list.html

@@ -375,7 +375,7 @@
375 375
                             <ui-select-match placeholder="请选择供货公司">
376 376
                                 {{$item.name}}
377 377
                             </ui-select-match>
378
-                            <ui-select-choices repeat="n in updata_company" refresh="refreshDat_company($select.search)">
378
+                            <ui-select-choices repeat="n in updata_company" refresh="refreshDat_company($select.search,companyIds)">
379 379
                                 <div ng-bind-html="n.name"></div>
380 380
                             </ui-select-choices>
381 381
                         </ui-select>

+ 427 - 0
assets/views/plan/timingMessageSending.html

@@ -0,0 +1,427 @@
1
+<style type="text/css">
2
+    .form-control.smallline {
3
+        height: 34px;
4
+        padding-left: 8px;
5
+        padding-right: 8px;
6
+        color: #999;
7
+        font-size: 12px;
8
+    }
9
+    .form-dataIcon {
10
+        color: #ddd;
11
+        font-size: 16px;
12
+        position: absolute;
13
+        right: 8px;
14
+        top: 50%;
15
+        transform: translateY(-50%);
16
+    }
17
+    .tab_bdItem_tab li {
18
+        margin-right: 24px;
19
+        cursor: pointer;
20
+    }
21
+
22
+    .tab_bdItem_tabItem.active {
23
+        color: #005395;
24
+    }
25
+
26
+    .tab_bdItem_tabItem {
27
+        font-size: 14px;
28
+        color: #ddd;
29
+        cursor: pointer;
30
+    }
31
+
32
+    .incidentsearch {
33
+        width: 30% !important;
34
+        margin-right: 16px
35
+    }
36
+
37
+    .iptSize {
38
+        width: 60% !important;
39
+        height: 28px !important;
40
+    }
41
+
42
+    .tree-control .tree-input {
43
+        min-height: 28px !important
44
+    }
45
+
46
+    .searchBtnBox>.btn {
47
+        margin: 0 8px 10px 0;
48
+    }
49
+
50
+    /* 编辑 */
51
+    .big_back {
52
+        position: fixed;
53
+        left: 0;
54
+        top: 0;
55
+        width: 100%;
56
+        height: 100%;
57
+        z-index: 9999;
58
+        background-color: rgba(0, 0, 0, 0.5)
59
+    }
60
+
61
+    .new {
62
+        width: 340px;
63
+        /* height: 600px; */
64
+        /* margin-left: -170px;
65
+        margin-top: -202px;
66
+        position: absolute;
67
+        left: 50%;
68
+        top:50%; */
69
+        z-index: 11;
70
+        background-color: white;
71
+        border-radius: 4px;
72
+        transition-duration: 0.8s
73
+    }
74
+
75
+    .new_top {
76
+        margin-left: -170px;
77
+        position: fixed;
78
+        left: 50%;
79
+        top: -404px;
80
+    }
81
+
82
+    .new_after {
83
+        position: absolute;
84
+        left: 50%;
85
+        top: 50%;
86
+        transform: translate(-50%, -50%);
87
+        display: flex;
88
+        flex-direction: column;
89
+    }
90
+
91
+    /* 头部 */
92
+    .new .head {
93
+        text-align: center;
94
+        height: 40px;
95
+        line-height: 40px;
96
+        border-bottom: 1px #d1d1d1 solid
97
+    }
98
+
99
+    /* 交叉 */
100
+    .new .head .jiaocha {
101
+        float: right;
102
+        width: 14px;
103
+        height: 14px;
104
+        line-height: 12px;
105
+        text-align: center;
106
+        border: 1px #6e6e6e solid;
107
+        border-radius: 50%;
108
+        margin-right: 20px;
109
+        margin-top: 15px;
110
+        cursor: pointer;
111
+    }
112
+
113
+    /* 主体 */
114
+    .new .body {
115
+        overflow: auto;
116
+        width: 298px;
117
+        max-height: 400px;
118
+        background-color: #f5f5f5;
119
+        border: 1px #d1d1d1 solid;
120
+        margin: 0 auto;
121
+        border-radius: 2px;
122
+        margin-top: 10px;
123
+        flex: 1;
124
+    }
125
+
126
+    .new .body::-webkit-scrollbar {
127
+        /*滚动条整体样式*/
128
+        width: 3px;
129
+        height: 3px;
130
+    }
131
+
132
+    .new .body::-webkit-scrollbar-thumb {
133
+        /*滚动条里面小方块样式*/
134
+        border-radius: 100px;
135
+        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
136
+        background: rgba(0, 0, 0, 0.1);
137
+        ;
138
+    }
139
+
140
+    .new .body::-webkit-scrollbar-track {
141
+        /*滚动条里面轨道样式*/
142
+        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
143
+        border-radius: 0;
144
+        background: rgba(0, 0, 0, 0.1);
145
+    }
146
+
147
+    .new .body .xing {
148
+        color: red;
149
+        float: left;
150
+        width: 20px;
151
+        text-align: center;
152
+        margin-top: 12px
153
+    }
154
+
155
+    .new .body .xing div {
156
+        height: 70px;
157
+        font-size: 16px
158
+    }
159
+
160
+    .new .body .rigt {
161
+        float: left;
162
+        margin-top: 12px
163
+    }
164
+
165
+    .new .body .rigt .div {
166
+        height: 70px;
167
+    }
168
+
169
+    .new .body .rigt span {
170
+        font-size: 13px;
171
+        font-weight: bold
172
+    }
173
+
174
+    .new .body .rigt .xiala {
175
+        margin-top: 4px;
176
+        width: 258px !important;
177
+        height: auto;
178
+        background-color: #f5f5f5
179
+    }
180
+
181
+    .new .body .rigt .xialaipt {
182
+        margin-top: 4px;
183
+        width: 258px !important;
184
+        height: 32px;
185
+    }
186
+
187
+    .new .body .rigt .price {
188
+        margin-top: 4px;
189
+        width: 100px !important;
190
+        height: 32px;
191
+    }
192
+
193
+    .new .submi {
194
+        text-align: center;
195
+    }
196
+
197
+    .new .submi input {
198
+        margin-top: 10px;
199
+        margin-bottom: 10px;
200
+        width: 78px;
201
+        height: 32px;
202
+        border: none;
203
+    }
204
+
205
+    /* 保存 */
206
+    .new .submi .preservation {
207
+        background-color: #123f8f !important;
208
+        color: white;
209
+        border: 1px #123f8f solid
210
+    }
211
+
212
+    /* 取消 */
213
+    .new .submi .cancel {
214
+        background-color: #f2f2f2;
215
+        color: #373737;
216
+        border: 1px #d1d1d1 solid
217
+    }
218
+</style>
219
+<div ng-controller="timingMessageSendingCtrl">
220
+    <section id="page-title">
221
+        <div class="row">
222
+            <div class="col-sm-8">
223
+                <h1 class="mainTitle">定时报告<i tooltip='定时报告列表,可进行修改,新增,删除' tooltip-placement="right"
224
+                        class="fa  ti-help-alt margin-left-10 fontcolor-five pointfont"></i></h1>
225
+            </div>
226
+        </div>
227
+    </section>
228
+    <div class="schuback" id="searchid">
229
+        <div class="row " style="padding-right: 0px !important;">
230
+            <div class="col-xs-12">
231
+                <div class="col-xs-10" style="padding-right: 0px !important;"></div>
232
+                <div class="col-xs-2">
233
+                    <div>
234
+                        <!-- <div class="centerdiv-one"></div> -->
235
+                        <div class="pull-left margin-top-10 searchBtnBox">
236
+                            <!-- <div class="form-group"> -->
237
+                            <!-- <a class="btn btn-searchbutton steelbutton" ng-click="searchinspe(inspectdata)" type="button">搜索</a> -->
238
+                            <!-- <div class="btn btn_search" ng-click="searchinspe(inspectdata)"><span>搜索</span></div> -->
239
+                            <!-- </div> -->
240
+                            <!-- <div class="form-group">
241
+                        <button class="blank btn btn-downbutton downbutton" ng-click="export()" ladda="ldloading.zoom_in" data-style="zoom-in"><span translate="sidebar.nav.configuremanagerdb.LISTButton.EXPORT ">Export Data</span></button>
242
+                    </div> -->
243
+                            <!-- <button ladda="ldloading.expand_right" type="button" class="btn btn-reashbutton reashbutton" data-style="expand-right" ng-click="reload()">
244
+                        <span translate="list.button.REFRESH">Refresh Data</span>
245
+                    </button> -->
246
+                            <!-- <a class="btn btn-searchbutton steelbutton" ng-click="reload()" type="button">重置</a> -->
247
+                            <!-- <div class="btn btn_clean" ng-click="reload()">重置</div> -->
248
+                            <!-- <a class="btn btn-searchbutton steelbutton" ng-click="refresh()" type="button">刷新</a> -->
249
+                            <!-- <button type="button" class="btn btn-addbutton  addbutton" ng-click="addData()">
250
+                            <span translate="list.button.CREATE">Add Data</span>
251
+                        </button> -->
252
+                            <!-- <div class="btn btn_search" ng-click="addData()" ng-show="xinzeng"><span
253
+                                    translate="list.button.CREATE">Add Data</span></div> -->
254
+                            <!--<button type="button" id="removeData" class="btn btn-warning" ng-click="removeData()" ng-disabled="selected.items.length==0">-->
255
+                            <!-- <button type="button" class="btn btn-downbutton downbutton" ng-click="removeData()" ng-disabled="selected.items.length==0">
256
+                            <span translate=" list.button.REMOVE ">Remove First Row</span>
257
+                        </button> -->
258
+                            <!-- <div class="btn btn_remove" ng-click="removeData()"
259
+                                ng-class="isMousedown?'btn_removeMousedown':''" ng-mousedown="changeRemoveClass()"
260
+                                ng-show="shanchu" ng-disabled="selected.items.length==0"><span
261
+                                    translate="list.button.REMOVE">Remove First Row</span></div> -->
262
+                        </div>
263
+                    </div>
264
+                </div>
265
+            </div>
266
+        </div>
267
+    </div>
268
+    <div class="tableList" ui-i18n="{{lang}}">
269
+        <!-- <div class="col-xs-2 col-md-2 col-sm-2">
270
+            <h5 class="over-title margin-bottom-15"><i class="fa fa-building-o" /><span class="text-bold">巡检类型</span></h5>
271
+            <div>
272
+                <div class="row">
273
+                    <div class="panel panel-white">
274
+                        <div class="panel-body">
275
+                            <div class="box-tree">
276
+                                <span ng-if="doing_async">...加载中...</span>
277
+                                <abn-tree tree-data="my_data" tree-control="my_tree" on-select="my_tree_handler(branch)" expand-level="2" initial-selection="Granny Smith" icon-leaf="ti-file" icon-expand="ti-plus" icon-collapse="ti-minus"></abn-tree>
278
+                            </div>
279
+                        </div>
280
+                    </div>
281
+                </div>
282
+            </div>
283
+        </div> -->
284
+        <!-- <div class="col-xs-10"> -->
285
+
286
+        <!-- <div class="margin-bottom-10">
287
+            <a ladda="ldloading.expand_right" class="btn btn-primary" data-style="expand-right" ng-click="reload()">
288
+                <span translate="list.button.REFRESH">Refresh Data</span>
289
+                <i class="ti-reload" />
290
+            </a>
291
+            <button type="button" id="addData" class="btn btn-success" ng-click="addData()">
292
+                    <span translate="list.button.CREATE">Add Data</span>
293
+                    <i class="ti-plus"/>
294
+                </button>
295
+            <button type="button" id="removeData" class="btn btn-warning" ng-click="removeData()" ng-disabled="selected.items.length==0">
296
+                    <span translate=" list.button.REMOVE ">Remove First Row</span>
297
+                    <i class="ti-trash "/>
298
+                </button>
299
+        </div> -->
300
+        <div class=" ">
301
+            <div id="grid1 " ui-grid="gridOptions " ui-grid-pagination external-scopes="$scope " ui-grid-resize-columns ui-grid-auto-resize class="grid ">
302
+            </div>
303
+        </div>
304
+    </div>
305
+    <!-- 编辑弹框 -->
306
+    <div class="big_back" ng-show="hc_eject_big">
307
+        <div class="new new_after">
308
+            <div class="head">
309
+                <span>编辑</span>
310
+                <span class="jiaocha" ng-click="close()">×</span>
311
+            </div>
312
+            <div class="body">
313
+                <div class="xing">
314
+                    <div>*</div>
315
+                    <div>*</div>
316
+                    <div>*</div>
317
+                    <div>*</div>
318
+                    <div>*</div>
319
+                    <div ng-if="isWarehousing=='week'||isWarehousing=='month'||isWarehousing=='year'">*</div>
320
+                </div>
321
+                <form class="rigt">
322
+                    <div class="div">
323
+                        <span>标题:</span><br>
324
+                        <input type="text" ng-model="t_title" class="xialaipt">
325
+                    </div>
326
+                    <div class="div">
327
+                        <span>重复策略:</span><br>
328
+                        <ul class="tab_bdItem_tab">
329
+                            <li class="fl" ng-click="changeWarehousing('day')">
330
+                                <i class="tab_bdItem_tabItem iconfont icon-icon_weizuo"
331
+                                    ng-class="isWarehousing=='day'?'active':''"></i>
332
+                                <span>每天</span>
333
+                            </li>
334
+                            <li class="fl" ng-click="changeWarehousing('week')">
335
+                                <i class="tab_bdItem_tabItem iconfont icon-icon_weizuo"
336
+                                    ng-class="isWarehousing=='week'?'active':''"></i>
337
+                                <span>每周</span>
338
+                            </li>
339
+                            <li class="fl" ng-click="changeWarehousing('month')">
340
+                                <i class="tab_bdItem_tabItem iconfont icon-icon_weizuo"
341
+                                    ng-class="isWarehousing=='month'?'active':''"></i>
342
+                                <span>每月</span>
343
+                            </li>
344
+                            <li class="fl" ng-click="changeWarehousing('year')">
345
+                                <i class="tab_bdItem_tabItem iconfont icon-icon_weizuo"
346
+                                    ng-class="isWarehousing=='year'?'active':''"></i>
347
+                                <span>每年</span>
348
+                            </li>
349
+                        </ul>
350
+                    </div>
351
+                    <div class="div" ng-show="isWarehousing=='week'">
352
+                        <span>计划执行(每周):</span><br>
353
+                        <ui-select class="pull-left selectzise xiala" ng-model="doWeek" ng-change="changeWeek($select.selected)"
354
+                            theme="bootstrap">
355
+                            <ui-select-match placeholder="请选择周">
356
+                                {{$select.selected.name}}
357
+                            </ui-select-match>
358
+                            <ui-select-choices repeat="n in weeks">
359
+                                <div ng-bind-html="n.name"></div>
360
+                            </ui-select-choices>
361
+                        </ui-select>
362
+                    </div>
363
+                    <div class="div" ng-show="isWarehousing=='month'">
364
+                        <span>计划执行(每月):</span><br>
365
+                        <ui-select class="pull-left selectzise xiala" ng-model="doMonth" ng-change="changeMonth($select.selected)"
366
+                            theme="bootstrap">
367
+                            <ui-select-match placeholder="请选择日">
368
+                                {{$select.selected}}
369
+                            </ui-select-match>
370
+                            <ui-select-choices repeat="n in months">
371
+                                <div ng-bind-html="n"></div>
372
+                            </ui-select-choices>
373
+                        </ui-select>
374
+                    </div>
375
+                    <div class="div" ng-show="isWarehousing=='year'">
376
+                        <span ng-click="startOpen($event)">计划执行(每年):</span><br>
377
+                        <div class="tab_bdItem_tab" style="position: relative;">
378
+                            <input type="text" class="form-control smallline"
379
+                                datepicker-popuptime="MM-dd" ng-model="starttimesModel"
380
+                                is-open="startOpened" ng-init="startOpened = false" ng-click="startOpened = !startOpened" placeholder="请选择月日" />
381
+                            <i class="iconfont icon-yuqixinxiu form-dataIcon"></i>
382
+                        </div>
383
+                    </div>
384
+                    <div class="div">
385
+                        <span>定时发送时间:</span><br>
386
+                        <div class="tab_bdItem_tab">
387
+                            <timepicker ng-model="hourAndMinute" hour-step="1" minute-step="1" show-meridian="false"></timepicker>
388
+                        </div>
389
+                    </div>
390
+                    <div class="div">
391
+                        <span>是否启用:</span><br>
392
+                        <ul class="tab_bdItem_tab">
393
+                            <li class="fl" ng-click="changeActive(1)">
394
+                                <i class="tab_bdItem_tabItem iconfont icon-icon_weizuo"
395
+                                    ng-class="isActive== 1?'active':''"></i>
396
+                                <span>是</span>
397
+                            </li>
398
+                            <li class="fl" ng-click="changeActive(0)">
399
+                                <i class="tab_bdItem_tabItem iconfont icon-icon_weizuo"
400
+                                    ng-class="isActive== 0?'active':''"></i>
401
+                                <span>否</span>
402
+                            </li>
403
+                        </ul>
404
+                    </div>
405
+                    <div class="div" style="height: 100px;" ng-if="hc_eject_big">
406
+                        <span>接收人(可多选):</span><br>
407
+                        <ui-select ng-click="refreshDat_users($select.search,userIds)"
408
+                            class="pull-left selectzise xiala" ng-model="userIds" theme="bootstrap" multiple
409
+                            reset-search-input="false" ng-change="changeUser(userIds)">
410
+                            <ui-select-match placeholder="请选择接收人">
411
+                                {{$item.name}}
412
+                            </ui-select-match>
413
+                            <ui-select-choices repeat="n in t_userList"
414
+                                refresh="refreshDat_users($select.search,userIds)">
415
+                                <div ng-bind-html="n.name"></div>
416
+                            </ui-select-choices>
417
+                        </ui-select>
418
+                    </div>
419
+                </form>
420
+            </div>
421
+            <div class="submi ">
422
+                <input type="button" value="保存" class="preservation btn" ng-click="preservation()">
423
+                <input type="button" value="取消" class="cancel btn" ng-click="close()">
424
+            </div>
425
+        </div>
426
+    </div>
427
+</div>