| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!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");
- $(document).ready(function() {
- XQ();
- $('.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") {
- parent.parent.layer.closeAll();
- parent.parent.$('#orderlist').bootstrapTable('refresh');
- parent.parent.layer.msg("操作成功!");
- }
- })
- }
- function XQ(){
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetInfoByAdmin', {
- id: wid,
- type:6,
- token: $.cookie("token")
- }, function(result) {
- if(result.state.toLowerCase() == "success") {
- $("#visituser").val(result.data[0].F_VisitUser);
- $("#result").val(result.data[0].F_Result);
- $("#type").val(result.data[0].F_Type),
- $("#issatisfie").val(result.data[0].F_IsSatisfie);
- console.log(result);
-
- }
- })
- }
- </script>
- </body>
- </html>
|