select10.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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"
  8. content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  9. <meta http-equiv="Cache-Control" content="no-siteapp"/>
  10. <LINK rel="Bookmark" href="/favicon.ico">
  11. <LINK rel="Shortcut Icon" href="/favicon.ico"/>
  12. <script type="text/javascript">
  13. var ctx = "${ctx}";
  14. </script>
  15. <!--[if lt IE 9]>
  16. <script type="text/javascript" src="${ctx}/assets/lib/html5.js"></script>
  17. <script type="text/javascript" src="${ctx}/assets/lib/respond.min.js"></script>
  18. <script type="text/javascript" src="${ctx}/assets/lib/PIE_IE678.js"></script>
  19. <![endif]-->
  20. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css"/>
  21. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css"/>
  22. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin"/>
  23. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css"/>
  24. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/webuploader/0.1.5/webuploader.css"/>
  25. <link rel="stylesheet" type="text/css" media="screen" href="${ctx}/assets/lib/jqueryui/jquery-ui.css"/>
  26. <!--_footer 作为公共模版分离出去-->
  27. <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
  28. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  29. <script type="text/javascript" src="${ctx}/assets/lib/icheck/jquery.icheck.min.js"></script>
  30. <script type="text/javascript" src="${ctx}/assets/lib/jquery.validation/1.14.0/jquery.validate.min.js"></script>
  31. <script type="text/javascript" src="${ctx}/assets/lib/jquery.validation/1.14.0/validate-methods.js"></script>
  32. <script type="text/javascript" src="${ctx}/assets/lib/jquery.validation/1.14.0/messages_zh.min.js"></script>
  33. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  34. <script type="text/javascript" src="${ctx}/assets/static/h-ui.admin/js/H-ui.admin.js"></script>
  35. <script type="text/ecmascript" src="${ctx}/assets/lib/jqueryui/jquery-ui.js"></script>
  36. <!--/_footer /作为公共模版分离出去-->
  37. <!--请在下方写此页面业务相关的脚本-->
  38. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  39. <script type="text/javascript" src="${ctx}/assets/lib/webuploader/0.1.5/webuploader.min.js"></script>
  40. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  41. <link href="${ctx}/assets/lib/jquery.sumoselect/sumoselect.css" rel="stylesheet"/>
  42. <script type="text/javascript" src="${ctx}/assets/lib/jquery.sumoselect/jquery.sumoselect.min.js"></script>
  43. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  44. <!--[if IE 6]>
  45. <script type="text/javascript" src="${ctx}/assets/lib/DD_belatedPNG_0.0.8a-min.js"></script>
  46. <script>DD_belatedPNG.fix('*');</script>
  47. <![endif]-->
  48. <!--/meta 作为公共模版分离出去-->
  49. <script type="text/javascript">
  50. var contextPath = "${ctx}";
  51. </script>
  52. <script type="text/javascript" src="${ctx}/assets/lib/ueditor/1.4.3/ueditor.config.js"></script>
  53. <script type="text/javascript" src="${ctx}/assets/lib/ueditor/1.4.3/ueditor.all.js"></script>
  54. <script type="text/javascript" src="${ctx}/assets/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  55. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/colorpicker/evol-colorpicker.css"/>
  56. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
  57. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
  58. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
  59. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
  60. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
  61. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  62. <script src="${ctx}/assets/js/validate.js"></script>
  63. <script src="${ctx}/assets/js/common.js"></script>
  64. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/tableExport.js"></script>
  65. <script type="text/javascript" src="${ctx}/assets/js/tablesMergeCell.js"></script>
  66. <style>
  67. body,html{padding:0;margin:0;}
  68. *{padding:0;margin:0;}
  69. .title{width:85%;padding:0;margin:10px auto 20px auto;line-height:20px;font-size:20px;font-weight:bold; font-family:"Microsoft YaHei"; text-align:center; color:#404040;}
  70. .time{width:85%;padding:0;margin:0 auto;line-height:30px;font-size:14px; font-family:"Microsoft YaHei"; text-align:center;color:#8c8c8c}
  71. .time .dc{width:auto;padding:0 10px;background:#7ea6d2;height:24px;line-height:20px;color:#fff; outline:none;border:#9ebfe4 1px solid; cursor:pointer; border-radius:5px; display:block;margin:3px 0; float:left;}
  72. .time span{padding:0;margin:0;float:left;}
  73. .table{width:85%;margin:10px auto;padding:0;border-top: rgba(10, 10, 10, 0.96) 1px solid;border-left: #0a0a0a 1px solid;}
  74. .table tr{width:100%;margin:0;padding:0;}
  75. .table tr td{margin:0;padding:0;border-bottom: #0a0a0a 1px solid;border-right: #0a0a0a 1px solid;min-height:30px;line-height:24px;padding:5px;font-size:14px; font-family:"Microsoft YaHei"; text-align:center;color:#4e4e4e;}
  76. </style>
  77. <style type="text/css">
  78. .margintop {
  79. margin-bottom: 5px;
  80. }
  81. .placeholder {
  82. height: 14px;
  83. }
  84. </style>
  85. <script type="text/javascript">
  86. function doSubmit(strNo) {
  87. var strBeginAppealDate = $("#BeginAppealDate").val();
  88. var strEndAppealDate = $("#EndAppealDate").val();
  89. if (isEmpty(strBeginAppealDate) || isEmpty(strEndAppealDate)) {
  90. layer.alert("投诉时间不能为空!", {skin: 'layui-layer-molv', closeBtn: 0}, function () {
  91. layer.closeAll('dialog');
  92. });
  93. return;
  94. } else {
  95. $('#form1').attr('action', '${ctx}/myconsole/complaint/report/selectinfo01_' + strNo);
  96. $('#form1').attr('target', '_self');
  97. $('#form1').submit();
  98. }
  99. }
  100. //根据分公司获取部门信息
  101. function setCentreCompanyID() {
  102. var filialeID = $("#FilialeID").val();
  103. $("#respondentFilialeID").val(filialeID);
  104. if (filialeID != '') {
  105. var filialeName = $("#FilialeID").find("option:selected").text();
  106. $("#FilialeName").val(filialeName);
  107. $('#form1').attr('action', '${ctx}/myconsole/complaint/register/getFilialeBusinessHallNameData?ParentID=' + filialeID);
  108. $('#form1').ajaxSubmit(setCentreCompanyIDData);
  109. } else {
  110. $("#CentreCompanyID").empty();
  111. $("#FilialeName").val("");
  112. }
  113. }
  114. //回写原因二类字典数据
  115. function setCentreCompanyIDData(data) {
  116. $("#BusinessHallID").empty();
  117. $("#BusinessHallID").append("<option value=''>请选择</option>");
  118. $("#BusinessHallID").append(data);
  119. }
  120. function setBusinessHallName() {
  121. var BusinessHallID = $("#BusinessHallID").val();
  122. if (BusinessHallID != '') {
  123. var BusinessHallName = $("#BusinessHallID").find("option:selected").text();
  124. $("#BusinessHallName").val(BusinessHallName);
  125. } else {
  126. $("#BusinessHallName").val("");
  127. }
  128. }
  129. //setAppealaffiliationID2()选择二级诉求类别
  130. function setAppealAffiliationID2()
  131. {
  132. var AppealAffiliationID1=$('#AppealAffiliationID1').val();
  133. var nameData="";
  134. if(AppealAffiliationID1!='')
  135. {
  136. nameData=$("#AppealAffiliationID1").find("option:selected").text();
  137. $("#AppealAffiliationName1").val(nameData);
  138. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getAppealAffiliation2Data?ParentID='+AppealAffiliationID1);
  139. $('#form1').ajaxSubmit(setAppealAffiliation2Data);
  140. }
  141. else
  142. {
  143. $("#AppealAffiliationID2").empty();
  144. }
  145. }
  146. //回写归属二类字典数据
  147. function setAppealAffiliation2Data(data)
  148. {
  149. $("#AppealAffiliationID2").empty();
  150. $("#AppealAffiliationID2").append("<option value=''>请选择</option>");
  151. $("#AppealAffiliationID2").append(data);
  152. }
  153. //根据一级渠道获取二级渠道
  154. function setSalesChannelName()
  155. {
  156. var idData=$('#SalesChannelID').val();
  157. if(idData!='')
  158. {
  159. var nameData=$("#SalesChannelID").find("option:selected").text();
  160. $("#SalesChannelName").val(nameData);
  161. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getSalesTypeIDData?ParentID='+idData);
  162. $('#form1').ajaxSubmit(setSalesTypeIDData);
  163. }
  164. else {
  165. $("#SalesChannelName").val("");
  166. }
  167. }
  168. //回写销售方式数据
  169. function setSalesTypeIDData(data)
  170. {
  171. $("#SalesTypeID").empty();
  172. $("#SalesTypeID").append("<option value=''>请选择</option>");
  173. $("#SalesTypeID").append(data);
  174. //动态绑定数据一定要加这句话否则没有效果
  175. $(".selectpicker" ).selectpicker('refresh');
  176. }
  177. function setSalesTypeName()
  178. {
  179. var idData=$('#SalesTypeID').val();
  180. if(idData!='')
  181. {
  182. var nameData=$("#SalesTypeID").find("option:selected").text();
  183. $("#SalesTypeName").val(nameData);
  184. }
  185. else
  186. {
  187. $("#SalesTypeName").val("");
  188. }
  189. }
  190. <!--根据下方table的id(tables)调用tableExport.js的tableExport方法导出表格-->
  191. function exportTable() {
  192. $("td:hidden").remove();
  193. $("#tables").tableExport({fileName: '投诉类型统计', type: "xls", escape: "false"});
  194. }
  195. //下载附件
  196. function downFile(filePath, fileName) {
  197. window.open('${ctx}/downloadFile.do?FileDownloadPath=' + filePath + '&FileDownloadName=' + fileName, 'Derek', 'resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
  198. }
  199. $(function () {
  200. $('#tables').tablesMergeCell({
  201. cols: [0,1,2,3]
  202. });
  203. })
  204. </script>
  205. <!--/请在上方写此页面业务相关的脚本-->
  206. <title>投诉类型统计</title>
  207. <meta name="keywords" content="">
  208. <meta name="description" content="">
  209. </head>
  210. <body style="line-height:1;">
  211. <form id="form1" method="post" class="form-horizontal" role="form">
  212. <div style="display: none">
  213. <input type="hidden" id="FilialeName" name="FilialeName" value=""/>
  214. <input type="hidden" id="BusinessHallName" name="BusinessHallName" value=""/>
  215. <input type="hidden" id="SalesChannelName" name="SalesChannelName" value=""/>
  216. <input type="hidden" id="SalesTypeName" name="SalesTypeName" value=""/>
  217. <input type="hidden" id="RespondentModel" name="RespondentModel" value="respondent"/>
  218. <input type="hidden" id="respondentFilialeID" name="respondent.FilialeID" value=""/>
  219. </div>
  220. <div class="container-fluid" style="margin-top:0px;">
  221. <div class="row" style="padding:15px">
  222. <div class="panel panel-primary">
  223. <div class="panel-heading">查询条件</div>
  224. <div id="collapsePerson" class="panel-collapse collapse in">
  225. <div class="panel-body" style="font-size:14px;width:98%">
  226. <div class="row" style="padding:5px">
  227. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback">
  228. <label class="control-label" for="xjstartDate">投诉时间</label>
  229. </div>
  230. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback"
  231. id="quarterStartDate">
  232. <div class="input-group">
  233. <input type="text" class="form-control" placeholder="" id="BeginAppealDate"
  234. name="BeginAppealDate" vmode="not null" vdisp="投诉时间" vtype="string"
  235. readonly>
  236. <div class="input-group-btn">
  237. <button type="button" class="btn btn-default" aria-label="Left Align"
  238. onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'BeginAppealDate',maxDate:new Date()})"
  239. title="选择投诉时间">
  240. <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
  241. </button>
  242. </div>
  243. </div>
  244. </div>
  245. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 has-error has-feedback" id="property">
  246. <label class="control-label" for="xjendDate"
  247. id="property">&nbsp;&nbsp;至&nbsp;&nbsp;</label>
  248. </div>
  249. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 has-error has-feedback" id="quarterEndDate">
  250. <div class="input-group">
  251. <input type="text" class="form-control" placeholder="" id="EndAppealDate"
  252. name="EndAppealDate" vmode="not null" vdisp="投诉时间 " vtype="string"
  253. readonly>
  254. <div class="input-group-btn">
  255. <button type="button" class="btn btn-default" aria-label="Left Align"
  256. onClick="WdatePicker({dateFmt:'yyyy-MM-dd',el:'EndAppealDate',minDate:$('#BeginAppealDate').val(),maxDate:new Date()})"
  257. title="选择投诉时间">
  258. <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
  259. </button>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="row" style="padding:5px" align=center>
  265. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  266. <button type="button" class="btn btn-success" id="SubmitButton1"
  267. onclick="doSubmit('01')"> 查询
  268. </button>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </form>
  277.  
  278. <div class="container-fluid" style="margin-top:1px;">
  279. <div class="time">
  280. <span><input class="dc" id="dc" value="导出Excel" type="${showFlag!''}" onclick="exportTable()" /></span>
  281. <div style="clear:both;"></div>
  282. </div>
  283. <table id="tables" width="85%" cellpadding="0" cellspacing="0" border="0" class="table">
  284. ${tableData!''}
  285. </table>
  286. </div>
  287. </body>
  288. </html>