<!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>
|