123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta content="IE=edge" http-equiv="X-UA-Compatible">
- <meta content="initial-scale=1.0, width=device-width" name="viewport">
- <title>江苏港口智能监管信息平台</title>
- <!-- css -->
- <link href="../css/base.min.css" rel="stylesheet">
- <script type="text/javascript" src="../js/zepto.min.js"></script>
- <link rel="stylesheet" type="text/css" href="../css/mui.min.css">
- <style>
- .container{
- padding-left:0px;
- padding-right:0px;
- }
- .mui-input-group:after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 0px;
- content: '';
- background-color: #c8c7cc;
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- }
- .header-logo{
- width:50%;
- text-align:right;
- }
- .layermmain .section { vertical-align: middle;}
- .icback{
- font-size: 22px;
- }
- .nav{position: fixed;}
- .header {
- width:100%;
- height:45px;
- line-height:45px;
- padding:0;
-
- color:#eee;
- font-size:22px;
- text-align:center;
- color:white;
- background: #2196f3;
- }
- </style>
- <script type="text/javascript">
- function tuihui(){
- layer.open({
- content: '确定退回吗?',
- btn: ['取消', '确定'],
- shadeClose: false,
- shadeClose: false,
- yes: function(){
- layer.open({
- content: '取消',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;text-align:center',
- time: 2
- });
- }, no: function(){
- layer.open({
- content: '确定',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;text-align:center',
- time: 2
- });
- }
- });
- }
- </script>
- </head>
- <body class="page-blue">
- <div id="divdiplay">
- <header class="header">
- <ul class="nav nav-list pull-left">
- <li><a href="javascript:void(0);" id="goback" onclick="history.back()"><span class="icon icon-arrow-back icback"></span>
- </a>
- </li>
- </ul>
- <a class="" href="#" id="headername"></a>
- </header>
- <div class="content" style="margin-top: 45px;">
- <div class="content-inner">
- <div class="container">
- <div class="table-responsive">
- <table class="table" title="Default Tabl">
- <tbody id="content">
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="mui-button-row" style="margin-top: 30px; display: none" id="buttonsend">
-
- </div>
- </div>
- <script>
- function ischang(yj){
- $("#contents").val(yj)
- }
- function huanjieyijian(){
- $("#yijiancard").html("");
- $.ajax({
- type: 'post',
- url: '../../commoncontroller/queryGryj.do',
- data:{uid:"402881e44e86c26d014e86c9ae8c0008"},
- dataType: 'json',
- success: function(data){
- console.log(data)
- for(var i=0;i<data.length;i++){
- $("#yijiancard").append('<div class="mui-input-row mui-radio">'+
- '<label>'+data[i].name+'</label>'+
- '<input name="style" type="radio" value="" onclick="ischang(\''+data[i].name+'\')">'+
- '</div>')
- }
- }})
- $("#yijiandiv1").show()
- $("#yijiandiv").show()
- }
- $(function(){
- $("#wanchengyijian").on("click",function(){
- var contents = $("#contents").val()
- yj = contents;
- $("#"+yjtype[stepName]).html("<span style='color:black' id='yj' >"+contents+"</span><br/><span style='float:right;'><a onclick='xiugaiyijian()'>修改</a> <a onclick='shanchuyijian()'>删除</a></span>");
- $("#yijiandiv1").hide()
- $("#yijiandiv").hide()
- })
- $("#quxiaoyijian").on("click",function(){
- $("#yijiandiv1").hide()
- $("#yijiandiv").hide()
- })
- })
- function xiugaiyijian(){
- $("#yijiancard").html("");
- $.ajax({
- type: 'post',
- url: '../../commoncontroller/queryGryj.do',
- data:{uid:"402881e44e86c26d014e86c9ae8c0008"},
- dataType: 'json',
- success: function(data){
- console.log(data)
- for(var i=0;i<data.length;i++){
-
- $("#yijiancard").append('<div class="mui-input-row mui-radio">'+
- '<label>'+data[i].name+'</label>'+
- '<input name="style" type="radio" value="" onclick="ischang(\''+data[i].name+'\')">'+
- '</div>')
- }
- }})
- $("#contents").val(yj);
- $("#yijiandiv1").show()
- $("#yijiandiv").show()
- }
- function shanchuyijian(){
-
- layer.open({
- content: '确定删除吗?',
- btn: ['取消', '确定'],
- shadeClose: false,
- yes: function(){
- layer.closeAll()
- }, no: function(){
- layer.closeAll()
- $("#"+yjtype[stepName]).html("");
- yj = "";
- $("#contents").val("")
- }
- });
-
-
- }
- </script>
- <div id="yijiandiv" style="position:fixed ;display:none;height:80%;padding-bottom:10px;bottom :10%;left: 10%;z-index: 100;border:4px solid #2196f3;border-radius:10px;width: 80%;background:white;overflow: auto">
-
- <input type="hidden" name="jid" id="jid" value="" />
- <div id="title" style="width:100%;height:30px;text-align: center;background:#2196f3;line-height: 30px;color: white;margin-bottom: 20px;font-size:20px;">填写意见</div>
- <div style="padding-left: 15px;padding-right: 15px;">
-
-
- <h5 class="mui-content-padded">常用意见</h5>
- <div class="mui-card" id="yijiancard" style="min-height:76px;max-height: 190px;overflow-y:auto;">
- </div>
- <h5 class="mui-content-padded">意见</h5>
- <div class="mui-card" id="mui-card-contents">
- <textarea id="contents" style="height: 100%;margin: 0px;border: none;"></textarea>
- </div>
-
- </div>
- <br />
- <button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;margin-left: 9%;" id="wanchengyijian">完成</button>
- <button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;" id="quxiaoyijian">取消</button>
-
- </div>
- <div id="yijiandiv1" style="position:absolute;display:none;width:100%;height: 100%;z-index: 50;top:0px;background: black; opacity:0.5; "></div>
-
- <div></div>
- </div>
- </body>
- <script>
- var controller="swcontroller";
- var wcmethd = "submitsw";
- var whmethd = "backsw";
- var gundongtiaoweizhi;
- var wfid ;
- var taskId;
- var yj;
- var iframurl="";
- function huanjiewanchengclose(){
- $("#divdiplay").show();
- window.scroll(0,document.body.clientHeight)
- $("#iframe").remove();
- }
- function huanjietuihuiclose(){
- $("#divdiplay").show();
- window.scroll(0,document.body.clientHeight)
- $("#iframe").remove();
- }
- function huanjietuihui(){
- $.ajax({
- type: 'post',
- url: '../../wfcontroller/isEndwf.do',
- data:{id:idid},
- dataType: 'json',
- success: function(data){
- if(data.trueorfalse==false){
- layer.open({
- shade:false,
- content: '退回成功',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time: 1
- });
- setTimeout(function(){
- window.location.href=iframurl;
- },1000);
- }else{
- $("body").append('<iframe id="iframe" style="position:absolute;display:block;background:white;top: 0px;left: 0px;height: 100%;width: 100%;z-index: 1000000000000000000" src="../util/tuihui.html?'+new Date().getTime()+'" width="100%" height="100%" frameborder="0"></iframe>')
- $("#divdiplay").hide();
- }
- }});
- }
- function huanjiewancheng(){
- $.ajax({
- type: 'post',
- url: '../../swcontroller/isLastStepsw.do',
- data:{taskId:taskId,wfid:wfid,id:idid,yj:yj,uid:"402881e44e86c26d014e86c9ae8c0008"},
- dataType: 'json',
- success: function(data){
- if(data.trueorfalse==false){
- layer.open({
- shade:false,
- content: '审批成功',
- style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
- time: 1
- });
- setTimeout(function(){
- window.location.href=iframurl;
- },1000);
- }else{
- $("body").append('<iframe id="iframe" style="position:absolute;display:block;background:white;top: 0px;left: 0px;height: 100%;width: 100%;z-index: 1000000000000000000" src="../util/huanjieyonghu.html?'+new Date().getTime()+'" width="100%" height="100%" frameborder="0"></iframe>')
- $("#divdiplay").hide();
- }
- }});
- }
- var stepName = "";
- var idid = "";
- var yjtype = {"主任拟办":"nibanyijian",
- "领导批示":"lingdaopishi",
- "分局领导批示":"fenjulingdaopishi",
- "部门办理意见":"bumenbanliyijian",
- "处理意见":"chuliyijian",
- "校对":"xiaodui",
- "文书处理":"beizhu"}
- $(function(){
- if(getQueryString("hname")=="db"){
- $("#headername").html("待办收文详情");
- iframurl="../shouwen/dbsw.html"
- }else if(getQueryString("hname")=="yb"){
- $("#headername").html("已办收文详情");
- iframurl="../shouwen/ybsw.html"
- }else if(getQueryString("hname")=="sy"){
- $("#headername").html("所有收文详情");
- iframurl="../shouwen/sysw.html"
- }
- $.ajax({
- type: 'post',
- url: '../../swcontroller/viewsw.do',
- data:{id:getQueryString("id"),uid:"402881e44e86c26d014e86c9ae8c0008"},
- dataType: 'json',
- success: function(data){
- console.log(data)
- var result = "";
- wfid = "sw";
- idid=data.swEntity.id;
- taskId = data.taskId
- stepName = data.stepName.replace(/s+/g,"");
- result+='<tr><td class="titlered">收文编号</td><td class="titlered2">'+data.swEntity.swnum+'</td>'+'</tr>';
- result+='<tr><td class="titlered">收文类型</td><td>'+data.swEntity.swtype+'</td></tr>';
- result+='<tr><td class="titlered">附件</td><td id="fujian"></td></tr>';
- result+='<tr><td class="titlered">来文单位</td><td class="titlered2">'+data.swEntity.company+'</td>'+'</tr>';
- result+='<tr><td class="titlered">收文日期</td><td class="titlered2">'+todata(data.swEntity.addDate)+'</td>'+'</tr>';
- result+='<tr><td class="titlered">来文标题</td><td class="titlered2">'+data.swEntity.title+'</td>'+'</tr>';
- result+='<tr><td class="titlered">文件号</td><td class="titlered2">'+data.swEntity.no+'</td>'+'</tr>';
- var ll = "titlered"
- if(stepName=="主任拟办"){
- ll="titlereds";
- }
- result+='<tr><td class="'+ll+'">拟办意见</td><td class="titlered2" id="nibanyijian">'+data.swEntity.ybopinion+'</td>'+'</tr>';
- if(stepName=="领导批示"){
- ll="titlereds";
- }
- result+='<tr><td class="'+ll+'">领导批示</td><td class="titlered2" id="lingdaopishi">'+data.swEntity.ldinstructions+'</td>'+'</tr>';
- if(stepName=="分局领导批示"){
- ll="titlereds";
- }
- result+='<tr><td class="'+ll+'">分管领导批示</td><td class="titlered2" id="fenjulingdaopishi">'+data.swEntity.fgldinstructions+'</td>'+'</tr>';
- if(stepName=="部门办理意见"){
- ll="titlereds";
- }
- result+='<tr><td class="'+ll+'">部门办理意见</td><td class="titlered2" id="bumenbanliyijian">'+data.swEntity.bmopinion+'</td>'+'</tr>';
- if(stepName=="处理意见"){
- ll="titlereds";
- }
- result+='<tr><td class="'+ll+'">处理意见</td><td class="titlered2" id="chuliyijian">'+data.swEntity.opinion+'</td>'+'</tr>';
- if(stepName=="文书处理"){
- ll="titlereds";
- }
- result+='<tr><td class="'+ll+'">备注</td><td class="titlered2" id="beizhu">'+data.swEntity.remarks+'</td>'+'</tr>';
- $("#content").html(result);
-
- if(getQueryString("isDone")=="1"){
- if(data.canBack==true){
- $("#buttonsend").append(' <button class="mui-btn mui-btn-positive" type="button" style="width: 25%;background: #2196f3;border: 0px;" onclick="huanjieyijian()">意见 </button> ')
- }
- $("#buttonsend").append('<button class="mui-btn mui-btn-positive" type="button" style="width: 25%;background: #2196f3;border: 0px;" onclick="huanjiewancheng()">完成 </button> ');
- if(data.yjFlag==true){
- $("#buttonsend").append('<button class="mui-btn mui-btn-positive" type="button" style="width: 25%;background: #2196f3;border: 0px;" onclick="huanjietuihui()">退回</button>');
- }
- $("#buttonsend").show();
- }
-
-
- $.ajax({
- type: 'post',
- url: '../../fjcontroller/queryFj.do',
- data:{id:data.swEntity.id,type:"sw",page:1,rows:100},
- dataType: 'json',
- success: function(dataa){
- if(dataa.length>=1){
- $("#fujian").html('<a style="text-decoration: underline;" href="../util/fujianlist.html?id='+data.swEntity.id+'&type=sw" target="_blank">点击查看</a>');
- }
-
- }})
- }})
- })
- </script>
- </html>
|