<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>基本信息</title>
|
</head>
|
|
<body>
|
[#include "/business/pages/include/static.html" /]
|
[#include "/component/DatePicker.html" /]
|
<div class="deal_switch_con" style="display:block;">
|
<div class="edit_title"><h3>基本信息</h3></div>
|
<form id="myform" method="post" action="${base}/business/pages/ciremind/orderdeal/ServerDispatch.html">
|
<input name="orderId" type="hidden" value="${RequestParameters.orderId}"/>
|
<input name="flowId" type="hidden" value="${RequestParameters.flowId}"/>
|
<input name="nodeId" type="hidden" value="${RequestParameters.nodeId}"/>
|
<input name="executorIds" id="executorIds" type="hidden"/>
|
<input name="executorNames" id="executorNames" type="hidden"/>
|
<input name="main_executorId" id="main_executorId" type="hidden"/>
|
<input name="flowNote" id="flowNote" type="hidden"/>
|
<input name="ciIds" id="ciIds" type="hidden"/>
|
|
<table class="edit_layout basicinfo" width="100%">
|
<tr>
|
<th><label>${Constants.CUSTOMER_CONSTANTS}名称:</label></th>
|
<td><span class="infotxt">${info.customer_name}</span></td>
|
<th><label>${Constants.UNIT_CONSTANTS}:</label></th>
|
<td><span class="infotxt">${info.sub_customer_name}</span></td>
|
</tr>
|
|
<tr>
|
<th ><label class="required">联系人:</label></th>
|
<td>
|
<input id="contacts_name" name="contacts_name" value="${info.CONTACTS_NAME}" class="general" type="text"/>
|
<div id="contacts_nameTip" style="display:inline-block;"></div>
|
</td>
|
<th><label class="required">联系方式:</label></th>
|
<td>
|
<input id="contacts_tel" name="contacts_tel" value="${info.CONTACTS_TEL}" class="general" type="text"/>
|
<div id="contacts_telTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th style="width:120px"><label>计划巡检时间:</label></th>
|
<td>
|
${DateUtil.format("yyyy-MM-dd",info.plan_execution_date)}
|
</td>
|
<th style="width:120px"><label class="required">要求完成时间:</label></th>
|
<td >
|
[@datepicker id="require_date" value="${info.require_date}" minDate="${info.plan_execution_date}" class="general" length=8/]
|
<div id="require_dateTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th class="postop" nowrap="nowrap"><label class="required">服务内容说明:</label></th>
|
<td colspan="3">
|
<textarea id="service_content" style="width:637px;" name="service_content" class="general">${info.service_content}</textarea>
|
<div id="service_contentTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
|
|
|
</table>
|
|
<br/>
|
<div class="edit_title"><h3>巡检配置</h3><a class="add_associated" href="javascript:openAddCiDialog();">新增</a></div>
|
<div class="table_basic">
|
<table id="ciList">
|
<tr class="title">
|
<td style="width:17%">分类名称</td>
|
<td style="width:17%">配置名称</td>
|
<td style="width:17%">搜索编号</td>
|
<td style="width:17%">存放位置</td>
|
<td style="width:12%">操作</td>
|
</tr>
|
|
[#if ciList??&&ciList?size>0]
|
[#list ciList as item]
|
<tr>
|
<td>
|
<input type="hidden" name="ciId" value="${item.CIID}">
|
${item.CATENAME}
|
</td>
|
<td><a class='blue_txt lb_button' target='_blank' href='${base}/business/pages/cfg/cfgInfoIndex.html?id=${item.CIID}'>${item.CINAME}</a></td>
|
<td><a class='blue_txt lb_button' target='_blank' href='${base}/business/pages/cfg/cfgInfoIndex.html?id=${item.CIID}'>${item.SEARCHCODE}</a></td>
|
<td>${item.POSITION}</td>
|
<td><a class='delete'>删除</a></td>
|
</tr>
|
[/#list]
|
[#else]
|
<td colspan="5" align="center">暂无信息</td>
|
[/#if]
|
|
</table>
|
</div>
|
</form>
|
|
|
<script type="text/javascript">
|
//添加设备页面
|
function openAddCiDialog(){
|
var ciIds = '';
|
$('input[name=ciId]').each(function(){
|
ciIds += (ciIds?',':'') + $(this).val();
|
})
|
window.top.openDialog("1","配置巡检新增",
|
{},
|
{"width":"90","height":"70"},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
|
"${base}/business/pages/ciremind/orderdeal/addCiDialog.html?customerId=${info.customer_id}&subCustomerId=${info.sub_customer_id}&flowId=${info.flow_id}&ciIds="+ciIds);
|
}
|
|
function addPatrolCi(ciJsonList){
|
var arr = eval("("+ciJsonList+")");
|
if(arr.length>0){
|
var firstTd = $("#ciList tr:eq(1)");
|
if(firstTd.find("td").length==1) {
|
firstTd.remove();
|
}
|
$.each(arr, function(index, ciInfo){
|
var htmlStr = "<tr>";
|
htmlStr = htmlStr + "<td> " + ciInfo.cateName + "</td>";
|
htmlStr = htmlStr + "<td><a class='blue_txt lb_button' target='_blank' href='${base}/business/pages/cfg/cfgInfoIndex.html?id="+ciInfo.ciId+"'>" + ciInfo.ciName + "<input name='ciId' value='"+ciInfo.ciId+"' type='hidden'></a></td>";
|
htmlStr = htmlStr + "<td><a class='blue_txt lb_button' target='_blank' href='${base}/business/pages/cfg/cfgInfoIndex.html?id="+ciInfo.ciId+"'> " + ciInfo.searchCode + "</a></td>";
|
htmlStr = htmlStr + "<td>" + ciInfo.position + "</td>";
|
htmlStr = htmlStr + "<td><a class='delete'>删除</a></td>";
|
htmlStr = htmlStr + "</tr>";
|
$("#ciList").append(htmlStr);
|
});
|
|
}
|
}
|
|
function formSubmit(executorIds,executorNames,main_executorId,flowNote) {
|
$("#executorIds").val(executorIds);
|
$("#executorNames").val(executorNames);
|
$("#main_executorId").val(main_executorId);
|
$("#flowNote").val(flowNote);
|
|
var ciIds = ''
|
$("input[name=ciId]:checked").each(function(){
|
if(ciIds!=''){
|
ciIds = ciIds + ',' + $(this).val();
|
}else{
|
ciIds = $(this).val();
|
}
|
|
});
|
$("#ciIds").val(ciIds);
|
$("#myform").submit();
|
}
|
//人员指派
|
$(document).ready(function(){
|
$.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
|
var executorIds = $("#executorIds").val();
|
if($.trim(executorIds)==''){
|
window.top.openDialog("0","人员指派",
|
{},
|
{"width":"60","height":"80"},
|
[{btnId:"btnSure", btnName:"确定", btnStyle:"bluebtn"}],
|
"${base}/business/pages/ciremind/orderdeal/serverCommit.html");
|
}else{
|
document.getElementById("myform").target = window.top.openDialog("1","操作",
|
{},
|
{"width":40,"height":40},
|
[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
}
|
|
}});
|
$("#contacts_name").formValidator({empty: false, onShow:"请输入联系人",onFocus: "请输入联系人"}).inputValidator({min: 1,onError: "联系人不能为空"});
|
$("#contacts_tel").formValidator({empty: false, onShow:"请输入联系方式",onFocus: "请输入联系方式"}).functionValidator({fun:checkPhone});
|
$("#require_date").formValidator({empty: false, onShow:"请输入要求完成时间",onFocus: "请输入要求完成时间"}).inputValidator({min: 1,onError: "要求完成时间不能为空"});
|
$("#service_content").formValidator({empty: false, onShow:"请填写服务内容说明",onFocus: "请填写服务内容说明"}).inputValidator({min: 1,onError: "服务内容说明不能为空"});
|
|
//删除设备
|
$("a.delete").live("click",function() {
|
$(this).parents("tr").remove();
|
});
|
|
});
|
function checkPhone(value) {
|
if($.util.isEmpty(value)) {
|
return "联系方式不能为空";
|
}
|
if(!$.util.isMobile(value) && !$.util.isTelphone(value)) {
|
return "联系方式格式不正确";
|
}
|
return true;
|
}
|
</script>
|
</body>
|
</html>
|