| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!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>
- .Common table th {
- width: 120px;
- }
- </style>
- </head>
- <body>
- <div class="Common">
- <table>
- <tr class="nexttype-wrapper">
- <th>是否通过:</th>
- <td>
- <select class="form-control" id='nexttype'>
- <option value="0">审核通过</option>
- <option value="1">审核不通过</option>
- </select>
- </td>
- </tr>
- <tr>
- <th>审核说明:</th>
- <td colspan="7"><textarea class="form-control" data-adaptheight id="cbreason" 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 src="../css/laydate/laydate.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var nexttype = helper.request.queryString("nexttype");
- $(document).ready(function () {
- if (String(nexttype) === "1") {
- // $(".nexttype-wrapper").hide()
- $("#nexttype").val(nexttype).attr("disabled", true)
- }
- $('.BC').click(function () {
- JA();
- })
- });
- // 保存
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/AuditDispatch', {
- workorderid: wid,
- nexttype: $("#nexttype").val(),
- cbreason: $("#cbreason").val(),
- token: $.cookie("token")
- }, function (result) {
- result = JSON.parse(result);
- if (result.state.toLowerCase() == "success") {
- layer.msg("操作成功");
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.$("#orderlist").bootstrapTable("refresh");
- parent.closePage()
- }
- })
- }
- </script>
- </body>
- </html>
|