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
15ad4a1a
Commit
15ad4a1a
authored
Nov 17, 2023
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运维单授信额度占用
parent
d5cf265b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
92 deletions
+110
-92
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+89
-79
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+21
-13
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
15ad4a1a
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
15ad4a1a
...
...
@@ -172,7 +172,7 @@
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
if(division=='30' || division=='50'
|| division=='99'
){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
...
...
@@ -248,7 +248,7 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
if(division=='30' || division=='50'
|| division=='99'
){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
...
...
@@ -682,6 +682,7 @@
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
debugger;
if(
division=
='70'||division=='92'){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
...
...
@@ -963,7 +964,7 @@
$(bp_ds_ids).query();*/
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'){
if(division!='30'
&&
division!='50'
&&
division!='99'
){
$(gridId).hideColumn('machine_number_n');
}
if((division=='70'||division=='92')
&&
division!=''){
...
...
@@ -1003,7 +1004,7 @@
$(gridId).hideColumn('created_by_n');
}
if (lease_item_ds_id == ds.id
&&
lease_item_ds_id) {
if(division=='30'||division=='50'||division=='80'){
if(division=='30'||division=='50'||division=='80'
|| division=='99'
){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
...
...
@@ -1155,10 +1156,14 @@
var
credit_record =
$(ds_id).getCurrentRecord();
var
invoice_agent_id=
record.get('invoice_agent_id');
if((
division=
='80'||division=='30'||division=='50')
&&
invoice_agent_id
!==
25321){
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if((
division=
='80'||division=='30'||division=='50'||
division=
='99')
&&
bp_code
!==
'D00010019'){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
}
}
}
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if(bp_code
!==
'D00000026'
&&
bp_code
!==
'D00000029'
&&
bp_code
!==
'D00000030'
&&
bp_code
!==
'D00000031'){
...
...
@@ -1623,7 +1628,7 @@
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if(
division=
='30'||division=='50'){
if(
division=
='30'||division=='50'
||
division=
='99'
){
var
record=
$(lease_ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
set_number=
records.get('set_number');
...
...
@@ -1683,7 +1688,7 @@
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if(
division=
='30'||division=='50'){
if(
division=
='30'||division=='50'
||
division=
='99'
){
var
record=
$(lease_ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
set_number=
records.get('set_number');
...
...
@@ -1828,11 +1833,14 @@
return
false;
}
if
(record.get('signing_city')){
var
reg =
/^(.){4,}$/;
if
(!reg.test(record.get('signing_city')))
{
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
return
false;
//
var
reg =
/^([\u2E80-\u9FFF]){4,}$/;
//
var
reg =
/^(.){4,}$/;
//
if
(!reg.test(record.get('signing_city')))
{
//
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
//
return
false;
//
}
if
(record.get('signing_city').indexOf('州')
==
-1
&&
record.get('signing_city').indexOf('县')
==
-1
&&
record.get('signing_city').indexOf('区')
==
-1)
{
Leaf.showConfirm('${HLS.PROMPT}',
'合同签订地所填写内容,未细化到区/县/州级别,是否确认?',
function
()
{});
}
}
}
...
...
@@ -1904,7 +1912,7 @@
sync:
true
});
}
}
if
(machine_number_num
>
0
&&
count == 0){
...
...
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