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
c5ebe9fa
Commit
c5ebe9fa
authored
Oct 10, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴经办人 身份证号唯一性校验
parent
d67c62ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
1 deletion
+79
-1
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+31
-1
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+30
-0
hls_bp_master_req_modify.lview
...webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
+18
-0
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
c5ebe9fa
...
...
@@ -196,7 +196,6 @@
};
//法人供应商经办人身份证号非必填 18083 2022/12/1
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');
...
...
@@ -209,6 +208,19 @@
}
}
}
//经办人身份信息校验
if(sign_ds_id==ds.id && sign_ds_id){
var sign_record = $(sign_ds_id).getAll();
var check_num=0;
if(sign_record[0].data.id_card != undefined){
check_num++;
}
if(check_num==0){
$(sign_ds_id).remove(sign_record[0]);
Leaf.showErrorMessage("提示","请先保存!");
return false;
}
}
}
...
...
@@ -555,6 +567,24 @@
}
}
}
//
经办人信息校验
var
signer_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_signer');
if(signer_ds_id){
var
signer_record =
$(signer_ds_id).getAll();
var
v_signer_count=
0;
if(signer_record.length
>
1){
for (var i = 1;i
< signer_record.length
;i++)
{
if(signer_record[i].get('id_card')
==
signer_record[i-1].get('id_card')){
v_signer_count=
v_signer_count+1;
}
}
}
if(v_signer_count
>
= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是” 18083 2022/11/30
if (head_record.get('invoice_type')=='PAPER'){
if(head_record.get('full_elec_invoice_flag')=='Y'){
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
c5ebe9fa
...
...
@@ -82,7 +82,24 @@
return
false;
}
//
经办人信息校验
var
signer_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_signer');
if(signer_ds_id){
var
signer_record =
$(signer_ds_id).getAll();
var
v_signer_count=
0;
if(signer_record.length
>
1){
for (var i = 1;i
< signer_record.length
;i++)
{
if(signer_record[i].get('id_card')
==
signer_record[i-1].get('id_card')){
v_signer_count=
v_signer_count+1;
}
}
}
if(v_signer_count
>
= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
var bp_record = $(ds_id).getCurrentRecord();
...
...
@@ -571,6 +588,19 @@
}
}
}
//经办人身份信息校验
if(
sign_ds_id=
=ds.id
&&
sign_ds_id){
var
sign_record =
$(sign_ds_id).getAll();
var
check_num=
0;
if(sign_record[0].data.id_card
!=
undefined){
check_num++;
}
if(
check_num=
=0){
$(sign_ds_id).remove(sign_record[0]);
Leaf.showErrorMessage("提示","请先保存!");
return
false;
}
}
}
//更新时调用
add
by
liukang
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
View file @
c5ebe9fa
...
...
@@ -73,6 +73,24 @@
Leaf.showErrorMessage('${l:PROMPT}',
'第三方不能含有其他角色类型');
return
false;
}
//
经办人信息校验
var
signer_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_signer_req');
if(signer_ds_id){
var
signer_record =
$(signer_ds_id).getAll();
var
v_signer_count=
0;
if(signer_record.length
>
1){
for (var i = 1;i
< signer_record.length
;i++)
{
if(signer_record[i].get('id_card')
==
signer_record[i-1].get('id_card')){
v_signer_count=
v_signer_count+1;
}
}
}
if(v_signer_count
>
= 1){
Leaf.showErrorMessage('提示', '系统当前仅允许维护不同的经办人身份证信息!');
return false;
}
}
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
var bp_record = $(ds_id).getCurrentRecord();
var address_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_address_req');
...
...
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