| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/layer/need/layer.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>省平台申请延时</title>
- <style>
- .input {
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- </style>
- </head>
- <body>
- <div class="Common">
- <table>
-
- <tr>
- <th class="Importent">申请天数:</th>
- <td>
- <select class="form-control" id="newlimittime">
- <!--<option value="5">5天</option>-->
- <option value="1">一天</option>
- <option value="2">二天</option>
- <option value="4">四天</option>
- <option value="5">五天</option>
- <option value="9">九天</option>
- </select>
- </td>
- </tr>
- <tr>
- <th class="Importent">申请原因:</th>
- <td colspan="5">
- <textarea data-adaptheight id="reason" name="" rows="4" cols=""></textarea>
- </td>
- <input type="hidden" id="ID" />
- </tr>
- <tr>
- <th class="Importent">附件:</th>
- <td colspan="5">
- <div class="fileBox"></div>
- <span class="fjnr"></span>
- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
- style="display: none" />
- <input class="input" type="button" value="上传" id="scwj" />
- <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
- <input type="hidden" id="file" />
- <span style="color: #ff0000; border: none">
- (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
- </span>
- </td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns Submit">提交</button>
- </div>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script src="../js/layui/layui.js"></script>
- <script src="../js/WorkOrder/reflectionClass.js"></script>
- <script src="../Script/Common/huayi.common.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var type = helper.request.queryString("type");
- $(document).ready(function () {
- console.log(wid,type)
- $(".Submit").click(function () {
- JA();
- });
-
- });
- //上传附件
- $("#scwj").click(function () {
- $("#upFile").trigger("click");
- });
- $("#upFile").change(function () {
- upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
- });
- //交办
- function JA() {
- // 判断是否上传文件,没有提示必传
- var files = $("#file").val();
- if (!files) {
- layer.msg("附件不能为空");
- return;
- }
- $.post(
- huayi.config.callcenter_url + "Affairs/DelayWorkOrder", {
- workorderid: wid,
- type: type, // 0二级单位申请延时,1退回申请延时
- reason: $("#reason").val(), // 申请原因
- files: $("#file").val(),
- newlimittime: $("#newlimittime").val(), // 申请天数
- token: $.cookie("token"),
- },
- function (result) {
- result = JSON.parse(result);
- if (result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.$("#orderlist").bootstrapTable("refresh ");
- parent.layer.msg("申请延时成功");
- parent.closePage();
- }
- }
- );
- }
- </script>
- </body>
- </html>
|