Commit 992653c5 authored by lijingjing's avatar lijingjing

[fix]报价详情页面修改

parent dacba608
......@@ -435,15 +435,17 @@
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
if ( record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_branch_name',null);
record.set('bank_branch_name_n',null);
record.getField('bank_branch_name').setReadOnly(true);
record.getField('bank_branch_name_n').setReadOnly(true);
record.getField('bank_branch_name').setRequired(true);
record.getField('bank_branch_name_n').setRequired(true)
record.getField('bank_branch_name').setRequired(false);
record.getField('bank_branch_name_n').setRequired(false);
}else{
record.getField('bank_branch_name').setReadOnly(false);
record.getField('bank_branch_name_n').setReadOnly(false);
record.getField('bank_branch_name').setRequired(false);
record.getField('bank_branch_name_n').setRequired(false)
record.getField('bank_branch_name').setRequired(true);
record.getField('bank_branch_name_n').setRequired(true);
}
};
......
......@@ -477,13 +477,17 @@ 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) {
if ( record.get('pay_method') == 'WIRE_TRANSFER') {
record.set('bank_branch_name',null);
record.set('bank_branch_name_n',null);
record.getField('bank_branch_name').setReadOnly(true);
record.getField('bank_branch_name_n').setReadOnly(true);
record.getField('bank_branch_name').setRequired(false);
record.getField('bank_branch_name_n').setRequired(false)
record.getField('bank_branch_name').setRequired(false);
record.getField('bank_branch_name_n').setRequired(false);
}else{
record.getField('bank_branch_name').setReadOnly(false);
record.getField('bank_branch_name_n').setReadOnly(false);
record.getField('bank_branch_name').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