高新区管委会,以5.0标准版为基准,从双汇项目拷贝

print.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>登记信息</title>
  7. <!--[if lt IE 9]>
  8. <meta http-equiv="refresh" content="0;ie.html" />
  9. <![endif]-->
  10. <script src="../../Script/Common/huayi.load.js"></script>
  11. <script src="../../Script/Common/huayi.config.js"></script>
  12. <script src="../../js/laydate/laydate.js"></script>
  13. <link rel="stylesheet" href="../../js/layui/css/layui.css" />
  14. <link rel="stylesheet" href="../../css/init.css" />
  15. <style>
  16. .zxt-top {
  17. background: #fefefe;
  18. height: 60px;
  19. padding: 10px 20px;
  20. }
  21. .topCon {
  22. float: right;
  23. margin-right: 45px;
  24. }
  25. .zxt-content {
  26. width: 90%;
  27. margin: 20px auto 0 auto;
  28. }
  29. .select2-container--default .select2-selection--single{
  30. border-color: #e5e6e7;
  31. }
  32. .time-box select{
  33. height: 32px;
  34. line-height: 32px;
  35. }
  36. .time-box select option{
  37. line-height: 32px;
  38. }
  39. .Shows {
  40. display: block !important;
  41. }
  42. .complain {
  43. display: none;
  44. }
  45. .daoHang {
  46. margin-bottom: 15px;
  47. }
  48. #main {
  49. width: 788.8px;
  50. margin: 0 auto;
  51. margin-top: 20px;
  52. -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
  53. box-shadow: 1px 1px 9px 2px #D2D2D2;
  54. background-color: #fff;
  55. padding: 30px 60px 80px 60px;
  56. }
  57. .alignC {
  58. text-align: center;
  59. }
  60. .alignC h2 {
  61. font-family: "宋体";
  62. font-weight: bold;
  63. font-size: 22pt;
  64. letter-spacing: -1px;
  65. }
  66. .headerAlign h3 div:nth-of-type(1) {
  67. font-size: 14pt;
  68. padding-top: 20px;
  69. text-align: left;
  70. font-weight: normal;
  71. margin-left: 48px;
  72. }
  73. #main table {
  74. margin: 0 auto;
  75. width: 600px;
  76. border-collapse: collapse;
  77. font-size: 13pt;
  78. font-family: "仿宋";
  79. }
  80. #main table tr {
  81. min-height: 49px;
  82. }
  83. tbody td {
  84. min-width: 10%;
  85. padding: 6px 0 6px 0;
  86. }
  87. .alignC .tableHead {
  88. text-align: center;
  89. padding-left: 10px;
  90. font-weight: 600;
  91. }
  92. .btn {
  93. margin-top: 4px;
  94. margin-bottom: 4px;
  95. background: #00a1cb;
  96. color: #fff;
  97. }
  98. .time-box {
  99. display: inline-block;
  100. position: relative;
  101. }
  102. .toolLeft input {
  103. padding-right: 30px;
  104. width: 150px;
  105. }
  106. .tub {
  107. position: absolute;
  108. right: 8px;
  109. top: 5px;
  110. font-size: 18px;
  111. color: #00a0ca;
  112. }
  113. .btnPrint{
  114. background: #1e90ff;
  115. }
  116. </style>
  117. <style media="print">
  118. /*设置打印样式 标题宋体加黑二号*/
  119. .headerAlign h2 {
  120. font-family: "宋体" !important;
  121. font-weight: bold !important;
  122. font-size: 22pt !important;
  123. letter-spacing: -1px !important;
  124. }
  125. .textCb{
  126. color: #e84545 !important;
  127. }
  128. .headerAlign h3 div:nth-of-type(1) {
  129. font-size: 14pt !important;
  130. font-family: "宋体" !important;
  131. font-weight: normal !important;
  132. margin-left: 98px !important;
  133. }
  134. .headerAlign h3 {
  135. width: 690px !important;
  136. }
  137. #main {
  138. padding: 40px 0 0 0 !important;
  139. }
  140. #main table {
  141. font-size: 13pt !important;
  142. font-family: "仿宋" !important;
  143. border-color: #000;
  144. color: #000;
  145. width: 621px !important;
  146. /*page-break-after:avoid !important;*/
  147. }
  148. tbody td {
  149. padding: 6px 0 6px 0 !important;
  150. }
  151. .printdz {
  152. text-align: left;
  153. text-indent: .3em;
  154. padding: 4px;
  155. }
  156. .printdd {
  157. text-align: justify !important;
  158. padding: 4px 2px 4px 4px !important;
  159. }
  160. .printnr,
  161. .printcb,
  162. .printldps,
  163. .printcljg {
  164. text-align: justify !important;
  165. padding: 4px !important;
  166. text-indent: 2em !important;
  167. }
  168. @page {
  169. size: A4 portrait;
  170. }
  171. </style>
  172. </head>
  173. <body class="gray-bg">
  174. <div class="wrapper wrapper-content">
  175. <div class="Content_box">
  176. <div class="complain Shows">
  177. <div class="tab-content">
  178. <div class="tab-pane fade active in" style="text-align: center;">
  179. <!--startprint1-->
  180. <div id="main">
  181. <div class="alignC headerAlign">
  182. <br />
  183. <h2 style="margin-bottom: 15px;">登记信息</h2>
  184. </div>
  185. <table id="weeklist" class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">
  186. <tr>
  187. <td width="20%" height="80px">登记编号</td>
  188. <td width="30%" id="printRegisterCode"></td>
  189. <td width="20%">登记类型</td>
  190. <td width="30%" id="printType"></td>
  191. </tr>
  192. <tr>
  193. <td height="80px">姓名</td>
  194. <td id="printName"></td>
  195. <td>性别</td>
  196. <td id="printSex"></td>
  197. </tr>
  198. <tr>
  199. <td height="80px">省</td>
  200. <td id="printProvince"></td>
  201. <td>市</td>
  202. <td id="printCity"></td>
  203. </tr>
  204. <tr>
  205. <td height="80px">县/区</td>
  206. <td id="printCounty"></td>
  207. <td>详细地址</td>
  208. <td id="printAddress"></td>
  209. </tr>
  210. <tr>
  211. <td height="80px">被投诉单位</td>
  212. <td id="printComplained"></td>
  213. <td >被投诉单位所属办事处</td>
  214. <td id="printComplainedUnitOffice"></td>
  215. </tr>
  216. <tr>
  217. <td height="80px">投诉案件承办人</td>
  218. <td id="printComplaintUndertaker"></td>
  219. <td>咨询问题级别</td>
  220. <td id="printQuestionLevel"></td>
  221. </tr>
  222. <tr>
  223. <td height="80px">咨询问题类型</td>
  224. <td id="printQuestionType"></td>
  225. <td>市民分类</td>
  226. <td id="printCitizenClassification"></td>
  227. </tr>
  228. <tr>
  229. <td height="80px">是否立案</td>
  230. <td id="printPutRecord"></td>
  231. <td >登记内容/投诉事项</td>
  232. <td id="printContent"></td>
  233. </tr>
  234. <tr>
  235. <td height="80px">来电备注</td>
  236. <td id="printRemark"></td>
  237. <td>创建人</td>
  238. <td id="printCreateBy"></td>
  239. </tr>
  240. <tr>
  241. <td height="80px">登记时间</td>
  242. <td id="printCreateOn"></td>
  243. </tr>
  244. </table>
  245. </div>
  246. <!--endprint1-->
  247. <input type="button" value="打印" class="btn btnPrint" onclick="preview(1)" />
  248. </div>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. <script>
  254. var id = helper.request.queryString("ids");
  255. $(document).ready(function () {
  256. getRegisterDetailById()
  257. })
  258. //通过id获取详情
  259. function getRegisterDetailById() {
  260. $.get(huayi.config.callcenter_url + 'RegRecords/GetDetails', {
  261. "token": $.cookie("token"),
  262. id: id,
  263. }, function(result) {
  264. result = $.parseJSON(result);
  265. if(result.state.toLowerCase() == "success") {
  266. var con = result.data.model;
  267. var conCus = result.data.cusmodel
  268. $("#printRegisterCode").text(con.F_RecCode)
  269. $("#printType").text(formatterRegisterType(con.F_Type)); //登记类型
  270. $("#printName").text(con.F_userName); //姓名
  271. $("#printPhone").text(con.F_userPhone); //电话
  272. $("#printSex").text(con.F_userSex); //性别
  273. $("#printProvince").text(con.F_userProvince); //省
  274. $("#printCity").text(con.F_userCity); //市
  275. $("#printCounty").text(con.F_userArea); //县/区
  276. $("#printAddress").text(con.F_userAddress); //详细地址
  277. $("#printComplained").text(con.F_Unit); //被投诉单位
  278. $("#printContent").text(con.F_Content); //登记内容/投诉事项
  279. $("#printRemark").text(con.F_Remark); //备注
  280. $("#printCreateBy").text(con.F_CreateBy); //登记人
  281. $("#printCreateOn").text(con.F_CreateOn); //登记时间
  282. $("#printComplainedUnitOffice").text(con.F_UnitOffice); //投诉单位办事处
  283. $("#printComplaintUndertaker").text(con.F_CaseParty); //投诉案件承办人
  284. $("#printQuestionLevel").text(con.F_ProblemType); //咨询问题级别
  285. $("#printQuestionType").text(con.F_ProblemTypeB); //咨询问题类型
  286. $("#printCitizenClassification").text(con.F_CitizensType); //市民分类
  287. $("#printPutRecord").text(con.F_PutRecord); //是否立案
  288. // $("#printIDCardAddress").text(con.F_userProvince + con.F_userCity + con.F_userArea + con.F_userAddress) //地址
  289. }
  290. })
  291. }
  292. //登记类型
  293. function formatterRegisterType(val) {
  294. var formatterRegisterTypeArr = ["", "咨询", "投诉", "求助", "其他"]
  295. return formatterRegisterTypeArr[val]
  296. }
  297. //导出
  298. $(".export").click(function () {
  299. var url = huayi.config.callcenter_url + "Business/MarketInformation?token=" + $.cookie("token");
  300. url += "&sdate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0] : '') + "&edate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1] : '') + "&isdc=1";
  301. $(".export").attr('href', url);
  302. });
  303. function preview(oper) {
  304. if(oper < 5) {
  305. bdhtml = window.document.body.innerHTML; //获取当前页的html代码
  306. sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
  307. eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
  308. prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
  309. print.portrait = true; //纵向打印
  310. prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
  311. window.document.body.innerHTML = prnhtml;
  312. window.print();
  313. window.document.body.innerHTML = bdhtml;
  314. // parent.parent.layer.closeAll();
  315. // parent.parent.$('#orderlist').bootstrapTable('refresh');
  316. // parent.parent.layer.msg("操作成功!");
  317. } else {
  318. window.print();
  319. }
  320. }
  321. </script>
  322. </body>
  323. </html>