高新区管委会,以5.0标准版为基准,从双汇项目拷贝

registrantSituation.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>登记人情况</title>
  7. <!--[if lt IE 9]>
  8. <meta http-equiv="refresh" content="0;ie.html" />
  9. <![endif]-->
  10. <script src="../Script/Common/huayi.load.js"></script>
  11. <script src="../Script/Common/huayi.config.js"></script>
  12. <script src="../js/laydate/laydate.js"></script>
  13. <link rel="stylesheet" href="../js/layui/css/layui.css" />
  14. <link rel="stylesheet" href="../css/init.css" />
  15. <style>
  16. .zxt-top {
  17. background: #fefefe;
  18. height: 60px;
  19. padding: 10px 20px;
  20. }
  21. .topCon {
  22. float: right;
  23. margin-right: 45px;
  24. }
  25. .zxt-content {
  26. width: 90%;
  27. margin: 20px auto 0 auto;
  28. }
  29. .select2-container--default .select2-selection--single{
  30. border-color: #e5e6e7;
  31. }
  32. .time-box select{
  33. height: 32px;
  34. line-height: 32px;
  35. }
  36. .time-box select option{
  37. line-height: 32px;
  38. }
  39. .Shows {
  40. display: block !important;
  41. }
  42. .complain {
  43. display: none;
  44. }
  45. .daoHang {
  46. margin-bottom: 15px;
  47. }
  48. #main {
  49. width: 788.8px;
  50. margin: 0 auto;
  51. margin-top: 20px;
  52. -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
  53. box-shadow: 1px 1px 9px 2px #D2D2D2;
  54. background-color: #fff;
  55. padding: 30px 60px 80px 60px;
  56. }
  57. .alignC {
  58. text-align: center;
  59. }
  60. .alignC h2 {
  61. font-family: "宋体";
  62. font-weight: bold;
  63. font-size: 22pt;
  64. letter-spacing: -1px;
  65. }
  66. .headerAlign h3 div:nth-of-type(1) {
  67. font-size: 14pt;
  68. padding-top: 20px;
  69. text-align: left;
  70. font-weight: normal;
  71. margin-left: 48px;
  72. }
  73. #main table {
  74. margin: 0 auto;
  75. width: 600px;
  76. border-collapse: collapse;
  77. font-size: 13pt;
  78. font-family: "仿宋";
  79. }
  80. #main table tr {
  81. min-height: 49px;
  82. }
  83. tbody td {
  84. min-width: 10%;
  85. padding: 6px 0 6px 0;
  86. }
  87. .alignC .tableHead {
  88. text-align: center;
  89. padding-left: 10px;
  90. font-weight: 600;
  91. }
  92. .btn {
  93. margin-top: 4px;
  94. margin-bottom: 4px;
  95. background: #00a1cb;
  96. color: #fff;
  97. }
  98. .time-box {
  99. display: inline-block;
  100. position: relative;
  101. }
  102. .toolLeft input {
  103. padding-right: 30px;
  104. width: 150px;
  105. }
  106. .tub {
  107. position: absolute;
  108. right: 8px;
  109. top: 5px;
  110. font-size: 18px;
  111. color: #00a0ca;
  112. }
  113. </style>
  114. </head>
  115. <body class="gray-bg">
  116. <div class="wrapper wrapper-content">
  117. <div class="Content_box">
  118. <div class="complain Shows">
  119. <div class="tab-content">
  120. <div class="tab-pane fade active in">
  121. <!-- <div class="zxt-top clearfix">
  122. <div class="topCon">
  123. <div class="form-inline th-bar clearfix">
  124. <div class="form-group tool_bars pull-right">
  125. <a class="btns export">导出</a>
  126. </div>
  127. </div>
  128. </div>
  129. </div> -->
  130. <!--startprint1-->
  131. <div id="main">
  132. <div class="alignC headerAlign">
  133. <br />
  134. <h2 style="margin-bottom: 15px;">登记人情况</h2>
  135. </div>
  136. <table id="weeklist" class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">
  137. <tr>
  138. <td>姓名</td>
  139. <td id="printName" colspan="2"></td>
  140. <td>性别</td>
  141. <td id="printSex" colspan="2"></td>
  142. </tr>
  143. <tr>
  144. <td>来访日期</td>
  145. <td id="printDateVisit" colspan="2"></td>
  146. <td>身份证号码</td>
  147. <td id="printIDCard" colspan="2"></td>
  148. </tr>
  149. <tr>
  150. <td>电话</td>
  151. <td id="printPhone" colspan="2"></td>
  152. <td>来访人数</td>
  153. <td id="printNumberVisitors" colspan="2"></td>
  154. </tr>
  155. <tr>
  156. <td>身份证住址</td>
  157. <td id="printIDCardAddress" colspan="5"></td>
  158. </tr>
  159. <tr>
  160. <td>随访人姓名</td>
  161. <td id="printFollowerName" colspan="5"></td>
  162. </tr>
  163. <tr>
  164. <td>主要诉求</td>
  165. <td id="printMainAppeal" colspan="5"></td>
  166. </tr>
  167. <tr>
  168. <td>处置情况</td>
  169. <td id="printDisposalSituation" colspan="5"></td>
  170. </tr>
  171. <tr>
  172. <td width="15%">通知单位</td>
  173. <td id="printNotificationUnit" width="15%"></td>
  174. <td width="15%">被通知单位人员</td>
  175. <td id="printNotifiedUnitPersonnel" width="15%"></td>
  176. <td width="15%">接访人员签名</td>
  177. <td id="printSignatureInterviewer" width="15%"></td>
  178. </tr>
  179. </table>
  180. </div>
  181. <!--endprint1-->
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <script>
  188. var CallID = helper.request.queryString("CallID");
  189. $(document).ready(function () {
  190. // initTableBrief();
  191. getRegisterDetailByCallId()
  192. })
  193. //通过callid获取详情
  194. function getRegisterDetailByCallId() {
  195. $.get(huayi.config.callcenter_url + 'RegRecords/GetCallidDetails', {
  196. callid: CallID,
  197. "token": $.cookie("token")
  198. }, function(result) {
  199. result = $.parseJSON(result);
  200. if(result.state.toLowerCase() == "success") {
  201. var con = result.data.model;
  202. var conCus = result.data.cusmodel
  203. $("#printName").text(conCus.F_Name); //姓名
  204. $("#printPhone").text(conCus.F_Phone); //电话
  205. $("#printSex").text(conCus.F_Sex); //性别
  206. $("#printIDCardAddress").text(conCus.F_Province + conCus.F_City + conCus.F_County + conCus.F_Address)
  207. // $("#detailProvince").text(conCus.F_Province); //省
  208. // $("#detailCity").text(conCus.F_City); //市
  209. // $("#detailCounty").text(conCus.F_County); //县/区
  210. // $("#detailAddress").text(conCus.F_Address); //详细地址
  211. $("#printNotificationUnit").text(con.F_Complained); //被投诉单位
  212. $("#printMainAppeal").text(con.F_Content); //登记内容/投诉事项
  213. $("#printSignatureInterviewer").text(con.F_CreateBy); //登记人
  214. $("#printDateVisit").text(con.F_CreateOn); //登记时间
  215. }
  216. })
  217. }
  218. //登记类型
  219. function formatterRegisterType(val) {
  220. var formatterRegisterTypeArr = ["", "咨询", "投诉", "求助", "其他"]
  221. return formatterRegisterTypeArr[val]
  222. }
  223. //表格
  224. function initTableBrief(brieftype) {
  225. $.getJSON(huayi.config.callcenter_url + 'Business/MarketInformation', {
  226. token: $.cookie("token")
  227. }, function (result) {
  228. if (result.state.toLowerCase() == "success") {
  229. var content = result.rows;
  230. $('#weeklist').html('');
  231. $("#weeklist").append(
  232. '<tr><td colspan="8"><h3>时间:<span class="startTimeBrief">-</span><span>至</span><span class="endTimeBrief">-</span></h3></td></tr>'+
  233. '<tr><td colspan="8" class="tableHead">产品投诉情况</td></tr>'
  234. )
  235. // 产品投诉
  236. for (var i=0; i < content.product.length; i+=2) {
  237. if(content.product[i+1] == undefined) {
  238. $("#weeklist").append(
  239. '<tr>'+
  240. '<td width="20%">'+
  241. content.product[i].name +
  242. '</td>'+
  243. '<td width="15%">'+
  244. '<span>'+
  245. content.product[i].number +
  246. '</span>'+
  247. '</td>'+
  248. '<td width="15%">'+
  249. '<span>'+
  250. content.product[i].Proportion +
  251. '</span>'+
  252. '</td>'+
  253. '<td width="20%">'+
  254. '</td>'+
  255. '<td width="15%">'+
  256. '<span>'+
  257. '</span>'+
  258. '</td>'+
  259. '<td width="15%">'+
  260. '<span>'+
  261. '</span>'+
  262. '</td>'+
  263. '</tr>'
  264. )
  265. } else {
  266. $("#weeklist").append(
  267. '<tr>'+
  268. '<td width="20%">'+
  269. content.product[i].name +
  270. '</td>'+
  271. '<td width="15%">'+
  272. '<span>'+
  273. content.product[i].number +
  274. '</span>'+
  275. '</td>'+
  276. '<td width="15%">'+
  277. '<span>'+
  278. content.product[i].Proportion +
  279. '</span>'+
  280. '</td>'+
  281. '<td width="20%">'+
  282. content.product[i+1].name +
  283. '</td>'+
  284. '<td width="15%">'+
  285. '<span>'+
  286. content.product[i+1].number +
  287. '</span>'+
  288. '</td>'+
  289. '<td width="15%">'+
  290. '<span>'+
  291. content.product[i+1].Proportion +
  292. '</span>'+
  293. '</td>'+
  294. '</tr>'
  295. )
  296. }
  297. }
  298. $("#weeklist").append(
  299. '<tr><td colspan="8">服务投诉情况</td></tr>'+
  300. '<tr><td colspan="8">涉媒投诉</td></tr>'+
  301. '<tr><td>'+ content.sediainvolved.name + '</td><td><span>'+ content.sediainvolved.number + '</span></td><td><span>'+content.sediainvolved.Proportion + '</span></td><td colspan="4"></td></tr>'+
  302. '<tr><td colspan="8" class="tableHead">市场抽检</td></tr>'+
  303. '<tr><td colspan="8" class="tableHead">其他信息</td></tr>'
  304. )
  305. }
  306. })
  307. }
  308. //导出
  309. $(".export").click(function () {
  310. var url = huayi.config.callcenter_url + "Business/MarketInformation?token=" + $.cookie("token");
  311. url += "&sdate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0] : '') + "&edate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1] : '') + "&isdc=1";
  312. $(".export").attr('href', url);
  313. });
  314. </script>
  315. </body>
  316. </html>