1.本方账户校验bug修改

This commit is contained in:
zhangbb 2020-01-13 14:39:16 +08:00
parent 4fededa019
commit 3fbc2715f0

View File

@ -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("相同类型的账户只能存在一个,请检查(银行账号类型 ,是否为企银直连,银行账户用途,状态等字段)!");