Commit 69dad480 authored by lijingjing's avatar lijingjing

[fix] 报价详情支付预定日修改

parent 9f10c9dc
...@@ -478,6 +478,7 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -478,6 +478,7 @@ function prj501n_contract_number_renderer(id, name, query_only){
}; };
//更新时调用 //更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
if(name=='pay_method'){
if ( record.get('pay_method') == 'WIRE_TRANSFER') { if ( record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_branch_name',null); record.set('bank_branch_name',null);
record.set('bank_branch_name_n',null); record.set('bank_branch_name_n',null);
...@@ -485,12 +486,14 @@ function prj501n_contract_number_renderer(id, name, query_only){ ...@@ -485,12 +486,14 @@ function prj501n_contract_number_renderer(id, name, query_only){
record.getField('bank_branch_name_n').setReadOnly(true); record.getField('bank_branch_name_n').setReadOnly(true);
record.getField('bank_branch_name').setRequired(false); record.getField('bank_branch_name').setRequired(false);
record.getField('bank_branch_name_n').setRequired(false); record.getField('bank_branch_name_n').setRequired(false);
}else{ } else {
record.getField('bank_branch_name').setReadOnly(false); record.getField('bank_branch_name').setReadOnly(false);
record.getField('bank_branch_name_n').setReadOnly(false); record.getField('bank_branch_name_n').setReadOnly(false);
record.getField('bank_branch_name').setRequired(true); record.getField('bank_branch_name').setRequired(true);
record.getField('bank_branch_name_n').setRequired(true); record.getField('bank_branch_name_n').setRequired(true);
} }
}
}; };
......
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