cy
2022-06-22 6e06bba1c89f8077e29d0fbf0ce12f89f027d8d2
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
[#include "/business/pages/include/static.html" /]
[#include "/business/pages/include/header.html" /]
[#include "/component/newupload.html" /]
[#include "/component/sel.html" /]
 
<title>采集审批</title>
 
[#if isAnswer??&&isAnswer?string=="true"]
<script type="text/javascript">
    window.top.openDialog("3","工单响应",
         {},
         {"width":50,"height":50,"noclose":true},
         [{btnId:"btnSure3", btnName:"确定", btnStyle:"bluebtn"}],"${base}/business/pages/ciadd/answer.html?orderId=${orderId}&nodeId=${nodeId}");
</script>
[#else]
 
<script type="text/javascript">
<!--
    //提交表单
    function SubForm(info){
        $("#dispatcher_require_date").val(info.get("dispatcher_require_date"));
        $("#fzr_id").val(info.get("fzr_id"));
        $("#fzr_name").val(info.get("fzr_name"));
        $("#note").val(info.get("note"));
 
 
        document.getElementById("myform").target = window.top.openDialog("5", "操作",
                {},
                {"width": 40, "height": 40, "noclose": true}, [{
                    btnId: "tipBtnSure",
                    btnName: "确定",
                    btnStyle: "bluebtn"
                }]);
        $("#myform").submit();
    }
    
    function addExecutor(trIndex,executorIds,executorNames){
        $("#generalList").find("tr:eq("+trIndex+")").find("td:eq(5)").text(executorNames);
        $("#generalList").find("tr:eq("+trIndex+")").find("input[name=executorIds]").val(executorIds);
    }
    
    $(function(){
    
        //回退
        $("#fb_sendback").click(function(){
            var orderId = '${info.ID}';
            var nodeType = 'APPROVE';
            window.top.openDialog("0","流程回退",
                             {},
                             {"width":"800px","height":"400px","mode":"pixel"},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/ciadd/ciAddSendback.html?orderId=${orderId}&nodeId=${nodeId}&nodeType="+nodeType);    
        });
    
        //提交按钮点击事件
        $("#fb_submit").click(function(){
            var flag = true;
            var executorIds = '';
            var executorNames = '';
            $("input[name=executorIds]").each(function(){
                if($(this).val()!=''){
                    if(executorIds!=''){
                        executorIds = executorIds + ',' + $(this).val() ;
                        
                    }else{
                        executorIds =  $(this).val() ;
                        
                    }
                }
            });
            
            //验证是否选择执行人
            $("#generalList").find("tr:not(:eq(0))").each(function(index){
                if($(this).find("td:eq(5)").text()==''){
                    flag = false;
                    return false;
                }
            });
            if(!flag){
                popupTips('请指定执行人', 1);
                return false;
            }
            
            window.top.openDialog("0","申请审批",
                             {},
                             {"width":"800px","height":"400px","mode":"pixel"},
                             [{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
                             "${base}/business/pages/ciadd/ciAddApproveConfirm.html?executorIds="+executorIds);
            
        });
        
        //指定执行人
        $("a.edit").live("click",function() {
            var projectId = '${info.project_id}';
            var generalId = $(this).parent().parent().find("td:eq(0)").text();
             var trIndex = $(this).closest("tr").index();
            window.top.openDialog("0","指定执行人",
                             {},
                             {"width":"600px","height":"400px","mode":"pixel"},
                             [{btnId:"btnSure", btnName:"选择", btnStyle:"bluebtn"}],
                             "${base}/business/pages/ciadd/selUserDialog.html?trIndex="+trIndex+"&generalId="+generalId+"&projectId="+projectId);
        });
    });
-->
</script>
</head>
 
<body class="fullscreen">
[#assign focusLabel = Constants.WORKFLOW_BASE_BUSINESS_TYPE_CI_ADD]
[#include "/business/pages/include/myCiCollectionHeader.html" /]
<div class="fs_navpath">
    <h3>当前位置</h3>
    <span></span>
    <a>配置采集 </a>
    <span></span>
    <em>领域经理审批</em>
</div>
<div class="fs_navtitle" id="fsNavtitle">
    <div class="fs_navtitle_con">
        <h2>领域经理审批</h2>
        <div class="fsnt_btn_left">
            <a class="mainbtn back" href="javascript:history.go(-1);"><span>返回</span></a>
        </div>
        <div class="fsnt_btn">
            <a id="fb_submit" class="fb_submit"><span>提交</span></a>
            <a id="fb_sendback" class="fb_submit"><span>回退</span></a>
        </div>
    </div>
</div>
 
<div class="fs_main fs_edit">
<form id="myform" method="post">
    <div class="edit_title"><h3>审批申请</h3></div>
    <input type="hidden" id="orderId" name="orderId" value="${info.ID}"/>
    <input type="hidden" id="dispatcher_require_date" name="dispatcher_require_date"/>
    <input type="hidden" id="fzr_id" name="fzr_id"/>
    <input type="hidden" id="fzr_name" name="fzr_name"/>
    <input type="hidden" id="note" name="note"/>
    <input type="hidden" id="nodeType" name="nodeType" value="APPROVE"/>
    <input type="hidden" id="nodeId" name="nodeId" value="${nodeId}"/>
    <table class="edit_layout basicinfo" width="100%">
        <tr>
            <th><label>${Constants.CUSTOMERNAME}:</label></th>
            <td><span class="infotxt">${info.customer_name}</span></td>
            <th><label>${Constants.SUBORDINATE_UNITS}:</label></th>
            <td><span class="infotxt">${info.sub_customer_name}</span></td>
        </tr>
        
        <tr>
            <th><label>领域名称:</label></th>
            <td><span class="infotxt">${info.project_name}</span></td>
            <th><label>采集类型:</label></th>
            <td><span class="infotxt">${info.collection_type_name}</span></td>
        </tr>
        
        <tr>
            <th><label>联系人:</label></th>
            <td><span class="infotxt">${info.customer_contacts}</span></td>
            
            <th><label>联系方式:</label></th>
            <td><span class="infotxt">${info.customer_contact_info}</span></td>
        </tr>
        
        <tr>
            <th><label>申请人:</label></th>
            <td><span class="infotxt">${info.apply_user_name}</span></td>
            <th><label>申请时间:</label></th>
            <td colspan="3"><span class="infotxt">
                ${DateUtil.format("yyyy-MM-dd HH:mm:ss",info.apply_time)}
            </span></td>
        </tr>
        
        <tr>
            <th><label>期望完成时间:</label></th>
            <td colspan="3"><span class="infotxt">
            ${DateUtil.format("yyyy-MM-dd",info.dispatcher_require_date)}
            </span></td>
        </tr>
        
        <tr>
            <th><label>申请原因:</label></th>
            <td colspan="3"><span class="infotxt">${info.apply_reason}</span></td>
        </tr>
        
    </table>
     </br>
    <div class="edit_title"><h3>采集对象</h3></div>
   
    <div class="table_basic">
    <table id="generalList">
         <tr class="title">
              <td style="width:5%">序号</td>
              <td style="width:20%">分类</td>
              <td style="width:10%">数量</td>
              <td style="width:30%">说明</td>
              <td style="width:13%">执行人</td>
              <td style="width:15%">操作</td>
          </tr>
          
           [#if generalList??&&generalList?size>0]
               [#list generalList as item]
               <tr>
                   <td style="display: none">${item.ID}</td>
                   <td>${item_index+1}<input name="executorIds" type="hidden" value="${item.EXECUTORIDS}"/></td>
                   <td>${item.THIRD_LEVEL_NAME}</td>
                   <td>${item.CI_NUM}</td>
                   <td>${item.NOTE}</td>
                   <td>${item.EXECUTORS}</td>
                   <td align="center"><a class='edit'>指定执行人</a></td>
               </tr>
               [/#list]
           [#else]
               <td colspan="7" align="center">暂无信息</td>
           [/#if]
          
    </table>
    </div>
</form>
</div>
 
[#include "/business/pages/include/footer.html" /]
[/#if]
</body>
</html>