説明なし

provincialPlatformApplicationDelay.html 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. .input {
  12. background-color: #fff;
  13. background-image: none;
  14. border: 1px solid #ccc;
  15. border-radius: 1px;
  16. color: inherit;
  17. padding: 6px 12px;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div class="Common">
  23. <table>
  24. <tr>
  25. <th class="Importent">申请天数:</th>
  26. <td>
  27. <select class="form-control" id="newlimittime">
  28. <!--<option value="5">5天</option>-->
  29. <option value="1">一天</option>
  30. <option value="2">二天</option>
  31. <option value="4">四天</option>
  32. <option value="5">五天</option>
  33. <option value="9">九天</option>
  34. </select>
  35. </td>
  36. </tr>
  37. <tr>
  38. <th class="Importent">申请原因:</th>
  39. <td colspan="5">
  40. <textarea data-adaptheight id="reason" name="" rows="4" cols=""></textarea>
  41. </td>
  42. <input type="hidden" id="ID" />
  43. </tr>
  44. <tr>
  45. <th class="Importent">附件:</th>
  46. <td colspan="5">
  47. <div class="fileBox"></div>
  48. <span class="fjnr"></span>
  49. <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
  50. style="display: none" />
  51. <input class="input" type="button" value="上传" id="scwj" />
  52. <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
  53. <input type="hidden" id="file" />
  54. <span style="color: #ff0000; border: none">
  55. (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
  56. </span>
  57. </td>
  58. </tr>
  59. </table>
  60. <div class="btn_box">
  61. <button class="btns Submit">提交</button>
  62. </div>
  63. </div>
  64. <script src="../css/laydate/laydate.js"></script>
  65. <script src="../js/adjustHeight.js"></script>
  66. <script src="../js/layui/layui.js"></script>
  67. <script src="../js/WorkOrder/reflectionClass.js"></script>
  68. <script src="../Script/Common/huayi.common.js"></script>
  69. <script>
  70. var wid = helper.request.queryString("wid");
  71. var type = helper.request.queryString("type");
  72. $(document).ready(function () {
  73. console.log(wid,type)
  74. $(".Submit").click(function () {
  75. JA();
  76. });
  77. });
  78. //上传附件
  79. $("#scwj").click(function () {
  80. $("#upFile").trigger("click");
  81. });
  82. $("#upFile").change(function () {
  83. upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
  84. });
  85. //交办
  86. function JA() {
  87. // 判断是否上传文件,没有提示必传
  88. var files = $("#file").val();
  89. if (!files) {
  90. layer.msg("附件不能为空");
  91. return;
  92. }
  93. $.post(
  94. huayi.config.callcenter_url + "Affairs/DelayWorkOrder", {
  95. workorderid: wid,
  96. type: type, // 0二级单位申请延时,1退回申请延时
  97. reason: $("#reason").val(), // 申请原因
  98. files: $("#file").val(),
  99. newlimittime: $("#newlimittime").val(), // 申请天数
  100. token: $.cookie("token"),
  101. },
  102. function (result) {
  103. result = JSON.parse(result);
  104. if (result.state.toLowerCase() == "success") {
  105. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  106. parent.layer.close(index); //再执行关闭
  107. parent.$("#orderlist").bootstrapTable("refresh ");
  108. parent.layer.msg("申请延时成功");
  109. parent.closePage();
  110. }
  111. }
  112. );
  113. }
  114. </script>
  115. </body>
  116. </html>