diff --git a/WebContent/Tenwa/Core/SystemConfig/OwnConfig/BOwnAccount/BOwnAccount.jsp b/WebContent/Tenwa/Core/SystemConfig/OwnConfig/BOwnAccount/BOwnAccount.jsp index 8f9b3c6e1..7f03fa21c 100644 --- a/WebContent/Tenwa/Core/SystemConfig/OwnConfig/BOwnAccount/BOwnAccount.jsp +++ b/WebContent/Tenwa/Core/SystemConfig/OwnConfig/BOwnAccount/BOwnAccount.jsp @@ -92,14 +92,16 @@ var state = getItemValue(0, 0, "state_"); var FbSdk = getItemValue(0,0,"FbSdk"); var id= getItemValue(0, 0, "id"); - if(accountType=="in_account"){ + if(accountType=="in_account" && getItemValue(0, 0, "FbSdk")=="Y"){ setItemValue(0,0,"FbSdk", "N"); + hideItemRequired(0,"branch_code"); + hideItem(0,"branch_code"); alert("收款暂不支持银企直连!"); return; } var sParams = "accountType="+accountType+",accType="+accType+",state="+state+",FbSdk="+FbSdk+",ownId="+ownId; var sReturn = RunJavaMethodTrans("com.tenwa.reckon.copydata.CalcRentCompare", "compare",sParams ); - if(sReturn=="null"||sReturn==id){ + if(sReturn=="null"||sReturn==id||state!="0010"){ as_save("myiframe0","parent.AsDialog.ClosePage()"); }else{ alert("相同类型的账户只能存在一个,请检查(银行账号类型 ,是否为企银直连,银行账户用途,状态等字段)!");