Нет описания

returnRedoThreeLevel.html 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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="2">
  17. <textarea data-adaptheight id="reason" name="" rows="" cols=""></textarea>
  18. </td>
  19. </tr>
  20. </table>
  21. <div class="btn_box">
  22. <button class="btns">保存</button>
  23. </div>
  24. </div>
  25. <script src="../css/laydate/laydate.js"></script>
  26. <script src="../js/adjustHeight.js"></script>
  27. <script>
  28. var wid = helper.request.queryString("wid");
  29. $(document).ready(function () {
  30. $(".btns").click(function () {
  31. if ($("#reason").val() == "") {
  32. layer.msg("退回原因不为空");
  33. } else {
  34. JA();
  35. }
  36. });
  37. });
  38. // 拒收
  39. function JA() {
  40. $.post(
  41. huayi.config.callcenter_url + "WorkOrder/RefuseWorkOrder", {
  42. workorderid: wid,
  43. reason: $("#reason").val(),
  44. token: $.cookie("token"),
  45. },
  46. function (result) {
  47. result = JSON.parse(result);
  48. if (result.state.toLowerCase() == "success") {
  49. if (parent.closePage) {
  50. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  51. parent.layer.close(index); //再执行关闭
  52. parent.closePage()
  53. parent.parent.$("#orderlist").bootstrapTable("refresh");
  54. } else {
  55. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  56. parent.layer.close(index); //再执行关闭
  57. parent.$("#orderlist").bootstrapTable("refresh");
  58. parent.layer.msg("退回成功");
  59. }
  60. }
  61. }
  62. );
  63. }
  64. </script>
  65. </body>
  66. </html>