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
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
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>分配人员</title>
<!--(start) public flies-->
[#include "/business/pages/include/static.html" /]
[#include "/component/webupload.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;
        }});
        [#if curnodeId ==  Constants.WTZD]
        $("#reason").formValidator({onshow:"问题根本原因不能为空",onFocus:"问题根本原因不能为空"}).functionValidator({
                fun:function(val,elem){
                    var text = reason.isEmpty();
                    if(text) {
                        return "请输入问题根本原因";
                    } 
                    return true;
                }
            });
            
        $("#resolve").formValidator({onshow:"解决方案不能为空",onFocus:"解决方案不能为空"}).functionValidator({
                fun:function(val,elem){
                    var text = resolve.isEmpty();
                    if(text) {
                        return "请输入解决方案";
                    } 
                    return true;
                }
            });
            
        $("#suggest").formValidator({onshow:"优化建议不能为空",onFocus:"优化建议不能为空"}).functionValidator({
                fun:function(val,elem){
                    var text = suggest.isEmpty();
                    if(text) {
                        return "请输入优化建议";
                    } 
                    return true;
                }
            });
        [/#if]
      $("#bz").formValidator({empty: true}).inputValidator({min: 0,max:500, onError: "流转备注为不能超过250个汉字!"});
  });
    
    
  </script>
</head>
 
<body class="personnel_allocation_body end_task_body">
 
<form id="fpform" action="${base}/business/pages/question/saveusersAssign.html" method="post">
<input type="hidden" name="flowId" value="${RequestParameters.flowId}" />
<input type="hidden" name="savetype" id="savetype" />
<input type="hidden" name="saveusername" id="saveusername" />
[#if curnodeId ==  Constants.WTZD]
    <div class="end_task"> <table >
     <tr><td><label class="required">问题根本原因:</label></td>
     </tr>
              
     <tr><td style="border-bottom:0px;">
          [#if zdmsg??]
          [@htmleditor id="reason"  simple="true" class="general" height="200px;" value="${zdmsg.REASON}"/]
          [#else]
           [@htmleditor id="reason"  simple="true" class="general" height="200px;" value="${tempMsg.EXTEND2}"/]
           [/#if]
           <div id="reasonTip" style="display:inline-block;"></div>
     </td></tr>
     
     <tr><td><label class="required">解决方案:</label></td>
     </tr>
     
     <tr><td style="border-bottom:0px;">
          [#if zdmsg??]
          [@htmleditor id="resolve"  simple="true" class="general" height="200px;" value="${zdmsg.RESOLVE}"/]
          [#else]
           [@htmleditor id="resolve"  simple="true" class="general" height="200px;" value="${tempMsg.EXTEND3}"/]
           [/#if]
           <div id="resolveTip" style="display:inline-block;"></div>
     </td></tr>
     
     <tr><td><label class="required">优化建议:</label></td>
     </tr>
     
     <tr><td style="border-bottom:0px;">
         [#if zdmsg??]
          [@htmleditor id="suggest"  simple="true" class="general" height="200px;" value="${zdmsg.SUGGEST}"/]
          [#else]
         [@htmleditor id="suggest"  simple="true" class="general" height="200px;" value="${tempMsg.EXTEND4}"/]
         [/#if]
         <div id="suggestTip" style="display:inline-block;"></div>
     </td></tr>
     </table></div>
 
         <div class="edit_txt">
         <div class="edit_btn clearfix">
              <div class="upload_file" style="position:relative">
                [@webupload id="files" multiple="true" extensions="*"  /]
             </div>
         </div>
         </div>[/#if]
<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">${tempMsg.userName}</div>
        <input  type="hidden" id="alluserid" name="alluserid" value="${tempMsg.userId}"/>
        <input  type="hidden" id="type" name="type" value="${tempMsg.EXTEND1}"/>
        <input type="hidden" name="node" id="node" />
        <input type="hidden" name="curnodeId" id="curnodeId" value="${curnodeId}"/>
        </td>
    </tr>
     <tr>
         <td class="greybg"><label>流转备注</label></td>
         <td colspan="6" style="padding:0;">
           <textarea class="general" style="width:95%;height:100px;border:0;" id="bz" name="bz">${tempMsg.EXTEND5}</textarea>
        </td>
        
     </tr>
     </table>
     
</form>
<script type="text/javascript">
var customerId = '${RequestParameters.customer_id}';
var serivceListId = '${RequestParameters.serivceListId}';
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="+customerId+"&serivceListId="+serivceListId);
 
}
 
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;
        }
        
         $("#fpform").submit();
        
    }
     if(btnID == "btnSureTemp"){
     var checkUser = $("#users").html();
        if($.util.isEmpty(checkUser)) {
            popupTips("请选择一个分配人员或分组");
            return;
        }
           $("#savetype").val("1");
           $("#saveusername").val($("#users").html());
           
        
           $("#fpform").submit();
       }
}
</script>
 
</body>
</html>