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
ad9f8210
Commit
ad9f8210
authored
Mar 02, 2023
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡家机号校验
parent
a563c93e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
75 deletions
+93
-75
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+28
-25
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+29
-25
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+36
-25
No files found.
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
ad9f8210
...
...
@@ -772,32 +772,35 @@
var
machine_number =
lease_item_record.get('machine_number_70');
var
division =
lease_item_record.get('division');
var
machine_number_num =
0;
if(
division =
=
'92'
&&
!Leaf.isEmpty(machine_number)){
Leaf.request({
url:
$('check_machine_number_id').getUrl(),
para:
{
machine_number:
machine_number,
project_id
:
project_id
},
scope:
this,
success:
function
(res)
{
machine_number_num=
res.result.record.v_count;
},
failure:
function
()
{
return
false;
},
scope:
this,
sync:
true
});
var
secondary_lease =
record.get('secondary_lease')
;
if(!Leaf.isEmpty(secondary_lease)
&&
secondary_lease!='YES')
{
if
(
division =
=
'92'
&&
!Leaf.isEmpty(machine_number))
{
Leaf.request({
url:
$('check_machine_number_id').getUrl(),
para:
{
machine_number:
machine_number,
project_id:
project_id
},
scope:
this,
success:
function
(res)
{
machine_number_num =
res.result.record.v_count;
},
failure:
function
()
{
return
false;
},
scope:
this,
sync:
true
});
}
if
(machine_number_num
>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num> 0
&&
count != 0){
count = 0;
return false;
}
if
(machine_number_num
>
0
&&
count == 0) {
count = count + 1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
} else if (machine_number_num > 0
&&
count != 0) {
count = 0;
return false;
}
}
}
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
ad9f8210
...
...
@@ -420,33 +420,37 @@
var machine_number = lease_item_record.get('machine_number_70');
var project_id = project_record.get('project_id');
var machine_number_num = 0;
if(division == '92' && !Leaf.isEmpty(machine_number)){
Leaf.request({
url: $('check_machine_number_id').getUrl(),
para: {
machine_number: machine_number,
project_id :project_id
},
scope: this,
success: function (res) {
machine_number_num= res.result.record.v_count;
},
failure: function () {
return false;
},
scope: this,
sync: true
});
var secondary_lease = project_record.get('secondary_lease');
if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES'){
if(division == '92' && !Leaf.isEmpty(machine_number)){
Leaf.request({
url: $('check_machine_number_id').getUrl(),
para: {
machine_number: machine_number,
project_id :project_id
},
scope: this,
success: function (res) {
machine_number_num= res.result.record.v_count;
},
failure: function () {
return false;
},
scope: this,
sync: true
});
}
if (machine_number_num>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0
&&
count != 0){
count = 0;
return false;
}
}
if (machine_number_num>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0
&&
count != 0){
count = 0;
return false;
}
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
ad9f8210
...
...
@@ -1120,6 +1120,13 @@
record.getField('bank_account_id_n').setRequired(false);
}
if
('${/parameter/@function_usage}'
!=
'QUERY')
{
if
(
division =
=
'92')
{
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
if
(
division=
='91')
{
//若为神钢建机
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
current_record =
$(ds_id).getCurrentRecord();
...
...
@@ -1879,36 +1886,40 @@
var
machine_number =
lease_item_record.get('machine_number_70');
var
project_id =
project_record.get('project_id');
var
machine_number_num =
0;
if(
division =
=
'92'
&&
!Leaf.isEmpty(machine_number)){
Leaf.request({
url:
$('check_machine_number_id').getUrl(),
para:
{
machine_number:
machine_number,
project_id
:
project_id
},
scope:
this,
success:
function
(res)
{
machine_number_num=
res.result.record.v_count;
},
failure:
function
()
{
return
false;
},
scope:
this,
sync:
true
});
var
secondary_lease =
project_record.get('secondary_lease');
if(!Leaf.isEmpty(secondary_lease)
&&
secondary_lease!='YES'){
if(
division =
=
'92'
&&
!Leaf.isEmpty(machine_number)){
Leaf.request({
url:
$('check_machine_number_id').getUrl(),
para:
{
machine_number:
machine_number,
project_id
:
project_id
},
scope:
this,
success:
function
(res)
{
machine_number_num=
res.result.record.v_count;
},
failure:
function
()
{
return
false;
},
scope:
this,
sync:
true
});
}
}
if
(machine_number_num
>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0
&&
count != 0){
count = 0;
return false;
if
(machine_number_num
>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0
&&
count != 0){
count = 0;
return false;
}
}
return true;
};
//附件打包下载
...
...
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