| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <!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>
- .SQtime{
- width: 100%;
- display: block;
- /*height: 32px;*/
- }
- </style>
- </head>
- <body>
- <div class="Common">
- <table >
- <tr>
- <th class="Importent">申请延时时间:</th>
- <td > <input type="text" id="endtime" class="laydate-icon" style="height: 32px;"></td>
- </tr>
- <tr>
- <th class="Importent">审核意见:</th>
- <td colspan="2">
- <textarea data-adaptheight id="reason" name="" rows="6" cols=""></textarea>
- </td>
- </tr>
- <input type="hidden"id="delayid" />
- </table>
- <div class="btn_box">
- <button class="btns Agree">同意</button>
- <button class="btns Noagree">拒绝</button>
- </div>
- </div>
- <script src="../js/adjustHeight.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <script >
- laydate.skin('blue');
- laydate({
- elem: '#endtime',
- event: 'focus'
- });
- var wid = helper.request.queryString("wid");
-
- // var widArr = [];
- // console.log(wid)
- // saveArr=wid.split(","); //字符分割
- // console.log(saveArr.length)
- // alert(typeof(saveArr));
- var type;
- $(document).ready(function() {
- $(".Agree").click(function(){
- type=1;
- JA();
- })
- $(".Noagree").click(function(){
- type=2;
- JA();
- })
- })
- //批示
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/AuditDelayWorkOrderBatch', {
- ids: wid,
- reason:$("#reason").val(),
- newlimittime:$("#endtime").val(),
- state:type,
- "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("审核延时成功");
- }
- })
- }
- </script>
- </body>
- </html>
|