respondent.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-3.3.7/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/default.css">
  11. <link rel="stylesheet" href="${ctx}/assets/lib/bootstrap-upload/css/fileinput.css">
  12. <script type="text/javascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.min.js"></script>
  13. <script type="text/javascript" src="${ctx}/assets/lib/jquery.form/jquery.form.min.js"></script>
  14. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  15. <script type="text/javascript" src="${ctx}/assets/lib/My97DatePicker/WdatePicker.js"></script>
  16. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/fileinput.js"></script>
  17. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-upload/js/locales/zh.js"></script>
  18. <script type="text/javascript" src="${ctx}/assets/lib/bootstrap-3.3.7/js/bootstrap.min.js"></script>
  19. <script type="text/javascript" src="${ctx}/assets/js/base.js"></script>
  20. <script src="${ctx}/assets/js/validate.js" ></script>
  21. <script type="text/javascript">
  22. function doSubmit(){
  23. if(doValidate(form1)){
  24. $('#form1').attr('action','${ctx}/myconsole/complaint/query/respondentShowData');
  25. $('#form1').submit();
  26. }
  27. }
  28. function resultHandle(data){
  29. var res=eval('(' + data + ')');
  30. if(res.flag){
  31. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 1},
  32. function(){
  33. layer.closeAll('dialog');
  34. window.location.reload();
  35. });
  36. }else{
  37. if(res.flag == false)
  38. {
  39. layer.alert(res.message, {skin: 'layui-layer-molv',closeBtn: 0}, function(){});
  40. }
  41. }
  42. }
  43. //根据被诉分公司选择中支公司信息
  44. function setCentreCompanyID(respondentModel)
  45. {
  46. var filialeID=$('#'+respondentModel+"FilialeID").val();
  47. if(filialeID!='')
  48. {
  49. var filialeName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
  50. $('#'+respondentModel+"FilialeName").val(filialeName);
  51. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getCentreCompanyIDData?RespondentModel='+respondentModel);
  52. $('#form1').ajaxSubmit(setCentreCompanyIDData);
  53. $('#RespondentModel').val(respondentModel);
  54. setFilialeBusinessHallID(respondentModel); 
  55. }
  56. else
  57. {
  58. $("#"+respondentModel+"CentreCompanyID").empty(); 
  59. $('#'+respondentModel+"FilialeName").val(""); 
  60. }
  61. }
  62. //回写原因二类字典数据
  63. function setCentreCompanyIDData(data){
  64. var respondentModel=$('#RespondentModel').val(); 
  65. $("#"+respondentModel+"CentreCompanyID").empty();  
  66. $("#"+respondentModel+"CentreCompanyID").append("<option value=''>请选择</option>");
  67. $("#"+respondentModel+"CentreCompanyID").append(data);
  68. }
  69. //
  70. function setBusinessHallID(respondentModel)
  71. {
  72. var centreCompanyID=$('#'+respondentModel+"CentreCompanyID").val();
  73. if(centreCompanyID!='')
  74. {
  75. var centreCompanyName=$('#'+respondentModel+"CentreCompanyID").find("option:selected").text();
  76. $('#'+respondentModel+"CentreCompanyName").val(centreCompanyName);
  77. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getBusinessHallIDData?RespondentModel='+respondentModel);
  78. $('#form1').ajaxSubmit(setBusinessHallIDData);
  79. $('#RespondentModel').val(respondentModel); 
  80. }
  81. else
  82. {
  83. $("#"+respondentModel+"BusinessHallID").empty(); 
  84. $('#'+respondentModel+"CentreCompanyName").val(""); 
  85. }
  86. }
  87. //回写被诉网点数据
  88. function setBusinessHallIDData(data){
  89. var respondentModel=$('#RespondentModel').val();
  90. $("#"+respondentModel+"BusinessHallID").empty();  
  91. $("#"+respondentModel+"BusinessHallID").append("<option value=''>请选择</option>");
  92. $("#"+respondentModel+"BusinessHallID").append(data);
  93. }
  94. //根据分公司选择部门
  95. function setFilialeBusinessHallID(respondentModel)
  96. {
  97. var filialeID=$('#'+respondentModel+"FilialeID").val();
  98. if(filialeID!='')
  99. {
  100. var filialeName=$('#'+respondentModel+"FilialeID").find("option:selected").text();
  101. $('#'+respondentModel+"FilialeName").val(filialeName);
  102. $('#form1').attr('action','${ctx}/myconsole/complaint/register/getFilialeBusinessHallIDData?RespondentModel='+respondentModel);
  103. $('#form1').ajaxSubmit(setBusinessHallIDData);
  104. $('#RespondentModel').val(respondentModel); 
  105. }
  106. else
  107. {
  108. $("#"+respondentModel+"BusinessHallID").empty(); 
  109. $('#'+respondentModel+"FilialeName").val(""); 
  110. }
  111. }
  112. function setBusinessHallName(respondentModel)
  113. {
  114. var idData=$("#"+respondentModel+"BusinessHallID").val();
  115. if(idData!='')
  116. {
  117. var nameData=$("#"+respondentModel+"BusinessHallID").find("option:selected").text();
  118. $("#"+respondentModel+"BusinessHallName").val(nameData);
  119. }
  120. else
  121. {
  122. $("#"+respondentModel+"BusinessHallName").val(""); 
  123. }
  124. }
  125. </script>
  126. <!--/请在上方写此页面业务相关的脚本-->
  127. <title>投诉件查询</title>
  128. <meta name="keywords" content="">
  129. <meta name="description" content="">
  130. </head>
  131. <body >
  132. <form id="form1" method="post" class="form-horizontal" role="form">
  133. <div style="display: none">
  134. <input type="hidden" id="RespondentModel" name="RespondentModel" value=""/>
  135. <input type="hidden" id="respondentFilialeName" name="respondent.FilialeName" value=""/>
  136. <input type="hidden" id="respondentCentreCompanyName" name="respondent.CentreCompanyName" value=""/>
  137. <input type="hidden" id="respondentBusinessHallName" name="respondent.BusinessHallName" value=""/>
  138. </div>
  139. <div class="container-fluid" style="margin-top:15px;">
  140. <div class="panel panel-primary">
  141. <div class="panel-heading">
  142. <div style="display:inline;" >被诉人信息查询 &nbsp;&nbsp;&nbsp;&nbsp;</div>
  143. </div>
  144. <div id="collapseRespondent" class="panel-collapse collapse in">
  145. <div class="panel-body" style="font-size:14px" id=ComplainPersonObj>
  146. <div class="row" style="padding:5px" id="respondent_1" >
  147. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1 " >
  148. <label class="control-label" for="respondentFilialeID">被诉公司</label>
  149. </div>
  150. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3 ">
  151. <select id="respondentFilialeID" name="respondent.FilialeID" onChange=setCentreCompanyID('respondent') class="form-control" vmode='' vdisp='主被诉公司' vtype='string'>
  152. <option value="">请选择</option>
  153. ${filialeID!''}
  154. </select>
  155. </div>
  156. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  157. <label class="control-label" for="respondentCentreCompanyID">被诉中支</label>
  158. </div>
  159. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  160. <select id="respondentCentreCompanyID" name="respondent.CentreCompanyID" onChange=setBusinessHallID('respondent') class="form-control" vmode="" vdisp="被诉中支/部门" vtype="string">
  161. <option value="">请选择</option>
  162. </select>
  163. </div>
  164. <div class="col-xs-1 col-sm-1 col-md-1 col-lg-1" >
  165. <label class="control-label" for="respondentBusinessHallID">被诉部门</label>
  166. </div>
  167. <div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
  168. <select id="respondentBusinessHallID" name="respondent.BusinessHallID" onChange=setBusinessHallName('respondent') class="form-control" vmode="" vdisp="被诉部门" vtype="string">
  169. <option value="">请选择</option>
  170. </select>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="panel panel-success">
  177. <div class="panel-heading">
  178. <div style="display:inline;" >选择显示的列&nbsp;&nbsp;</div>
  179. </div>
  180. <div id="collapseFile" class="panel-collapse collapse in">
  181. <div class="panel-body" style="font-size:14px">
  182. <div class="row" style="padding:5px">
  183. <label class="checkbox-inline">
  184. &nbsp;&nbsp;&nbsp;&nbsp;<input type='checkbox' name='FieldName' value='appealid/客诉工单号' checked>客诉工单号
  185. </label>
  186. <label class="checkbox-inline">
  187. <input type='checkbox' name='FieldName' value='filialename/被诉公司' checked>被诉公司
  188. </label>
  189. <label class="checkbox-inline">
  190. <input type='checkbox' name='FieldName' value='centrecompanyname/被诉中支' checked>被诉中支
  191. </label>
  192. <label class="checkbox-inline">
  193. <input type='checkbox' name='FieldName' value='businesshallname/被诉部门' checked>被诉部门
  194. </label>
  195. <label class="checkbox-inline">
  196. <input type='checkbox' name='FieldName' value='ordertype/主次类别' >主次类别
  197. </label>
  198. <label class="checkbox-inline">
  199. <input type='checkbox' name='FieldName' value='respondentname/被诉人姓名' checked>被诉人姓名
  200. </label>
  201. <label class="checkbox-inline">
  202. <input type='checkbox' name='FieldName' value='respondentjobno/被诉人工号' >被诉人工号
  203. </label>
  204. <label class="checkbox-inline">
  205. <input type='checkbox' name='FieldName' value='respondenttype/被诉人类型' >被诉人类型
  206. </label>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <div class="row" style="padding:5px">
  212. <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" align=center>
  213. <button type="button" class="btn btn-success" id="SubmitButton1" onclick="doSubmit()"> 查&nbsp;&nbsp;&nbsp;&nbsp;询</button>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </form>
  219.  
  220. </body>
  221. </html>