time.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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/jquery.form/jquery.form.min.js"></script>
  24. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  25. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  26. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css" />
  27. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqgrid/css/ui.jqgrid.css" />
  28. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  29. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/i18n/grid.locale-cn.js"></script>
  30. <script type="text/ecmascript" src="${ctx}/assets/lib/jqgrid/js/jquery.jqGrid.min.js"></script>
  31. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  32. <script type="text/javascript" src="${ctx}/assets/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
  33. <!--[if IE 6]>
  34. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
  35. <script>DD_belatedPNG.fix('*');</script>
  36. <![endif]-->
  37. <script type="text/javascript">
  38. $(function() {
  39. $(window).resize(function(){
  40. $("#jqGrid").setGridWidth($(window).width()-41);
  41. });
  42. $("#jqGrid").jqGrid({
  43. url : '${ctx}/myconsole/complaint/list/getTimePage',
  44. editurl:"${ctx}/myconsole/complaint/register",
  45. mtype : "POST",
  46. datatype : "json",
  47. multiselect: false,
  48. caption1:'客诉件台账',
  49. prmNames : { //定义表单的主键 // Default valuesprmNames: {page:“page”,rows:“rows”, sort: “sidx”,order: “sord”, search:“_search”, nd:“nd”, npage:null} 当参数为null时不会被发到服务器端
  50. id: "keyid",
  51. oper:"oper",
  52. addoper:"add",
  53. editoper:"edit",
  54. deloper:"del"
  55. },
  56. colModel : [ {
  57. label : '数据编号',
  58. name : 'appealid',
  59. key : true,
  60. editable: false,
  61. hidden:true
  62. },{
  63. label : '流水号',
  64. name : 'serialnumber',
  65. width : 50,
  66. align:'center',
  67. }, {
  68. label : '投诉人',
  69. name : 'tname',
  70. width : 30,
  71. align:'center',
  72. }, {
  73. label : '客诉时间',
  74. name : 'appealdate',
  75. width : 50,
  76. align:'center',
  77. }, {
  78. label : '客诉来源',
  79. name : 'appealsource',
  80. width : 30,
  81. align:'center',
  82. },{
  83. label : '处理时限',
  84. hidden:false,
  85. name : 'limitdays',
  86. width : 30,
  87. align:'center',
  88. },{
  89. label : '截止日期',
  90. hidden:false,
  91. name : 'limitenddate',
  92. width : 30,
  93. align:'center',
  94. },{
  95. label : '当前状态',
  96. hidden:false,
  97. name : 'dostate',
  98. width : 30,
  99. align:'center',
  100. },{
  101. label : '操作',
  102. name:'operMod',
  103. index:'operMod',
  104. align:"center",
  105. width:"20",
  106. sortable:false,
  107. formatter: function (cellvalue, options, rowdata) {
  108. var html ="";
  109. html = "<button class='btn btn-success radius size-S' onclick=seeData('"+rowdata.appealid+"')>查看</button>";
  110. if(rowdata.dostate!='办结' && rowdata.dostate!='结案' && rowdata.dostate!='归档')
  111. {
  112. html =html+ "&nbsp; <button class='btn btn-primary radius size-S' onclick=doOversee('"+rowdata.appealid+"')>督办</button>";
  113. }
  114. return html;
  115. }
  116. }],
  117. rownumbers : true,//添加左侧行号
  118. viewrecords : true,//是否在浏览导航栏显示记录总数
  119. rowNum : 10,//每页显示记录数
  120. rowList : [10,15,20,30,40,50 ],//用于改变显示行数的下拉列表框的元素数组。
  121. autowidth : true,
  122. sortname : 'a.RecordTime',
  123. sortorder : 'desc',
  124. height : 'auto',
  125. pager : "#jqGridPager",
  126. //屏蔽点击任意单元格选中checkbox的问题
  127. beforeSelectRow: function (rowid, e) {
  128. var $myGrid = $(this),
  129. i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
  130. cm = $myGrid.jqGrid('getGridParam', 'colModel');
  131. return (cm[i].name === 'cb');
  132. }
  133. });
  134. $("#jqGrid").setLabel("rn","序号");
  135. doSearch();
  136. });
  137. //督办 2021-09-23
  138. function doOversee(appealid){
  139. fullOpen("${ctx}/myconsole/complaint/transact/doOversee?appealid="+appealid);
  140. }
  141. function doSearch(){
  142. $('#search').click(function(){
  143. var strBeginDate = $('#BeginDate').val();
  144. var strEndDate = $('#EndDate').val();
  145. if(strBeginDate==''||strEndDate=='')
  146. {
  147. alert("投诉日期区间不能为空!");
  148. }
  149. else
  150. {
  151. var strAppealSource = $('#AppealSource').val();
  152. var strFilialeID = $('#FilialeID').val();
  153. var strTimeType = $('#TimeType').val();
  154. $("#jqGrid").jqGrid('setGridParam',{
  155. postData:{"BeginDate":strBeginDate,"EndDate":strEndDate,"AppealSource":strAppealSource,"FilialeID":strFilialeID,"TimeType":strTimeType}
  156. }).trigger('reloadGrid');
  157. }
  158. });
  159. }
  160. //查看信息 2017-07-24
  161. function seeData(appealid){
  162. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  163. }
  164. //下载附件
  165. function downFile(filePath,fileName)
  166. {
  167. window.open('${serverURL!}/downloadFile.do?FileDownloadPath='+filePath+'&FileDownloadName='+fileName,'Derek','resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  168. }
  169. function setSalesChannelName()
  170. {
  171. var idData=$('#SalesChannelID').val();
  172. if(idData!='')
  173. {
  174. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getSalesTypeIDData?ParentID='+idData);
  175. $('#form1').ajaxSubmit(setSalesTypeIDData);
  176. }
  177. }
  178. function setCentreCompanyID() {
  179. var filialeID = $("#FilialeID").val();
  180. $("#respondentFilialeID").val(filialeID);
  181. if (filialeID != '') {
  182. var filialeName = $("#FilialeID").find("option:selected").text();
  183. $("#FilialeName").val(filialeName);
  184. $('#form1').attr('action', '${ctx}/myconsole/complaint/register/getFilialeBusinessHallNameData?ParentID=' + filialeID);
  185. $('#form1').ajaxSubmit(setCentreCompanyIDData);
  186. } else {
  187. $("#CentreCompanyID").empty();
  188. $("#FilialeName").val("");
  189. }
  190. }
  191. //回写原因二类字典数据
  192. function setCentreCompanyIDData(data) {
  193. $("#BusinessHallID").empty();
  194. // $("#BusinessHallID").append("<option value=''>请选择</option>");
  195. $("#BusinessHallID").append(data);
  196. }
  197. function setBusinessHallName() {
  198. var BusinessHallID = $("#BusinessHallID").val();
  199. if (BusinessHallID != '') {
  200. var BusinessHallName = $("#BusinessHallID").find("option:selected").text();
  201. $("#BusinessHallName").val(BusinessHallName);
  202. } else {
  203. $("#BusinessHallName").val("");
  204. }
  205. }
  206. //回写销售方式数据
  207. function setSalesTypeIDData(data)
  208. {
  209. $("#SalesTypeID").empty();
  210. $("#SalesTypeID").append("<option value=''>请选择</option>");
  211. $("#SalesTypeID").append(data);
  212. //动态绑定数据一定要加这句话否则没有效果
  213. //$(".selectpicker" ).selectpicker('refresh');
  214. }
  215. </script>
  216. <title>我的桌面</title>
  217. </head>
  218. <body>
  219. <div>
  220. <div style="text-align:center;height:30px;padding-top:10px;">
  221. <form id="form1" method="post" class="form-horizontal" role="form">
  222. <input type="hidden" id="RespondentTypeName" name="RespondentTypeName" value="主"/>
  223. <input type="hidden" id="Modal_Main" name="Modal_Main" value="appeal"/>
  224. <input type="hidden" id="FilialeName" name="FilialeName" value=""/>
  225. <input type="hidden" id="BusinessHallName" name="BusinessHallName" value=""/>
  226. <input type="hidden" id="SalesChannelName" name="SalesChannelName" value=""/>
  227. <input type="hidden" id="SalesTypeName" name="SalesTypeName" value=""/>
  228. <input type="hidden" id="RespondentModel" name="RespondentModel" value="respondent"/>
  229. <input type="hidden" id="respondentFilialeID" name="respondent.FilialeID" value=""/>
  230. <table>
  231. <tr>
  232. <td valign="top" style="padding-top: 5px;text-align: left;">
  233. <label class="radio-inline" style="font-weight:700">
  234. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客诉日期 从:
  235. </label>
  236. <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>
  237. <label class="radio-inline" style="font-weight:700">
  238. &nbsp;至:
  239. </label>
  240. <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>
  241. <label class="radio-inline" style="font-weight:700">
  242. 客诉来源:
  243. </label>
  244. <select id="AppealSource" name="AppealSource" class="form-control" vmode="" vdisp="客诉来源" vtype="string">
  245. <option value="">请选择</option>
  246. ${appealSource!''}
  247. </select>
  248. <label class="radio-inline" style="font-weight:700">
  249. 机构:
  250. </label>
  251. <select id="FilialeID" name="FilialeID" onChange=setCentreCompanyID() class="form-control" vmode='' vdisp='机构' vtype='string'>
  252. <option value="">请选择</option>
  253. ${filialeID!''}
  254. </select>
  255. <label class="radio-inline" style="font-weight:700">
  256. 时效类型:
  257. </label>
  258. <select id="TimeType" name="TimeType" class="form-control" vmode='' vdisp='时效类型' vtype='string'>
  259. <option value="">请选择</option>
  260. <option value="一日内到期">一日内到期</option>
  261. <option value="超期">超期</option>
  262. <option value="监管件15日内办结">监管件15日内办结</option>
  263. </select>
  264. </td>
  265. <td valign="top" style="padding-top: 1px;">
  266. <label>
  267. <input type="button" id="search" value="搜 索" style="width: 50px;" class="form-control gui-input form-control input-sm btn btn-primary btn-block">
  268. <b class="tooltip tip-left-top"></b>
  269. <label for="cardno" class="field-icon"><i class="fa fa-credit-card"></i>
  270. </label>
  271. </label>
  272. </td>
  273. </tr>
  274. </table>
  275. </form>
  276. </div>
  277. <div class="page-container">
  278. <table id="jqGrid"></table>
  279. <div id="jqGridPager"></div>
  280. </div>
  281. </div>
  282. </body>
  283. </html>