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
950347b2
Commit
950347b2
authored
Feb 24, 2023
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同签约前变更
parent
99e3a104
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
221 additions
and
53 deletions
+221
-53
check_change_con_lease_item.lwm
...asses/check_after_save_bm/check_change_con_lease_item.lwm
+1
-0
check_contract_sign_status.lwm
...EB-INF/classes/cont/CON731/check_contract_sign_status.lwm
+22
-0
hls_before_sign_change_detail.lview
...p/modules/cont/CON731/hls_before_sign_change_detail.lview
+183
-48
hls_ccr_modify_entrance.lview
.../webapp/modules/cont/CON732/hls_ccr_modify_entrance.lview
+1
-0
hls_ccr_query_entrance.lview
...n/webapp/modules/cont/CON732/hls_ccr_query_entrance.lview
+10
-1
hls_con_contract_et_create_entrance.lview
...les/cont/CON733/hls_con_contract_et_create_entrance.lview
+3
-3
hls_fin_calculator_update_n.lview
...app/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
+1
-1
No files found.
src/main/webapp/WEB-INF/classes/check_after_save_bm/check_change_con_lease_item.lwm
View file @
950347b2
...
...
@@ -9,6 +9,7 @@
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
con_contract_workflow_pkg.check_change_con_lease_item(
p_contract_id =>
${@contract_id},
...
...
src/main/webapp/WEB-INF/classes/cont/CON731/check_contract_sign_status.lwm
0 → 100644
View file @
950347b2
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: shenyamin
$Date: 2018-11_03 上午11:00:06
$Revision: 3.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 cr.req_status sign_contract_status
From con_contract_change_req cr
Where cr.change_req_id= ${@change_req_id}
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"sign_contract_status"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"sign_contract_status"
/>
</bm:fields>
</bm:model>
src/main/webapp/modules/cont/CON731/hls_before_sign_change_detail.lview
View file @
950347b2
...
...
@@ -21,7 +21,31 @@
modelaction=
"update"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id"
url=
"${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
<a:link
id=
"cdd_uploadFile_id"
url=
"${/request/@context_path}/uploadFile.lview"
/>
<a:link
id=
"cdd_downloadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<a:link
id=
"check_sign_status_id"
model=
"cont.CON731.check_contract_sign_status"
modelaction=
"query"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function attachment_window_open(change_req_id,record_id, ds_id) {
url = $('cdd_uploadFile_id').getUrl() + '?table_name=CCR_BEFORE_SIGN&header_id=' + change_req_id;
wd = new Leaf.Window({
id: 'open_attachment_window',
url: url,
title: '附件上传',
height: 350,
width: 850
});
}
function attachment_window_query(change_req_id,record_id, ds_id) {
url = $('cdd_downloadFile_id').getUrl() + '?table_name=CCR_BEFORE_SIGN&header_id=' + change_req_id;
wd = new Leaf.Window({
id: 'open_attachment_window',
url: url,
title: '附件上传',
height: 350,
width: 850
});
}
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
...
...
@@ -52,7 +76,8 @@
id_num: 1,
calc_type: calc_type,
recreate_L_formula: 'Y',
recreate_H_formula: 'Y'
recreate_H_formula: 'Y',
change_type : 'CCR_BEFORE_SINGE'
},
url: $('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl(),
fullScreen: true,
...
...
@@ -67,28 +92,68 @@
}
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
//debugger
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
//var record = $(ds_id).getCurrentRecord();
var contract_id = record.get('contract_id');
var change_req_id = '${/parameter/@change_req_id}';
var sign_contract_status;
Leaf.request({
url: $('check_sign_status_id').getUrl(),
para: {
change_req_id: change_req_id
},
scope: this,
success: function (res) {
sign_contract_status = res.result.record.sign_contract_status;
},
failure: function () {
return false;
},
scope: this,
sync: true
});
if (name == 'attachment') {
if(sign_contract_status == 'NEW' ){
return '<a href="javascript:attachment_window_open(\'' + record.get('change_req_id') + '\',\'' + record.id + '\',\'' + record.ds.id + '\');">
' + '附件上传' + '
</a>
';
/* window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
};*/
}else{
return '
<a
href=
"javascript:attachment_window_query(\'' + record.get('change_req_id') + '\',\'' + record.id + '\',\'' + record.ds.id + '\');"
>
' + '附件上传' + '
</a>
';
}
}
}
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
// $('${/parameter/@layout_code}_submit_approval').disable();
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_ds_id2 = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item');
var req_record = $(req_ds_id).getAt(0);
var case_type = '';
var document_type = '${/parameter/@document_type}';
var calc_session_id = req_record.get('calc_session_id');
var change_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_change_req');
var req_record2 = $(change_ds_id).getAt(0);
if (Ext.isEmpty(req_record2.get('ccr_reason'))) {
$L.showErrorMessage('错误', '变更理由及说明字段不能为空!');
return false;
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
// if ($(lease_item_ds_id).isModified()) {
// Leaf.showInfoMessage('提示', '变更后未完成报价计算,请先进行报价计算!');
// return false;
// }
if ($(change_ds_id).isModified()) {
Leaf.showInfoMessage('提示', '请先保存之后再提交审批!');
return false;
}
if ($(req_ds_id).validate($('${/parameter/@layout_code}_submit_approval').enable())
&&
$(req_ds_id2).validate($('${/parameter/@layout_code}_submit_approval').enable())) {
con731_submit();
con731_submit();
} else {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
...
...
@@ -136,6 +201,7 @@
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click'] = function () {
Leaf.showConfirm('${l:HLS.PROMPT}', '是否确认取消变更?', function () {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
...
...
@@ -160,44 +226,113 @@
};
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
if(ds.id == lease_item_ds_id&&lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('division_n');
$(gridId).hideColumn('equipments');
$(gridId).hideColumn('machine_model_class_n');
$(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('machine_number');
record.getField('machine_number').setRequired(false);
}else {
$(gridId).hideColumn('machine_number_70');
$(gridId).hideColumn('lease_name_n');
$(gridId).hideColumn('brand_value');
$(gridId).hideColumn('type_name');
$(gridId).hideColumn('produce_date');
$(gridId).hideColumn('using_hour');
$(gridId).hideColumn('detention_amount');
$(gridId).hideColumn('residual_value_amount');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
}
if(record.data.division=='30'||record.data.division=='50'||record.data.division=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
}
};
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
if(ds.id == lease_item_ds_id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70'|| record.data.division=='92'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('full_name_n');
$(gridId).hideColumn('division_n');
$(gridId).hideColumn('equipments');
$(gridId).hideColumn('machine_model_class_n');
$(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('machine_number');
record.getField('machine_number').setRequired(false);
}else {
$(gridId).hideColumn('machine_number_70');
$(gridId).hideColumn('lease_name_n');
$(gridId).hideColumn('brand_value');
$(gridId).hideColumn('type_name');
$(gridId).hideColumn('produce_date');
$(gridId).hideColumn('using_hour');
$(gridId).hideColumn('detention_amount');
$(gridId).hideColumn('residual_value_amount');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
}
if(record.data.division=='30'||record.data.division=='50'||record.data.division=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
if (record.data.division == '70' || record.data.division=='92') {
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('modelcd').setReadOnly(false);
record.getField('modelcd').setRequired(true);
record.getField('machine_number_70').setRequired(true);
}
}
var lease_old_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_OLD_CAR', 'con_contract_lease_item');
if(ds.id == lease_old_ds_id
&&
lease_old_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70' || record.data.division=='92'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('full_name_n');
$(gridId).hideColumn('division_n');
$(gridId).hideColumn('equipments');
$(gridId).hideColumn('machine_model_class_n');
$(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('machine_number');
record.getField('machine_number').setRequired(false);
}else {
$(gridId).hideColumn('machine_number_70');
$(gridId).hideColumn('lease_name_n');
$(gridId).hideColumn('brand_value');
$(gridId).hideColumn('type_name');
$(gridId).hideColumn('produce_date');
$(gridId).hideColumn('using_hour');
$(gridId).hideColumn('detention_amount');
$(gridId).hideColumn('residual_value_amount');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
}
}
};
//新增和加载时调用(form)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function(ds, record, config_records, bp_seq) {
//document.getElementById('${/parameter/@layout_code}_CCR_BEFORE_SIGN_F_BASIC_1_prompt').style.display = 'none';//component_id_
//document.getElementById('${/parameter/@layout_code}_CCR_BEFORE_SIGN_F_BASIC_1').style.display = 'none';
document.getElementById('CCR_BEFORE_SIGN_F_BASIC_1_component_id').style.display = "none";
if('${/parameter/@function_usage}'=='QUERY'){
document.getElementById('CCR_BEFORE_SIGN_save').style.display = 'none';
document.getElementById('CCR_BEFORE_SIGN_quote').style.display = 'none';
document.getElementById('CCR_BEFORE_SIGN_exit').style.display = 'none';
document.getElementById('CCR_BEFORE_SIGN_user_button1').style.display = 'none';
document.getElementById('CCR_BEFORE_SIGN_submit_approval').style.display = 'none';
}
}
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function (ds, record, name, value, old_value, bp_seq) {
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
if (lease_item_ds_id == ds.id
&&
lease_item_ds_id) {
if(record.data.division=='70' || record.data.division=='92'){
if(name=='lease_name_n'){
record.data.type_name=value;
}else if(name=='modelcd'){
record.data.pattern=value;
}
record.getField('full_name').setRequired(false);
record.getField('full_name_n').setRequired(false);
}
}
}
...
...
src/main/webapp/modules/cont/CON732/hls_ccr_modify_entrance.lview
View file @
950347b2
...
...
@@ -125,6 +125,7 @@
}
param['document_type'] = record.get('ccr_document_type');
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
//update
//签约前变更换个页面,方便后续新人代码阅读 wangwei
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
...
...
src/main/webapp/modules/cont/CON732/hls_ccr_query_entrance.lview
View file @
950347b2
...
...
@@ -22,6 +22,7 @@
url=
"${/request/@context_path}/modules/cont/CON732/hls_ccr_modify_assignment_agreement_print.lsc"
/>
<a:link
id=
"hls_crr_query_print_link_id"
url=
"${/request/@context_path}/modules/cont/CON732/hls_crr_query_print_word_detail.lview"
/>
<a:link
id=
"con_contract_sign_before_change_link"
url=
"${/request/@context_path}/modules/cont/CON731/hls_before_sign_change_detail.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
...
...
@@ -172,13 +173,21 @@
//param['function_code'] = 'CON733BPB';
param['function_code'] = 'CON733BPBQ';
param['url_title'] = '变更申请-合同回款账户变更查询';
}else if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
param['function_code'] = 'CON733CBSIGN';
param['url_title'] = '变更申请-签约前合同变更';
}
param['function_usage'] = 'QUERY';
param['req_status'] = req_status;
param['query_flag'] = 'Y';
param['maintain_type'] = 'QUERY';
param['document_type'] = record.get('ccr_document_type');
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}
//hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
};
//变更申请打印单
...
...
src/main/webapp/modules/cont/CON733/hls_con_contract_et_create_entrance.lview
View file @
950347b2
...
...
@@ -117,10 +117,10 @@
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
return;
}
/*if(record.get('division') != '70'
&&
ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '
仅铁甲业务可操作
此项变更!');
if((record.get('division') != '70'
&&
record.get('division') != '92')
&&
ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '
当前合同暂不能进行
此项变更!');
return;
}
*/
}
Leaf.showConfirm('特别注意', '
<span
style=
"color: #ff0000; "
>
该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!
</span>
', function () {
var contract = record.get('contract_id');
...
...
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
View file @
950347b2
...
...
@@ -1009,7 +1009,7 @@
}
if
('${/parameter/@document_category}'
==
'PROJECT'||
'${/parameter/@document_category}'
==
'CONTRACT
')
{
if
('${/parameter/@document_category}'
==
'PROJECT'||
'${/parameter/@layout_code}'
==
'CCR_BEFORE_SIGN
')
{
Leaf.request({
url:
$('prj_check_prj_record_link_id').getUrl(),
para:
{
...
...
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