Commit 2f19097c authored by xy's avatar xy

[建机]虚拟代理店-付款申请调整

parent 03162d19
...@@ -173,6 +173,19 @@ ...@@ -173,6 +173,19 @@
}, 5); }, 5);
} }
} }
//add by 18938 承租人金额为0时 承租人账户信息为可输
if(is_constru_unit == 'Y'){
if(name == 'amount_tenant'){
if(record.get('amount_tenant') == 0){
record.getField('tenant_bank_account_number').setRequired(false);
record.getField('tenant_bank_account_number_n').setRequired(false);
}else{
record.getField('tenant_bank_account_number').setRequired(true);
record.getField('tenant_bank_account_number_n').setRequired(true);
}
}
}
//end
} }
}; };
...@@ -244,13 +257,14 @@ ...@@ -244,13 +257,14 @@
//买断机 应付承租人金额为必填项 应付我司金额为只读项且默认为0 //买断机 应付承租人金额为必填项 应付我司金额为只读项且默认为0
records[i].getField('amount_tenant').setRequired(true); records[i].getField('amount_tenant').setRequired(true);
records[i].getField('amount_agent').setReadOnly(true); records[i].getField('amount_agent').setReadOnly(true);
records[i].getField('tenant_bank_account_number').setRequired(true);
records[i].getField('tenant_bank_account_number_n').setRequired(true);
}else{ }else{
//非买断机 应付承租人金额为只读项,默认为0,承租人账号为非必填 应付我司金额为只读项且默认为0 委托付款金额为必填项(界面已配置) //非买断机 应付承租人金额为只读项,默认为0,承租人账号为非必填 应付我司金额为只读项且默认为0 委托付款金额为必填项(界面已配置)
records[i].getField('amount_tenant').setReadOnly(true); records[i].getField('amount_tenant').setReadOnly(true);
records[i].getField('amount_agent').setReadOnly(true); records[i].getField('amount_agent').setReadOnly(true);
}
if(records[i].get('amount_tenant') > 0){
records[i].getField('tenant_bank_account_number').setRequired(true);
records[i].getField('tenant_bank_account_number_n').setRequired(true);
} }
} }
} }
...@@ -331,13 +345,15 @@ ...@@ -331,13 +345,15 @@
//买断机 应付承租人金额为必填项 应付我司金额为只读项且默认为0 承租人账号必填 //买断机 应付承租人金额为必填项 应付我司金额为只读项且默认为0 承租人账号必填
records[i].getField('amount_tenant').setRequired(true); records[i].getField('amount_tenant').setRequired(true);
records[i].getField('amount_agent').setReadOnly(true); records[i].getField('amount_agent').setReadOnly(true);
records[i].getField('tenant_bank_account_number').setRequired(true);
records[i].getField('tenant_bank_account_number_n').setRequired(true);
}else{ }else{
//非买断机 应付承租人金额为只读项,默认为0,承租人账号为非必填 应付我司金额为只读项且默认为0 委托付款金额为必填项(界面已配置) //非买断机 应付承租人金额为只读项,默认为0,承租人账号为非必填 应付我司金额为只读项且默认为0 委托付款金额为必填项(界面已配置)
records[i].getField('amount_tenant').setReadOnly(true); records[i].getField('amount_tenant').setReadOnly(true);
records[i].getField('amount_agent').setReadOnly(true); records[i].getField('amount_agent').setReadOnly(true);
} }
if(records[i].get('amount_tenant') > 0){
records[i].getField('tenant_bank_account_number').setRequired(true);
records[i].getField('tenant_bank_account_number_n').setRequired(true);
}
} }
} }
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment