<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>填写解决方法</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/HtmlEditor.html" /]
|
[#include "/component/webupload.html" /]
|
<script type="text/javascript">
|
$(document).ready(function() {
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
if(!(window.top.openConfirm("确定要提交吗?"))) {
|
return false;
|
}
|
document.getElementById("myform").target = window.top.openDialog("0","操作",
|
{},
|
{"width":40,"height":40,"noclose":true},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
|
|
return true;
|
}});
|
|
$("#ssbz").formValidator({onshow:"实施步骤不能为空",onFocus:"实施步骤不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = ssbz.isEmpty();
|
if(text) {
|
return "请输入实施步骤";
|
}
|
return true;
|
}
|
});
|
|
$("#ssjg").formValidator({onshow:"实施结果不能为空",onFocus:"实施结果不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = ssjg.isEmpty();
|
if(text) {
|
return "请输入实施结果";
|
}
|
return true;
|
}
|
});
|
|
$("#ssnote").formValidator({onshow:"测试结果或失败回退步骤不能为空",onFocus:"测试结果或失败回退步骤不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = ssnote.isEmpty();
|
if(text) {
|
return "请输入测试结果或失败回退步骤";
|
}
|
return true;
|
}
|
});
|
$("#ssnote").attr("disabled",true).unFormValidator(true);
|
$(".ropos").click(function() {
|
if($(this).children().val() == 2){
|
$(".ht").show();
|
$("#ssnote").attr("disabled",false).unFormValidator(false);
|
}else{
|
$(".ht").hide();
|
$("#ssnote").attr("disabled",true).unFormValidator(true);
|
}
|
});
|
|
|
});
|
|
|
</script>
|
|
</head>
|
|
<body class="end_task_body">
|
<div class="end_task">
|
<form id="myform" action="${base}/business/pages/question/adminEndQuestion.html" method="post">
|
<input type="hidden" name="orderId" value='${RequestParameters.orderId}'>
|
<input type="hidden" name="nodeId" value='${RequestParameters.nodeId}'>
|
<input type="hidden" name="flowId" value='${RequestParameters.flowId}'>
|
<table>
|
|
<tr><td ><label class="required">实施步骤:</label></td>
|
</tr>
|
|
<tr>
|
<td style="border-bottom:0px;">
|
[@htmleditor id="ssbz" simple="true" class="general" height="200px;" /]
|
<div id="reasonTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
<tr><td ><label class="required">实施结果:</label></td>
|
</tr>
|
|
<tr><td style="border-bottom:0px;">
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos" checked name="ssjg" type="radio" value="1"/><span>实施成功</span>
|
</p>
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos" name="ssjg" type="radio" value="2"/><span>实施失败</span>
|
</p>
|
</td></tr>
|
|
<tr class="ht" style="display:none;"><td ><label class="required">回退步骤及结果:</label></td>
|
</tr>
|
|
<tr class="ht" style="display:none;"><td style="border-bottom:0px;">
|
[@htmleditor id="ssnote" simple="true" class="general" height="200px;" /]
|
<div id="suggestTip" style="display:inline-block;"></div>
|
</td></tr>
|
</table>
|
<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>
|
</form>
|
</div>
|
<script type="text/javascript">
|
function onDialogBtnClick(btnID, dialogID, config){
|
var solveWayName = $(":radio:checked").next("span").text();
|
$("#solveWayName").val(solveWayName);
|
if(btnID == "btnSure"+dialogID){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|