Нет описания

rejection.html 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. </head>
  11. <body>
  12. <div class="Common">
  13. <table >
  14. <tr>
  15. <th class="Importent">拒收原因:</th>
  16. <td colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
  17. </tr>
  18. <tr>
  19. <th class="">附件:</th>
  20. <td>
  21. <div class="fileBox"></div>
  22. <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
  23. <input class="input" type="button" value="上传" id="scwj">
  24. <input type="hidden" id="file">
  25. <span style="color: #ff0000; border: none">
  26. (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
  27. </span>
  28. </td>
  29. </tr>
  30. </table>
  31. <div class="btn_box">
  32. <button class="btns BC">保存</button>
  33. </div>
  34. </div>
  35. <script src="../Script/Common/huayi.common.js"></script>
  36. <script src="../js/adjustHeight.js"></script>
  37. <script>
  38. var wid = helper.request.queryString("wid");
  39. //alert(wid)
  40. $(document).ready(function() {
  41. $('.BC').click(function() {
  42. if ($("#result").val() == "") {
  43. layer.msg("拒绝原因不为空");
  44. } else {
  45. JA();
  46. }
  47. })
  48. });
  49. $("#scwj").click(function () {
  50. $("#upFile").trigger("click");
  51. })
  52. $("#upFile").change(function () {
  53. upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
  54. });
  55. //回退
  56. function JA() {
  57. $.post(huayi.config.callcenter_url + 'WorkOrder/RefuseWorkOrder', {
  58. workorderid: wid,
  59. files: $("#file").val(),
  60. reason:$("#result").val(),//回访内容
  61. token: $.cookie("token")
  62. }, function(result) {
  63. result = JSON.parse(result);
  64. if(result.state.toLowerCase() == "success") {
  65. debugger
  66. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  67. console.log(index);
  68. parent.layer.close(index); //再执行关闭
  69. parent.$('#orderlist').bootstrapTable('refresh');
  70. parent.layer.msg("操作成功");
  71. }
  72. })
  73. }
  74. </script>
  75. </body>
  76. </html>