<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>工单提交</title>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/HtmlEditor.html" /]
|
<link rel="stylesheet" href="${common_static}/static/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
<script type="text/javascript" src="${common_static}/static/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
|
</head>
|
|
<body class="end_task_body widthauto">
|
<div>
|
<form id="myform" action="${base}/business/pages/ciremind/orderdeal/doEngineerPatrol.html" method="post">
|
<input name="orderId" value="${orderId}" type="hidden"/>
|
<input name="nodeId" value="${nodeId}" type="hidden"/>
|
<table class="edit_layout2">
|
[#if RequestParameters.isAdmin=='1']
|
<tr>
|
<th nowrap><label class="required">巡检总结:</label></th>
|
<td style="width:90%">
|
<textarea id="summary" name="summary" class="general"></textarea>
|
<div id="summaryTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
[/#if]
|
|
<tr>
|
<th nowrap><label>流转备注:</label></th>
|
<td style="width:90%">
|
<textarea id="flowNote" name="flowNote" class="general"></textarea>
|
<div id="flowNoteTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
|
</table>
|
</form>
|
</div>
|
|
</body>
|
<script type="text/javascript">
|
var isAdmin = "${RequestParameters.isAdmin}";
|
$(document).ready(function () {
|
|
$.formValidator.initConfig({
|
formID: "myform", onError: function (msg) {
|
popupTips(msg)
|
}, onSuccess: function () {
|
document.getElementById("myform").target = window.top.openDialog("1", "操作",
|
{},
|
{"width": 40, "height": 40},
|
[{btnId: "tipBtnSure", btnName: "确定", btnStyle: "bluebtn"}]);
|
return true;
|
}
|
});
|
$("#summary").formValidator({
|
empty: false,
|
onShow: "巡检总结不能为空,不超过400个字符!",
|
onFocus: "巡检总结不能为空,不超过400个字符!"
|
}).inputValidator({min:1,max: 400, onError: "巡检总结不能为空,不超过400个字符!"});
|
$("#flowNote").formValidator({
|
empty: true,
|
onShow: "流转备注不超过400个字符!",
|
onFocus: "流转备注不超过400个字符!"
|
}).inputValidator({max: 400, onError: "流程备注不超过400个字符"});
|
});
|
|
//点击事件
|
function onDialogBtnClick(btnID, dialogID, config) {
|
if (btnID == "btnSure") {
|
if (isAdmin == 1) {
|
var summary = $("#summary").val();
|
if ($.util.isEmpty(summary)) {
|
window.top.popupTips("巡检总结不能为空");
|
return;
|
}
|
}
|
$("#myform").submit();
|
}
|
}
|
|
</script>
|
</html>
|