group.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  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 : '${ctx}/myconsole/complaint/transact/getGroupWordPage',
  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:'operMod',
  121. index:'operMod',
  122. align:"center",
  123. width:"50",
  124. sortable:false,
  125. formatter: function (cellvalue, options, rowdata) {
  126. var html ="";
  127. html = "<button class='btn btn-primary radius size-S' onclick=seeData('"+rowdata.appealid+"')>查看</button>"+
  128. "&nbsp; <button class='btn btn-success radius size-S' onclick=expWord('"+rowdata.appealid+"')>导出</button>";
  129. return html;
  130. }
  131. }],
  132. rownumbers : true,//添加左侧行号
  133. viewrecords : true,//是否在浏览导航栏显示记录总数
  134. rowNum : ${rowpp!10},//每页显示记录数
  135. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  136. autowidth : true,
  137. sortname : 'RecordTime',
  138. sortorder : 'desc',
  139. height : 'auto',
  140. pager : "#jqGridPager",
  141. //屏蔽点击任意单元格选中checkbox的问题
  142. beforeSelectRow: function (rowid, e) {
  143. var $myGrid = $(this),
  144. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  145. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  146. return (cm[i].name === 'cb');
  147. }
  148. });
  149. doSearch();
  150. });
  151. //查看信息 2017-07-24
  152. function seeData(appealid){
  153. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  154. }
  155. //导出word模板 2021-10-08
  156. function expWord(appealid){
  157. $.post("${ctx}/myconsole/complaint/word/expGroup",{"AppealID":appealid},function(data){
  158. var res=eval('(' + data + ')');
  159. if(res.flag){
  160. downFile(res.filepath,res.filename);
  161. }else{
  162. alert("没有数据导出!");
  163. }
  164. })
  165. }
  166. //下载附件
  167. function downFile(filePath,fileName)
  168. {
  169. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  170. }
  171. function stringJoin(stringJont) {
  172. var stringA = '';
  173. for(var i=0;i<stringJont.length;i++){
  174. if (i == stringJont.length-1) {
  175. stringA = stringA + "'"+stringJont[i]+"'";
  176. }else {
  177. stringA = stringA + "'"+stringJont[i]+"',";
  178. }
  179. }
  180. return stringA;
  181. }
  182. function doSearch(){
  183. $('#search').click(function(){
  184. doTrim(form1);
  185. var TName = $('#TName').val();
  186. var BeginDate = $('#BeginDate').val();
  187. var EndDate = $('#EndDate').val();
  188. var LinkTel = $('#LinkTel').val();
  189. var SerialNumber = $('#SerialNumber').val();
  190. var AppealSourceID = stringJoin(formSelects.value('AppealSourceID', 'val'));
  191. var InsceTypeID2 = stringJoin(formSelects.value('InsceTypeID2', 'val'));
  192. $("#jqGrid").jqGrid('setGridParam',{
  193. page:1,
  194. postData:{"TName":TName, "AppealSourceID":AppealSourceID,"InsceTypeID2":InsceTypeID2,"BeginDate":BeginDate,"EndDate":EndDate,"LinkTel":LinkTel,"SerialNumber":SerialNumber}
  195. }).trigger('reloadGrid');
  196. });
  197. }
  198. </script>
  199. <title>我的桌面</title>
  200. </head>
  201. <body>
  202. <div>
  203. <div style="text-align:center;height:30px;padding-top:10px;">
  204. <form id="form1" method="post" class="form-horizontal" role="form">
  205. <table>
  206. <tr>
  207. <td valign="top" style="padding-top: 5px;text-align: left;width:1200px">
  208. <label class="radio-inline" style="font-weight:700" title="客诉人姓名">
  209. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姓名:
  210. </label>
  211. <input type="text" class="form-control" style="width:100px" id="TName" name="TName" value="${TName!''}" maxlength="40" vmode="" vdisp="客诉人" vtype="string">
  212. <label class="radio-inline" style="font-weight:700">
  213. &nbsp;&nbsp;联系电话:
  214. </label>
  215. <input type="text" class="form-control" style="width:100px" id="LinkTel" name="LinkTel" value="${LinkTel!''}" maxlength="20" vmode="" vdisp="联系电话" vtype="phone">
  216. <label class="radio-inline" style="font-weight:700">
  217. &nbsp;&nbsp;客诉日期 :
  218. </label>
  219. <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>
  220. <label class="radio-inline" style="font-weight:700">
  221. &nbsp;至:
  222. </label>
  223. <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>
  224. <label class="radio-inline" style="font-weight:700">
  225. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客诉来源:
  226. </label>
  227. <select id="AppealSourceID" name="AppealSourceID" xm-select-height="16px" xm-select="AppealSourceID" class="form-control" vmode="" vdisp="客诉类别" vtype="string">
  228. <option value="">请选择</option>
  229. ${SourceType!''}
  230. </select>
  231. <label class="radio-inline" style="font-weight:700">
  232. &nbsp;&nbsp;流水号:
  233. </label>
  234. <input type="text" class="form-control" style="width:100px" id="SerialNumber" name="SerialNumber" value="${SerialNumber!''}" maxlength="60" vmode="" vdisp="流水编号" vtype="string">
  235. </td>
  236. <td valign="top" style="padding-top: 1px;">
  237. <label>
  238. <input type="button" id="search" value="搜 索" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block">
  239. <b class="tooltip tip-left-top"></b>
  240. <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
  241. </label>
  242. </label>
  243. </td>
  244. </tr>
  245. </table>
  246. </form>
  247. </div>
  248. <div class="page-container" style="margin-top:5px">
  249. <table id="jqGrid"></table>
  250. <div id="jqGridPager"></div>
  251. </div>
  252. </div>
  253. <script type="text/javascript" src="${ctx}/assets/lib/formSelects-v4/formSelects-v4.js" ></script>
  254. <script type="text/javascript">
  255. formSelects.render('InsceTypeID2','AppealSourceID');
  256. formSelects.btns('InsceTypeID2', ['select', 'reverse'], {show: 'name'});
  257. formSelects.btns('AppealSourceID', ['select', 'reverse'], {show: 'name'});
  258. </script>
  259. </body>
  260. </html>