customerview.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 queryCustomerView(){
  23. var strTName=$('#TName').val();
  24. var strIDCard=$('#IDCard').val(); 
  25. var strLinkTel1=$('#LinkTel1').val();  
  26. if(strTName!='' || strIDCard!='' || strLinkTel1!='')
  27. {
  28. $('#form1').attr('action','${ctx}/myconsole/complaint/register/queryCustomerView');
  29. $('#form1').ajaxSubmit(setPersonData);
  30. }
  31. else
  32. {
  33. layer.alert('客户名称,证件号码,联系电话不能全为空!', {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');});
  34. }
  35. }
  36. //回写投诉人判重数据
  37. function setPersonData(data){
  38. var personJson = JSON.parse(data);
  39. var flag=personJson.flag;
  40. if(flag)
  41. {
  42. var person=personJson.person;
  43. $("#Modal_Appeal").find("tr:not(:first)").remove();
  44. var listAppeal=eval(personJson.listAppeal);
  45. listAppeal.forEach(function(item,index)
  46. {
  47. if(item.serialnumber==null){
  48. $("#Modal_Appeal").append("<tr><td></td><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td></td></tr>");
  49. }else{
  50. $("#Modal_Appeal").append("<tr><td>"+item.serialnumber+"</td><td>"+item.appealdate+"</td><td>"+item.appealsource+"</td><td>"+item.appealtype+"</td><td><button class='btn btn-primary radius size-S' onclick=seeData('"+item.appealid+"')>查看</button></td></tr>");
  51. }
  52. })
  53. $('#CustomerAppealIist').show();
  54. }
  55. else
  56. {
  57. layer.alert("该没有投诉记录!", {skin: 'layui-layer-molv',closeBtn: 0}, function(){layer.closeAll('dialog');
  58. $('#CustomerAppealIist').hide();
  59. });
  60. }
  61. }
  62. function setCollapseIcon(collapseIcon)
  63. {
  64. var curCollapseIconClass=$("#"+collapseIcon).attr("class");
  65. if(curCollapseIconClass=="glyphicon glyphicon-menu-up")
  66. {
  67. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-down");
  68. }
  69. else
  70. {
  71. $("#"+collapseIcon).attr("class","glyphicon glyphicon-menu-up");
  72. }
  73. }
  74. //查看 2017-07-19
  75. function seeData(appealid){
  76. fullOpen("${ctx}/myconsole/complaint/register/seeData?appealid="+appealid);
  77. }
  78. //播放录音
  79. function openSound(filePath,fileName)
  80. {
  81. fullOpen("${ctx}/myconsole/complaint/register/playSound?filePath="+filePath+"&fileName="+fileName);
  82. }
  83. </script>
  84. <title>客诉件办理</title>
  85. <meta name="keywords" content="">
  86. <meta name="description" content="">
  87. </head>
  88. <body >
  89. <div class="container-fluid" style="margin-top:15px;">
  90. <div class="panel panel-primary">
  91. <div class="panel-heading">
  92. <div style="display:inline;" >客户统一视图 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  93. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapsePerson"><span id="PersonCollapseIcon" onClick="setCollapseIcon('PersonCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  94. </div>
  95. <form id="form1" method="post" class="form-horizontal" role="form">
  96. <div id="collapsePerson" class="panel-collapse collapse in">
  97. <div class="panel-body" style="font-size:14px">
  98. <div class="row" style="padding:5px" >
  99. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  100. <label class="control-label" for="TName" >客户名称</label></div>
  101. <div class="col-xs-12 col-sm-3 col-md-3 col-lg-2" >
  102. <input type="text" class="form-control" id="TName" name="TName" maxlength="40" vmode="" vdisp="客户名称" vtype="string">
  103. </div>
  104. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  105. <label class="control-label" for="IDCard" >证件号码</label></div>
  106. <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2" >
  107. <input type="text" class="form-control" placeholder="" id="IDCard" name="IDCard" vmode="" vdisp="证件号码" vtype="string">
  108. </div>
  109. <div class="col-xs-12 col-sm-1 col-md-1 col-lg-1" >
  110. <label class="control-label" for="LinkTel1" >联系电话</label></div>
  111. <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2" >
  112. <input type="text" class="form-control" placeholder="" id="LinkTel1" name="LinkTel1" maxlength="20" vmode="" vdisp="联系电话" vtype="phone">
  113. </div>
  114. <div class="col-xs-12 col-sm-2 col-md-2 col-lg-2" >
  115. <button type="button" class="btn btn-success" id="QueryCompactButton" onclick="queryCustomerView()" >查询</button>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </form>
  122. <div class="panel panel-primary" id=CustomerAppealIist hidden >
  123. <div class="panel-heading">
  124. <div style="display:inline;" >客户投诉记录 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
  125. <div style="display:inline;" ><a class="panel-title" data-toggle="collapse" data-parent="#accordion" href="#collapseAppealList"><span id="AppealListCollapseIcon" onClick="setCollapseIcon('AppealListCollapseIcon')" class="glyphicon glyphicon-menu-up" aria-hidden="true"></span></a></div>
  126. </div>
  127. <div id="collapseAppealList" class="panel-collapse collapse in">
  128. <div class="panel-body" style="font-size:14px">
  129. <div class="table-responsive">
  130. <table class="table table-bordered" id="Modal_Appeal">
  131. <tr class="info">
  132. <th class="text-center" width="100px">流水号</th>
  133. <th class="text-center" >客诉日期</th>
  134. <th class="text-center">客诉来源</th>
  135. <th class="text-center">客诉类型</th>
  136. <th class="text-center" width="50px">查看</th>
  137. </tr>
  138. </table>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </body>
  145. </html>