| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <!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>
- <tr class="files-wrappper">
- <th class="Importent">附件:</th>
- <td colspan="5">
- <div class="fileBox"></div>
- <!--<span class="fjnr"></span>-->
- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple"
- style="display: none" />
- <input class="input" type="button" value="上传" id="scwj" />
- <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
- <input type="hidden" id="file" />
- <span style="color: #ff0000; border: none">
- (文件格式为png,jpg,mp4,mp3,pdf,doc,docx,xls,xlsx)
- </span>
- </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 src="../Script/Common/huayi.common.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var callid = helper.request.queryString("callid");
- var depId = helper.request.queryString("depId");
- $(document).ready(function () {
- getDetail()
- $(".replyBtn").click(function () {
- replyhande();
- })
- })
- //催单
- function replyhande() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/ReplyWorkOrder', {
- workorderid: wid, //工单号
- files: $('#file').val(),
- 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 getDetail() {
- $.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)
- }
- }
- }
- })
- }
- //上传附件
- $("#scwj").click(function () {
- $("#upFile").trigger("click");
- });
- $("#upFile").change(function () {
- upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
- });
- </script>
- </body>
- </html>
|