| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <!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>
- </head>
- <body>
- <div class="Common">
- <table >
- <tr>
- <th class="Importent">
- 回访人:
- <td><input type="text" id="visituser"/></td>
-
- </th>
- <th>
- 回访方式:
- <td>
- <select class="select_" id="type">
- <option value="0">电话</option>
- <option value="1">微信</option>
- </select>
- </td>
- </th>
- </tr>
- <tr>
- <th class="Importent">回访结果:</th>
- <td>
- <select class="select_" id='issatisfie'>
- <option value="0">不满意</option>
- <option value="1">满意</option>
- </select>
- </td>
- </tr>
- <tr>
- <th class="Importent">回访内容:</th>
- <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
- </tr>
- </table>
- <div class="btn_box">
- <button class="btns BC">保存</button>
- </div>
- </div>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var visituser = unescape(decodeURI(helper.request.queryString("visituser")));
- var result = unescape(decodeURI(helper.request.queryString("result")));
- var type = helper.request.queryString("type");
- var issatisfie = helper.request.queryString("issatisfie");
- $(document).ready(function() {
- $("#visituser").val(visituser);
- $("#result").val(result);
- $("#type").val(type),
- $("#issatisfie").val(issatisfie);
- $('.BC').click(function() {
- JA();
- })
-
- });
- //回访
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/EditVisitInfoByAdmin', {
- id: wid,
- visituser:$("#visituser").val(),//回访人
- result:$("#result").val(),//回访内容
- type:$("#type").val(),
- issatisfie:$("#issatisfie").val(),
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- console.log(index);
- parent.layer.close(index); //再执行关闭
- parent.layer.msg("操作成功");
- }
- })
- }
- </script>
- </body>
- </html>
|