<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8" />
|
<title>变更CCB评审配置</title>
|
[#include "/business/pages/include/static.html" /]
|
<script type="text/javascript">
|
$(document).ready(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},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
|
return true;
|
|
}});
|
$("#tgbfj").formValidator({empty: false,onFocus: "请输入百分比"}).inputValidator({min: 1, onError: "请输入百分比!"}).functionValidator({fun: check});
|
});
|
function check(value) {
|
if(value<=0 || value>100){
|
popupTips("百分比为大于0,不大于100的数字");
|
$("#tgbfj").val("");
|
}
|
}
|
</script>
|
</head>
|
|
<body class="fullscreen">
|
[#include "/business/pages/include/header.html" /]
|
[#assign label = GnConstants.CCBCONFIG]
|
[#include "/business/pages/include/gps.html" /]
|
<div style="margin:10px;">
|
</div>
|
<div class="fs_main equip_add clearfix" >
|
<div class="equip_add_right equipdetail_basic" style="width:100%;float:none;">
|
<div class="deal_switch">
|
<h3>变更CCB评审配置</h3>
|
</div>
|
<div id="main" style="margin:15px;">
|
<form action="${base}/business/pages/change/changeCcbConfig.html" method="post" id="myform" name="myform">
|
<input type="hidden" value="${config.id}" name="id"/>
|
<table class="pab_con">
|
<tr>
|
<th align="right">评审通过条件:</th>
|
<td>
|
<input type="radio" value="1" class="pos tj" style="margin-right:5px;" name="tgtj" [#if config.TGTJ?? && config.TGTJ==1]checked[/#if]/><span style="margin-right:10px;">主负责人意见为主。(即主负责人通过则评审通过,主负责人不通过则评审不通过。)</span></br>
|
<input type="radio" value="2" class="pos tj" style="margin-right:5px;" name="tgtj" id="isbfj" [#if config.TGTJ?? && config.TGTJ==2]checked[/#if]/><span style="margin-right:10px;">__%人员通过为主。(即达到或超过X%人员通过则为评审通过,否则评审不通过。)</span>
|
</td>
|
</tr>
|
<tr >
|
<th align="right">通过百分比:</th>
|
<td style="text-align:left;">
|
<input type="text" value="${config.BFJ}" class="general" style="margin-right:5px;" name="tgbfj" id="tgbfj"/>%
|
<div id="tgbfjTip" style="display:inline-block;"></div>
|
</td>
|
</tr>
|
<tr>
|
<th align="center">评审不通过流转方案:</th>
|
<td>
|
<input type="radio" value="1" class="pos fa" name="lzfa" [#if config.LZFA?? && config.LZFA==1]checked[/#if]/><span style="margin-right:5px;">直接关闭流程</span></br>
|
<input type="radio" value="2" class="pos fa" name="lzfa" [#if config.LZFA?? && config.LZFA==2]checked[/#if]/><span style="margin-right:5px;">继续流程。(即下一环节负责人能够看到CCB评审结果,但由该负责人决定是关闭流程、回退或通过等操作。)</span></br>
|
</td>
|
</tr>
|
<tr >
|
<td colspan="2" style="text-align:center;"><a class="operating_conmon" style="margin-top:10px;" href="javascript:savePz();"><span style="color:#333333;">提交</span></a></td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
</div>
|
</div>
|
|
<script type="text/javascript">
|
function savePz() {
|
var $tgtjs = $("input[name=tgtj]:checked");
|
var $lzfas = $("input[name=lzfa]:checked");
|
if($tgtjs.length == 0){
|
popupTips("请选择评审通过条件");
|
return;
|
}
|
if($("#isbfj").attr("checked")&&$("#tgbfj").val()==""){
|
popupTips("请填写百分比");
|
return;
|
}
|
if($lzfas.length == 0){
|
popupTips("请选择评审不通过流转方案");
|
return;
|
}
|
$("#myform").submit();
|
}
|
$(":radio[name='tgtj']").click(function(){
|
if($(this).attr("value")==1){
|
$("#tgbfj").val("");
|
$("#tgbfj").attr("readonly","readonly");
|
$("#tgbfj").unFormValidator(true);
|
}else{
|
$("#tgbfj").removeAttr("readonly");
|
$("#tgbfj").unFormValidator(false);
|
}
|
});
|
</script>
|
|
[#include "/business/pages/include/footer.html" /]
|
</body>
|
</html>
|