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
c98d510f
Commit
c98d510f
authored
Jun 21, 2024
by
lizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消机号校验
parent
4c1f696d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
412 additions
and
127 deletions
+412
-127
check_machine_number_repeat.lwm
...B-INF/classes/prj/PRJ501N/check_machine_number_repeat.lwm
+97
-0
project_approval.lwm
...n/webapp/WEB-INF/classes/prj/PRJ501N/project_approval.lwm
+2
-17
prj501n_wfl_machine_number_detail.lview
...dules/prj/PRJ501N/prj501n_wfl_machine_number_detail.lview
+146
-11
prj_project_maintain_constru_wfl.lview
...odules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview
+53
-9
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+114
-90
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ501N/check_machine_number_repeat.lwm
0 → 100644
View file @
c98d510f
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: lz
$Date: 2024年05月14日 11:18:01
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select p.project_id,
p.project_number,
--p.project_type,
p.division,
c.contract_id,
c.contract_number,
(select h.bp_name from hls_bp_master h where h.bp_id = p.bp_id_tenant) tenant_name,
(select h.bp_name
from hls_bp_master h
where h.bp_id = p.INVOICE_AGENT_ID) agent_name,
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'PRJ501_PRJ_STATUS'
AND v.code_value = p.project_status) project_status_n,
(SELECT v.code_value_name
FROM sys_code_values_v v
WHERE v.code = 'CON500_CONTRACT_STATUS'
AND v.code_value = c.contract_status) contract_status_n,
nvl(pi.machine_number, pi.machine_number_70) machine_number,
pi.project_lease_item_id
from prj_project p, prj_project_lease_item pi, con_contract c
where p.project_id = pi.project_id
and p.project_id = c.project_id(+)
and p.project_id <>
${@project_id}
and c.data_class(+) = 'NORMAL'
and c.contract_status(+) not in ('CANCEL', 'REPUR', 'ET', 'TERMINATE')
And p.project_status
<
> 'CLOSED'
And nvl(p.secondary_lease, 'NO') = 'NO'
and (nvl(pi.machine_number, pi.machine_number_70) in
(select nvl(ppl.asset_num,
nvl(ppi.machine_number, ppi.machine_number_70))
from prj_project pp,
prj_project_lease_item ppi,
prj_project_lease_item_list ppl
where pp.project_id = ppi.project_id
and instr(nvl(pi.machine_number, pi.machine_number_70), '附件') = 0
and pp.project_id = ${@project_id}
and ppi.project_lease_item_id = ppl.project_lease_item_id(+)) or
exists
(select 1
from con_contract_lease_item cl
where cl.contract_id = c.contract_id
and instr(nvl(cl.machine_number, cl.machine_number_70), '附件') = 0
and nvl(cl.machine_number, cl.machine_number_70) in
(select nvl(ppl.asset_num,
nvl(ppi.machine_number, ppi.machine_number_70))
from prj_project pp,
prj_project_lease_item ppi,
prj_project_lease_item_list ppl
where pp.project_id = ppi.project_id
and pp.project_id = ${@project_id}
and ppi.project_lease_item_id =
ppl.project_lease_item_id(+))) or exists
(select 1
from prj_project_lease_item_list ppl
where ppl.project_lease_item_id = pi.project_lease_item_id
and instr(ppl.asset_num, '附件') = 0
and ppl.asset_num in
(select nvl(ppl.asset_num,
nvl(ppi.machine_number, ppi.machine_number_70))
from prj_project pp,
prj_project_lease_item ppi,
prj_project_lease_item_list ppl
where pp.project_id = ppi.project_id
and pp.project_id = ${@project_id}
and ppi.project_lease_item_id =
ppl.project_lease_item_id(+))))
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"execute"
>
<bm:parameters>
<bm:parameter
name=
"repeat_flag"
dataType=
"java.lang.String"
input=
"false"
output=
"true"
/>
<bm:parameter
name=
"project_id"
dataType=
"java.lang.Long"
input=
"true"
output=
"false"
required=
"true"
/>
</bm:parameters>
<bm:update-sql>
<![CDATA[
begin
${@repeat_flag} := prj_project_check_pkg.check_prj_machine_number(${@project_id});
end;]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/prj/PRJ501N/project_approval.lwm
View file @
c98d510f
...
...
@@ -9,23 +9,8 @@
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT COUNT(1) v_count
FROM (SELECT p.project_id
FROM prj_project p, prj_project_lease_item v
WHERE p.project_id = v.project_id
AND (v.machine_number_70 = ${@machine_number} or v.machine_number = ${@machine_number})
AND p.project_status <>
'CLOSED'
AND nvl(p.secondary_lease, 'NO') = 'NO'
and p.project_id
<
> nvl(${@project_id},1)
UNION
SELECT c.project_id
FROM con_contract c, con_contract_lease_item h
WHERE c.contract_id = h.contract_id
AND (h.machine_number_70 = ${@machine_number} or h.machine_number = ${@machine_number})
AND c.contract_status
<
> 'CANCEL'
AND nvl(c.secondary_lease, 'NO') = 'NO'
AND c.data_class = 'NORMAL'
and c.project_id != nvl(${@project_id},1))
select 0 v_count from dual --20240510 取消机号重复校验
]]>
</bm:query-sql>
</bm:operation>
...
...
src/main/webapp/modules/prj/PRJ501N/prj501n_wfl_machine_number_detail.lview
View file @
c98d510f
...
...
@@ -8,28 +8,163 @@
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
customizationEnabled=
"true"
trace=
"true"
>
<a:init-procedure/>
<a:view>
<a:link
id=
"prj_project_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"prj_project_link_readonly"
url=
"${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"
/>
<a:link
id=
"${/parameter/@layout_code}lease_number_query_link_prj501n"
url=
"${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import_details.lview"
/>
<a:link
id=
"${/parameter/@layout_code}con_contract_query_link"
url=
"${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"
/>
<a:link
id=
"${/parameter/@layout_code}con_contract_op_query_link"
url=
"${/request/@context_path}/modules/cont/CON3200/con_re_incept_op_modify.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function prj501n_machine_number_repeat_ds_query() {
$('prj501n_machine_number_repeat_ds').setQueryParameter('project_id', '${/parameter/@project_id}');
}
function prj501_open_project_detail(reocrd_id, project_id) {
var maintain_type = 'READONLY';
var record = $('prj501n_machine_number_repeat_ds').findById(reocrd_id);
var param = record.data;
param['function_code'] = 'PRJ501M';//'PRJ501Q';
param['document_id'] = project_id;
param['function_usage'] = 'QUERY';
param['maintain_type'] = maintain_type;
param['prj_report_read_flag'] = 'Y';
param['cond_para2'] = record.get('project_type');
param['url_title'] = '${l:PRJ505.PROJECT_DETAIL}';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, 'prj_project_link_readonly', 'prj501n_machine_number_repeat_ds');
}
function prj501_open_contract_detail(reocrd_id, contract_id) {
debugger
var maintain_type = 'READONLY';
var record = $('prj501n_machine_number_repeat_ds').findById(reocrd_id);
var param = record.data;
var division = param.division;
if (division != '95') {
param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
var url = '${/parameter/@layout_code}con_contract_query_link';
} else {
param['function_usage'] = 'QUERY';
param['function_code'] = 'CON3200Q_OP';
param['maintain_type'] = 'QUERY';
param['url_title'] = '${l:CON301.CONTRACT_DETAIL}';
var url = '${/parameter/@layout_code}con_contract_op_query_link';
}
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, url, 'prj501n_machine_number_repeat_ds');
}
function prj501_open_machine_detail(reocrd_id, project_lease_item_id) {
var maintain_type = 'READONLY';
var record = $('prj501n_machine_number_repeat_ds').findById(reocrd_id);
var param = record.data;
param['function_code'] = 'PRJ501INC';
param['document_id'] = record.get('project_id');
param['project_lease_item_id'] = record.get('project_lease_item_id');
param['function_usage'] = 'QUERY';
param['maintain_type'] = maintain_type;
//param['cond_para2'] = record.get('project_type');
param['url_title'] = '${l:PRJ505.PROJECT_DETAIL}';
var url = '${/parameter/@layout_code}lease_number_query_link_prj501n';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id', param, url, 'prj501n_machine_number_repeat_ds');
}
function prj501_render(value, record, name) {
if(name == 'project_number'){
return '<a href="javascript:prj501_open_project_detail(' + record.id + ',' + record.get('project_id') + ');">
' + value + '
</a>
';
}else if(name == 'contract_number'){
if (!Ext.isEmpty(value)) {
return '
<a
href=
"javascript:prj501_open_contract_detail(' + record.id + ',' + record.get('contract_id') + ');"
>
' + value + '
</a>
';
}
}else if(name == 'machine_detail'){
// 30高空作业车 50星邦高空作业车 80叉车 99工程机械 才有 租赁物清单
if(record.get('division') == '30' || record.get('division') == '50' || record.get('division') == '80' || record.get('division') == '99' ){
return '
<a
href=
"javascript:prj501_open_machine_detail(' + record.id + ',' + record.get('project_lease_item_id') + ');"
>
' + '查看明细' + '
</a>
';
}
}
}
function win_quit() {
$('${/parameter/@winid}').close();
}
Leaf.onReady(function () {
$('confirm_btn_id').disable(); //让按钮失效
});
function prj501n_machine_number_confirm_ds_update(ds, record, name, value, oldVlaue) {
if (name == 'check_falg') {
if (value == 'Y') {
$('confirm_btn_id').enable();
}else if (value == 'N') {
$('confirm_btn_id').disable();
}
}
}
]]>
</script>
<a:dataSets>
<a:dataSet
id=
"label_ds"
autoCreate=
"true"
>
<a:dataSet
id=
"
prj501n_
label_ds"
autoCreate=
"true"
>
<a:fields>
<!--<a:field name="label1" defaultValue="注意:"/>-->
<a:field
name=
"label2"
defaultValue=
"1.当前页面仅机号存在重复风险会弹出,二次租赁情况下不弹出"
/>
<a:field
name=
"label3"
defaultValue=
"2.如弹出该窗口以为该机号存在重复性风险,请核查机号重复实际情况"
/>
<a:field
name=
"label4"
defaultValue=
"3.一但点击确认并正常审批流程代表您已完成风险核对"
/>
<a:field
name=
"label5"
defaultValue=
"仔细阅读上述事项,并检查确认无误。请谨慎审批通过该笔单据!"
/>
<!-- <a:field name="label2" defaultValue="1.当前页面仅机号存在重复风险会弹出,二次租赁情况下不弹出"/>-->
<!-- <a:field name="label3" defaultValue="2.如弹出该窗口以为该机号存在重复性风险,请核查机号重复实际情况"/>-->
<!-- <a:field name="label4" defaultValue="3.一但点击确认并正常审批流程代表您已完成风险核对"/>-->
<!-- <a:field name="label5" defaultValue="仔细阅读上述事项,并检查确认无误。请谨慎审批通过该笔单据!"/>-->
<a:field
name=
"label5"
defaultValue=
"以下单据与当前报单存在机号重复,请确认!"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"prj501n_machine_number_repeat_ds"
autoPageSize=
"true"
autoQuery=
"true"
model=
"prj.PRJ501N.check_machine_number_repeat"
>
<a:events>
<a:event
name=
"query"
handler=
"prj501n_machine_number_repeat_ds_query"
/>
</a:events>
</a:dataSet>
<a:dataSet
id=
"prj501n_machine_number_confirm_ds"
>
<a:events>
<a:event
name=
"update"
handler=
"prj501n_machine_number_confirm_ds_update"
/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:fieldSet
style=
"margin-left:10px;margin-top:10px;font-weight:bold;"
title=
"机号重复性检验提示"
width=
"400"
>
<!--<a:label name="label1" bindTarget="label_ds" width="380"/>-->
<a:label
name=
"label2"
bindTarget=
"label_ds"
style=
"margin-left:10px;"
width=
"380"
/>
<a:label
name=
"label3"
bindTarget=
"label_ds"
style=
"margin-left:10px;"
width=
"380"
/>
<a:label
name=
"label4"
bindTarget=
"label_ds"
style=
"margin-left:10px;"
width=
"380"
/>
<a:label
name=
"label5"
bindTarget=
"label_ds"
style=
"color:#055A78;font-weight:bold;margin-left:10px;"
width=
"380"
/>
<!--<a:label name="label1" bindTarget="prj501n_label_ds" width="380"/>-->
<!-- <a:label name="label2" bindTarget="prj501n_label_ds" style="margin-left:10px;" width="380"/>-->
<!-- <a:label name="label3" bindTarget="prj501n_label_ds" style="margin-left:10px;" width="380"/>-->
<!-- <a:label name="label4" bindTarget="prj501n_label_ds" style="margin-left:10px;" width="380"/>-->
<a:label
name=
"label5"
bindTarget=
"prj501n_label_ds"
style=
"color:red;font-weight:bold;margin-left:10px;"
width=
"380"
/>
</a:fieldSet>
<a:grid
id=
"prj501n_machine_number_repeat_ds_grid"
bindTarget=
"prj501n_machine_number_repeat_ds"
Height=
"300"
Width=
"1150"
navBar=
"true"
>
<a:toolBar>
<a:button
type=
"excel"
/>
</a:toolBar>
<a:columns>
<a:column
name=
"machine_number"
prompt=
"机号"
width=
"150"
/>
<a:column
name=
"machine_detail"
prompt=
"查看明细"
width=
"80"
renderer=
"prj501_render"
/>
<a:column
name=
"project_number"
prompt=
"报单编号"
width=
"150"
renderer=
"prj501_render"
/>
<a:column
name=
"contract_number"
prompt=
"合同编号"
width=
"150"
renderer=
"prj501_render"
/>
<a:column
name=
"tenant_name"
prompt=
"承租人"
width=
"200"
/>
<a:column
name=
"project_status_n"
prompt=
"报单状态"
width=
"80"
/>
<a:column
name=
"contract_status_n"
prompt=
"合同状态"
width=
"80"
/>
<a:column
name=
"agent_name"
prompt=
"所属代理店"
width=
"200"
/>
</a:columns>
</a:grid>
<a:form
column=
"1"
labelWidth=
"660"
>
<a:checkBox
name=
"check_falg"
bindTarget=
"prj501n_machine_number_confirm_ds"
align=
"center"
prompt=
"已确认机号重复性风险"
/>
</a:form>
<a:screenTopToolbar>
<a:toolbarButton
id=
"confirm_btn_id"
click=
"win_quit"
text=
"确认"
style=
"position:absolute;left:580px;"
/>
</a:screenTopToolbar>
</a:view>
</a:screen>
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_constru_wfl.lview
View file @
c98d510f
...
...
@@ -21,7 +21,7 @@
<a:view>
<a:link
id=
"${/parameter/@layout_code}lease_number_query_link"
url=
"${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import_details.lview"
/>
<a:link
id=
"bp_tenant_detail_query_link"
model=
"prj.PRJ500D.bp_tenant_old_r_query"
modelaction=
"query"
/>
<a:link
id=
"
prj501n_
bp_tenant_detail_query_link"
model=
"prj.PRJ500D.bp_tenant_old_r_query"
modelaction=
"query"
/>
<a:link
id=
"${/parameter/@layout_code}_tenant_rate_query_link"
url=
"${/request/@context_path}/modules/prj/PRJ902/prj_project_score_result.lview"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
...
...
@@ -56,11 +56,13 @@
model=
"prj.PRJ505.prj_project_create_contract"
modelaction=
"update"
/>
<a:link
id=
"${/parameter/@layout_code}_prj_project_update_status_link_id"
model=
"prj.PRJ505.prj_project_create_contract"
modelaction=
"execute"
/>
<a:link
id=
"prj_approval_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"update"
/>
<a:link
id=
"check_machine_number_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"query"
/>
<a:link
id=
"prj501n_prj_approval_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"update"
/>
<a:link
id=
"prj501n_check_machine_number_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"query"
/>
<a:link
id=
"prj501n_check_machine_number_repeat_id"
model=
"prj.PRJ501N.check_machine_number_repeat"
modelaction=
"execute"
/>
<a:link
id=
"prj501n_wfl_machine_number_detail_link_id"
url=
"${/request/@context_path}/modules/prj/PRJ501N/prj501n_wfl_machine_number_detail.lview"
/>
<a:link
id=
"get_atch_download_link"
url=
"${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"
/>
<a:link
id=
"
prj501n_
get_atch_download_link"
url=
"${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"
/>
<link
href=
"${/request/@context_path}/modules/viewerjs/viewer.css"
rel=
"stylesheet"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer_tool.js"
/>
...
...
@@ -379,7 +381,7 @@
if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES') {
if (division == '92' && !Leaf.isEmpty(machine_number)) {
Leaf.request({
url: $('check_machine_number_id').getUrl(),
url: $('
prj501n_
check_machine_number_id').getUrl(),
para: {
machine_number: machine_number,
project_id: project_id
...
...
@@ -721,6 +723,48 @@
Leaf.onReady(function
()
{
//机号弹窗校验
debugger;
if('${/parameter/@check_machine_number_flag}'=='Y'){
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj501n_check_machine_number_repeat_id').getUrl(),
para:
{
project_id:
'${/parameter/@project_id}'
},
scope:
this,
success:
function
(res)
{
var
repeat_flag =
res.result.repeat_flag;
if
(
repeat_flag =
=
'Y'){
var
url_l =
$('prj501n_wfl_machine_number_detail_link_id').getUrl();
var
machine_number_win =
new
Leaf.Window({
id:
'prj501n_wfl_machine_number_detail_win',
url:
url_l,
params:
{
'winid':
'prj501n_wfl_machine_number_detail_win',
'session_id':
'${/session/@session_id}',
'project_id':
'${/parameter/@project_id}'
},
title:
'机号重复性风险提示',
width:
1200,
height:
500,
closeable:
false
});
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
failure:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
}
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
var
url =
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}'
;
$(bp_ds_id).setQueryUrl(url);
...
...
@@ -820,7 +864,7 @@
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
url:
$('prj
501n_prj
_approval_link_id').getUrl(),
para:
{
project_id:
project_id
},
...
...
@@ -1161,7 +1205,7 @@
//选择承租人带出开票信息
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_project_history_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
;
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
...
...
@@ -1224,7 +1268,7 @@
var
bp_id_tenant =
record.get('bp_id_tenant');
$(score_ds_id).getCurrentRecord().set('score_name',
value);
Leaf.request({
url:
$('bp_tenant_detail_query_link').getUrl(),
url:
$('
prj501n_
bp_tenant_detail_query_link').getUrl(),
para:
{
bp_id:
bp_id_tenant
},
...
...
@@ -1445,7 +1489,7 @@
var prj_project_record = $(prj_project_ds_id).getAt(0);
var project_id = prj_project_record.get('project_id');
var project_number = prj_project_record.get('project_number');
var url_l = $('get_atch_download_link').getUrl() + '?table_pk_value=' + project_id + '
&
table_name=PRJ_PROJECT'+ '
&
doc_code=' + project_number;
var url_l = $('
prj501n_
get_atch_download_link').getUrl() + '?table_pk_value=' + project_id + '
&
table_name=PRJ_PROJECT'+ '
&
doc_code=' + project_number;
window.open(href = url_l, target = "_self");
};
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
c98d510f
...
...
@@ -23,7 +23,7 @@
<a:view>
<a:link
id=
"${/parameter/@layout_code}lease_number_query_link"
url=
"${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import_details.lview"
/>
<a:link
id=
"bp_tenant_detail_query_link"
model=
"prj.PRJ500D.bp_tenant_old_r_query"
modelaction=
"query"
/>
<a:link
id=
"
prj501n_
bp_tenant_detail_query_link"
model=
"prj.PRJ500D.bp_tenant_old_r_query"
modelaction=
"query"
/>
<a:link
id=
"${/parameter/@layout_code}_tenant_rate_query_link"
url=
"${/request/@context_path}/modules/prj/PRJ902/prj_project_score_result.lview"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@pre_layout}get_special_fields_link_id"
...
...
@@ -60,13 +60,13 @@
model=
"prj.PRJ505.prj_project_create_contract"
modelaction=
"update"
/>
<a:link
id=
"${/parameter/@layout_code}_prj_project_update_status_link_id"
model=
"prj.PRJ505.prj_project_create_contract"
modelaction=
"execute"
/>
<a:link
id=
"prj_approval_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"update"
/>
<a:link
id=
"check_machine_number_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"query"
/>
<a:link
id=
"prj
501n_prj
_approval_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"update"
/>
<a:link
id=
"
prj501n_
check_machine_number_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"query"
/>
<a:link
id=
"prj501n_wfl_machine_number_detail_link_id"
url=
"${/request/@context_path}/modules/prj/PRJ501N/prj501n_wfl_machine_number_detail.lview"
/>
<a:link
id=
"prj501n_check_machine_number_repeat_id"
model=
"prj.PRJ501N.check_machine_number_repeat"
modelaction=
"execute"
/>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<a:link
id=
"get_atch_download_link"
url=
"${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"
/>
<a:link
id=
"
prj501n_
get_atch_download_link"
url=
"${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"
/>
<link
href=
"${/request/@context_path}/modules/viewerjs/viewer.css"
rel=
"stylesheet"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer_tool.js"
/>
...
...
@@ -229,34 +229,34 @@
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06');
var hd_user_col_v06 = record.get('hd_user_col_v06');
var cal_btb_int_rate = record.get('cal_btb_int_rate');
var btb_int_rate = record.get('btb_int_rate');
var cal_int_rate_display = record.get('cal_int_rate_display');
var int_rate_display = record.get('int_rate_display');
if(check_empty(cal_hd_user_col_v06)){
cal_hd_user_col_v06='N';
}
if(check_empty(hd_user_col_v06)){
hd_user_col_v06='N';
}
if(check_empty(btb_int_rate)){
btb_int_rate=0;
}
if(check_empty(int_rate_display)){
int_rate_display=0;
}
if(check_empty(cal_btb_int_rate)){
//追加二手机报价重算条件,选择了适用或者调整了利率组合则需要重算报价
var cal_hd_user_col_v06 = record.get('cal_hd_user_col_v06');
var hd_user_col_v06 = record.get('hd_user_col_v06');
var cal_btb_int_rate = record.get('cal_btb_int_rate');
var btb_int_rate = record.get('btb_int_rate');
var cal_int_rate_display = record.get('cal_int_rate_display');
var int_rate_display = record.get('int_rate_display');
if(check_empty(cal_hd_user_col_v06)){
cal_hd_user_col_v06='N';
}
if(check_empty(hd_user_col_v06)){
hd_user_col_v06='N';
}
if(check_empty(btb_int_rate)){
btb_int_rate=0;
}
if(check_empty(int_rate_display)){
int_rate_display=0;
}
if(check_empty(cal_btb_int_rate)){
cal_btb_int_rate =0;
}
if(check_empty(cal_int_rate_display)){
cal_int_rate_display=0;
}
if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N')
||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06
&&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
}
if(check_empty(cal_int_rate_display)){
cal_int_rate_display=0;
}
if ((cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='N')
||(cal_hd_price_list == price_list&&'${/parameter/@asset_fee_flag}'=='Y'&&cal_hd_user_col_v06==hd_user_col_v06
&&cal_btb_int_rate==btb_int_rate&&cal_int_rate_display==int_rate_display)) {
//直接进入报价页面
...
...
@@ -422,7 +422,7 @@
if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES') {
if ((division == '92' || division == '70') && !Leaf.isEmpty(machine_number)) {
Leaf.request({
url: $('check_machine_number_id').getUrl(),
url: $('
prj501n_
check_machine_number_id').getUrl(),
para: {
machine_number: machine_number,
project_id: project_id
...
...
@@ -687,7 +687,7 @@
if(division!='30'
&&
division!='50'){
$(gridId).hideColumn('machine_number_n');
}
if((division=='70'||division=='92')
&&
division!=''){
if((division=='70'||division=='92')
&&
division!=''){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
...
...
@@ -749,41 +749,41 @@
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
//var hd_user_col_v06 = $(cashflow_ds_id).getAt(0).get('hd_user_col_v06');
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($(cashflow_ds_id).getAt(0).get('hd_user_col_v06')=='N'){
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if (Ext.isEmpty($(cashflow_ds_id).getAt(0).get('hd_user_col_v06'))) {
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($(cashflow_ds_id).getAt(0).get('hd_user_col_v06')=='N'){
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}else{
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
}
}
}
}
}
};
...
...
@@ -849,23 +849,47 @@
Leaf.onReady(function
()
{
//机号弹窗校验
debugger;
if('${/parameter/@check_machine_number_flag}'=='Y'){
var
url_l =
$('prj501n_wfl_machine_number_detail_link_id').getUrl();
var
machine_number_win =
new
Leaf.Window({
id:
'prj501n_wfl_machine_number_detail_win',
url:
url_l,
params:
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj501n_check_machine_number_repeat_id').getUrl(),
para:
{
project_id:
'${/parameter/@project_id}'
},
scope:
this,
success:
function
(res)
{
var
repeat_flag =
res.result.repeat_flag;
if
(
repeat_flag =
=
'Y'){
var
url_l =
$('prj501n_wfl_machine_number_detail_link_id').getUrl();
var
machine_number_win =
new
Leaf.Window({
id:
'prj501n_wfl_machine_number_detail_win',
url:
url_l,
params:
{
'winid':
'prj501n_wfl_machine_number_detail_win',
'session_id':
'${/session/@session_id}'
'winid':
'prj501n_wfl_machine_number_detail_win',
'session_id':
'${/session/@session_id}',
'project_id':
'${/parameter/@project_id}'
},
title:
'机号重复性风险提示',
width:
1200,
height:
500,
closeable:
false
});
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
title:
'机号重复性风险提示',
width:
430,
height:
390
failure:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
}
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
var
url =
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}&bp_id=${/parameter/@bp_id}'
;
$(bp_ds_id).setQueryUrl(url);
...
...
@@ -887,8 +911,8 @@
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
//if($('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
...
...
@@ -985,7 +1009,7 @@
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
url:
$('prj
501n_prj
_approval_link_id').getUrl(),
para:
{
project_id:
project_id
},
...
...
@@ -1442,7 +1466,7 @@
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if('${/parameter/@asset_fee_flag}'=='Y'){
...
...
@@ -1458,28 +1482,28 @@
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
//if($('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
//
$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_interest');
//
$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
//}
}
else
{
}
else
{
//显示组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
if($('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
}
//if($('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id')){
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_interest');
//$('PROJECT_WFL_RE_G_CASHFLOW_NS_prj_quotation_layout_grid_id').showColumn('btb_fee');
//
}
//
}
}
}
...
...
@@ -1553,7 +1577,7 @@
var
bp_id_tenant =
record.get('bp_id_tenant');
$(score_ds_id).getCurrentRecord().set('score_name',
value);
Leaf.request({
url:
$('bp_tenant_detail_query_link').getUrl(),
url:
$('
prj501n_
bp_tenant_detail_query_link').getUrl(),
para:
{
bp_id:
bp_id_tenant
},
...
...
@@ -1844,7 +1868,7 @@
var prj_project_record = $(prj_project_ds_id).getAt(0);
var project_id = prj_project_record.get('project_id');
var project_number = prj_project_record.get('project_number');
var url_l = $('get_atch_download_link').getUrl() + '?table_pk_value=' + project_id + '
&
table_name=PRJ_PROJECT'+ '
&
doc_code=' + project_number;
var url_l = $('
prj501n_
get_atch_download_link').getUrl() + '?table_pk_value=' + project_id + '
&
table_name=PRJ_PROJECT'+ '
&
doc_code=' + project_number;
window.open(href = url_l, target = "_self");
};
...
...
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