| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271 |
- <!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>
- .input {
- background-color: #FFF;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px
- }
- .fjnr {
- padding: 0 !important;
- border: none !important;
- }
- .HGXX td {
- padding: 8px;
- }
- </style>
- </head>
- <body>
- <div class="Common" style="padding: 10px;">
- <table class="table" border="" cellspacing="0" cellpadding="0"
- style="border: 1px solid #e7eaec; text-align: center;">
- <theard>
- <tr>
- <td class="text-center" style="width:60px;">次数</td>
- <td class="text-center" style="width:114px;">交办时间</td>
- <td class="text-center" style="width:114px;">办理时限</td>
- <td class="text-center" style="min-width:80px;">承办单位</td>
- <td class="text-center" style="min-width:80px;">协办单位</td>
- <td class="text-center" style="min-width: 200px;">交办意见</td>
- <td class="text-center" style="min-width:100px;">拒收原因</td>
- <td class="text-center" style="min-width:80px;">附件</td>
- <td class="text-center authority" style="min-width: 100px;">操作</td>
- </tr>
- </theard>
- <tbody class="EJJBXX" style="border-top: none; padding: 8px;">
- </tbody>
- </table>
- </div>
- <script src="../js/jquery-photo-gallery/jquery.photo.gallery.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../js/adjustHeight.js"></script>
- <script>
- var wid = helper.request.queryString("wid");
- var State;
- var a = $("#ID").val()
- getDetail();
- // Detail();
- // Hove();
- $(document).ready(function () {
- //上传附件
- $("#scwj").click(function () {
- $("#upFile").trigger("click");
- })
- $("#upFile").change(function () {
- upload('upFile','.fileBox',['png','jpg','mp3','mp4','pdf','doc','docx','xls','xlsx'],"#file");
- })
- $("#scfj").click(function () {
- $(".fjnr").text("");
- $("#scfj").hide();
- })
- // $('.BC').click(function () {
- // // if ($("#reason").val() == "") {
- // // layer.msg("请填写审核意见");
- // // } else {
- // State = 1;
- // JA();
- // // }
- //
- // })
- // $('.Submit').click(function () {
- // layer.open({
- // type: 2,
- // content: "./processing_refuse.html?wid=" + wid + "&backid=" +
- // ccc, //iframe的url,no代表不显示滚动条
- // title: "拒绝",
- // area: ["60%", "80%"], //宽高
- // });
- // })
- });
- //审批意见
- // function JA() {
- // $.post(huayi.config.callcenter_url + 'WorkOrder/AuditSplitWorkOrder', {
- // workorderid: wid,
- // // reason: $('#reason').val(), //办理内容
- // state: State,
- // backid: ccc,
- // 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); //再执行关闭
- // parent.$('#orderlist').bootstrapTable('refresh');
- // parent.layer.msg("处理成功");
- // }
- // })
- // }
- // 获取详情
- function getDetail() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
- dataType: 'json',
- async: false,
- data: {
- workorderid: wid,
- type: 1,
- token: $.cookie("token")
- },
- success: function (result) {
- var content = result.data;
- if (result.state.toLowerCase() == "success") {
- var ejjbxx = '';
- $(".EJJBXX").empty();
- $(result.data.ejjbdata).each(function(j, n) {
- if(n.F_IsSure != 3){
- return;
- }
- var OtherDeptName = n.OtherDeptName == null ? '-' :
- n
- .OtherDeptName;
- ejjbxx += '<tr><td class="text-center">' + (j + 1) + '</td>' +
- '<td class="text-center">' + n.F_CreateTime +
- '</td>' +
- '<td class="text-center">' + n.F_LimitTime +
- '</td>' +
- '<td class="text-center">' + n.DeptName +
- '</td>' +
- '<td class="text-center">' + OtherDeptName +
- '</td>' +
- '<td class="text-center">' + n
- .F_AssignedOpinion +
- '</td>' +'<td class="text-center">' + n
- .F_Remark +
- '</td>';
- ejjbxx += '<td class="gallerys">'
- var FileHtml;
- $(n.File).each(function(j, m) {
- if(m.F_FileType == ".jpg" || m
- .F_FileType == ".png") {
- FileHtml =
- '<img class="gallery-pic" style="width:60px; height:60px" border="0" ondblclick="$.openPhotoGallery(this)" src="' +
- m.F_FileUrl + '" alt="' + m
- .F_FileName +
- '" fileId="' + m.F_FileId + '">'
- } else {
- FileHtml =
- '<div><a style="margin-right:5px;" target="view_window" href="' +
- m.F_FileUrl + '" download="' + m
- .F_FileName + '">' + m
- .F_FileName.substring(19) + '</a></div>'
- }
- ejjbxx += FileHtml;
- })
- ejjbxx += "</td>" +
- '<td class="text-center authority"><button class="btns refusedit" index="' +
- n.F_Id + '">拒绝</button>' +
- '<button class="btns tongyiedit" index="' +
- n.F_Id + '">同意</button></td>' +
- '</tr>'
- })
- $(ejjbxx).appendTo($('.EJJBXX'));
- }
- }
- })
- }
- $('.refusedit').click(function(){
- var index = $(this).attr('index');
- layer.open({
- type: 2,
- content: "./refuse.html?wid=" + wid+"&fid="+index+"&state=1", //iframe的url,no代表不显示滚动条
- title: "拒绝",
- area: ["60%", "80%"], //宽高
- });
- })
- $('.tongyiedit').click(function(){
- var index = $(this).attr('index');
- layer.open({
- type: 2,
- content: "./refuse.html?wid=" + wid+"&fid="+index+"&state=0", //iframe的url,no代表不显示滚动条
- title: "同意",
- area: ["60%", "80%"], //宽高
- });
- })
- // 判断附件
- // function Hove() {
- // $(document).on("mouseover mouseout", '.tiaozhuan', function (event) {
- // if (event.type == "mouseover") {
- // //鼠标悬浮
- // var miao = $(this).attr("href");
- // if (miao == "") {
- // $(this).removeAttr("href");
- // $(this).removeAttr("download");
- // $(this).html("")
- // } else {
- // $(this).attr("href");
- // $(this).attr("download");
- // }
- // } else if (event.type == "mouseout") {
- // //鼠标离开
- // }
- // })
- //
- // }
- //草稿详情
- // function Detail() {
- // $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetDraftInfo', {
- // workorderid: wid,
- // type: 2,
- // token: $.cookie("token")
- // }, function (result) {
- // if (result.state.toLowerCase() == "success") {
- // if (result.data.length > 0) {
- // $("#dealman").val(result.data[0].F_DealUser);
- // $('#result').val(result.data[0].F_Result);
- // a = result.data[0].F_Id;
- // };
- // }
- // })
- // }
- //清除
- function Clean() {
- $("#startTime").val(''),
- $('#assignedopinion').val('')
- }
- // 关闭页面
- function closePage() {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- parent.$('#orderlist').bootstrapTable('refresh');
- }
- function viewImage(file) {
- var json = {
- "title": "", //相册标题
- "id": 1, //相册id
- "start": 0, //初始显示的图片序号,默认0
- "data": [ //相册包含的图片,数组格式
- {
- "alt": $(file).attr("alt"),
- "pid": $(file).attr("fileId"), //图片id
- "src": $(file).attr("src"), //原图地址
- "thumb": "" //缩略图地址
- }
- ]
- }
- layer.photos({
- photos: json,
- anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
- });
- }
- </script>
- </body>
- </html>
|