Brak opisu

auditApply.html 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>审核不计考核申请</title>
  10. <style>
  11. .SQtime {
  12. width: 100%;
  13. display: block;
  14. /*height: 32px;*/
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="Common">
  20. <div style="width: 100%;padding: 10px;">
  21. <table class="Table" border="" cellspacing="0" cellpadding="0">
  22. <theard>
  23. <tr>
  24. <td class="text-center" style="min-width:80px;">申请类型</td>
  25. <td class="text-center" style="min-width:80px;">申请时间</td>
  26. <td class="text-center" style="min-width:80px;">申请原因</td>
  27. <td class="text-center" style="min-width:80px;">申请主体</td>
  28. <td class="text-center" style="min-width:80px;">申请附件</td>
  29. </tr>
  30. </theard>
  31. <tbody class="BLQK">
  32. </tbody>
  33. </table>
  34. </div>
  35. <table>
  36. <!--<tr>
  37. <th class="Importent">申请延时原因:</th>
  38. <td > <span class="SQtime"></span></td>
  39. </tr>-->
  40. <tr>
  41. <th>审核意见:</th>
  42. <td colspan="2">
  43. <textarea data-adaptheight id="reason" name="" rows="6" cols=""></textarea>
  44. </td>
  45. </tr>
  46. <input type="hidden" id="delayid" />
  47. </table>
  48. <div class="btn_box">
  49. <button class="btns Agree">同意</button>
  50. <button class="btns Noagree">拒绝</button>
  51. </div>
  52. </div>
  53. <script src="../js/adjustHeight.js"></script>
  54. <script src="../css/laydate/laydate.js"></script>
  55. <script src="../js/jquery-photo-gallery/jquery.photo.gallery.js"></script>
  56. <script>
  57. // laydate.skin('blue');
  58. // laydate({
  59. // elem: '#endtime',
  60. // event: 'focus'
  61. // });
  62. var wid = helper.request.queryString("wid");
  63. var auditUrl, type, InfoType
  64. $(document).ready(function() {
  65. HQ();
  66. $(".Agree").click(function() {
  67. type = 1;
  68. JA();
  69. })
  70. $(".Noagree").click(function() {
  71. type = 2;
  72. JA();
  73. })
  74. })
  75. //批示
  76. function JA() {
  77. $.post(huayi.config.callcenter_url + 'WorkOrder/AuditExamine', {
  78. workorderid: wid,
  79. reason: $("#reason").val(),
  80. state: type,
  81. "token": $.cookie("token")
  82. }, function(result) {
  83. result = JSON.parse(result);
  84. if(result.state.toLowerCase() == "success") {
  85. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  86. parent.layer.close(index); //再执行关闭
  87. parent.$('#orderlist').bootstrapTable('refresh');
  88. parent.layer.msg("审核成功");
  89. }
  90. })
  91. }
  92. //获取数据
  93. function HQ() {
  94. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAuditInfo', {
  95. workorderid: wid,
  96. type: 5,
  97. "token": $.cookie("token")
  98. }, function(result) {
  99. if(result.state.toLowerCase() == "success") {
  100. console.log(result.data)
  101. var htmls = ''
  102. $(".BLQK").empty();
  103. $(result.data).each(function(i, n) {
  104. htmls += '<tr>' +
  105. // '<td class="text-center">' + n.F_Type +'</td>' +
  106. // '<td class="text-center">不满意不计入审核</td>' +
  107. '<td class="text-center">' + n.F_CreateTime +'</td>' +
  108. '<td class="text-center">' + n.F_Reason +'</td>' +
  109. '<td class="text-center">' + n.deptname +'</td>'
  110. // 办理情况附件
  111. htmls += '<td class="gallerys">';
  112. var FileHtml;
  113. $(n.File).each(function(j, m) {
  114. if(m.F_FileType == ".jpg" || m.F_FileType === ".png") {
  115. FileHtml =
  116. '<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
  117. m.F_FileUrl + '" alt="' + m
  118. .F_FileName +
  119. '" fileId="' + m.F_FileId + '">'
  120. } else {
  121. FileHtml =
  122. '<div><a style="margin-right:5px;" target="view_window" href="' +
  123. m.F_FileUrl + '" download="' + m
  124. .F_FileName + '">' + m
  125. .F_FileName.substring(
  126. 19) + '</a></div>'
  127. }
  128. htmls += FileHtml;
  129. })
  130. htmls += '</td></tr>'
  131. })
  132. $(htmls).appendTo($(".BLQK"));
  133. }
  134. })
  135. }
  136. </script>
  137. </body>
  138. </html>