Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
afe6a3f9
Commit
afe6a3f9
authored
Jan 14, 2021
by
niminmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴变更优化
parent
b1b73f88
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
38 deletions
+79
-38
hls_bp_master_req_submit.lwm
.../WEB-INF/classes/hls/HLS214N/hls_bp_master_req_submit.lwm
+11
-0
con_contract_get_layout_code.lview
...pp/modules/cont/CON500/con_contract_get_layout_code.lview
+28
-1
hls_bp_master_modify_entrance.lview
...p/modules/hls/HLS214N/hls_bp_master_modify_entrance.lview
+40
-37
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS214N/hls_bp_master_req_submit.lwm
View file @
afe6a3f9
...
...
@@ -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
...
...
src/main/webapp/modules/cont/CON500/con_contract_get_layout_code.lview
View file @
afe6a3f9
...
...
@@ -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')&¶m['change_req_id']&¶m['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>
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify_entrance.lview
View file @
afe6a3f9
...
...
@@ -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);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment