| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <!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/bootstrap-select.css" />
- <link rel="stylesheet" href="../css/layer/need/layer.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <title>添加</title>
- <style>
- .Common table th {
- width: 100px
- }
- </style>
- </head>
- <body>
- <div class="wrapper wrapper-content animated fadeInRight">
- <div style="padding: 10px" class="tj_content clearFix">
- <div class="Common">
- <table>
- <tr>
- <th>审核说明:</th>
- <td colspan="7">
- <textarea id="cbreason" class="form-control" name="" rows="" cols="" style=""></textarea>
- </td>
- </tr>
- <tr>
- <td colspan="8" style="text-align: center">
- <button class="btns save">保存</button>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- <script>
- var wid = helper.request.queryString("wid");
- var nexttype = helper.request.queryString("nexttype");
- $(document).ready(function () {
- $(".save").click(function () {
- Add();
- });
- });
- //修改工单
- function Add() {
- $.ajax({
- type: "post",
- url: huayi.config.callcenter_url + "WorkOrder/ToExamineWorkOrder",
- dataType: "json",
- async: true,
- data: {
- token: $.cookie("token"),
- workorderid: wid,
- nexttype: nexttype, // 0审核通过 1审核不通过 2审核通过转办
- cbreason: $("#cbreason").val(),
- },
- success: function (data) {
- if (data.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.$("#orderlist").bootstrapTable("refresh");
- parent.layer.msg("操作成功");
- }
- },
- });
- }
- </script>
- </body>
- </html>
|