| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <!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>
- </head>
- <body>
- <div class="Common">
- <table >
- <tr>
- <th class="Importent">申请超时时间:</th>
- <td > <input type="text" id="startTime" class="laydate-icon" style="height: 32px;"></td>
- </tr>
- <tr>
- <th class="Importent">申请延时原因:</th>
- <td colspan="2">
- <textarea data-adaptheight id="reason" name="" rows="" cols=""></textarea>
- </td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns">保存</button>
- </div>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script >
- laydate.skin('blue');
- laydate({
- elem: '#startTime',
- event: 'focus',
- min:minDate()
- });
- function minDate(){
- var now = new Date();
- return now.getFullYear()+"-" + (now.getMonth()+1) + "-" + now.getDate();
- }
- var wid = helper.request.queryString("wid");
- $(document).ready(function() {
- $(".btns").click(function(){
- if($("#reason").val()==''){
- layer.msg("申请原因不为空");
- }else {
- JA();
- }
-
- })
- })
- //批示
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/DelayWorkOrder', {
- workorderid: wid,
- reason:$("#reason").val(),
- newlimittime:$("#startTime").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.load();
- parent.layer.msg("申请延时成功");
-
- }
- })
- }
- </script>
- </body>
- </html>
|