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
44d7ec8c
Commit
44d7ec8c
authored
Aug 22, 2023
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同签约前,4个商业伙伴必填项校验的增加
parent
a0775583
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
87 deletions
+94
-87
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+35
-87
hls_bp_master_modify.lview
...ain/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
+29
-0
hls_bp_master_req_modify.lview
...webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
+30
-0
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
44d7ec8c
...
...
@@ -528,7 +528,20 @@
}
}
}
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是”
18083
2022/11/30
//新增校验,承租人(法人)和担保人(法人)商业伙伴的创建,银行账号信息都是要必填(为电子签约做准备)
if(head_record.get('bp_class')=='ORG'){
if(head_record.get('bp_type')=='TENANT'
||
head_record.get('bp_type')=='GUTA_ORG'){
var
bank_flag=
true;
if(
bank_record.length=
=0){
bank_flag=
false;
if(
bank_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','请在银行账户信息中维护[银行账号信息]!');
return
false;
}
}
}
}
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是”
18083
2022/11/30
if
(head_record.get('invoice_type')=='PAPER'){
if(head_record.get('full_elec_invoice_flag')=='Y'){
Leaf.showErrorMessage('${l:PROMPT}',
'开票类型为纸质发票,不能选择【是否全电发票】为是');
...
...
@@ -579,6 +592,23 @@
//验证是否有户籍地址,或者通讯地址
var
address_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_address');
var
records_addr =
$(address_ds_id).getAll();
//新增校验,承租人(自然人)商业伙伴创建必须维护居住地址(为电子签约做准备)
if(head_record.get('bp_class')=='NP'
&&
head_record.get('bp_type')=='TENANT'){
var
check_flag=
true;
for(var
i=
0;i<records_addr.length;i++){
if(records_addr[i].get('address_type')=='HOUSE_ADDRESS'){
check_flag=
true;
break;
}else
{
check_flag=
false;
}
}
if(
check_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','必填项[居住住址]为空,请在地址信息新增!');
return
false;
}
}
if
(head_record.get('bp_class')
=='NP'&&head_record.get('bp_type')!='THIRD_PARTY'){
//判断户籍地址
var
flag =
true;
...
...
@@ -726,78 +756,6 @@
var gird_ds_id = 'BP_NP_CREATE_BP_ASSETS01_hls_bp_assets_ds';
var gird_ds_id2 = 'BP_NP_CREATE_BP_ASSETS04_hls_bp_assets_ds';
var gird_ds_id3 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_bank_flow');
//学历学位校验 add 20230710
if(name=='academic_background'||name=='degrees') {
var academic_background = record.get('academic_background');
var degrees = record.get('degrees');
if(!Ext.isEmpty(academic_background)
&&
!Ext.isEmpty(degrees)){
if ((academic_background == '1'
&&
degrees != '1'
&&
degrees != '2'
&&
degrees != '3') ||
(academic_background == '2'
&&
degrees != '4')||
((academic_background == '3'||academic_background == '4'||academic_background == '5'||academic_background == '6'||academic_background == '7'||academic_background == '8')
&&
(degrees != '5'))){
Leaf.showMessage('提示', '请正确填写学位和学历');
setTimeout(function () {
if(name=='academic_background'){
record.set('degrees', '');
record.set('degrees_n', '');
}else if(name=='degrees'){
record.set('academic_background', '');
record.set('academic_background_n', '');
}
}, 20);
return false;
}
}
}
//许可证有效期校验
if (name == 'due_date') {
var lastday = new Date('2099-12-31');
if (value >lastday) {
Leaf.showMessage('${l:PROMPT}', '营业许可证到期日最大不得超过2099-12-31');
setTimeout(function () {
record.set('due_date', '');
}, 20);
}
}
if (name == 'due_box') {
if (value == 'Y') {
record.set('due_date', '2099-12-31');
}else if(value == 'N'){
record.set('due_date', '');
}
}
//邮编校验 add by 20230619
if(name=='zipcode'|| name=='work_unit_zip') {
value = value.trim();
value = value.replace(/[\t\r\f\n\s]*/g,"");
if (!(/^[0-9]{6}$/.test(value))
&&
value) {
Leaf.showMessage('提示', '请正确填写邮编', function () {
record.set(name, '');
});
}
}
//单位性质和职业校验 20230420
if (name == 'unit_properties' || name == 'occuption') {
debugger
var unit_properties = record.get('unit_properties');
var occuption = record.get('occuption');
if (unit_properties == '30' || unit_properties == '40' || unit_properties == '50') {
if (occuption == '0' || occuption == 'X') {
//当单位性质为“30-外资企业”、“40-个体、私营企业”、“50-其他“时,职业不能为“0-国家机关、党群组织、企业、事业单位负责人”、“X-军人”
Leaf.showMessage('提示', '当单位性质为“外资企业”、“个体、私营企业”、“其他“时,职业不能为“国家机关、党群组织、企业、事业单位负责人”、“军人”。', null, 500, 100);
if(name == 'unit_properties' ){
record.set('occuption','');
record.set('occuption_n','');
}
if(name == 'occuption' ){
record.set('unit_properties','');
record.set('unit_properties_n','');
}
}
}
}
//征信add start 中征码校验
if (record.get('bp_class') == 'ORG') {
...
...
@@ -1026,13 +984,6 @@
var
hls_bp_master_ds_id =
f_bp_create_ds_id;
if
(
ds.id =
=
hls_bp_master_ds_id
&&
hls_bp_master_ds_id)
{
if
(
name =
=
'due_box')
{
if
(
value =
=
'Y')
{
record.set('due_date',
'2099-12-31');
}else
if(
value =
=
'N'){
record.set('due_date',
'');
}
}
if
(
name =
=
'id_card_no_leg')
{
if
(!value)
{
record.set('ccx_resmsg1',
'');
...
...
@@ -1191,7 +1142,7 @@
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
//取消开票类型为纸质只读
18083
2022/11/30
//取消开票类型为纸质只读
18083
2022/11/30
//record.getField('invoice_type').setReadOnly(true);
//record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
...
...
@@ -1223,14 +1174,14 @@
}
}
if(
name =
=
'invoice_type'){
//设置是否全电发票默认值
18083
2022/11/30
//设置是否全电发票默认值
18083
if(
value =
=
'PAPER'){
record.getField('reception_maile').setRequired(false);
record.set('full_elec_invoice_flag','N');
record.set('full_elec_invoice_flag','N');
record.set('full_elec_invoice_flag_n','否');
}else{
record.getField('reception_maile').setRequired(true);
record.set('full_elec_invoice_flag','Y');
record.set('full_elec_invoice_flag','Y');
record.set('full_elec_invoice_flag_n','是');
}
}
...
...
@@ -1256,10 +1207,8 @@
}
}
}
}
var
primary_flag =
record.get('primary_flag');
if
(
primary_flag =
=
'Y')
{
var
bm_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master');
...
...
@@ -1274,7 +1223,6 @@
};
function
upload_file(id,
name,
query_only)
{
debugger;
var
record =
window['${/parameter/@layout_code}_hls_link_render_record'][id
+
'---'
+
name];
if
(record.get('check_id'))
{
var
url;
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify.lview
View file @
44d7ec8c
...
...
@@ -89,6 +89,35 @@
var
address_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_address');
var
records_addr =
$(address_ds_id).getAll();
//新增校验,承租人(法人)和担保人(法人)商业伙伴的创建,银行账号信息都是要必填(为电子签约做准备)
if(bp_record.get('bp_class')
==
'ORG'){
if(bp_record.get('bp_type')=='TENANT'
||
bp_record.get('bp_type')=='GUTA_ORG'){
if(
bank_record.length=
=0){
flag=
false;
if(
flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','请在银行账户信息中维护[银行账号信息]!');
return
false;
}
}
}
}
//新增校验,承租人(自然人)商业伙伴创建必须维护居住地址(为电子签约做准备)
if(bp_record.get('bp_class')=='NP'
&&
bp_record.get('bp_type')=='TENANT'){
var
check_flag=
true;
for(var
i=
0;i<records_addr.length;i++){
if(records_addr[i].get('address_type')=='HOUSE_ADDRESS'){
check_flag=
true;
break;
}else
{
check_flag=
false;
}
}
if(
check_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','必填项[居住住址]为空,请在地址信息新增!');
return
false;
}
}
if
(bp_record.get('bp_class')
==
'NP'){
//判断户籍地址
var
flag =
true;
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_req_modify.lview
View file @
44d7ec8c
...
...
@@ -81,6 +81,36 @@
var
bank_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_bank_acc_req');
var
bank_record =
$(bank_ds_id).getAll();
var
flag =
true;
//新增校验,承租人(法人)和担保人(法人)商业伙伴的创建,银行账号信息都是要必填(为电子签约做准备)
if(bp_record.get('bp_class')
==
'ORG'){
if(bp_record.get('bp_type')=='TENANT'
||
bp_record.get('bp_type')=='GUTA_ORG'){
if(
bank_record.length=
=0){
flag=
false;
if(
flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','请在银行账户信息中维护[银行账号信息]!');
return
false;
}
}
}
}
//新增校验,承租人(自然人)商业伙伴创建必须维护居住地址(为电子签约做准备)
if(bp_record.get('bp_class')=='NP'
&&
bp_record.get('bp_type')=='TENANT'){
var
check_flag=
true;
for(var
i=
0;i<records_addr.length;i++){
if(records_addr[i].get('address_type')=='HOUSE_ADDRESS'){
check_flag=
true;
break;
}else
{
check_flag=
false;
}
}
if(
check_flag=
=false){
Leaf.showErrorMessage('${l:PROMPT}','必填项[居住住址]为空,请在地址信息新增!');
return
false;
}
}
if(bank_record.length
>
0){
for(var i=0;i
<bank_record.length
;i++){
var
full_name=
bank_record[i].get('bank_full_name');
...
...
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