| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!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>
- .reminderContent {
- width: 90%;
- margin: 0 auto;
- }
- .reminderContent th.Importent {
- width: 14%;
- text-align: left;
- }
- </style>
- </head>
- <body>
- <div class="Common reminderContent">
- <table>
- <tr>
- <th style="text-align: left;"">办理内容:</th>
- <td><span class="handleContent"></span></td>
- </tr>
- <tr>
- <th class="Importent">回复:</th>
- <td colspan="2"><textarea data-adaptheight id="replycount" name="" rows="6" cols=""></textarea></td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="replyBtn btns">保存</button>
- </div>
- </div>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var callid = helper.request.queryString("callid");
- var depId = helper.request.queryString("depId");
- $(document).ready(function () {
- getDetails()
- $(".replyBtn").click(function () {
- replyhande();
- })
- })
- //催单
- function replyhande() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/ReplyWorkOrder', {
- workorderid: wid, //工单号
- replycount: $('#replycount').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); //再执行关闭
- //debugger;
- parent.load();
- parent.layer.msg("操作成功");
- }
- })
- }
- //催单
- function getDetails() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
- dataType: 'json',
- async: false,
- data: {
- workorderid: wid,
- token: $.cookie("token")
- },
- success: function (result) {
- if (result.state.toLowerCase() == "success") {
- bldataLengt = result.data.bldata.length
- if (bldataLengt > 0) {
- $(".handleContent").text(result.data.bldata[bldataLengt - 1].F_Result)
- }
- }
- }
- })
- }
- </script>
- </body>
- </html>
|