<!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/newupload.html" /]
|
|
<script type="text/javascript">
|
$(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("1","操作",
|
{},
|
{"width":40,"height":40,"noclose":true},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}});
|
|
$("#repeat_order").formValidator({empty: false, onShow:"请选择重复工单!",onFocus: "重复工单不能为空"}).inputValidator({min: 1,onError: "重复工单不能为空"});
|
$("#content").formValidator({onshow:"",onFocus:"原因说明不能为空"}).functionValidator({
|
fun:function(val,elem){
|
var text = content.isEmpty();
|
if(text) {
|
return "请输入原因说明";
|
}
|
return true;
|
}
|
});
|
$("#bz").formValidator({empty: false, onShow:"请输入取消备注!",onFocus: "请输入取消备注"}).inputValidator({min: 1,max:500 ,onError: "取消备注为1-250个汉字"});
|
$(".ropos").click(function() {
|
if($(this).val() == "WTCF"){
|
$(".repead").show();
|
$("#repeat_order").attr("disabled",false).unFormValidator(false);
|
}else{
|
$(".repead").hide();
|
$("#repeat_order").attr("disabled",true).unFormValidator(true);
|
}
|
});
|
|
})
|
</script>
|
|
<body class="end_task_body">
|
<div class="end_task">
|
<form id="myform" action="" method="post">
|
|
<table>
|
<tr>
|
<th style="border-bottom:0px;width:120px;">取消原因:</th>
|
<td id="solveWrap" style="border-bottom:0px;">
|
[#if ways?? && ways?size>0]
|
[#list ways as re]
|
<p style="float:left;margin-right:10px;">
|
<input class="ropos" [#if re_index==0]checked[/#if] name="solveWay" type="radio" value="${re.DATAKEY}"/><span>${re.DATAVALUE}</span>
|
</p>
|
[/#list]
|
<input type="hidden" name="solveWayName" id="solveWayName" >
|
[/#if]
|
</tr>
|
<tr>
|
<th class="repead"><label class="required">关联重复问题工单:</label></th>
|
<td class="repead">
|
<input class="general" type="text" name="showrepeat_order" id="showrepeat_order" readonly onclick="questionorder()"/>
|
<input type="hidden" name="repeat_order" id="repeat_order" />
|
<div id="repeat_orderTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
<tr><th><label class="required">取消备注:</label></th><td>
|
<textarea class="general" style="width:100%;" id="bz" name="bz"></textarea>
|
<div id="bzTip" style="display:inline-block;"></div>
|
</td></tr>
|
|
</table>
|
</form>
|
</div>
|
|
<script type="text/javascript">
|
var customerid = '${question.CUSTOMER_ID}';
|
var orderid = '${question.ID}';
|
function questionorder() {
|
|
if($.util.isEmpty(customerid)) {
|
popupTips("请先选择${Constants.CUSTOMER_CONSTANTS}");
|
return;
|
}
|
var reordercode = $("#showrepeat_order").val();
|
window.top.openDialog("0","添加重复问题工单",
|
{},
|
{"width":80,"height":80},
|
[{btnId:"btnSure", btnName:"选择", btnStyle:"bluebtn"}],
|
"${base}/business/pages/question/linkwtOrder.html?customerid="+customerid+"&reordercode="+reordercode+"&orderid="+orderid);
|
}
|
|
function showLinkwtOrder(flowid,ordercode){
|
$("#showrepeat_order").val(ordercode);
|
$("#repeat_order").val(flowid);
|
}
|
function onDialogBtnClick(btnID, dialogID, config){
|
var solveWayName = $(":radio:checked").next("span").text();
|
$("#solveWayName").val(solveWayName);
|
if(btnID == "btnSure"){
|
$("#myform").submit();
|
}
|
}
|
</script>
|
|
</body>
|
</html>
|