cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>分配人员</title>
<!--(start) public flies-->
[#include "/business/pages/include/static.html" /]
[#include "/component/HtmlEditor.html" /]
<script type="text/javascript">
  $(document).ready(function() {
        $.formValidator.initConfig({formID:"fpform",onError:function(msg){popupTips(msg)},onSuccess:function(){
           if(!(window.top.openConfirm("确定要提交吗?"))) {
                    return false;
                }
            document.getElementById("fpform").target = window.top.openDialog("0","操作",
                         {},
                         {"width":40,"height":40,"noclose":true},
                         [{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         
                         
                         return true;
        }});
 
 
  });
    
    
  </script>
</head>
 
<body class="personnel_allocation_body end_task_body">
 
<form id="fpform" action="" method="post">
<input type="hidden" name="flowId" value="${RequestParameters.flowId}" />
<input type="hidden" name="savetype" id="savetype" />
<input type="hidden" name="saveusername" id="saveusername" />
 
<table id="selExecutors" class="pab_con">
    <tr >
      <th style="text-align:center;">下一环节:</th>
      <td>
    [#if nodeList?? && nodeList?size>0]
        [#list nodeList as node]
        <div class="pabitem" style="margin-right:5px;">
        <input class="pos"  name="node" type="radio" value="${node.nodeId}" [#if node_index == 0 ]checked[/#if]/><span>${node.nodeName}</span>
        </div>
        [/#list]
     [/#if] </td>  
    </tr>
    <tr>
        <th style="text-align:center;">处理人:</th>
        <td style="text-align:left;"> <a href="javascript:selectDealer()" class="mainbtn" style="margin-top:7px;padding:0 15px 0 5px;"><span>选择处理人</span></a><div id="users"></div>
        <input  type="hidden" id="alluserid" name="alluserid" value=""/>
        <input  type="hidden" id="type" name="type" value=""/>
        <input type="hidden" name="node" id="node" />
        <input type="hidden" name="curnodeId" id="curnodeId" value="${curnodeId}"/>
        </td>
    </tr>
     <tr>
         <td class="greybg"><label class="required">流转备注</label></td>
         <td colspan="6" style="padding:0;">
           <textarea class="general" style="width:95%;height:100px;border:0;" id="bz" name="bz"></textarea>
        </td>
        
     </tr>
     </table>
     
</form>
<script type="text/javascript">
var customer_id = '${RequestParameters.customer_id}';
var curnodeId = '${curnodeId}';
function selectDealer(){
         window.top.openDialog("dealer","选择处理人",
         {},
         {"width":70,"height":70},
         [{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],"${base}/business/pages/question/selectTab.html?customer_id="+customer_id);
 
}
 
function selectUser(type,alluserid,allusername) {
    $("#users").empty();
    if(type == 2){
    $("#users").append("分派到角色:("+allusername+")");
    }else{
    $("#users").append("分派人员:("+allusername+")");
    }
    $("#alluserid").val(alluserid);
    $("#type").val(type);
}
 
function onDialogBtnClick(btnID, dialogID, config){
    if(btnID == "btnSure"){
        var checkUser = $("#users").html();
        var alluser = $("#alluserid").val();
        var type = $("#type").val();
         var nodes = $(":radio");
         if(nodes.length==0){
            popupTips("请配置问题管理流转策略");
            return;
         }else{
            var checknode = $(":radio:checked");
            if(checknode.length==0) {
                popupTips("请选择下一节点");
                return;
            }else{
              $("#node").val(checknode.val());
            }
         }
       
        if($.util.isEmpty(checkUser)) {
            popupTips("请选择一个分配人员或角色");
            return;
        }
        
        
        var bz = $.trim($("#bz").val());
        if($.util.isEmpty($("#bz").val())) {
            popupTips("请输入流转备注");
            return;
        }
 
        if($("#bz").val().length>100) {
            popupTips("流转备注不能超过100个汉字!");
            return;
        }
        window.parent.showUser(type+"&"+checknode.val()+"&"+alluser,bz);
        
    }
}
</script>
 
</body>
</html>