| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <!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 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="replace" name="" rows="" cols=""></textarea></td>
- </tr>
- </table>
- <div class="btn_box">
- <input type="hidden" id="F_guid" value="" />
- <button class="btns CB">保存</button>
- </div>
- </div>
- <!--<script src="../js/main.js?v=1.5"></script>-->
- <script src="../js/adjustHeight.js"></script>
- <script src="../js/guid.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- $(document).ready(function () {
- $('.CB').click(function () {
- CB();
- })
- });
- //重办
- function CB() {
- if ($('#replace').val() == '') {
- layer.msg("请输入重办原因");
- return;
- }
- $.post(huayi.config.callcenter_url + 'WorkOrder/BackJwWorkorder', {
- workorderid: wid,
- reason: $('#replace').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>
|