説明なし

tuihuisq.html 2.9KB

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