| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <!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="2"><textarea id="reason" name="" rows="" cols=""></textarea></td>
- <input type="hidden" id="delayid"/>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns Agree">同意</button>
- <button class="btns Noagree">拒绝</button>
- </div>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var state;
- $(document).ready(function() {
- HQ();
- $(".Agree").click(function(){
- state=1;
- JA();
- })
- $(".Noagree").click(function(){
- state=2;
- JA();
- })
- })
- //批示
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/AuditRebackWorkOrder', {
- workorderid: wid,
- reason:$("#reason").val(),
- state:state,
- rebackid:$("#delayid").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("操作成功");
-
- }
- })
- }
- //获取数据
- function HQ(){
- $.getJSON(huayi.config.callcenter_url + 'workorder/GetAuditInfo', {
- workorderid:wid,
- type:1,
- "token": $.cookie("token")
- }, function(result) {
- // result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- $("#reason").val(result.data[0].F_Result);
- $("#delayid").val(result.data[0].F_Id);
- console.log(result);
-
- }
- })
- }
- </script>
- </body>
- </html>
|