您好,登錄后才能下訂單哦!
<script> $("#wrapperShow").show(); </script> <div class='right_container' ng-class="{true: 'switct_contenr_right', false: ''}[switchStyle]" > <div class="wrapper container"> <div class="view-container ml0"> <div ng-include="'../../../view/public/header/approval/breadcrumb.html'" ></div> <!-- Page content --> <div class="content-wrapper"> <div class="panel"> <div class="panel-heading border_search pt5 pb5"> 查詢條件 <span class="tools pull-right"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" class="fa fa-chevron-down"></a> </span> </div> <div class="panel-body collapse in" id="collapseOne"> <div class="row search searchTwo mb10"> <div class="col-xs-3"> <div class="input-group input-group-sm m-bot15"> <span class="input-group-addon" > <span class="red">*</span>所屬機(jī)構(gòu) </span> <input class="form-control input-xs" id="branchName_collection" name="branchName_collection" ng-model="branchName_collection" placeholder="請(qǐng)選擇機(jī)構(gòu)" minlength="1" maxlength="32" type="text" data-toggle="modal" data-target="#myModal_add4" ng-click="get_tree()" > </div> </div> <div class="col-xs-3"> <div class="input-group input-group-sm m-bot15"> <span class="input-group-addon" > <span class="red">*</span>起始日期 </span> <input type="text" class="form-control input-xs" placeholder="開(kāi)始時(shí)間" id="LAY_demorange_s" ng-model="startDate"> </div> </div> <div class="col-xs-3"> <div class="input-group input-group-sm m-bot15"> <span class="input-group-addon" > <span class="red">*</span>終止日期 </span> <input type="text" class="form-control input-xs" placeholder="開(kāi)始時(shí)間" id="LAY_demorange_e" ng-model="endDate"> </div> </div> <div class="col-xs-3 "> <div class="col-xs-6 pl0 pr5"> <a class="btn btn-danger iconfont" ng-click="QueryMessagePress()"><i class="fa fa-search" ></i> 查詢</a> </div> <div class="col-xs-6 pl5 pr0"> <a class="btn btn-info iconfont" ng-click="QueryMessageXls()"><i class="fa fa-download" ></i> 導(dǎo)出</a> </div> </div> </div> </div> </div> <div class="panel group_panel"> <div class="panel-heading"><h6>集中催收?qǐng)?bào)表</h6></div> <div class="panel-body"> <div class="adv-table editable-table "> <div class="clearfix"></div> <div class="space15"></div> <div id="editable-sample_wrapper" class="dataTables_wrapper form-inline table-responsive" role="grid"> <iframe name="subFrame" src="about:blank" ></iframe> </div> </div> </div> </div> </div> <!-- 選擇機(jī)構(gòu)彈出頁(yè)---轉(zhuǎn)列經(jīng)辦行 --> <div class="modal fade" id="myModal_add4" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog" > <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> × </button> <h5 class="modal-title" id="myModalLabel"> 選擇機(jī)構(gòu) </h5> </div> <div class="modal-body"> <div id='trees' ></div> <!-- <ul tree id="tree" class="ztree" ng-model="selectNode" value="1" > --> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="getBranchName_dismiss()">取消 </button> <button type="button" class="btn btn-info doBank" data-dismiss="modal" ng-click="getBranchName()"> 確定 </button> </div> </div> </div> </div> </div> </div> </div>
'use strict'; // 擔(dān)保對(duì)照 var a = 0; var page = 0; var gro = ""; define([ 'app', 'appModule' ],function(app){ // 彈出層自適應(yīng)居中 $(function() { $(".modal-body").height($(window).height() - 360); // 當(dāng)文檔窗口發(fā)生改變時(shí) 觸發(fā) $(window).resize(function() { $(".modal-body").height($(window).height() - 360); }); $(this).on('show.bs.modal', function() { $('body').addClass('modal-open'); }); $(this).on('hide.bs.modal', function() { $('body').removeClass('modal-open'); }); }); app.register.controller('focuscollCtrl',['$rootScope','$scope','$cookies','coreUrl','lodinDataService','lodinDatadService','$http',function($rootScope,$scope, $cookies, coreUrl,lodinDataService, lodinDatadService,$http) { if (lodinDatadService.getObject('lodinDatad') == 0) { $scope.LoginList = lodinDataService.getObject('lodinData'); } if (lodinDataService.getObject('lodinData') == 0) { $scope.LoginList = lodinDatadService.getObject('lodinDatad'); } $rootScope.parentCru = lodinDataService.get('parentCru'); $rootScope.childCru = lodinDataService.get('childCru'); $rootScope.userId = $scope.LoginList.userId; $rootScope.branchId = $scope.LoginList.branchId; $scope.data = lodinDatadService.getObject('branchData'); //新增機(jī)構(gòu)-彈出框顯示隱藏 $scope.get_tree = function(){ if($scope.data){ $scope.tree($scope.data.row); } }; $scope.tree = function(data){ $('#trees').on("changed.jstree", function(e, data) { if(data.selected.length) { $scope.id = data.instance.get_node(data.selected[0]).id; $scope.text = data.instance.get_node(data.selected[0]).text; } //輸出點(diǎn)擊的內(nèi)容 }).jstree({ 'core': { 'data': data } }); //動(dòng)態(tài)生成tree菜單 }; $scope.getBranchName = function(){ if($scope.text == undefined || $scope.text == ""){ alert("溫馨提示!", '請(qǐng)選擇機(jī)構(gòu)!', function () { }, {type: 'warning',showConfirmButton:true}); }else{ $scope.branchId_collection = $scope.id; $scope.branchName_collection = $scope.text; } }; //查詢--選擇機(jī)構(gòu)--取消 $scope.getBranchName_dismiss = function(){ $('#myModal_add4').modal('hide'); }; //獲取報(bào)表種類 var CoreUrl = new coreUrl({ "transCode" : "B000704", "bizTypeCode" : "LOAN_PRESS_TYPE" }); CoreUrl.$save(function(objc){ $scope.actualChannelList = objc.rows; }); //查詢 $scope.QueryMessagePress= function(){ var href_Base = "jasperreport/reportFocusCollHtml?"; $scope.startDate = document.getElementById('LAY_demorange_s').value; $scope.endDate = document.getElementById('LAY_demorange_e').value; if($scope.branchName_collection != undefined && $scope.startDate.length>0 && $scope.endDate.length>0){ href_Base += "groupId="; href_Base += $scope.branchId_collection; href_Base += "&groupName="; href_Base += $scope.branchName_collection; href_Base += "&startDate="; var sDate = $scope.startDate; sDate = sDate.replace(/-/, "年"); sDate = sDate.replace(/-/, "月"); sDate += "日"; href_Base += sDate; href_Base += "&endDate="; var eDate = $scope.endDate; eDate = eDate.replace(/-/, "年"); eDate = eDate.replace(/-/, "月"); eDate += "日"; href_Base += eDate; $scope.href_Base = href_Base; window.subFrame.location.href = $scope.href_Base; }else{ alert("溫馨提示!", '請(qǐng)輸入查詢條件', function () {}, {type: 'warning',showConfirmButton:true}); } }; //導(dǎo)出 $scope.QueryMessageXls= function(){ var href_Base = "jasperreport/reportFocusCollXls?"; $scope.startDate = document.getElementById('LAY_demorange_s').value; $scope.endDate = document.getElementById('LAY_demorange_e').value; if($scope.branchName_collection != undefined && $scope.startDate.length>0 && $scope.endDate.length>0){ href_Base += "groupId="; href_Base += $scope.branchId_collection; href_Base += "&groupName="; href_Base += $scope.branchName_collection; href_Base += "&startDate="; var sDate = $scope.startDate; sDate = sDate.replace(/-/, "年"); sDate = sDate.replace(/-/, "月"); sDate += "日"; href_Base += sDate; href_Base += "&endDate="; var eDate = $scope.endDate; eDate = eDate.replace(/-/, "年"); eDate = eDate.replace(/-/, "月"); eDate += "日"; href_Base += eDate; $scope.href_Base = href_Base; window.subFrame.location.href = $scope.href_Base; }else{ alert("溫馨提示!", '請(qǐng)輸入導(dǎo)出條件', function () {}, {type: 'warning',showConfirmButton:true}); } }; //輸入框屏蔽特殊字符 /*var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]") ; $('input').bind('input propertychange', function() { $('input').val($('input').val().replace(pattern,"")); });*/ //------end-------- //轉(zhuǎn)列日期--時(shí)間控件 layui.use('laydate', function(){ var laydate = layui.laydate; var start = { // min: // laydate.now() max : laydate.now(), istoday : false, choose : function(datas) { $scope.startDate = datas; end.min = datas; //開(kāi)始日選好后,重置結(jié)束日的最小日期 end.start = datas //將結(jié)束日的初始值設(shè)定為開(kāi)始日 } }; var end = { //min: laydate.now() max : laydate.now(), istoday: false, choose: function(datas){ $scope.endDate = datas; start.max = datas; //結(jié)束日選好后,重置開(kāi)始日的最大日期 } }; document.getElementById('LAY_demorange_s').onclick = function(){ start.elem = this; laydate(start); }; document.getElementById('LAY_demorange_e').onclick = function(){ end.elem = this; laydate(end); }; }); //轉(zhuǎn)列日期-時(shí)間控件end }]); });
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。