Commit afe6a3f9 authored by niminmin's avatar niminmin

商业伙伴变更优化

parent b1b73f88
......@@ -7,6 +7,17 @@
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_bp_master_change_req_pkg.check_hls_bp_master_save(p_function_code => ${@function_code},
p_change_req_id => ${@change_req_id},
p_user_id => ${/session/@user_id}
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
......
......@@ -79,7 +79,13 @@
if(list_ds=='acp522_acp_invoice_import_detail_ds'){
location.reload();
}else{
}else if((param['function_code']=='HLS214B'||param['function_code']=='HLS214F')&&param['change_req_id']&&param['delete_flag']=='Y'){
check_hls_bp_master(param['function_code'],param['change_req_id']);
if (list_ds) {
$(list_ds).query();
}
}
else{
if (list_ds) {
$(list_ds).query();
}}
......@@ -179,6 +185,27 @@
}
return '';
}
function check_hls_bp_master(function_code,change_req_id){
debugger;
var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_submit/update';
Leaf.request({
url: url,
para: {
function_code:function_code,
change_req_id: change_req_id
},
success: function (res) {
Leaf.Masker.unmask(Ext.getBody());
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}
]]></script>
</a:view>
</a:screen>
......@@ -43,44 +43,45 @@
var bp_class = record.get('bp_class');
if(record.get('invoice_wfl_status') == 'APPROVING' || record.get('bp_wfl_status') == 'APPROVING'){
//审批中调用
// param['function_code'] = 'HLS214B';
// param['bp_class'] = bp_class;
// param['url_title'] = '开票申请信息';
param['function_code'] = 'HLS214BR_Q';
param['bp_class'] = bp_class;
param['url_title'] = '开票申请信息';
// param['change_req_id'] = res.result.change_req_id;
// param['document_id'] = res.result.change_req_id;
param['document_id'] = record.get('bp_id');
param['function_usage'] = 'QUERY';
param['query_only'] = 'Y';
// window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
// var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_create/update';
// Leaf.request({
// url: url,
// para: {
// bp_id: record.get('bp_id'),
// change_type: 'INVOICE_REQ'
// },
// success: function (res) {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// if (res.result.change_req_id) {
// // 展示变更信息
// param['winid'] = 'bp_master_invoice_detail_win';
// param['function_code'] = 'HLS214BR';
// param['function_usage'] = 'MODIFY';
// param['query_only'] = 'N';
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var url = '${/request/@context_path}/autocrud/hls.HLS214N.hls_bp_master_req_create/update';
Leaf.request({
url: url,
para: {
bp_id: record.get('bp_id'),
change_type: 'INVOICE_REQ'
},
success: function (res) {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
if (res.result.change_req_id) {
// 展示变更信息
param['winid'] = 'bp_master_invoice_detail_win';
param['function_code'] = 'HLS214BR';
param['function_usage'] = 'MODIFY';
param['query_only'] = 'N';
param['bp_class'] = bp_class;
param['change_req_id'] = res.result.change_req_id;
param['document_id'] = res.result.change_req_id;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
}
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
scope: this
});
// param['bp_class'] = bp_class;
// param['change_req_id'] = res.result.change_req_id;
// param['document_id'] = res.result.change_req_id;
// param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
// hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
// }
// },
// failure: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// error: function () {
// window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// },
// scope: this
// });
}else if (record.get('invoice_wfl_status') != 'APPROVING' && record.get('bp_wfl_status') != 'APPROVING'){
//审批通过调用
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
......@@ -104,6 +105,7 @@
param['document_id'] = res.result.change_req_id;
param['function_usage'] = 'MODIFY';
param['query_only'] = 'N';
param['delete_flag'] = 'Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_billing_link', ds_id);
}
......@@ -159,6 +161,7 @@
param['bp_name_updated_flag'] = record.get('bp_name_updated_flag');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
param['delete_flag'] = 'Y';
// param['layout_debugger_flag']='Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}
......
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