timeratio.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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/lib/icheck/icheck.css" />
  18. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  19. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  20. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" >
  21. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  22. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  23. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  24. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  26. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  27. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  29. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  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. <!--[if IE 6]>
  33. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  34. <script>DD_belatedPNG.fix('*');</script>
  35. <![endif]-->
  36. <script type="text/javascript">
  37. $(function() {
  38. $(window).resize(function(){
  39. $("#jqGrid").setGridWidth($(window).width()-41);
  40. });
  41. $("#jqGrid").jqGrid({
  42. url : '${ctx}/myconsole/complaint/list/getTimeratioPage',
  43. editurl:"${ctx}/myconsole/complaint/register",
  44. mtype : "POST",
  45. datatype : "json",
  46. multiselect: false,
  47. caption1:'极端客户安抚情况详细数据台账',
  48. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  49. id: "keyid",
  50. oper:"oper",
  51. addoper:"add",
  52. editoper:"edit",
  53. deloper:"del"
  54. },
  55. colModel : [ {
  56. label : '数据编号',
  57. name : 'appealid',
  58. key : true,
  59. editable: false,
  60. hidden:true
  61. },{
  62. label : '日期',
  63. name : 'serialnumber',
  64. width : 50,
  65. align:'center',
  66. },{
  67. label : '提交时间',
  68. name : 'appealtype',
  69. width : 30,
  70. align:'center',
  71. }, {
  72. label : '客户姓名',
  73. name : 'tname',
  74. width : 30,
  75. align:'center',
  76. }, {
  77. label : '来电号码',
  78. name : 'appealsource',
  79. width : 30,
  80. align:'center',
  81. }, {
  82. label : '身份证号',
  83. name : 'appealdate',
  84. width : 50,
  85. align:'center',
  86. },{
  87. label : '涉及产品名称',
  88. hidden:false,
  89. name : 'limitenddate',
  90. width : 30,
  91. align:'center',
  92. }, {
  93. label : '涉及金额',
  94. name : 'dotimeratio',
  95. width : 20,
  96. align:'center',
  97. }, {
  98. label : '数据来源',
  99. name : 'toorgname',
  100. width : 30,
  101. align:'center',
  102. }, {
  103. label : '是否与疫情有关',
  104. name : 'tousername',
  105. width : 30,
  106. align:'center',
  107. }, {
  108. label : '来电次数',
  109. name : 'touserlinktel',
  110. width : 30,
  111. align:'center',
  112. },{
  113. label : '来电次数',
  114. name : 'touserlinktel',
  115. width : 30,
  116. align:'center',
  117. },{
  118. label : '提出强赎理由',
  119. name : 'touserlinktel',
  120. width : 30,
  121. align:'center',
  122. },{
  123. label : '标准',
  124. name : 'touserlinktel',
  125. width : 30,
  126. align:'center',
  127. },{
  128. label : '处理方式',
  129. name : 'touserlinktel',
  130. width : 30,
  131. align:'center',
  132. },{
  133. label : '操作',
  134. name:'operMod',
  135. index:'operMod',
  136. align:"center",
  137. width:"20",
  138. sortable:false,
  139. formatter: function (cellvalue, options, rowdata) {
  140. var html ="";
  141. html = "<button class='btn btn-success radius size-S' onclick=seeData('"+rowdata.appealid+"')>查看</button>";
  142. return html;
  143. }
  144. }],
  145. rownumbers : true,//添加左侧行号
  146. viewrecords : true,//是否在浏览导航栏显示记录总数
  147. rowNum : 10,//每页显示记录数
  148. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  149. autowidth : true,
  150. sortname : 'a.RecordTime',
  151. sortorder : 'desc',
  152. height : 'auto',
  153. pager : "#jqGridPager",
  154. //屏蔽点击任意单元格选中checkbox的问题
  155. beforeSelectRow: function (rowid, e) {
  156. var $myGrid = $(this),
  157. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  158. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  159. return (cm[i].name === 'cb');
  160. }
  161. });
  162. $("#jqGrid").setLabel("rn","序号");
  163. doSearch();
  164. $('#jqGrid').navGrid('#jqGridPager',
  165. {
  166. add : false,
  167. edit : false,
  168. del : false,
  169. search : false,
  170. refresh : false,
  171. view : false,
  172. position : "left",
  173. cloneToTop : true
  174. }
  175. ).navButtonAdd("#jqGridPager",{
  176. caption:'导出',
  177. onClickButton:function(){
  178. var AppealTypeID = $('#AppealTypeID').val();
  179. var BeginDate = $('#BeginDate').val();
  180. var EndDate = $('#EndDate').val();
  181. var DoTimeRatio = $('#DoTimeRatio').val();
  182. $.post("${ctx}/myconsole/complaint/list/excelTimeratioData",{"AppealTypeID":AppealTypeID,"BeginDate":BeginDate,"EndDate":EndDate,"DoTimeRatio":DoTimeRatio},function(data){
  183. var res=eval('(' + data + ')');
  184. if(res.flag){
  185. downFile(res.filepath,res.filename);
  186. }else{
  187. alert("没有数据导出!");
  188. }
  189. })
  190. }
  191. }
  192. );
  193. });
  194. function doSearch(){
  195. $('#search').click(function(){
  196. var AppealTypeID = "01";
  197. var BeginDate = $('#BeginDate').val();
  198. var EndDate = $('#EndDate').val();
  199. var DoTimeRatio = $('#DoTimeRatio').val();
  200. $("#jqGrid").jqGrid('setGridParam',{
  201. postData:{"AppealTypeID":AppealTypeID,"BeginDate":BeginDate,"EndDate":EndDate,"DoTimeRatio":DoTimeRatio}
  202. }).trigger('reloadGrid');
  203. });
  204. }
  205. //查看信息 2017-07-24
  206. function seeData(appealid){
  207. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  208. }
  209. //下载附件
  210. function downFile(filePath,fileName)
  211. {
  212. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  213. }
  214. </script>
  215. <title>我的桌面</title>
  216. </head>
  217. <body>
  218. <div>
  219. <div style="text-align:center;height:30px;padding-top:10px;">
  220. <form id="form1" method="post" class="form-horizontal" role="form">
  221. <input type="hidden" id="RespondentTypeName" name="RespondentTypeName" value="主"/>
  222. <table>
  223. <tr>
  224. <td valign="top" style="padding-top: 5px;text-align: center;">
  225. <label class="radio-inline" style="font-weight:700">
  226. 客诉日期 从:
  227. </label>
  228. <input type="text" class="form-control" value="" placeholder="" id="BeginDate" name="BeginDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'BeginDate',maxDate:'#F{$dp.$D(\'EndDate\')}'})" title="选择开始日期" vmode="" vdisp="开始日期" vtype="string" readonly>
  229. <label class="radio-inline" style="font-weight:700">
  230. &nbsp;至:
  231. </label>
  232. <input type="text" class="form-control" value="" 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>
  233. </td>
  234. <!-- <td valign="top" style="padding-top: 5px;text-align: cener;">-->
  235. <!-- -->
  236. <!-- <label class="radio-inline" style="font-weight:700">-->
  237. <!-- 预警状态:-->
  238. <!-- </label>-->
  239. <!-- <select id="DoTimeRatio" name="DoTimeRatio" class="form-control" vmode="" vdisp="预警状态" vtype="string">-->
  240. <!-- <option value="">请选择</option>-->
  241. <!-- <option value="正常">正常</option>-->
  242. <!-- <option value="超期">超期</option> -->
  243. <!-- </select> -->
  244. <!-- </td>-->
  245. <td valign="top" style="padding-top: 1px;">
  246. <label>
  247. <input type="button" id="search" value="搜 索" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block">
  248. <b class="tooltip tip-left-top"></b>
  249. <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
  250. </label>
  251. </label>
  252. </td>
  253. </tr>
  254. </table>
  255. </form>
  256. </div>
  257. <div class="page-container">
  258. <table id="jqGrid"></table>
  259. <div id="jqGridPager"></div>
  260. </div>
  261. </div>
  262. </body>
  263. </html>