Commit aa5f1ded authored by 25484's avatar 25484

[fix]商业伙伴修改

parent 153ff078
......@@ -11,7 +11,7 @@
<a:model-query fetchAll="true" model="hls.HLS213N.hls_bp_master_unit" rootPath="user_agent_description"/>
</a:init-procedure>
<a:view>
<a:link id="get_special_fields_link_id" model="cont.CON500.con_contract_get_special_fields"
<a:link id="get_special_fields_link_id" model="hls.HLS213N.social_code_exist"
modelaction="update"/>
<a:link id="gh_nc_post_addsupplierinfo_link" model="hls.HLS213.hls_bp_master_nc_post" modelaction="update"/>
<a:link id="hls214N_cdd_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
......@@ -451,6 +451,8 @@
document_category: 'BP',
document_type: head_record.get('bp_type'),
// document_type: 'TENANT',
social_code: head_record.get('social_code'),
exist_flag: 'Y',
bp_class: head_record.get('bp_class'),
id_type: head_record.get('id_type'),
id_card_no: head_record.get('id_card_no'),
......@@ -462,10 +464,17 @@
},
success: function (res) {
var document_number = res.result.document_number;
head_record.set('bp_code', document_number);
head_record.set('company_id', '${/session/@company_id}');
head_record.set('unbrand', '${/parameter/@unbrand}');
var exist_flag = res.result.exist_flag;
// alert(exist_flag);
check_flag = true;
if(exist_flag == 'Y'){
head_record.set('bp_code', document_number);
head_record.set('company_id', '${/session/@company_id}');
head_record.set('unbrand', '${/parameter/@unbrand}');
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}else{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
......
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