Няма описание

shiTimesq.html 4.1KB

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. </head>
  11. <body>
  12. <div class="Common">
  13. <table>
  14. <tr>
  15. <th class="Importent">申请延时时间:</th>
  16. <td>
  17. <select class="startTime" id="startTime" style="width: 150px; height: 30px; line-height: 30px;">
  18. <!--<option value="0">选择</option>-->
  19. <option value="1">一天</option>
  20. <option value="3">三天</option>
  21. <option value="5">五天</option>
  22. <!-- <option value="7">七天</option> -->
  23. </select>
  24. </td>
  25. </tr>
  26. <tr>
  27. <th class="Importent">申请延时原因:</th>
  28. <td colspan="2">
  29. <textarea
  30. data-adaptheight
  31. id="reason"
  32. name=""
  33. rows=""
  34. cols=""
  35. ></textarea>
  36. </td>
  37. </tr>
  38. </table>
  39. <div class="btn_box">
  40. <button class="btns">保存</button>
  41. </div>
  42. </div>
  43. <script src="../css/laydate/laydate.js"></script>
  44. <script src="../js/adjustHeight.js"></script>
  45. <script>
  46. var nowTime=new Date();
  47. var wid = helper.request.queryString("wid");
  48. var level = helper.request.queryString("level");
  49. var roleCode = $.cookie("code");
  50. var apiUrl;
  51. $(document).ready(function () {
  52. $(".btns").click(function () {
  53. if ($("#reason").val() == "") {
  54. layer.msg("申请原因不为空");
  55. } else {
  56. JA();
  57. }
  58. });
  59. });
  60. //批示
  61. function JA() {
  62. $.post(
  63. huayi.config.callcenter_url + 'Affairs/DelayWorkOrder',
  64. {
  65. workorderid: wid,
  66. type:2,
  67. reason: $("#reason").val(),
  68. newlimittime: $("#startTime").val(),
  69. token: $.cookie("token"),
  70. },
  71. function (result) {
  72. result = JSON.parse(result);
  73. if (result.state.toLowerCase() == "success") {
  74. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  75. parent.layer.close(index); //再执行关闭
  76. parent.$("#orderlist").bootstrapTable("refresh");
  77. parent.layer.msg("申请延时成功");
  78. parent.closePage();
  79. }
  80. }
  81. );
  82. }
  83. function getNowDate() {
  84. var date = new Date();
  85. var year = date.getFullYear(); //当前年份
  86. var month = date.getMonth(); //当前月份
  87. var day = date.getDate(); //天
  88. month = month + 1
  89. var time = year + "-" + month + "-" + day
  90. return time
  91. }
  92. function getFiveDate() {
  93. var date = new Date();
  94. date.setTime(date.getTime() + 5*24*60*60*1000);
  95. var year = date.getFullYear(); //当前年份
  96. var month = date.getMonth(); //当前月份
  97. var day = date.getDate(); //天
  98. month = month + 1
  99. var time = year + "-" + month + "-" + day
  100. return time
  101. }
  102. </script>
  103. </body>
  104. </html>