| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>登记信息</title>
- <!--[if lt IE 9]>
- <meta http-equiv="refresh" content="0;ie.html" />
- <![endif]-->
- <script src="../../Script/Common/huayi.load.js"></script>
- <script src="../../Script/Common/huayi.config.js"></script>
- <script src="../../js/laydate/laydate.js"></script>
- <link rel="stylesheet" href="../../js/layui/css/layui.css" />
- <link rel="stylesheet" href="../../css/init.css" />
- <style>
- .zxt-top {
- background: #fefefe;
- height: 60px;
- padding: 10px 20px;
- }
-
- .topCon {
- float: right;
- margin-right: 45px;
- }
-
- .zxt-content {
- width: 90%;
- margin: 20px auto 0 auto;
- }
- .select2-container--default .select2-selection--single{
- border-color: #e5e6e7;
- }
- .time-box select{
- height: 32px;
- line-height: 32px;
- }
- .time-box select option{
- line-height: 32px;
- }
- .Shows {
- display: block !important;
- }
-
- .complain {
- display: none;
- }
-
- .daoHang {
- margin-bottom: 15px;
- }
-
-
- #main {
- width: 788.8px;
- margin: 0 auto;
- margin-top: 20px;
- -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
- box-shadow: 1px 1px 9px 2px #D2D2D2;
- background-color: #fff;
- padding: 30px 60px 80px 60px;
- }
-
- .alignC {
- text-align: center;
- }
-
- .alignC h2 {
- font-family: "宋体";
- font-weight: bold;
- font-size: 22pt;
- letter-spacing: -1px;
- }
-
- .headerAlign h3 div:nth-of-type(1) {
- font-size: 14pt;
- padding-top: 20px;
- text-align: left;
- font-weight: normal;
- margin-left: 48px;
- }
-
- #main table {
- margin: 0 auto;
- width: 600px;
- border-collapse: collapse;
- font-size: 13pt;
- font-family: "仿宋";
- }
-
- #main table tr {
- min-height: 49px;
- }
-
- tbody td {
- min-width: 10%;
- padding: 6px 0 6px 0;
- }
-
- .alignC .tableHead {
- text-align: center;
- padding-left: 10px;
- font-weight: 600;
- }
-
- .btn {
- margin-top: 4px;
- margin-bottom: 4px;
- background: #00a1cb;
- color: #fff;
- }
-
- .time-box {
- display: inline-block;
- position: relative;
- }
-
- .toolLeft input {
- padding-right: 30px;
- width: 150px;
- }
-
- .tub {
- position: absolute;
- right: 8px;
- top: 5px;
- font-size: 18px;
- color: #00a0ca;
- }
- .btnPrint{
- background: #1e90ff;
- }
- </style>
- <style media="print">
- /*设置打印样式 标题宋体加黑二号*/
-
- .headerAlign h2 {
- font-family: "宋体" !important;
- font-weight: bold !important;
- font-size: 22pt !important;
- letter-spacing: -1px !important;
- }
- .textCb{
- color: #e84545 !important;
- }
- .headerAlign h3 div:nth-of-type(1) {
- font-size: 14pt !important;
- font-family: "宋体" !important;
- font-weight: normal !important;
- margin-left: 98px !important;
- }
-
- .headerAlign h3 {
- width: 690px !important;
- }
-
- #main {
- padding: 40px 0 0 0 !important;
- }
-
- #main table {
- font-size: 13pt !important;
- font-family: "仿宋" !important;
- border-color: #000;
- color: #000;
- width: 621px !important;
- /*page-break-after:avoid !important;*/
- }
-
- tbody td {
- padding: 6px 0 6px 0 !important;
- }
-
- .printdz {
- text-align: left;
- text-indent: .3em;
- padding: 4px;
- }
-
- .printdd {
- text-align: justify !important;
- padding: 4px 2px 4px 4px !important;
- }
-
- .printnr,
- .printcb,
- .printldps,
- .printcljg {
- text-align: justify !important;
- padding: 4px !important;
- text-indent: 2em !important;
- }
-
- @page {
- size: A4 portrait;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content">
- <div class="Content_box">
- <div class="complain Shows">
- <div class="tab-content">
- <div class="tab-pane fade active in" style="text-align: center;">
- <!--startprint1-->
- <div id="main">
- <div class="alignC headerAlign">
- <br />
- <h2 style="margin-bottom: 15px;">登记信息</h2>
- </div>
- <table id="weeklist" class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">
- <tr>
- <td width="20%" height="80px">登记编号</td>
- <td width="30%" id="printRegisterCode"></td>
- <td width="20%">登记类型</td>
- <td width="30%" id="printType"></td>
- </tr>
- <tr>
- <td height="80px">姓名</td>
- <td id="printName"></td>
- <td>性别</td>
- <td id="printSex"></td>
- </tr>
- <tr>
- <td height="80px">省</td>
- <td id="printProvince"></td>
- <td>市</td>
- <td id="printCity"></td>
- </tr>
- <tr>
- <td height="80px">县/区</td>
- <td id="printCounty"></td>
- <td>详细地址</td>
- <td id="printAddress"></td>
- </tr>
- <tr>
- <td height="80px">被投诉单位</td>
- <td id="printComplained"></td>
- <td >被投诉单位所属办事处</td>
- <td id="printComplainedUnitOffice"></td>
- </tr>
- <tr>
- <td height="80px">投诉案件承办人</td>
- <td id="printComplaintUndertaker"></td>
- <td>咨询问题级别</td>
- <td id="printQuestionLevel"></td>
- </tr>
- <tr>
- <td height="80px">咨询问题类型</td>
- <td id="printQuestionType"></td>
- <td>市民分类</td>
- <td id="printCitizenClassification"></td>
- </tr>
- <tr>
- <td height="80px">是否立案</td>
- <td id="printPutRecord"></td>
- <td >登记内容/投诉事项</td>
- <td id="printContent"></td>
- </tr>
- <tr>
- <td height="80px">来电备注</td>
- <td id="printRemark"></td>
- <td>创建人</td>
- <td id="printCreateBy"></td>
- </tr>
- <tr>
- <td height="80px">登记时间</td>
- <td id="printCreateOn"></td>
- </tr>
- </table>
- </div>
- <!--endprint1-->
- <input type="button" value="打印" class="btn btnPrint" onclick="preview(1)" />
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <script>
- var id = helper.request.queryString("ids");
- $(document).ready(function () {
- getRegisterDetailById()
- })
- //通过id获取详情
- function getRegisterDetailById() {
- $.get(huayi.config.callcenter_url + 'RegRecords/GetDetails', {
- "token": $.cookie("token"),
- id: id,
- }, function(result) {
- result = $.parseJSON(result);
- if(result.state.toLowerCase() == "success") {
- var con = result.data.model;
- var conCus = result.data.cusmodel
- $("#printRegisterCode").text(con.F_RecCode)
- $("#printType").text(formatterRegisterType(con.F_Type)); //登记类型
- $("#printName").text(con.F_userName); //姓名
- $("#printPhone").text(con.F_userPhone); //电话
- $("#printSex").text(con.F_userSex); //性别
- $("#printProvince").text(con.F_userProvince); //省
- $("#printCity").text(con.F_userCity); //市
- $("#printCounty").text(con.F_userArea); //县/区
- $("#printAddress").text(con.F_userAddress); //详细地址
- $("#printComplained").text(con.F_Unit); //被投诉单位
- $("#printContent").text(con.F_Content); //登记内容/投诉事项
- $("#printRemark").text(con.F_Remark); //备注
- $("#printCreateBy").text(con.F_CreateBy); //登记人
- $("#printCreateOn").text(con.F_CreateOn); //登记时间
- $("#printComplainedUnitOffice").text(con.F_UnitOffice); //投诉单位办事处
- $("#printComplaintUndertaker").text(con.F_CaseParty); //投诉案件承办人
- $("#printQuestionLevel").text(con.F_ProblemType); //咨询问题级别
- $("#printQuestionType").text(con.F_ProblemTypeB); //咨询问题类型
- $("#printCitizenClassification").text(con.F_CitizensType); //市民分类
- $("#printPutRecord").text(con.F_PutRecord); //是否立案
- // $("#printIDCardAddress").text(con.F_userProvince + con.F_userCity + con.F_userArea + con.F_userAddress) //地址
- }
- })
- }
- //登记类型
- function formatterRegisterType(val) {
- var formatterRegisterTypeArr = ["", "咨询", "投诉", "求助", "其他"]
- return formatterRegisterTypeArr[val]
- }
- //导出
- $(".export").click(function () {
- var url = huayi.config.callcenter_url + "Business/MarketInformation?token=" + $.cookie("token");
- url += "&sdate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0] : '') + "&edate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1] : '') + "&isdc=1";
- $(".export").attr('href', url);
- });
- function preview(oper) {
- if(oper < 5) {
- bdhtml = window.document.body.innerHTML; //获取当前页的html代码
- sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
- eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
- prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
- print.portrait = true; //纵向打印
- prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
- window.document.body.innerHTML = prnhtml;
- window.print();
- window.document.body.innerHTML = bdhtml;
- // parent.parent.layer.closeAll();
- // parent.parent.$('#orderlist').bootstrapTable('refresh');
- // parent.parent.layer.msg("操作成功!");
- } else {
- window.print();
- }
- }
- </script>
- </body>
- </html>
|