Commit 1104548a authored by 18083's avatar 18083

法人供应商改造

parent fd6fc38c
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
} else if (head_record.get('bp_category') == 'VENDER') { } else if (head_record.get('bp_category') == 'VENDER') {
bp_record.getField('unit_id_n').setReadOnly(true); bp_record.getField('unit_id_n').setReadOnly(true);
bp_record.getField('unit_id_n').setRequired(false); bp_record.getField('unit_id_n').setRequired(false);
bp_record.getField('unit_id').setRequired(false);
} else { } else {
current_record.getField('bp_type_n').setReadOnly(true); current_record.getField('bp_type_n').setReadOnly(true);
current_record.getField('enabled_flag').setReadOnly(true); current_record.getField('enabled_flag').setReadOnly(true);
...@@ -170,6 +171,21 @@ ...@@ -170,6 +171,21 @@
} }
}; };
//法人供应商经办人身份证号非必填 18083 2022/11/28
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var sign_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_SIGNER', 'hls_bp_master_signer');
var bp_record=$(bp_ds_id).getCurrentRecord();
if(bp_record.get('bp_class') == 'ORG' && bp_record.get("bp_type") == 'VENDER'){
if(sign_ds_id == ds.id &&sign_ds_id){
var records = $(sign_ds_id).getAll();
for (i = 0; i < records.length; i++) {
records[i].getField('id_card').setRequired(false);
}
}
}
}
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) { window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
//第三方创建页面隐藏角色新增按钮 //第三方创建页面隐藏角色新增按钮
debugger; debugger;
...@@ -208,6 +224,10 @@ ...@@ -208,6 +224,10 @@
// record.getField('cell_phone').setRequired(true); // record.getField('cell_phone').setRequired(true);
//record.getField('cell_phone').setRequired(true); //record.getField('cell_phone').setRequired(true);
//法人供应商非必填 18083 2022/11/25
if(record.get('bp_class') == 'ORG' && record.get("bp_type") == 'VENDER'){
record.getField('id_card_no_leg').setRequired(false);
}
//身份证验证 //身份证验证
if (ds.fields.id_card_no) { if (ds.fields.id_card_no) {
......
...@@ -402,6 +402,10 @@ ...@@ -402,6 +402,10 @@
record.getField('industry_n').setRequired(true); record.getField('industry_n').setRequired(true);
record.getField('nationalities').setRequired(true); record.getField('nationalities').setRequired(true);
} }
}
//法人供应商非必填 18083 2022/11/25
if(record.get('bp_class') == 'ORG' && record.get("bp_type") == 'VENDER'){
record.getField('id_card_no_leg').setRequired(false);
} }
var employee_type_id = '${/model/modify_user/record/@employee_type_id}'; var employee_type_id = '${/model/modify_user/record/@employee_type_id}';
...@@ -415,6 +419,7 @@ ...@@ -415,6 +419,7 @@
if (record.get('bp_category') == 'VENDER') { if (record.get('bp_category') == 'VENDER') {
record.getField('unit_id_n').setReadOnly(true); record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(false); record.getField('unit_id_n').setRequired(false);
record.getField('unit_id').setRequired(false);
} else { } else {
if (employee_type_id == '64') { if (employee_type_id == '64') {
record.getField('unit_id_n').setReadOnly(true); record.getField('unit_id_n').setReadOnly(true);
...@@ -464,6 +469,18 @@ ...@@ -464,6 +469,18 @@
} }
} }
} }
//法人供应商非必填 18083 2022/11/25
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var sign_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_SIGNER', 'hls_bp_master_signer');
var bp_record=$(bp_ds_id).getCurrentRecord();
if(bp_record.get('bp_class') == 'ORG' && bp_record.get("bp_type") == 'VENDER'){
if(sign_ds_id == ds.id &&sign_ds_id){
var records = $(sign_ds_id).getAll();
for (i = 0; i < records.length; i++) {
records[i].getField('id_card').setRequired(false);
}
}
}
}; };
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) {
...@@ -477,6 +494,18 @@ ...@@ -477,6 +494,18 @@
} }
} }
} }
//法人供应商非必填 18083 2022/11/25
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var sign_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_SIGNER', 'hls_bp_master_signer');
var bp_record=$(bp_ds_id).getCurrentRecord();
if(bp_record.get('bp_class') == 'ORG' && bp_record.get("bp_type") == 'VENDER'){
if(sign_ds_id == ds.id &&sign_ds_id){
var records = $(sign_ds_id).getAll();
for (i = 0; i < records.length; i++) {
records[i].getField('id_card').setRequired(false);
}
}
}
} }
//更新时调用 add by liukang //更新时调用 add by liukang
......
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