Commit 343cbe20 authored by lizhe's avatar lizhe

展示报单历史

parent 9c7b5421
......@@ -12,6 +12,21 @@
replace(t1.service_url,
'modules/csh/CSH501/csh_payment_req.lview',
'modules/csh/CSH501/csh_payment_op_req.lview') as service_url_operat_payment
,zj_wfl_core_pkg.get_parameter_value(p_instance_id => t1.instance_id,
p_parameter_name => 'PROJECT_ID') PROJECT_ID
,(select sp.parameter_value
from zj_wfl_workflow_service zs,
zj_wfl_workflow_service_para zp,
zj_wfl_workflow_node_svc_para sp
where zs.service_name =
'modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview'
and zp.service_id = zs.service_id
and sp.parameter_id = zp.service_para_id
and zp.parameter_code = 'show_project_history_flag'
and sp.source_type = 'DISPLAY'
and sp.node_id = t1.node_id
) show_project_history_flag
From (select zj_wfl_core_pkg.get_node_service_url(tt.record_id,
${/parameter/@url_type},
${/session/@user_id}) as service_url,tt.*
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: lz
$Date: 2024年6月3日10:54:19
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:view package="leaf.ui.std" template="default">
<a:link id="prj_project_get_layout_code_link_id_return" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<!-- <a:link id="zj_wfl_approve_history_link"-->
<!-- url="${/request/@context_path}/modules/zjwfl/zj_wfl_approve_history.lview"/>-->
<a:link id="zj_wfl_approve_history_link"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_history_return.lview"/>
<a:link id="car_modify_link_readonly_return"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_query_link_return"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<script type="text/javascript"><![CDATA[
function project_history_render(value, record, name) {
if (name == 'project_return_times') {
return '<a href="javascript:project_return_history(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}
if (name == 'project_number' && value) {
return '<a href="javascript:open_project_modify_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}
if (name == 'contract_number' && value) {
return '<a href="javascript:open_contract_win(\'' + record.id + '\',\'' + record.ds.id + '\')">' + value + '</a>';
}
return value;
}
function project_return_history(record_id, ds_id) {
debugger;
var readOnly_flag = 'N';
var url = $('zj_wfl_approve_history_link').getUrl();
var record = $(ds_id).findById(record_id);
var param = record.data;
param['winId'] = 'zj_wfl_approve_history_link_winid';
var win = new Leaf.Window({
id: 'acr_invoice_apply_detail_link_winid',
params: {
instance_id: record.get('wfl_instance_id'),
reader_type: 'ADMIN'
},
url: url,
title: '退回历史',
fullScreen: true
});
}
function open_project_modify_win(record_id, ds_id) {
debugger;
var record = $(ds_id).findById(record_id);
var url;
maintain_type = 'READONLY';
param = record.data;
param['document_id'] = record.get('project_id');
param['function_usage'] = 'QUERY';
param['bp_class'] = 'NP';
param['maintain_type'] = maintain_type;
param['url_title'] = '${l:HLS.PROJECT_MAITAIN}';
param['function_code'] = 'PRJ501Q_H';
//PRJ501Q 匹配的是PROJECT_WFL_NP 与工作流页面是同一个布局,会报很多id重复的错
url = 'car_modify_link_readonly_return';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id_return', param, url, ds_id);
}
function open_contract_win(record_id, ds_id) {
debugger;
var record = $(ds_id).findById(record_id);
var param = record.data;
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_return';
hls_doc_get_layout_code('prj_project_get_layout_code_link_id_return', param, url, ds_id);
}
]]></script>
<a:dataSets>
<a:dataSet id="project_historyDs" autoPageSize="true" autoQuery="true" selectable="true"
model="prj.PRJ501N.project_history_info"
queryUrl="${/request/@context_path}/autocrud/prj.PRJ501N.project_history_info/query?project_id=${/parameter/@project_id}"/>
</a:dataSets>
<a:screenBody>
<a:tabPanel height="450" marginWidth="30">
<a:tabs>
<a:tab prompt="历史报单记录" width="100">
<a:grid id="project_historyDs_grid" bindTarget="project_historyDs" height="360" marginWidth="30"
navBar="true">
<a:toolBar>
<a:button type="excel" text="导出"/>
</a:toolBar>
<a:columns>
<a:column name="match_type" prompt="当前报单匹配类型" width="120" align="center"/>
<a:column name="bp_name" prompt="商业伙伴名称" width="120" align="center"/>
<a:column name="id_no" prompt="证件号码/机号" width="120" align="center"/>
<a:column name="project_number" prompt="项目编号" width="120" align="center" renderer="project_history_render"/>
<a:column name="project_return_times" prompt="报单流程被退回次数" width="120" align="center"
renderer="project_history_render"/>
<a:column name="project_status_n" prompt="项目状态" width="120" align="center"/>
<a:column name="contract_number" prompt="合同编号" width="120" align="center" renderer="project_history_render"/>
<a:column name="contract_status_n" prompt="合同状态" width="120" align="center"/>
<a:column name="agent_extra_nam" prompt="所属代理店" width="120" align="center"/>
</a:columns>
</a:grid>
</a:tab>
</a:tabs>
</a:tabPanel>
</a:screenBody>
</a:view>
</a:screen>
......@@ -350,6 +350,13 @@
</a:case>
<a:case value="*">
<a:screen-include screen="${/model/node_service_record/record/@service_url}&amp;winid=zj_wfl_approve_win&amp;instance_id=${/parameter/@instance_id}"/>
<a:switch test="/model/node_service_record/record/@show_project_history_flag">
<a:case value="Y">
<a:screen-include screen="modules/prj/PRJ501N/prj_project_history.lview?project_id=${/model/node_service_record/record/@project_id}"/>
</a:case>
</a:switch>
</a:case>
</a:switch>
</a:case>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment