| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!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">拒收原因:</th>
- <td colspan="7"><textarea data-adaptheight id="result" name="" rows="4" cols=""></textarea></td>
- </tr>
- <tr>
- <th class="">附件:</th>
- <td>
- <div class="fileBox"></div>
- <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
- <input class="input" type="button" value="上传" id="scwj">
- <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="btns BC">保存</button>
- </div>
- </div>
- <script src="../Script/Common/huayi.common.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
-
- //alert(wid)
- $(document).ready(function() {
- $('.BC').click(function() {
-
- if ($("#result").val() == "") {
- layer.msg("拒绝原因不为空");
- } else {
- JA();
- }
- })
- });
- $("#scwj").click(function () {
- $("#upFile").trigger("click");
- })
- $("#upFile").change(function () {
- upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
- });
- //回退
- function JA() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/RefuseWorkOrder', {
- workorderid: wid,
- files: $("#file").val(),
- reason:$("#result").val(),//回访内容
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- debugger
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- console.log(index);
- parent.layer.close(index); //再执行关闭
- parent.$('#orderlist').bootstrapTable('refresh');
- parent.layer.msg("操作成功");
- }
- })
- }
- </script>
- </body>
- </html>
|