<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
</head>
|
|
<body>
|
<header class="kltit">
|
<a href="javascript:history.go(-1);"><span></span></a>关闭原因
|
</header>
|
<section class="wlresponse">
|
<p>
|
<span>解决方式</span>
|
<label>
|
<select id="solveWay" class="select">
|
<option value="">请选择</option>
|
[#list reasons as reason]
|
<option value="${reason.DATAKEY}" class="${reason.DATAKEY}">${reason.DATAVALUE}</option>
|
[/#list]
|
</select>
|
</label>
|
</p>
|
<p>
|
<span>原因说明</span>
|
<i><textarea name="resolve" id="resolve" cols="" rows="3" class="event-text"></textarea></i>
|
</p>
|
<p>
|
<span>流转备注</span>
|
<i> <textarea name="bz" id="bz" cols="" rows="3" class="event-text"></textarea></i>
|
</p>
|
<button class="bluebtn bluebtnsmal2" onclick="javascript:checkSubmit();">确定</button>
|
</section>
|
</body>
|
<script type="text/javascript">
|
function checkSubmit(){
|
var solveWay = $("#solveWay").val();
|
var resolve = $.trim($("#resolve").val());
|
var bz = $.trim($("#bz").val());
|
if(solveWay == ""){
|
popupTips('请选择解决方法!');
|
return;
|
}
|
if(resolve == ""){
|
popupTips('请输入原因说明!');
|
return;
|
}
|
var solveWayName = $("."+solveWay).text();
|
$.post("${base}/ewyw/ewIncident/ewCloseReason.html",{'incidentId':'${incidentId}','solveWay':solveWay,'solveWayName':solveWayName,'resolve':resolve,'bz':bz},function(data,textStatus) {
|
if(data == '1') {
|
popupTips("操作成功", 2000);
|
window.location.href = "${base}/ewyw/ewIncident/ewMyIncident.html";
|
} else {
|
popupTips("操作失败", 2000);
|
}
|
});
|
}
|
</script>
|
</html>
|