cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>健康检查</title>
 
</head>
 
<body class="fullscreen">
 
[#include "/business/pages/include/static.html" /]
[#include "/business/pages/include/header.html" /]
[#include "/component/flowInfo.html" /]
 
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <a href="${base}/business/pages/health/myHealthList.html">健康检查 </a>
    <span></span>
    <em>人员指派</em>
</div>
 
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <h2>人员指派</h2>
        <div class="fsnt_btn">
           <a id="fb_submit" class="fb_submit"><span>提交</span></a>
           <a class="mainbtn close" href="javascript:closeWorkFlow()"><span>关闭工单</span></a>
        </div>
    </div>
</div>
<div class="fs_main clearfix">
    <div class="fsm_left nopadding" id="fsmLeft">
        <div class="deal_switch">
            <div class="dls_btn" id="dlsBtn">
                <a class="basicinfo focus"><span><em>基本信息</em></span></a>
                <a class="dealrem"><span><em>处理记录</em></span></a>
                <a class="relaorder"><span><em>关联工单</em></span></a>
                <a class="filedoc"><span><em>文档附件</em></span></a>
                <!--<a class="flowchart"><span><em>流程图</em></span></a>-->
                <a class="flowrecord"><span><em>流转记录</em></span></a>
            </div>
        </div>
        <div class="deal_switch_wrap">
            <!-- 基本信息 -->
            <div class="deal_switch_con iframecon" style="display:block;">
                <iframe name="baseInfo" id="baseInfo" src="${base}/business/pages/health/dispatchHealthInfo.html?flowId=${RequestParameters.flowId}&orderId=${RequestParameters.orderId}&nodeId=${RequestParameters.nodeId}" frameborder="0" width="100%" height="800px"></iframe>
            </div>
            
            <!-- 处理记录 -->
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/incident/dealRecord.html?flowId=${RequestParameters.flowId}&folderId=${Constants.GG_FOLDERS_JKJCFOLDERS}" width="100%" height="600px" id="recordIframe"></iframe>
            </div>
            
            <!-- 关联工单 -->
            <div class="deal_switch_con iframecon" style="display:none;">
                 <iframe src="${base}/business/pages/incident/orders.html?flowId=${RequestParameters.flowId}" width="100%" height="600px" id="orderIframe"></iframe>
            </div>
            
            <!-- 文档附件 -->
            <div class="deal_switch_con iframecon" style="display:none;">
                 <iframe src="${base}/business/pages/incident/files.html?flowId=${RequestParameters.flowId}&folderId=${Constants.GG_FOLDERS_JKJCFOLDERS}" width="100%" height="600px" id="fileIframe"></iframe>
            </div>
            
            <!-- 流程图 -->
            <!--<div class="deal_switch_con" style="display:none;">流程图</div> -->
            
            <!-- 流转记录 -->
            <div class="deal_switch_con iframecon" style="display:none;">
                <iframe src="${base}/business/pages/incident/lcRecord.html?flowId=${RequestParameters.flowId}" width="100%" height="600px" id="lzIframe"></iframe>
            </div>
        </div>
    </div>
    [@flowInfo orderFlowInfo = orderFlowInfo/]
    
    
</div>
<script type="text/javascript">
 
 
//响应方法
function answer() {
      window.top.openDialog("3","工单响应",
         {},
         {"width":50,"height":50,"noclose":true},
         [{btnId:"btnSure3", btnName:"确定", btnStyle:"bluebtn"}],"${base}/business/pages/health/nodeAnswer.html?nodeId=${RequestParameters.nodeId}&flowId=${RequestParameters.flowId}");
}
 
//关闭工单
function closeWorkFlow(orderId,nodeId){
    var orderId = '${RequestParameters.orderId}';
    var nodeId = '${RequestParameters.nodeId}';
    var flowId = '${RequestParameters.flowId}';
    window.top.openDialog("0","关闭工单",
                         {},
                         {"width":"55","height":"40"},
                         [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                         "${base}/business/pages/health/closeWorkFlow.html?flowId="+flowId+"&orderId="+orderId+"&nodeId="+nodeId);
}
 
 
$(function() {
    var isAnswer = '${isAnswer}';
    if(isAnswer=="true"){
        answer();
    }
    //iframe页签点击事件
    $("#dlsBtn>a").click(function() {
        var index = $("#dlsBtn>a").index(this);
        $("#dlsBtn>a").removeClass("focus");
        $(this).addClass("focus");
        
        var $dom = $("div.deal_switch_con:eq("+index+")");
        $("div.deal_switch_con").hide();
        $dom.show();
    })
    
    
    //提交按钮点击事件
    $("#fb_submit").click(function(){
        var w=window.top.document.getElementById("baseInfo").contentWindow.document;
        var $w=$(w);
        var contacts_name=$w.find("#contacts_name").val();
        var contacts_tel=$w.find("#contacts_tel").val();
        var plan_time=$w.find("#plan_time").val();
        if(contacts_name==""){
            window.top.popupTips("请填写联系人");
            return;
        }
        if($.util.isEmpty(contacts_tel)) {
            window.top.popupTips("联系方式不能为空");
            return;
        }
        if(!$.util.isMobile(contacts_tel) && !$.util.isTelphone(contacts_tel)) {
            window.top.popupTips("联系方式格式不正确");
            return;
        }
        if(plan_time==""){
            window.top.popupTips("请选择巡检执行日期");
            return;
        }
        window.top.openDialog("0","申请审批",
                         {},
                         {"width":"60","height":"60"},
                         [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                         "${base}/business/pages/health/dispatchCommit.html?projectId=${orderFlowInfo.PROJECT_ID}");
        
    });
})
 
</script>
 
 
[#include "/business/pages/include/footer.html" /]
</body>
</html>