<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>关闭事件</title>
|
|
|
</head>
|
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/HtmlEditor.html" /]
|
[#include "/component/webupload.html" /]
|
|
<script type="text/javascript">
|
$(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
document.getElementById("myform").target = window.top.openDialog("1","操作",
|
{},
|
{"width":40,"height":40,"noclose":true},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
|
$("#content").formValidator({empty: false, onShow:"请输入回顾结果!",onFocus: "请输入回顾结果"}).inputValidator({min: 1, onError: "回顾结果不能为空"});
|
|
$(".endtype").click(function() {
|
if($("input[name=solve]:checked").val() == "1"){
|
$("#end").show();
|
$(".close").hide();
|
}else{
|
$("#end").hide();
|
$(".close").show();
|
}
|
});
|
|
})
|
</script>
|
|
<body class="end_task_body">
|
<div class="end_task">
|
<form id="myform" action="" method="post">
|
|
<table>
|
<tr>
|
<th style="border-bottom:0px;width:100px;" align="left"><label class="required">实施结果:</label></th>
|
<td id="solveWrap" style="border-bottom:0px;">
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos endtype" name="solve" type="radio" value="1" checked /><span>实施成功</span>
|
</p>
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos endtype" name="solve" type="radio" value="2"/><span>实施失败</span>
|
</p>
|
</tr>
|
<tr id="end">
|
<th style="border-bottom:0px;width:100px;" align="left"><label class="required">解决方式:</label></th>
|
<td id="solveWrap" style="border-bottom:0px;">
|
[#if endreason?? && endreason?size>0]
|
[#list endreason as re]
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos jietype solveWaytype" name="solveWay" type="radio" value="${re.DATAKEY}" [#if re_index==0]checked[/#if] ><span>${re.DATAVALUE}</span>
|
</p>
|
[/#list]
|
<input type="hidden" name="solveWayName" id="solveWayName" >
|
[/#if]
|
</tr>
|
<!-- <tr class="close" style="display:none;">
|
<th style="border-bottom:0px;" align="left"><label class="required">关闭方式:</label></th>
|
<td id="solveWrap" style="border-bottom:0px;">
|
[#if reason?? && reason?size>0]
|
[#list reason as re]
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos closetype solveWaytype" [#if re_index==0]checked[/#if] name="solveWay1" type="radio" value="${re.DATAKEY}"/><span>${re.DATAVALUE}</span>
|
</p>
|
[/#list]
|
<input type="hidden" name="solveWayName" id="solveWayName" >
|
[/#if]
|
</tr> -->
|
<tr>
|
<th style="border-bottom:0px;" align="left"><label class="required">回顾结果:</label></th>
|
<td style="border-bottom:0px;"></td>
|
</tr>
|
<tr>
|
<td style="border-bottom:0px;" colspan="2">
|
<textarea class="general" id="content" name="content" style="width:500px;"></textarea>
|
<div id="contentTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
</table>
|
<div class="edit_btn clearfix">
|
<div class="upload_file" >
|
[@webupload id="files" multiple="true" extensions="*"/]
|
</div>
|
</div>
|
</form>
|
</div>
|
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
var $endtype = $(".endtype:checked");
|
if($endtype.val() == 1){
|
var $jietype = $(".jietype:checked");
|
if($jietype.length != 1){
|
popupTips("请选择解决方式");
|
return;
|
}
|
}else{
|
/* var $closetype = $(".closetype:checked");
|
if($closetype.length != 1){
|
popupTips("请选择关闭方式");
|
return;
|
}*/
|
}
|
var solveWayName = $(".solveWaytype:checked").parent().next("span").text();
|
$("#solveWayName").val(solveWayName);
|
if(btnID == "btnSure"+dialogID){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|