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
f05b2447
Commit
f05b2447
authored
Apr 11, 2024
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合同起租-新业务-厂商担保
parent
cb84ca06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
179 additions
and
109 deletions
+179
-109
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+179
-109
No files found.
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
f05b2447
...
@@ -57,13 +57,17 @@
...
@@ -57,13 +57,17 @@
<!-- <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<!-- <script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<a:link
id=
"${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id"
<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"
/>
url=
"${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n.lview"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_op_update_link_id"
url=
"${/request/@context_path}/modules/hls/HLS500N/hls_fin_calculator_update_n_for_ol.lview"
/>
<a:link
id=
"get_atch_download_link"
<a:link
id=
"get_atch_download_link"
url=
"${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"
/>
url=
"${/request/@context_path}/modules/batch_download/lease_atm_batch_dl.lsc"
/>
<a:link
id=
"check_contract_status"
model=
"cont.CON3200.con_checklist_contract"
modelaction=
"query"
/>
<a:link
id=
"check_contract_status"
model=
"cont.CON3200.con_checklist_contract"
modelaction=
"query"
/>
<link
href=
"${/request/@context_path}/modules/viewerjs/viewer.css"
rel=
"stylesheet"
/>
<link
href=
"${/request/@context_path}/modules/viewerjs/viewer.css"
rel=
"stylesheet"
/>
<a:link
id=
"prj2000_pur_order_deteail_link_id"
url=
"${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"
></a:link>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer_tool.js"
/>
<script
src=
"${/request/@context_path}/modules/viewerjs/viewer_tool.js"
/>
<script
type=
"text/javascript"
>
<![CDATA[
<script
type=
"text/javascript"
>
<![CDATA[
function lock_current_window() {
function lock_current_window() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
}
}
...
@@ -86,6 +90,8 @@
...
@@ -86,6 +90,8 @@
};
};
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load'] = function (ds, record, config_records, bp_seq) {
debugger;
if('${/parameter/@cond_para2}'=='N' || '${/parameter/@cond_para2}'==''){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds_id == ds.id && ds_id) {
if (ds_id == ds.id && ds_id) {
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
...
@@ -97,12 +103,14 @@
...
@@ -97,12 +103,14 @@
// record.getField('guarantee_letter_f_n').setReadOnly(true);
// record.getField('guarantee_letter_f_n').setReadOnly(true);
// }else
// }else
if (record.get('division')!='70'&&record.get('division')!='92'){
if (record.get('division')!='70'&&record.get('division')!='92'){
if (record.get('division')!='93'){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none';
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt')!=null){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt')!=null){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none';
}
}
}
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE').style.display = 'none';
...
@@ -171,6 +179,7 @@
...
@@ -171,6 +179,7 @@
}
}
}
}
}
}
}
};
};
...
@@ -273,6 +282,9 @@
...
@@ -273,6 +282,9 @@
} else if (name == 'attach_file_name_new') {
} else if (name == 'attach_file_name_new') {
link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload';
link_function = '${/parameter/@layout_code}_prj500_cdd_attachtment_new_upload';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');"
>
' + config_record.get('prompt') + '
</a>
';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.ds.id + '\',\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');"
>
' + config_record.get('prompt') + '
</a>
';
}else if(name=='lease_detail'
&&
record.get('project_lease_item_id')!=null) {
link_function = 'cont3200_lease_renderer';
return '
<a
href=
"javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');"
>
' +'明细' + '
</a>
';
}
}
};
};
...
@@ -287,6 +299,21 @@
...
@@ -287,6 +299,21 @@
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}');
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'wfl_readonly_pageLink_projectQueryScreen_update_project', record.ds.id, '${/parameter/@layout_code}');
}
}
function cont3200_lease_renderer(record_id, ds_id) {
debugger;
var ds_id = 'CONTRACT_OP_QUERY_INC_G_LEASE_HEAD_CAR_con_contract_lease_item_ds';
var record = $(ds_id).getCurrentRecord();
var project_id=record.get('source_project_id');
var param = {};
var param = record.data;
param['function_code'] = 'PRJ2000D_WFL';
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'READONLY'
param['url_title'] = '采购申请单维护';
param['project_id'] = project_id;
hls_doc_get_layout_code('${/parameter/@layout_code}_con_contract_get_layout_code_link_id', param, 'prj2000_pur_order_deteail_link_id', null, '${/parameter/@layout_code}');
}
window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) {
window['${/parameter/@layout_code}_ast_con_cdd4_attachtment_upload'] = function (ds_id, id, name, query_only) {
var record = $(ds_id).findById(id);
var record = $(ds_id).findById(id);
...
@@ -341,7 +368,10 @@
...
@@ -341,7 +368,10 @@
if (record.get('bp_category') == 'AGENT') {
if (record.get('bp_category') == 'AGENT') {
param['function_code'] = 'HLS303_Q';
param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY';
param['function_usage'] = 'QUERY';
} else {
}else if(record.get('bp_category')=='RENTER' || record.get('bp_category')=='MAN_FACTURER' || record.get('bp_category')=='ASSET_REGULATOR'){
param['function_code'] = 'HLS215D_OP';
param['function_usage'] = 'QUERY';
}else{
param['function_code'] = 'CON505H';
param['function_code'] = 'CON505H';
param['function_usage'] = 'QUERY';
param['function_usage'] = 'QUERY';
}
}
...
@@ -596,6 +626,7 @@
...
@@ -596,6 +626,7 @@
};
};
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function () {
debugger;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item');
var lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item');
var record = $(ds_id).getCurrentRecord();
var record = $(ds_id).getCurrentRecord();
...
@@ -609,14 +640,19 @@
...
@@ -609,14 +640,19 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
return;
}
}
debugger;
if ($(ds_id).validate()) {
if ($(ds_id).validate()) {
if('${/model/wfl_status/record/@mar_status}'
!= 'Y'
){
if('${/model/wfl_status/record/@mar_status}'
== 'Y' || Ext.isEmpty('${/model/wfl_status/record/@mar_status}')
){
if(record.get('division')=='70'
&&
record.get('write_off_amount')
<record.get
('customer_margin')){
if(record.get('division')=='70'
&&
record.get('write_off_amount')
<record.get
('customer_margin')){
//
Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
//
Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}',
'二手机业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}',
'二手机业务需要保证金入账后才能起租');
return;
return;
}
}
}
}
//
if(record.get('division')=='70'&&record.get('write_off_amount')<record.get('customer_margin')){
//
Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
//
return;
//
}
//
if(record.get('division')=='92'&&record.get('write_off_amount')<record.get('customer_margin')){
//
if(record.get('division')=='92'&&record.get('write_off_amount')<record.get('customer_margin')){
//
Leaf.showMessage('${l:PROMPT}',
'北京卡家业务需要保证金入账后才能起租');
//
Leaf.showMessage('${l:PROMPT}',
'北京卡家业务需要保证金入账后才能起租');
//
return;
//
return;
...
@@ -651,6 +687,12 @@
...
@@ -651,6 +687,12 @@
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract');
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract');
var
cashflow_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract_cashflow');
var
cashflow_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract_cashflow');
var
record =
$(ds_id).getCurrentRecord();
var
record =
$(ds_id).getCurrentRecord();
var
division =
record.get('division');
if(
division =
=
'95'){
var
url =
$('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_op_update_link_id').getUrl();
}else
{
var
url =
$('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl();
}
var
price_list =
record.get('price_list');
var
price_list =
record.get('price_list');
var
calc_session_id =
record.get('calc_session_id');
var
calc_session_id =
record.get('calc_session_id');
var
parent_pk_value =
record.get('contract_id');
var
parent_pk_value =
record.get('contract_id');
...
@@ -678,7 +720,7 @@
...
@@ -678,7 +720,7 @@
recreate_L_formula:
'Y',
recreate_L_formula:
'Y',
recreate_H_formula:
'Y'
recreate_H_formula:
'Y'
},
},
url:
$('${/parameter/@layout_code}${/parameter/@tree_code}_hls_fin_calculator_update_link_id').getUrl()
,
url:
url
,
fullScreen:
true,
fullScreen:
true,
draggable:
true
draggable:
true
});
});
...
@@ -691,10 +733,13 @@
...
@@ -691,10 +733,13 @@
}
}
}
}
Leaf.onReady(function
()
{
Leaf.onReady(function
()
{
debugger;
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_INVOICE_INFO',
'con_contract_bp');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_INVOICE_INFO',
'con_contract_bp');
if(ds_id){
$(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query');
$(ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.con_contract_bp/query');
$(ds_id).setQueryParameter('contract_id',
'${/parameter/@contract_id}');
$(ds_id).setQueryParameter('contract_id',
'${/parameter/@contract_id}');
$(ds_id).query();
$(ds_id).query();
}
})
})
//附件打包下载
//附件打包下载
window['${/parameter/@layout_code}_C_ATTCH_I_USER_BUTTON1_layout_dynamic_tab_click']
=
function
()
{
window['${/parameter/@layout_code}_C_ATTCH_I_USER_BUTTON1_layout_dynamic_tab_click']
=
function
()
{
...
@@ -743,6 +788,7 @@
...
@@ -743,6 +788,7 @@
$(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('item_type_n');
$(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('equipment_type_n');
$(gridId).hideColumn('machine_number');
$(gridId).hideColumn('machine_number');
$(gridId).hideColumn('BP_ID_TENANT_N');
record.getField('machine_number').setRequired(false);
record.getField('machine_number').setRequired(false);
}else
{
}else
{
$(gridId).hideColumn('machine_number_70');
$(gridId).hideColumn('machine_number_70');
...
@@ -756,7 +802,6 @@
...
@@ -756,7 +802,6 @@
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
$(gridId).hideColumn('created_by_n');
}
}
}
}
var
cashflow_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_CASHFLOW_1',
'con_contract_cashflow');
var
cashflow_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_CASHFLOW_1',
'con_contract_cashflow');
if(
ds.id =
=
cashflow_ds_id&&cashflow_ds_id){
if(
ds.id =
=
cashflow_ds_id&&cashflow_ds_id){
...
@@ -766,9 +811,34 @@
...
@@ -766,9 +811,34 @@
}
}
}
}
};
};
/*
时间戳转换为时间
*/
function
timestampToTime(timestamp)
{
timestamp =
timestamp
?
timestamp
:
null;
var
date =
new
Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
var
Y =
date.getFullYear()
+
'-';
var
M =
(date.getMonth()
+
1
<
10
?
'0'
+
(date.getMonth()
+
1)
:
date.getMonth()
+
1)
+
'-';
var
D =
(date.getDate()
<
10
?
'0'
+
date.getDate()
:
date.getDate());
//
var
h =
(date.getHours()
<
10
?
'0'
+
date.getHours()
:
date.getHours())
+
':';
//
var
m =
(date.getMinutes()
<
10
?
'0'
+
date.getMinutes()
:
date.getMinutes())
+
':';
//
var
s =
date.getSeconds()
<
10
?
'0'
+
date.getSeconds()
:
date.getSeconds();
return
Y
+
M
+
D;
};
var
count =
0;
var
count =
0;
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit']
=
function
(ds,
record)
{
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit']
=
function
(ds,
record)
{
debugger;
debugger;
if('${/parameter/@layout_code}'
==
'CONTRACT_OP_CREATE_INC'){
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'con_contract_lease_item');
var
lease_item_record =
$(lease_item_ds_id).getCurrentRecord();
var
con_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract');
var
contract_record =
$(con_ds_id).getAt(0);
var
ref_d09 =
timestampToTime(Date.parse(lease_item_record.get('ref_d09')));
var
lease_start_date =
timestampToTime(Date.parse(record.get('lease_start_date')));
if(lease_start_date
>
ref_d09){
Leaf.showMessage('${l:PROMPT}','采购单的付款预定日期需大于合同起租日,请重新选择!');
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');
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'con_contract_lease_item');
var lease_item_record = $(lease_item_ds_id).getCurrentRecord();
var lease_item_record = $(lease_item_ds_id).getCurrentRecord();
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var con_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
...
...
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