Commit f7884697 authored by 18083's avatar 18083

新创建代理店追加商业伙伴自动带出居住地址

parent 712591f2
...@@ -99,8 +99,15 @@ ...@@ -99,8 +99,15 @@
'country_id': 32, 'country_id': 32,
'country_id_n': '中华人民共和国' 'country_id_n': '中华人民共和国'
}); });
var record3 = new Leaf.Record({
'address_type': 'HOUSE_ADDRESS',
'address_type_n': '居住住址',
'country_id': 32,
'country_id_n': '中华人民共和国'
});
address_ds_id_ds.add(record1); address_ds_id_ds.add(record1);
address_ds_id_ds.add(record2); address_ds_id_ds.add(record2);
address_ds_id_ds.add(record3);
var address_record = address_ds_id_ds.getAt(0); var address_record = address_ds_id_ds.getAt(0);
address_record.getField('address_type_n').setReadOnly(true); address_record.getField('address_type_n').setReadOnly(true);
...@@ -110,6 +117,10 @@ ...@@ -110,6 +117,10 @@
address_record1.getField('address_type_n').setReadOnly(true); address_record1.getField('address_type_n').setReadOnly(true);
address_record1.getField('country_id_n').setReadOnly(true); address_record1.getField('country_id_n').setReadOnly(true);
var address_record2 = address_ds_id_ds.getAt(2);
address_record2.getField('address_type_n').setReadOnly(true);
address_record2.getField('country_id_n').setReadOnly(true);
}else if (address_bp_record.get('bp_class') == 'ORG'&&record.get('bp_type') != 'THIRD_PARTY'){ }else if (address_bp_record.get('bp_class') == 'ORG'&&record.get('bp_type') != 'THIRD_PARTY'){
//法人 //法人
//POSTAL_ADDRESS 通讯地址 //POSTAL_ADDRESS 通讯地址
...@@ -120,11 +131,21 @@ ...@@ -120,11 +131,21 @@
'country_id': 32, 'country_id': 32,
'country_id_n': '中华人民共和国' 'country_id_n': '中华人民共和国'
}); });
var record3 = new Leaf.Record({
'address_type': 'HOUSE_ADDRESS',
'address_type_n': '居住住址',
'country_id': 32,
'country_id_n': '中华人民共和国'
});
address_ds_id_ds.add(record2); address_ds_id_ds.add(record2);
address_ds_id_ds.add(record3);
var address_record = address_ds_id_ds.getAt(0); var address_record = address_ds_id_ds.getAt(0);
address_record.getField('address_type_n').setReadOnly(true); address_record.getField('address_type_n').setReadOnly(true);
address_record.getField('country_id_n').setReadOnly(true); address_record.getField('country_id_n').setReadOnly(true);
var address_record1 = address_ds_id_ds.getAt(1);
address_record1.getField('address_type_n').setReadOnly(true);
address_record1.getField('country_id_n').setReadOnly(true);
} }
//征信 企业默认添加 法定代表人 企业关联信息记录 add start //征信 企业默认添加 法定代表人 企业关联信息记录 add start
var company_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_company_info'); var company_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_company_info');
......
...@@ -100,8 +100,15 @@ ...@@ -100,8 +100,15 @@
'country_id': 32, 'country_id': 32,
'country_id_n': '中华人民共和国' 'country_id_n': '中华人民共和国'
}); });
var record3 = new Leaf.Record({
'address_type': 'HOUSE_ADDRESS',
'address_type_n': '居住住址',
'country_id': 32,
'country_id_n': '中华人民共和国'
});
address_ds_id_ds.add(record1); address_ds_id_ds.add(record1);
address_ds_id_ds.add(record2); address_ds_id_ds.add(record2);
address_ds_id_ds.add(record3);
var address_record = address_ds_id_ds.getAt(0); var address_record = address_ds_id_ds.getAt(0);
address_record.getField('address_type_n').setReadOnly(true); address_record.getField('address_type_n').setReadOnly(true);
...@@ -111,6 +118,10 @@ ...@@ -111,6 +118,10 @@
address_record1.getField('address_type_n').setReadOnly(true); address_record1.getField('address_type_n').setReadOnly(true);
address_record1.getField('country_id_n').setReadOnly(true); address_record1.getField('country_id_n').setReadOnly(true);
var address_record2 = address_ds_id_ds.getAt(2);
address_record2.getField('address_type_n').setReadOnly(true);
address_record2.getField('country_id_n').setReadOnly(true);
}else if (address_bp_record.get('bp_class') == 'ORG'&&record.get('bp_type') != 'THIRD_PARTY'){ }else if (address_bp_record.get('bp_class') == 'ORG'&&record.get('bp_type') != 'THIRD_PARTY'){
//法人 //法人
//POSTAL_ADDRESS 通讯地址 //POSTAL_ADDRESS 通讯地址
...@@ -120,12 +131,23 @@ ...@@ -120,12 +131,23 @@
'address_type_n': '通讯地址', 'address_type_n': '通讯地址',
'country_id': 32, 'country_id': 32,
'country_id_n': '中华人民共和国' 'country_id_n': '中华人民共和国'
});
var record3 = new Leaf.Record({
'address_type': 'HOUSE_ADDRESS',
'address_type_n': '居住住址',
'country_id': 32,
'country_id_n': '中华人民共和国'
}); });
address_ds_id_ds.add(record2); address_ds_id_ds.add(record2);
address_ds_id_ds.add(record3);
var address_record = address_ds_id_ds.getAt(0); var address_record = address_ds_id_ds.getAt(0);
address_record.getField('address_type_n').setReadOnly(true); address_record.getField('address_type_n').setReadOnly(true);
address_record.getField('country_id_n').setReadOnly(true); address_record.getField('country_id_n').setReadOnly(true);
var address_record1 = address_ds_id_ds.getAt(1);
address_record1.getField('address_type_n').setReadOnly(true);
address_record1.getField('country_id_n').setReadOnly(true);
} }
//征信 企业默认添加 法定代表人 企业关联信息记录 add start //征信 企业默认添加 法定代表人 企业关联信息记录 add start
var company_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_company_info'); var company_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_company_info');
......
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