Commit 27807866 authored by 18083's avatar 18083

代理店创建调整

parent ddcbcfcb
...@@ -218,6 +218,19 @@ ...@@ -218,6 +218,19 @@
//变更时调用 18083 2022/11/30 新增变更方法 //变更时调用 18083 2022/11/30 新增变更方法
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) {
var agent_division_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_agent_division');
if (agent_division_ds_id == ds.id &&agent_division_ds_id) {
var division = record.get('division');
if(division!='70'){
record.getField('division_detail').setReadOnly(true);
record.getField('division_detail_n').setReadOnly(true);
record.set('division_detail','');
record.set('division_detail_n','');
}else{
record.getField('division_detail').setReadOnly(false);
record.getField('division_detail_n').setReadOnly(false);
}
}
var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var f_bp_create_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds.id == f_bp_create_ds_id) { if (ds.id == f_bp_create_ds_id) {
if(name == 'invoice_type'){ if(name == 'invoice_type'){
...@@ -573,6 +586,17 @@ ...@@ -573,6 +586,17 @@
//新增时调用(grid,table,gridBox) //新增时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
var agent_division_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_agent_division');
if (agent_division_ds_id == ds.id && agent_division_ds_id) {
var records = $(agent_division_ds_id).getAll();
for (i = 0;i < records.length;i++) {
if(records[i].get('division')!='70'){
records[i].getField('division_detail').setReadOnly(true);
records[i].getField('division_detail_n').setReadOnly(true);
}
}
}
var role_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role'); var role_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master'); var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord(); var bp_record = $(ds_id).getCurrentRecord();
......
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