selfuse.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <!--[if lt IE 9]>
  10. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  11. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  12. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  13. <![endif]-->
  14. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  15. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  16. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  20. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  21. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  22. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  24. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  26. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  29. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/formSelects-v4/formSelects-v4.css" />
  30. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  31. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  32. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  33. <script src="${ctx}/assets/js/validate.js" ></script>
  34. <!--[if IE 6]>
  35. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  36. <script>DD_belatedPNG.fix('*');</script>
  37. <![endif]-->
  38. <script type="text/javascript">
  39. function showFlowPic(executionId){
  40. layer.open({
  41. title:"查看流转",
  42. type: 1,
  43. anim: 2,
  44. area: ['600px', '400px'],
  45. content: "<div style='margin:5px;'><img style='width:100%' src='${ctx}/myconsole/myflow/show?executionId="+executionId+"'></div>"
  46. });
  47. }
  48. $(function() {
  49. $(window).resize(function(){
  50. $("#jqGrid").setGridWidth($(window).width()-41); 
  51. });
  52. $("#jqGrid").jqGrid({
  53. url : '',
  54. editurl:"${ctx}/myconsole/complaint/transact/",
  55. mtype : "POST",
  56. datatype : "json",
  57. page:${pagepp!1},
  58. multiselect: false,
  59. caption1:'我的待质检件',
  60. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  61. id: "appealid", 
  62. oper:"oper",    
  63. addoper:"add",
  64. editoper:"edit",
  65. deloper:"del" 
  66. },
  67. colModel : [ {
  68. label : '数据编号',
  69. name : 'appealid',
  70. key : true,
  71. editable: false,
  72. hidden:true
  73. },{
  74. label : '结案状态',
  75. name : 'endstate',
  76. hidden:true
  77. },{
  78. label : '标志',
  79. name : 'remindflag',
  80. width : 30,
  81. align:'center',
  82. sortable: false,
  83. },{
  84. label : '案件流水号',
  85. name : 'serialnumber',
  86. width : 50,
  87. align:'center',
  88. },{
  89. label : '客诉人',
  90. name : 'tname',
  91. width : 30,
  92. align:'center',
  93. }, {
  94. label : '客诉来源',
  95. name : 'appealsource',
  96. width : 30,
  97. align:'center',
  98. }, {
  99. label : '客诉时间',
  100. name : 'appealdate',
  101. width : 50,
  102. align:'center',
  103. },{
  104. label : '截止日期',
  105. name : 'limitenddate',
  106. width : 30,
  107. align:'center',
  108. }, {
  109. label : '办结时间',
  110. name : 'enddate',
  111. width : 50,
  112. align:'center',
  113. },{
  114. label : '办结方式',
  115. name : 'endtype',
  116. width : 30,
  117. align:'center',
  118. }, {
  119. label : '办结结果',
  120. name : 'endresultname',
  121. width : 50,
  122. align:'center',
  123. },{
  124. label : '操作',
  125. name:'operMod',
  126. index:'operMod',
  127. align:"center",
  128. width:"30",
  129. sortable:false,
  130. formatter: function (cellvalue, options, rowdata) {
  131. var html ="";
  132. html = "<button class='btn btn-primary radius size-S' onclick=seeData('"+rowdata.appealid+"')>查看</button>"+
  133. "&nbsp; <button class='btn btn-success radius size-S' onclick=expWord('"+rowdata.appealid+"')>导出</button>";
  134. return html;
  135. }
  136. }],
  137. rownumbers : true,//添加左侧行号
  138. viewrecords : true,//是否在浏览导航栏显示记录总数
  139. rowNum : ${rowpp!10},//每页显示记录数
  140. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  141. autowidth : true,
  142. sortname : 'RecordTime',
  143. sortorder : 'desc',
  144. height : 'auto',
  145. pager : "#jqGridPager",
  146. //屏蔽点击任意单元格选中checkbox的问题
  147. beforeSelectRow: function (rowid, e) {
  148. var $myGrid = $(this),
  149. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  150. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  151. return (cm[i].name === 'cb');
  152. }
  153. });
  154. doSearch();
  155. });
  156. //下载附件
  157. function downFile(filePath,fileName)
  158. {
  159. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  160. }
  161. //导出word模板 2021-10-08
  162. function doSearch(){
  163. $('#search').click(function(){
  164. var BeginDate = $('#BeginDate').val();
  165. var EndDate = $('#EndDate').val();
  166. $.post("${ctx}/myconsole/complaint/word/expSelfuse",{"BeginDate":BeginDate,"EndDate":EndDate},function(data){
  167. var res=eval('(' + data + ')');
  168. if(res.flag){
  169. downFile(res.filepath,res.filename);
  170. }else{
  171. alert("没有数据导出!");
  172. }
  173. })
  174. });
  175. }
  176. </script>
  177. <title>我的桌面</title>
  178. </head>
  179. <body>
  180. <div>
  181. <div style="text-align:center;height:30px;padding-top:10px;">
  182. <form id="form1" method="post" class="form-horizontal" role="form">
  183. <table>
  184. <tr>
  185. <td valign="top" style="padding-top: 5px;text-align: left;width:360px">
  186. <label class="radio-inline" style="font-weight:700">
  187. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客诉日期 :
  188. </label>
  189. <input type="text" class="form-control" style="width:80px" value="${BeginDate!''}" placeholder="" id="BeginDate" name="BeginDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'BeginDate',maxDate:'#F{$dp.$D(\'EndDate\')}'})" title="选择开始日期" vmode="" vdisp="开始日期" vtype="string" readonly>
  190. <label class="radio-inline" style="font-weight:700">
  191. &nbsp;至:
  192. </label>
  193. <input type="text" class="form-control" style="width:80px" value="${EndDate!''}" placeholder="" id="EndDate" name="EndDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'EndDate',minDate:'#F{$dp.$D(\'BeginDate\')}',maxDate:new Date()})" title="选择结束日期" vmode="" vdisp="结束日期" vtype="string" readonly>
  194. </td>
  195. <td valign="top" style="padding-top: 1px;">
  196. <label>
  197. <input type="button" id="search" value="导 出" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block">
  198. <b class="tooltip tip-left-top"></b>
  199. <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
  200. </label>
  201. </label>
  202. </td>
  203. </tr>
  204. </table>
  205. </form>
  206. </div>
  207. <div class="page-container" style="margin-top:5px">
  208. <div id="jqGridPager"></div>
  209. </div>
  210. </div>
  211. <script type="text/javascript" src="${ctx}/assets/lib/formSelects-v4/formSelects-v4.js" ></script>
  212. </body>
  213. </html>