首页 > 其他分享 >Meeting If meeting vendor used 逻辑控制

Meeting If meeting vendor used 逻辑控制

时间:2023-02-24 13:12:17浏览次数:31  
标签:used vendor name parent value fd extendDataFormInfo textarea Meeting

<script type="text/javascript">
AttachXFormValueChangeEventById("fd_3b62aa9b02b65e",function(){
  var fd_3b62aa9b02b65e = $("input[name='extendDataFormInfo.value(fd_3b62aa9b02b65e)']:checked").val();
  console.log(fd_3b62aa9b02b65e);
  //人数
  var fd_3b62a64dc294ba = GetXFormFieldValueById("fd_3b62a64dc294ba");
  //金额
  var fd_3b62a6667f5766 = GetXFormFieldValueById("fd_3b62a6667f5766");
  if(fd_3b62aa9b02b65e ==1 &&  parseInt(fd_3b62a64dc294ba)< 50&&  parseInt(fd_3b62a6667f5766) >=70000){
    SetXFormFieldValueById("fd_3b6308fc0758e4","Exception: Not up to the standard for the usage of meeting vendor");
    $("input[name='extendDataFormInfo.value(fd_3b6308fc0758e4)']").css("color","red");

    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").parent().parent().parent().css("display",'revert');
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").attr("validate","required");
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").next().show();

  }else if(fd_3b62aa9b02b65e ==1 &&  parseInt(fd_3b62a64dc294ba)< 50&&  parseInt(fd_3b62a6667f5766) < 70000){
    SetXFormFieldValueById("fd_3b6308fc0758e4","Exception: Not up to the standard for the usage of meeting vendore");
    $("input[name='extendDataFormInfo.value(fd_3b6308fc0758e4)']").css("color","red");
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").parent().parent().parent().css("display",'revert');
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").attr("validate","required");
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").next().show();
  }else {
    SetXFormFieldValueById("fd_3b6308fc0758e4","Pass: Meet the criteria for the usage of meeting vendor");
    $("input[name='extendDataFormInfo.value(fd_3b6308fc0758e4)']").css("color","#333333");
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").parent().parent().parent().css("display",'none');
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").removeAttr("validate");
    $("textarea[name='extendDataFormInfo.value(fd_3b949b1911c04a)']").next().hide();
  }
});
</script>

 

标签:used,vendor,name,parent,value,fd,extendDataFormInfo,textarea,Meeting
From: https://www.cnblogs.com/dzx-fiona/p/17151046.html

相关文章