<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>健康检查计划</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
|
<body class="fullscreen">
|
[#include "/business/pages/include/header.html" /]
|
[#assign focusLabel = 'JKJCJH'/]
|
[#include "/business/pages/customerconfig/slacustomer/ciDailyItemheader.html" /]
|
[#include "/component/subCusSelector.html" /]
|
<div class="fs_main clearfix">
|
<div class="event_fill list_common_select" >
|
<table><tr><th width="85%">
|
<div class="fill_item">
|
<label>${Constants.UNIT_CONSTANTS}:</label>
|
<input type="hidden" id="cus_id" value="${RequestParameters.customerId}"/>
|
[@cub_cus id="subCusId" name="subCusName" cusConId="cus_id"/]
|
</div>
|
<div class="fill_item"><label>计划状态:</label>
|
<select id="state" class="mysel">
|
<option value="">请选择</option>
|
<option value="1">启用</option>
|
<option value="2">禁用</option>
|
</select>
|
</div>
|
</th><td width="15%">
|
<a class="retrievebtn" id="reset">重置</a><a class="retrievebtn focus" href="javascript:psearch();">查询</a>
|
</td></tr>
|
</table>
|
</div>
|
</div>
|
|
<div class="fs_navtitle" >
|
<div class="fs_navtitle_con common_list" style="margin:0 15px;">
|
<div class="fsnt_btn">
|
<a class="operating_conmon" href="javascript:edit('');"><span>新增计划</span></a>
|
</div>
|
</div>
|
</div>
|
<div class="fs_main clearfix">
|
<div id="main"></div>
|
<div class="paging clearfix" id="pagination"></div>
|
</div>
|
<script type="text/javascript">
|
var nowPage = 1;
|
var cusId = '${RequestParameters.customerId}';
|
function query(){
|
var subCusId = $("#subCusId").val();
|
var state = $("#state").val();
|
var params = {'subCusId':subCusId,'state':state,'cusId':cusId};
|
pagination("${base}/business/pages/health/healthPlanData.html","${base}/business/pages/health/healthPlanCount.html","main","pagination",{cpage:nowPage,psize:10},params,function(data,page) {
|
nowPage = page;
|
});
|
}
|
|
$(function() {
|
query();
|
|
$("#reset").click(function() {
|
window.location.reload(true);
|
});
|
})
|
|
function psearch() {
|
nowPage = 1;
|
query();
|
}
|
|
function edit(id){
|
var url = "${base}/business/pages/health/editHealthPlan.html?id="+id+"&cusId="+cusId;
|
window.top.openDialog("0","新增/编辑",
|
{},
|
{"width":50,"height":50},
|
[{btnId:"btnSure", btnName:"提交", btnStyle:"bluebtn"}],
|
url);
|
}
|
|
function detail(id){
|
var url = "${base}/business/pages/health/healthPlanDetail.html?id="+id;
|
window.top.openDialog("0","详情",
|
{},
|
{"width":50,"height":60},
|
[],
|
url);
|
}
|
|
function del(id,state){
|
var msg = "";
|
if(state == 0){
|
msg = "是否禁用该健康检查计划?";
|
}else{
|
msg = "是否启用该健康检查计划?";
|
}
|
window.top.confirmInfo('提示', msg, function(){
|
$.get("${base}/business/pages/health/delHealthPlan.html", {'id':id,"state":state},function(data){
|
if(data == "1"){
|
popupTips("操作成功");
|
query();
|
} else {
|
popupTips("操作失败");
|
}
|
});
|
})
|
}
|
</script>
|
[#include "/business/pages/include/footer.html" /]
|
</body>
|
</html>
|