推荐码根据等级显示

2019-06-12  本文已影响0人  F的平方

<script type="text/javascript">

  function hide_code(){

    var select_vl_code=$("#APPLE_LEVEL").val()-0;

    //推荐码所在行

    var aws_tjm=document.getElementById("aws_tjm");

    //推荐码的td

    var tjm_code=document.getElementById("tjm_code");

    if(select_vl_code==03||select_vl_code==04||select_vl_code==05){

      tjm_code.innerText ="";

      aws_tjm.style.visibility= "visible";

    }else{

      tjm_code.innerText ="";

      aws_tjm.style.visibility= "hidden";

    }

  }

</script>


<!DOCTYPE html>

<html>

<head>

<meta name="renderer" content="webkit">

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<title>资质申请</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<meta name="renderer" content="webkit">

<meta name="apple-mobile-web-app-capable" content="yes">

<meta name="apple-mobile-web-app-status-bar-style" content="black">

<!--公共的js和css start-->

[#AWSImport]

[#AWSUIImport]

<!--公共的js和css end-->

<!--配色方案-->

<link rel='stylesheet' id='schemeCss' href='../apps/_bpm.platform/css/colorschemes/scheme_1.css?v=1521618657000' name='schemeCss'/>

    <!--自定义显示规则 推荐码-->

<script type="text/javascript">

  function hide_code(){

    var select_vl_code=$("#APPLE_LEVEL").val()-0;

    //推荐码所在行

    var aws_tjm=document.getElementById("aws_tjm");

    //推荐码的td

    var tjm_code=document.getElementById("tjm_code");

    //推荐码lable的td

    var tjm_lable=document.getElementById("tjm_lable");

    if(select_vl_code==03||select_vl_code==04||select_vl_code==05){

      tjm_code.innerHTML ="<input type='text' class='txt' placeholder='' name='APPLY_RECOMMEND_CODE' id='APPLY_RECOMMEND_CODE' value='' >";

      tjm_lable.innerText="推荐码";

      AWSFormUI.setComponentAutoWidth($("#APPLY_RECOMMEND_CODE"));

      aws_tjm.style.visibility= "visible";

    }else{

      tjm_code.innerHTML ="<input type='text' class='txt' placeholder='' name='APPLY_RECOMMEND_CODE' id='APPLY_RECOMMEND_CODE' value='' style='background-color:white' >";

      aws_tjm.style.visibility= "hidden";

    }

  }

</script>

<link type='text/css' rel='stylesheet' id='themeCss' href='../apps/_bpm.platform/css/theme/theme.css' name='themeCss'/>

</head>

<body>

<form id="frmMain" method="post" name="frmMain">

<div id="aws-form-container" class="aws-form-ux-container" border="0">

<table id="aws-form-maintable" class="awsui-ux aws-form-ux-maintable" style="table-layout: auto;" border="0" cellspacing="0" cellpadding="0" align="center"><!--每个模板必须含有 aws-form-titlebg 和 title样式 否则无法应用配色风格-->

<tbody>

<tr id="aws-form-titlebg" class="aws-form-ux-titlebg"><!--若自定义模板title的 id -->

<td id="aws-form-title" class="aws-form-ux-header">资质申请</td>

</tr>

<tr id="aws-form-formcontent" class="aws-form-ux-formcontent">

<td>

<table id="table_container" class="awsui-ux table-striped" style="padding: 0px;" width="100%" cellspacing="3" cellpadding="0"><colgroup><col class="awsui-ux-title" /><col style="width: 50.0%;" /><col class="awsui-ux-title" /><col style="width: 50.0%;" /></colgroup>

<tbody>

<tr>

<td class="awsui-ux-title"><label id="SUPPLIER_NAMELabel" class="aws-form-ux-label" for="SUPPLIER_NAME">供应商名称</label></td>

<td class="aws-form-ux-content">[#SUPPLIER_NAME]</td>

<td class="awsui-ux-title"><label id="COM_CREDIT_CODELabel" class="aws-form-ux-label" for="COM_CREDIT_CODE">统一社会信用代码</label></td>

<td class="aws-form-ux-content">[#COM_CREDIT_CODE]</td>

</tr>

<tr>

<td class="awsui-ux-title"><label id="APPLY_PRODUCT_RANGELabel" class="aws-form-ux-label" for="APPLY_PRODUCT_RANGE">申请产品范围</label></td>

<td class="aws-form-ux-content">[#APPLY_PRODUCT_RANGE]</td>

<td class="awsui-ux-title"><label id="APPLY_PROCESS_RANGELabel" class="aws-form-ux-label" for="APPLY_PROCESS_RANGE">申请过程范围</label></td>

<td class="aws-form-ux-content">[#APPLY_PROCESS_RANGE]</td>

</tr>

<tr>

<td class="awsui-ux-title"><label id="APPLE_LEVELLabel" class="aws-form-ux-label" for="APPLE_LEVEL">申请评价等级</label></td>

<td class="aws-form-ux-content">[#APPLE_LEVEL]</td>

<td class="awsui-ux-title"><label id="TRAIN_QA_NOLabel" class="aws-form-ux-label" for="TRAIN_QA_NO">培训证书编号</label></td>

<td class="aws-form-ux-content">[#TRAIN_QA_NO]</td>

</tr>

<tr id="aws_tjm">

<td id="tjm_lable" class="awsui-ux-title">&nbsp;</td>

<td id="tjm_code" class="aws-form-ux-content">&nbsp;</td>

<td class="awsui-ux-title">&nbsp;</td>

<td class="aws-form-ux-content">&nbsp;</td>

</tr>

</tbody>

</table>

</td>

</tr>

<tr class="aws-form-bottom">

<td class="aws-form-ux-actionsoft">[#Actionsoft]

<div id="hiddenArea" border="0" style="display: none;">[#SUPPLIER_ID][#CA_NAME][#APPLY_STATE][#IS_DELETE][#APPLY_RECOMMEND_CODE]</div>

</td>

</tr>

</tbody>

</table>

</div>

</form>

<script id="formOnload">// <![CDATA[

function formOnload(){

}

// ]]></script>

</body>

</html>

上一篇下一篇

猜你喜欢

热点阅读