Commit ececdba2 authored by 25484's avatar 25484

[fix]代理店相关修改

parent ef52c630
......@@ -410,8 +410,8 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord();
if (ds_id == ds.id) {
record.set('taxpayer_type','Y');
record.set('taxpayer_type_n','否');
// record.set('taxpayer_type','Y');
// record.set('taxpayer_type_n','否');
if (record.get('taxpayer_type') == 'Y') {
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_bp_address').setRequired(true);
......@@ -466,15 +466,16 @@
var record = new Leaf.Record({
'primary_flag': 'Y',
'bp_category': 'AGENT',
'bp_category_n': '经销商',
'bp_category_n': '代理店',
'bp_type': 'AGENT',
'bp_type_n': '经销商',
'bp_type_n': '代理店',
'enabled_flag': 'Y'
});
bp_master_role_ds.add(record);
var current_record = bp_master_role_ds.getAt(0);
current_record.getField('primary_flag').setReadOnly(true);
current_record.getField('enabled_flag').setReadOnly(true);
current_record.getField('bp_type_n').setReadOnly(true);
}
});
]]></script>
......
......@@ -116,6 +116,8 @@
Leaf.showMessage('${l:PROMPT}', '必须维护租赁物信息且每种租赁物只能维护一次!');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}else{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
};
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
......@@ -267,14 +269,14 @@
var grid_id = ds_id.replace('ds', 'layout_grid_id');
$(grid_id).showEditorByRecord($(ds_id).create());
}
};
//删除
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_agent_renew');
$(ds_id).remove();
}
};
//超链接渲染
......
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