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
548b70d2
Commit
548b70d2
authored
Jan 24, 2025
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴角色信息改造
parent
986801ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
6 deletions
+51
-6
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+25
-5
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+26
-1
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
548b70d2
...
@@ -195,8 +195,11 @@
...
@@ -195,8 +195,11 @@
//删除角色按钮
//删除角色按钮
window['${/parameter/@layout_code}_G_ROLE_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
window['${/parameter/@layout_code}_G_ROLE_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var records = $(ds_id).getSelected();
var records = $(ds_id).getSelected();
var bp_records = $(bp_ds_id).getCurrentRecord();
if (!records.length) {
if (!records.length) {
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录');
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录');
return false;
return false;
...
@@ -206,14 +209,27 @@
...
@@ -206,14 +209,27 @@
//}
//}
//alert(records.length);
//alert(records.length);
for (var i = 0; i < records.length; i++) {
for (var i = 0; i < records.length; i++) {
var primary_flag = records[i].get('primary_flag');
if(!Ext.isEmpty(bp_records.get('bp_id'))){
if (primary_flag == 'Y') {
if(!Ext.isEmpty(records[i].get('primary_flag_bak'))){
Leaf.showMessage('${l:PROMPT}', '主角色无法被删除!');
if(records[i].get('primary_flag_bak') == 'Y'){
continue;
$L.showMessage('提示','主角色无法被删除!');
} else {
return;
}
}
$(ds_id).remove(records[i]);
}else{
if(records[i].get('primary_flag') == 'Y'){
$L.showMessage('提示','主角色无法被删除!');
return;
}
$(ds_id).remove(records[i]);
$(ds_id).remove(records[i]);
}
}
}
}
if(!Ext.isEmpty(bp_records.get('bp_id'))){
setTimeout(function () {
$(ds_id).query();
}, 100)
}
};
};
//法人供应商经办人身份证号非必填 18083 2022/12/1
//法人供应商经办人身份证号非必填 18083 2022/12/1
...
@@ -819,6 +835,7 @@
...
@@ -819,6 +835,7 @@
// $(ds_id).query();
// $(ds_id).query();
//add by zc
//add by zc
var signer_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer');
var signer_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_signer');
var role_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
if(head_record.get('bp_id')){
if(head_record.get('bp_id')){
Leaf.request({
Leaf.request({
url: $('${/parameter/@layout_code}_signer_create_link_id').getUrl(),
url: $('${/parameter/@layout_code}_signer_create_link_id').getUrl(),
...
@@ -829,6 +846,9 @@
...
@@ -829,6 +846,9 @@
if($(signer_ds_id)){
if($(signer_ds_id)){
$(signer_ds_id).query();
$(signer_ds_id).query();
}
}
if($(role_ds_id)){
$(role_ds_id).query();
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
},
failure: function (res) {
failure: function (res) {
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
548b70d2
...
@@ -232,7 +232,29 @@
...
@@ -232,7 +232,29 @@
};
};
//商业伙伴角色信息删除
window['${/parameter/@layout_code}_G_ROLE_USER_BUTTON1_layout_dynamic_tab_click']
=
function()
{
debugger;
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_role');
var
records =
$(ds_id).getSelected();
Leaf.showConfirm('提示',
'是否确认删除',
function()
{
debugger;
var
records =
$(ds_id).getSelected();
if(
records.length =
=0){
$L.showMessage('提示','请至少选择一条数据!');
return;
}
for(var
i=
0;i<records.length;i++){
if(!Ext.isEmpty(records[i].get('primary_flag_bak'))){
if(records[i].get('primary_flag_bak')
==
'Y'){
$L.showMessage('提示','主角色无法被删除!');
return;
}
}
$(ds_id).remove(records[i]);
}
});
};
function
CheckSocialCreditCode(Code)
{
function
CheckSocialCreditCode(Code)
{
var
patrn =
/^[0-9A-Z]+$/;
var
patrn =
/^[0-9A-Z]+$/;
...
@@ -278,6 +300,7 @@
...
@@ -278,6 +300,7 @@
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_cdd_item_doc_ref');
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_cdd_item_doc_ref');
var
bp_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master');
var
bp_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master');
var
role_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_role');
var
records =
$(ds_id);
var
records =
$(ds_id);
if
(!(
records =
=
'undefined'
||
records =
=
null))
{
if
(!(
records =
=
'undefined'
||
records =
=
null))
{
$(ds_id).query();
$(ds_id).query();
...
@@ -296,6 +319,7 @@
...
@@ -296,6 +319,7 @@
},
},
success:
function
(res)
{
success:
function
(res)
{
$(signer_ds_id).query();
$(signer_ds_id).query();
$(role_ds_id).query();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
},
failure:
function
(res)
{
failure:
function
(res)
{
...
@@ -1610,6 +1634,7 @@
...
@@ -1610,6 +1634,7 @@
}
}
Leaf.onReady(function () {
Leaf.onReady(function () {
debugger;
//自然人不展示财报按钮
//自然人不展示财报按钮
if('${/parameter/@bp_class}' == 'NP'
&&
document.getElementById('${/parameter/@layout_code}_user_button2') ){
if('${/parameter/@bp_class}' == 'NP'
&&
document.getElementById('${/parameter/@layout_code}_user_button2') ){
document.getElementById('${/parameter/@layout_code}_user_button2').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_user_button2').style.display = 'none';
...
...
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