cy
2022-06-23 b83c40548208609d0d6826be13d742c28a784806
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>基本信息</title>
</head>
 
<body>
[#include "/business/pages/include/static.html" /]
[#include "/component/DatePicker.html" /]
 
<div class="fs_main fs_edit">
       <div class="edit_title"><h3>基本信息</h3></div>
            <form id="myform" method="post">
         <table class="edit_layout2 basicinfo" width="100%">
             <tr>
                 <th><label>${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
                 <td><span class="infotxt">${health.customer_name}</span></td>
                 <th><label>${Constants.UNIT_CONSTANTS}:</label></th>
                 <td><span class="infotxt">${health.sub_customer_name}</span></td>
                 
             </tr>
             
             <tr>
                 <th ><label>联系人:</label></th>
                 <td>
                    <span class="infotxt">${health.contacts_name}</span>
                 </td>
                 <th><label>联系方式:</label></th>
                 <td>
                    <span class="infotxt">${health.contacts_tel}</span>
                 </td>
             </tr>
             
             <tr>
                   <th style="width:120px"><label class="required">计划巡检日期:</label></th>
                 <td>
                     ${DateUtil.format("yyyy-MM-dd",health.plan_exe_date)}
                 </td>
                 <th style="width:120px"><label class="required">巡检执行日期:</label></th>
                 <td>
                    ${DateUtil.format("yyyy-MM-dd",health.plan_time)}
                 </td>
            </tr>   
            
         </table>
         </form>
        <br/>
        <div class="edit_title"><h3>巡检配置</h3></div>
        <div class="table_basic">
        <table id="myList">
               [#if ciList??&&ciList?size>0]
               [#list ciList as ci]
                   <tr >
                    <td colspan="4" style="border-right:none;">
                    <a class="blue_txt lb_button" target="_blank" href="${base}/business/pages/cfg/cfgInfoIndex.html?id=${ci.CIID}">${ci.text}</a>
                    </td>
                    <td style="border-left:none;"><a class="edit" href="javascript:ciPatrol('${ci.id}')">备注</a></td>
                 </tr>
                 [#if ci.children??&&ci.children?size>0]
                 <tr style="margin-left: 20px">
                        <td style="padding-left:40px;">指标名称</td>
                        <td>执行人</td>
                        <td>执行情况</td>
                        <td>巡检结果</td>
                        <td width="10%">操作</td>
                 </tr>
                 [#list ci.children as item]
                     <tr style="margin-left: 20px">
                        <td style="padding-left:40px;">${item.ITEM_NAME}</td>
                        <td>${item.USER_NAME}</td>
                        <td>
                            [#if item.DEAL_STATE==1]
                            未完成
                            [#elseif item.DEAL_STATE==2]
                            已完成
                            [#elseif item.DEAL_STATE==3]
                            未执行
                            [/#if]
                        </td>
                        <td>
                            [#if item.ITEM_RESULT==1]
                            正常
                            [#elseif item.ITEM_RESULT==2]
                            告警
                            [#elseif item.ITEM_RESULT==3]
                            异常
                            [/#if]
                        </td>
                        <td width="15%">
                               <a class='edit' href="javascript:ciItemPatrol('${item.id}')">巡检</a>
                           </td>
                     </tr>
                 [/#list]
                 [/#if]
            [/#list]     
               [#else]
                   <td colspan="5" align="center">暂无信息</td>
               [/#if]
        </table>
        </div>
             
</div>
<script type="text/javascript">
    
 
    function formSubmit(executorIds,executorNames,main_executorId,flowNote) {
        $("#executorIds").val(executorIds);
        $("#executorNames").val(executorNames);
        $("#main_executorId").val(main_executorId);
        $("#flowNote").val(flowNote);
        $("#myform").submit();
    }
 
    function ciItemPatrol(patrolItemId){
        window.top.openDialog("1","指标巡检",
                 {},
                 {"width":"70","height":"70"},
                 [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                 "${base}/business/pages/health/healthItemPatrol.html?patrolItemId="+patrolItemId+"&flowId=${RequestParameters.flowId}");
    }
    
    function ciPatrol(patrolCiId){
        window.top.openDialog("1","配置巡检",
                 {},
                 {"width":"70","height":"60"},
                 [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                 "${base}/business/pages/health/healthCiPatrol.html?patrolCiId="+patrolCiId+"&flowId=${RequestParameters.flowId}");
    }
    
    $(document).ready(function(){
        $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
            document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40},
                         [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
        
    });
</script>
</body>
</html>