| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!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="4">
- <textarea data-adaptheight id="backreason" 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>
- var wid = helper.request.queryString("wid");
-
- $(document).ready(function() {
- $(".btns").click(function(){
- if($("#backreason").val()==''){
- layer.msg("退回原因不为空");
- }else {
-
- JA();
- }
- })
- })
- //批示
- function JA() {
- $.post(huayi.config.callcenter_url + '/WorkOrder/RefuseCityWorkOrder', {
- workorderid: wid,
- backreason:$("#backreason").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>
|