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