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
<!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" action="${base}/business/pages/ciremind/orderdeal/ServerDispatch.html">
         
         
         <table class="edit_layout basicinfo" width="100%">
             <tr>
                 <th nowrap><label>${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
                 <td><span class="infotxt">${info.customer_name}</span></td>
                 <th nowrap><label>${Constants.UNIT_CONSTANTS}:</label></th>
                 <td><span class="infotxt">${info.sub_customer_name}</span></td>
                 
                
             </tr>
             
             <tr>
                 <th nowrap><label>联系人:</label></th>
                 <td>
                    <span class="infotxt">${info.contacts_name}</span>
                 </td>
                 <th nowrap><label>联系方式:</label></th>
                 <td>
                    <span class="infotxt">${info.contacts_tel}</span>
                 </td>
             </tr>
             <tr>
                 <th style="width:120px"><label>计划巡检时间:</label></th>
                 <td>
                    ${DateUtil.format("yyyy-MM-dd",info.plan_execution_date)}
                 </td>
                <th nowrap style="width:120px"><label>要求完成时间:</label></th>
                 <td>
                    <span class="infotxt">${DateUtil.format("yyyy-MM-dd",info.require_date)}</span>
                 </td>
            </tr>
             <tr>
                <th class="postop" nowrap="nowrap"><label>服务内容说明:</label></th>
                <td colspan="3">
                    ${info.service_content}
                </td>
            </tr>
           
         </table>
         </form>
        <br/>
        <div class="edit_title"><h3>巡检配置</h3></div>
        <div class="table_basic">
        <table id="myList">
             <tr class="title">
                  <td style="width:5%">序号</td>
                  <td style="width:10%">配置名称</td>
                  <td style="width:9%">执行人</td>
                  <td style="width:30%">存放位置</td>
                  <td style="width:6%">状态</td>
                  <td style="width:6%">操作</td>
              </tr>
              
               [#if ciList??&&ciList?size>0]
                   [#list ciList as item]
                   <tr>
                       <td>${item_index+1}</td>
                       <td nowrap><!-- ${base}/business/pages/cmdb/propform/viewprop.html?cate=${item.CATEID}&ciId=${item.CIID} -->
                       <a class="blue_txt lb_button" target="_blank" href="${base}/business/pages/cfg/cfgInfoIndex.html?id=${item.CIID}">${item.CINAME}</a>
                       </td>
                       <td nowrap>${item.USER_NAME}</td>
                       <td>${item.POSITION}</td>
                       <td>
                        [#if item.DEAL_STATE==1]
                        已完成
                        [#elseif item.DEAL_STATE==2]
                        未完成
                        [#elseif item.DEAL_STATE==3]
                        未执行
                        [/#if]
                    </td>
                       <td>
                           <input type="hidden" name="patrolId" value="${item.ID}"/>
                           <a class='edit'>明细</a>
                       </td>
                   </tr>
                   [/#list]
               [#else]
                   <td colspan="6" 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();
    }
 
    $(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;
        }});
        
        //执行巡检
        $("a.edit").live("click",function() {
            var patrolId = $(this).parent().find("input[name=patrolId]").val();
            window.top.openDialog("1","巡检执行",
                     {},
                     {"width":"70","height":"70"},
                     [],
                     "${base}/business/pages/ciremind/orderdeal/remindPatrolInfo.html?patrolId="+patrolId+"&flowId=${RequestParameters.flowId}");
        });
    });
</script>
</body>
</html>