<!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">
|
<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/incident/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 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;
|
}
|
window.parent.showUser(type+"-"+checknode.val()+"-"+alluser,bz);
|
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|