| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!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 colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns BC">保存</button>
- </div>
- </div>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
-
- //alert(wid)
- $(document).ready(function() {
- $('.BC').click(function() {
- JA();
- })
- });
- //回退
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/RefuseWorkOrder', {
- workorderid: wid,
- reason:$("#result").val(),//回访内容
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- console.log(index);
- parent.layer.close(index); //再执行关闭
- parent.$('#orderlist').bootstrapTable('refresh');
- parent.layer.msg("操作成功");
- }
- })
- }
- </script>
- </body>
- </html>
|