From 7e2c7327bc6887863fa3b807e7f050192d2d8cc7 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 11 Jul 2018 09:50:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=94=B3=E8=AF=B7=EF=BC=8C?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=AE=A1=E6=89=B9=E8=A1=A8=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=90=8E=E5=88=9D=E5=A7=8B=E5=8C=96=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=B8=8B=E6=8B=89=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessApplication/ApprovalForm.jsp | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp index a97826b42..de02ec92f 100644 --- a/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp +++ b/WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp @@ -155,6 +155,39 @@ //$("#FULLNAME").attr("style","color:red;"); $("#CERTID").css("color","red"); } + var firstchoice = getItemValue(0,0,"firstchoice"); + if(firstchoice==""){ + setItemRequired(0,"InterOpinion1",false); + setItemRequired(0,"DistriOpinion1",false); + $("#FIRSTOPINION").removeAttr("disabled"); + } + if(firstchoice=="0010"){ + setItemRequired(0,"A_div_1220",true); + setItemRequired(0,"InterOpinion1",false); + setItemRequired(0,"DistriOpinion1",true); + $("#FIRSTOPINION").removeAttr("disabled"); + var obj=document.getElementById('FIRSTOPINION'); + for(var i=0;i<7;i++){ + obj.options[i].style.display = "block"; + } + obj.options[7].style.display = "none"; + } + if(firstchoice=="0020"){ + setItemRequired(0,"InterOpinion1",true); + setItemRequired(0,"DistriOpinion1",false); + $("#FIRSTOPINION").removeAttr("disabled"); + var obj=document.getElementById('FIRSTOPINION'); + for(var i=0;i<7;i++){ + obj.options[i].style.display = "none"; + } + obj.options[7].style.display = "block"; + } + if(firstchoice=="0030"){ + setItemRequired(0,"InterOpinion1",false); + setItemRequired(0,"DistriOpinion1",true); + setItemValue(0,0,"firstopinion",""); + $("#FIRSTOPINION").attr("disabled","disabled"); + } }) function checkCertId(){//УÑéÖ¤¼þºÅ