Nenhuma Descrição

shth.html 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. #reason{
  12. width: 100%;
  13. display: block;
  14. /*height: 32px;*/
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="Common">
  20. <table>
  21. <tr>
  22. <th class="Importent">申请原因:</th>
  23. <td colspan="2">
  24. <span id="reason" name="" rows="" cols=""></span>
  25. </td>
  26. <input type="hidden" id="delayid"/>
  27. </tr>
  28. <tr>
  29. <th>上传附件:</th>
  30. <td>
  31. <span></span><span id="uploadAttachment"></span>
  32. </td>
  33. </tr>
  34. <tr>
  35. <th class="Importent">审核意见:</th>
  36. <td colspan="2"><textarea data-adaptheight id="Reason" name="" rows="" cols=""></textarea></td>
  37. </tr>
  38. </table>
  39. <div class="btn_box">
  40. <button class="btns Agree">同意</button>
  41. <button class="btns Noagree">拒绝</button>
  42. </div>
  43. </div>
  44. <script src="../css/laydate/laydate.js"></script>
  45. <script src="../js/adjustHeight.js"></script>
  46. <script>
  47. var wid = helper.request.queryString("wid");
  48. var state;
  49. $(document).ready(function() {
  50. HQ();
  51. $(".Agree").click(function(){
  52. state=1;
  53. JA();
  54. })
  55. $(".Noagree").click(function(){
  56. state=2;
  57. JA();
  58. })
  59. })
  60. //批示
  61. function JA() {
  62. $.post(huayi.config.callcenter_url + 'WorkOrder/AuditRebackWorkOrder', {
  63. workorderid: wid,
  64. reason:$("#Reason").val(),
  65. state:state,
  66. rebackid:$("#delayid").val(),
  67. "token": $.cookie("token")
  68. }, function(result) {
  69. result = JSON.parse(result);
  70. if(result.state.toLowerCase() == "success") {
  71. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  72. parent.layer.close(index); //再执行关闭
  73. parent.$('#orderlist').bootstrapTable('refresh');
  74. parent.layer.msg("审核退回成功");
  75. }
  76. })
  77. }
  78. //获取数据
  79. function HQ(){
  80. $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAuditInfo', {
  81. workorderid:wid,
  82. type:1,
  83. "token": $.cookie("token")
  84. }, function(result) {
  85. // result = JSON.parse(result);
  86. if(result.state.toLowerCase() == "success") {
  87. $("#reason").text(result.data[0].F_Result);
  88. $("#delayid").val(result.data[0].F_Id);
  89. var FileHtml = "";
  90. $(result.data[0].File).each(function(j, m) {
  91. console.log(1)
  92. FileHtml += '<span><a style="margin-right:5px;" target="view_window" href="' + m.F_FileUrl + '" download="' + m.F_FileName + '">' + m.F_FileName.substring(19) + '</a></span>';
  93. })
  94. $("#uploadAttachment").append(FileHtml)
  95. }
  96. })
  97. }
  98. </script>
  99. </body>
  100. </html>