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
00d94005
Commit
00d94005
authored
Dec 14, 2022
by
21471731
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租赁物导入调整17
parent
be8157f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
prj_project_lease_number.lwm
.../WEB-INF/classes/prj/PRJ500D/prj_project_lease_number.lwm
+12
-0
prj_project_lease_import_details.lview
...odules/prj/PRJ501N/prj_project_lease_import_details.lview
+2
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+22
-1
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ500D/prj_project_lease_number.lwm
0 → 100644
View file @
00d94005
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select prj_project_lease_import_pkg.get_prj_lease_count(${/parameter/@project_id}) as lease_number from dual
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/modules/prj/PRJ501N/prj_project_lease_import_details.lview
View file @
00d94005
...
@@ -189,6 +189,8 @@
...
@@ -189,6 +189,8 @@
},
},
success:
function()
{
success:
function()
{
$(ds_id).query();
$(ds_id).query();
Leaf.showMessage('提示信息',
'租赁物信息发生变化,请重新进行报价');
},
},
error:
function()
{
error:
function()
{
},
},
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
00d94005
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_description"
rootPath=
"description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_description"
rootPath=
"description"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_residual_value"
rootPath=
"residual_value"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_residual_value"
rootPath=
"residual_value"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_residual_value_from"
rootPath=
"prj_residual_value"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_residual_value_from"
rootPath=
"prj_residual_value"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_lease_number"
rootPath=
"prj_lease_count"
/>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
...
@@ -231,6 +231,17 @@
...
@@ -231,6 +231,17 @@
});
});
} else {
} else {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
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'){
var set_number=current_red.get('set_number');
var lease_count='${/model/prj_lease_count/record/@lease_number}';
if(lease_count!=0 && set_number!=lease_count){
Leaf.showMessage('提示信息', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
var cal_hd_price_list = record.get('cal_hd_price_list');
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
var price_list = record.get('price_list');
if (cal_hd_price_list == price_list) {
if (cal_hd_price_list == price_list) {
...
@@ -1583,6 +1594,8 @@
...
@@ -1583,6 +1594,8 @@
if(
division=
='30'||division=='50'){
if(
division=
='30'||division=='50'){
var
record=
$(lease_ds_id).getCurrentRecord();
var
record=
$(lease_ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
set_number=
records.get('set_number');
var
lease_count=
'${/model/prj_lease_count/record/@lease_number}'
;
var
total_price=
records.get('total_price');
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
residual_value=
record.get('residual_value');
...
@@ -1593,6 +1606,9 @@
...
@@ -1593,6 +1606,9 @@
}else
if(q_value!=residual_value){
}else
if(q_value!=residual_value){
Leaf.showMessage('${l:PROMPT}',
'支付计划中留购价与报价计算不一致,无法提交审批!');
Leaf.showMessage('${l:PROMPT}',
'支付计划中留购价与报价计算不一致,无法提交审批!');
return;
return;
}else
if(lease_count!=0
&&
set_number!=lease_count){
Leaf.showMessage('提示信息',
'租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
}
}
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
...
@@ -1637,6 +1653,8 @@
...
@@ -1637,6 +1653,8 @@
if(
division=
='30'||division=='50'){
if(
division=
='30'||division=='50'){
var
record=
$(lease_ds_id).getCurrentRecord();
var
record=
$(lease_ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
set_number=
records.get('set_number');
var
lease_count=
'${/model/prj_lease_count/record/@lease_number}'
;
var
total_price=
records.get('total_price');
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
residual_value=
record.get('residual_value');
...
@@ -1647,6 +1665,9 @@
...
@@ -1647,6 +1665,9 @@
}else
if(q_value!=residual_value){
}else
if(q_value!=residual_value){
Leaf.showMessage('${l:PROMPT}',
'支付计划中留购价与报价计算不一致,无法提交审批!');
Leaf.showMessage('${l:PROMPT}',
'支付计划中留购价与报价计算不一致,无法提交审批!');
return;
return;
}else
if(lease_count!=0
&&
set_number!=lease_count){
Leaf.showMessage('提示信息',
'租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
}
}
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
...
...
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