| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <!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">
- <div class="complain">
- <div style="width: 100%; padding: 10px">
- <table id="tableList" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true">
- <thead>
- <tr>
- <th data-formatter="serialNumber" data-align="center">
- 序号
- </th>
- <th data-field="AuditUser" data-align="center">
- 审核人
- </th>
- <th data-field="DeptNames" data-align="center">
- 承办单位
- </th>
- <th data-field="F_Result" data-align="center">
- 审核说明
- </th>
- </tr>
- </thead>
- <tbody class="list"></tbody>
- </table>
- </div>
- </div>
- <div>
- <table>
- <tr class="nexttype-wrapper">
- <th>是否通过:</th>
- <td>
- <select class="form-control" id='nexttype'>
- <option value="">请选择</option>
- <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>
- </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 (nexttype) {
- $("#nexttype").val(nexttype).attr("disabled", true)
- }
- $('.BC').click(function () {
- JA();
- })
- // 审核信息
- initTable();
- });
- // 保存
- 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") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.$("#orderlist").bootstrapTable("refresh");
- parent.closePage()
- parent.layer.msg("操作成功");
- }
- })
- }
- // 审核信息
- function initTable() {
- $.ajax({
- url: huayi.config.callcenter_url + 'WorkOrder/GetWorkOrderNew',
- type: 'get',
- data: {
- workorderid: wid,
- type: 13,
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function (result) {
- if (result.state.toLowerCase() == "success") {
- var resultData = result.data
- console.log("resultData", resultData)
- $('#tableList').bootstrapTable('load', resultData);
- }
- //异步获取数据
- }
- });
- $('#tableList').bootstrapTable('destroy').bootstrapTable({
- striped: true,
- pagination: false,
- });
- }
- //编号
- function serialNumber(val, row, index) {
- return index + 1;
- }
- </script>
- </body>
- </html>
|