| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!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>
- #reason{
- width: 100%;
- display: block;
- /*height: 32px;*/
- }
- </style>
- </head>
- <body>
- <div class="Common">
- <table>
- <tr>
- <th class="Importent">申请原因:</th>
- <td colspan="2">
- <span id="reason" name="" rows="" cols=""></span>
- </td>
- <input type="hidden" id="delayid"/>
- </tr>
- <tr>
- <th class="Importent">审核意见:</th>
- <td colspan="2"><textarea data-adaptheight id="Reason" name="" rows="" cols=""></textarea></td>
- </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 src="../js/adjustHeight.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.$('#orderlist').bootstrapTable('refresh');
- 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").text(result.data[0].F_Result);
- $("#delayid").val(result.data[0].F_Id);
- console.log(result);
-
- }
- })
- }
- </script>
- </body>
- </html>
|