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
1104548a
Commit
1104548a
authored
Dec 02, 2022
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
法人供应商改造
parent
fd6fc38c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+20
-0
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+29
-0
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
1104548a
...
...
@@ -140,6 +140,7 @@
} else if (head_record.get('bp_category') == 'VENDER') {
bp_record.getField('unit_id_n').setReadOnly(true);
bp_record.getField('unit_id_n').setRequired(false);
bp_record.getField('unit_id').setRequired(false);
} else {
current_record.getField('bp_type_n').setReadOnly(true);
current_record.getField('enabled_flag').setReadOnly(true);
...
...
@@ -170,6 +171,21 @@
}
};
//法人供应商经办人身份证号非必填 18083 2022/11/28
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC', 'hls_bp_master');
var sign_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASIC_SIGNER', 'hls_bp_master_signer');
var bp_record=$(bp_ds_id).getCurrentRecord();
if(bp_record.get('bp_class') == 'ORG' && bp_record.get("bp_type") == 'VENDER'){
if(sign_ds_id == ds.id &&sign_ds_id){
var records = $(sign_ds_id).getAll();
for (i = 0; i < records.length; i++) {
records[i].getField('id_card').setRequired(false);
}
}
}
}
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
//第三方创建页面隐藏角色新增按钮
debugger;
...
...
@@ -208,6 +224,10 @@
// record.getField('cell_phone').setRequired(true);
//record.getField('cell_phone').setRequired(true);
//法人供应商非必填 18083 2022/11/25
if(record.get('bp_class') == 'ORG' && record.get("bp_type") == 'VENDER'){
record.getField('id_card_no_leg').setRequired(false);
}
//身份证验证
if (ds.fields.id_card_no) {
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
1104548a
...
...
@@ -403,6 +403,10 @@
record.getField('nationalities').setRequired(true);
}
}
//法人供应商非必填
18083
2022/11/25
if(record.get('bp_class')
==
'ORG'
&&
record.get("bp_type")
==
'VENDER'){
record.getField('id_card_no_leg').setRequired(false);
}
var
employee_type_id =
'${/model/modify_user/record/@employee_type_id}'
;
old_bp_name =
record.get('bp_name');
...
...
@@ -415,6 +419,7 @@
if
(record.get('bp_category')
==
'VENDER')
{
record.getField('unit_id_n').setReadOnly(true);
record.getField('unit_id_n').setRequired(false);
record.getField('unit_id').setRequired(false);
}
else
{
if
(
employee_type_id =
=
'64')
{
record.getField('unit_id_n').setReadOnly(true);
...
...
@@ -464,6 +469,18 @@
}
}
}
//法人供应商非必填
18083
2022/11/25
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC',
'hls_bp_master');
var
sign_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_SIGNER',
'hls_bp_master_signer');
var
bp_record=
$(bp_ds_id).getCurrentRecord();
if(bp_record.get('bp_class')
==
'ORG'
&&
bp_record.get("bp_type")
==
'VENDER'){
if(
sign_ds_id =
=
ds.id
&&sign_ds_id){
var
records =
$(sign_ds_id).getAll();
for
(
i =
0;
i
<
records.length;
i++)
{
records[i].getField('id_card').setRequired(false);
}
}
}
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function(ds,
record,
config_records,
bp_seq)
{
...
...
@@ -477,6 +494,18 @@
}
}
}
//法人供应商非必填
18083
2022/11/25
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC',
'hls_bp_master');
var
sign_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_SIGNER',
'hls_bp_master_signer');
var
bp_record=
$(bp_ds_id).getCurrentRecord();
if(bp_record.get('bp_class')
==
'ORG'
&&
bp_record.get("bp_type")
==
'VENDER'){
if(
sign_ds_id =
=
ds.id
&&sign_ds_id){
var
records =
$(sign_ds_id).getAll();
for
(
i =
0;
i
<
records.length;
i++)
{
records[i].getField('id_card').setRequired(false);
}
}
}
}
//更新时调用
add
by
liukang
...
...
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