<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>填写取消原因</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/HtmlEditor.html" /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
if(!confirm("确定要提交吗?")) {
|
return false;
|
}
|
document.getElementById("myform").target = window.top.openDialog("close","操作",
|
{},
|
{"width":40,"height":40},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
|
|
return true;
|
}});
|
|
$("#merged_business_id").formValidator({empty: true,onFocus: "请选择目标事件"}).inputValidator({min: 1, onError: "目标事件不能为空"});
|
$("#resolve").formValidator({onshow:"原因说明不能为空",onFocus:"原因说明不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = resolve.isEmpty();
|
if(text) {
|
return "请输入原因说明";
|
}
|
return true;
|
}
|
});
|
|
$("#bz").formValidator({empty: true}).inputValidator({min: 0,max:400, onError: "流转备注不能超过200个汉字或400个字符!"});
|
|
|
|
/*
|
niceform(":radio[name='solve']").on("click",function() {
|
$(".way").hide();
|
$(this).parent().next(".way").show();
|
|
var $this = $(this).find(":radio");
|
if($this.val()==1) {
|
$("#solveWay").attr("disabled",false).unFormValidator(false);
|
$("#noSolveWay").attr("disabled",true).unFormValidator(true);
|
} else {
|
$("#noSolveWay").attr("disabled",false).unFormValidator(false);
|
$("#solveWay").attr("disabled",true).unFormValidator(true);
|
}
|
|
})*/
|
|
|
|
});
|
|
|
</script>
|
|
</head>
|
|
<body class="end_task_body">
|
<div class="end_task">
|
<form id="myform" action="${base}/business/pages/incident/closeReason.html" method="post">
|
<input type="hidden" name="incidentId" value='${RequestParameters.incidentId}'>
|
<table>
|
<tr>
|
<th><label class="required">解决方式:</label></th>
|
<td id="solveWrap">
|
[#if reasons?? && reasons?size>0]
|
[#list reasons as reason]
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos" [#if reason_index==0]checked[/#if] name="solveWay" type="radio" value="${reason.DATAKEY}"/><span>${reason.DATAVALUE}</span>
|
</p>
|
[/#list]
|
<input type="hidden" name="solveWayName" id="solveWayName" >
|
[/#if]
|
</tr>
|
|
|
<tr id="cfsjDom" style="display:none;">
|
<th><label class="required">选择事件:</label></th>
|
<td>
|
<input class="general" type="text" name="cfsj" id="cfsj" readOnly/>
|
<input type="hidden" name="merged_business_id" id="merged_business_id" />
|
<div id="merged_business_idTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
|
<tr><th><label class="required">原因说明:</label></th><td>
|
[@htmleditor id="resolve" simple="true" class="general" height="200px;" width="625px"/]
|
<div id="resolveTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
<tr><th>流转备注:</th><td>
|
<textarea class="general" style="width:615px;" id="bz" name="bz"></textarea>
|
</td></tr>
|
|
</table>
|
</form>
|
</div>
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
var solveWayName = $(":radio:checked").next("span").text();
|
$("#solveWayName").val(solveWayName);
|
if(btnID == "tipBtnSure"){
|
$("#myform").submit();
|
}
|
}
|
|
//选择完目标事件的回调
|
function backIncident(mbId,mbName) {
|
$("#merged_business_id").val(mbId);
|
$("#cfsj").val(mbName);
|
}
|
|
|
$(function() {
|
niceform(":radio").on("click",function() {
|
var checkedRadio = $(this).val();
|
if(checkedRadio == '${Constants.SJCF}') {
|
$("#cfsjDom").show();
|
$("#merged_business_id").attr("disabled",false).unFormValidator(false);
|
} else {
|
$("#cfsjDom").hide();
|
$("#merged_business_id").attr("disabled",true).unFormValidator(true);
|
}
|
})
|
$("#cfsjDom").click(function() {
|
window.top.openDialog("personList","选择目标事件",
|
{},
|
{"width":60,"height":80},
|
[{btnId:"btnSure_personList", btnName:"选择", btnStyle:"bluebtn"}],"${base}/business/pages/incident/selectIncident.html?incidentId=${RequestParameters.incidentId}");
|
});
|
|
})
|
</script>
|
|
</body>
|
</html>
|