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
c621fdeb
Commit
c621fdeb
authored
Sep 06, 2024
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
建机北京心诚合并二手机改造
parent
361ac535
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
932 additions
and
1127 deletions
+932
-1127
con_file_download.lwm
...ain/webapp/WEB-INF/classes/wx/WX100/con_file_download.lwm
+58
-15
acr_invoice_condition_n.lview
.../webapp/modules/acr/ACR510N/acr_invoice_condition_n.lview
+21
-20
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+168
-176
contract_sales_report.lview
...n/webapp/modules/cont/CON3400/contract_sales_report.lview
+17
-11
contract_ifrs9_report.lview
...n/webapp/modules/cont/CON3500/contract_ifrs9_report.lview
+19
-19
con_contract_modify.lview
...main/webapp/modules/cont/CON505/con_contract_modify.lview
+1
-1
hls_con_contract_change_detail.lview
.../modules/cont/CON731/hls_con_contract_change_detail.lview
+28
-21
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+199
-265
prj_project_create_entrance.lview
...app/modules/prj/PRJ500N/prj_project_create_entrance.lview
+3
-9
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+229
-278
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+189
-312
No files found.
src/main/webapp/WEB-INF/classes/wx/WX100/con_file_download.lwm
View file @
c621fdeb
...
...
@@ -57,19 +57,32 @@ select fa.file_name,fa.file_path,fa.attachment_id
'PERSONAL_CREDIT',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_FR_TJ_E','FINANCE_LEASE_CONTRACT_FR_TJ_E',
'CSH_PAYMENT_REQ_TJ_E','CSH_PAYMENT_REQ_TJ_E',
'CON_GUR_NP',
'CON_GUR_NP',
'FINANCE_LEASE_CONTRACT_FR_KJ_E','FINANCE_LEASE_CONTRACT_FR_KJ_E',--update by gzj 北京卡家电子签约
'FINANCE_LEASE_CONTRACT_KJ_FR_E','FINANCE_LEASE_CONTRACT_KJ_FR_E',
'FINANCE_LEASE_CONTRACT_KJ_S_E','FINANCE_LEASE_CONTRACT_KJ_S_E',
'FINANCE_LEASE_CONTRACT_KJ_E','FINANCE_LEASE_CONTRACT_KJ_E',
'CSH_PAYMENT_REQ_KJ_1_E','CSH_PAYMENT_REQ_KJ_1_E',
'CON_CONTRACT_MORTGAGE_KJ_E','CON_CONTRACT_MORTGAGE_KJ_E',
'LEASE_CONTRACT_PAR_KJ_E','LEASE_CONTRACT_PAR_KJ_E',
'LEASE_CONTRACT_PAR_KJ_1_E','LEASE_CONTRACT_PAR_KJ_1_E',
'CON_COLLECTION_PAYMENT_KJ_E','CON_COLLECTION_PAYMENT_KJ_E',
--博雷顿
'PERSONAL_CREDIT_BLD_E',
--'FINANCE_LEASE_CONTRACT_FR_KJ_E','FINANCE_LEASE_CONTRACT_FR_KJ_E',--update by gzj 北京卡家电子签约
--'FINANCE_LEASE_CONTRACT_KJ_FR_E','FINANCE_LEASE_CONTRACT_KJ_FR_E',
--'FINANCE_LEASE_CONTRACT_KJ_S_E','FINANCE_LEASE_CONTRACT_KJ_S_E',
--'FINANCE_LEASE_CONTRACT_KJ_E','FINANCE_LEASE_CONTRACT_KJ_E',
--'CSH_PAYMENT_REQ_KJ_1_E','CSH_PAYMENT_REQ_KJ_1_E',
--'CON_CONTRACT_MORTGAGE_KJ_E','CON_CONTRACT_MORTGAGE_KJ_E',
--'LEASE_CONTRACT_PAR_KJ_E','LEASE_CONTRACT_PAR_KJ_E',
--'LEASE_CONTRACT_PAR_KJ_1_E','LEASE_CONTRACT_PAR_KJ_1_E',
--'CON_COLLECTION_PAYMENT_KJ_E','CON_COLLECTION_PAYMENT_KJ_E',
--北京心诚合并二手机
'FINANCE_LEASE_CONTRACT_KJ_E','FINANCE_LEASE_CONTRACT_TJ_E',
'CON_CONTRACT_MORTGAGE_KJ_E','CON_CONTRACT_MORTGAGE_TJ_E',
'CON_COLLECTION_PAYMENT_KJ_E','CON_COLLECTION_PAYMENT_TJ_E',
'CSH_PAYMENT_REQ_KJ_1_E','CSH_PAYMENT_REQ_TJ_E',
'LEASE_CONTRACT_PAR_KJ_1_E','SPOUSE_COMMITMENT',
'LEASE_CONTRACT_PAR_KJ_E','GUARANTEE_COMMITMENT',
'FINANCE_LEASE_CONTRACT_KJ_S_E','FINANCE_LEASE_CONTRACT_TJ_S_E',
'FINANCE_LEASE_CONTRACT_FR_KJ_E','FINANCE_LEASE_CONTRACT_FR_TJ_E',
'FINANCE_LEASE_CONTRACT_KJ_FR_E','FINANCE_LEASE_CONTRACT_TJ_FR_E',
--'PERSONAL_CREDIT','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT','ENTERPRISE_CREDIT',
'PERSONAL_CREDIT_BLD_E',
'CREDIT_AUTHOR',
'ENTERPRISE_CREDIT_BLD_E',
'CREDIT_AUTHOR',
...
...
@@ -104,7 +117,34 @@ select fa.file_name,fa.file_path,fa.attachment_id
'CON_CONTRACT_MORTGAGE_BLD_E',
'MORT_CONTRACT',
'CON_CONTRACT_LEASEBACK_BLD_E',
'CONTRACT'
'CONTRACT',
--云南铁拳合同文本匹配关系 18083 2024/5/22
'CON_CONTRACT_LEASEBACK_YNTQ','FINANCE_LEASE_CONTRACT_TJ_E',
'CON_CONTRACT_MORTGAGE_YNTQ','CON_CONTRACT_MORTGAGE_TJ_E',
'CON_COLLECTION_PAYMENT_YNTQ','CON_COLLECTION_PAYMENT_TJ_E',
'CSH_LEASEBACK_YNTQ','CSH_PAYMENT_REQ_TJ_E',
'PAR_TENANT_YNTQ','SPOUSE_COMMITMENT',
'PAR_GUTA_YNTQ','GUARANTEE_COMMITMENT',
'SURE_LEASEBACK_GR_YNTQ','FINANCE_LEASE_CONTRACT_TJ_S_E',
'SURE_LEASEBACK_FR_YNTQ','FINANCE_LEASE_CONTRACT_FR_TJ_E',
'SURE_LEASEBACK_FR_HLJ_YNTQ','FINANCE_LEASE_CONTRACT_TJ_FR_E',
'PERSONAL_CREDIT_YNTQ','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT_YNTQ','ENTERPRISE_CREDIT',
'PERSONAL_CREDIT_GUTA_YNTQ','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT_GUTA_YNTQ','ENTERPRISE_CREDIT',
--河南融投和茂甲文本匹配 38823
'PAR_TENANT_LB_OEC','SPOUSE_COMMITMENT',
'PAR_GUTA_LB_OEC','GUARANTEE_COMMITMENT',
'F_LEASE_CONTRACT_TJ_S_EHN','FINANCE_LEASE_CONTRACT_TJ_E',
'LEASEBACK_ORDER_OEC','LEASEBACK_ORDER_OEC',
--二手机合并新增模板匹配
'PERSONAL_CREDIT_KJ_E','PERSONAL_CREDIT',
'GUARANTOR_PERSONAL_CREDIT_KJ_E','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT_KJ_E','ENTERPRISE_CREDIT',
'PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'GUARANTOR_PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT_MJ_E','ENTERPRISE_CREDIT'
)
from con_ele_signer_file cf, con_contract_ele_signer cs
where cf.con_ele_signer_id = cs.con_ele_signer_id
...
...
@@ -124,8 +164,11 @@ select fa.file_name,fa.file_path,fa.attachment_id
and ht.templet_code = ct.templet_code
and ct.templet_id = cf.templet_id
and hs.enable_flag = 'Y'
and hs.signer_category not in ('AGENCY_STORE_SEAL','AGENCY_STORE_SIGN','HONGLING_SEAL','HONGLING_SIGN',
'MAN_FACTURER_SEAL',
and hs.signer_category not in ('AGENCY_STORE_SEAL',
'AGENCY_STORE_SIGN',
'HONGLING_SEAL',
'HONGLING_SIGN',
'MAN_FACTURER_SEAL',
'MAN_FACTURER_SIGN',
'SUPPLIER_SEAL',
'SUPPLIER_SIGN',
...
...
@@ -136,7 +179,7 @@ select fa.file_name,fa.file_path,fa.attachment_id
where cb.bp_id = hm.bp_id
and hm.social_code = ${@id_no}
and cb.contract_id = cs.contract_id)
or 'VENDER' in (select cb.bp_category
or 'VENDER' in (select cb.bp_category
from con_contract_bp cb, hls_bp_master hm
where cb.bp_id = hm.bp_id
and hm.social_code = ${@id_no}
...
...
src/main/webapp/modules/acr/ACR510N/acr_invoice_condition_n.lview
View file @
c621fdeb
...
...
@@ -118,7 +118,6 @@
function invoiceHd_confirm() {
debugger;
Leaf.Masker.mask(Ext.getBody());
var final_bill_flag = $('allConditionDs').getAt(0).get('final_bill_flag');
var cat_ini_flag = $('allConditionDs').getAt(0).get('cat_ini_flag');
...
...
@@ -141,7 +140,7 @@
} else if (datas[i].business_type == 'LEASEBACK') {
leaseback_count = leaseback_count + 1;
}
//合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员!
//合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员!
if(datas[i].contract_number == 'BJS18020001'){
$L.showErrorMessage('提示','合同编号BJS18020001与燕千云单号I-19139有关,暂不能开票,请联系IT管理员!');
Leaf.Masker.unmask(Ext.getBody());
...
...
@@ -270,7 +269,7 @@
<a:datas>
<a:record
code_value=
"LEASE"
code_value_name=
"直租"
/>
<a:record
code_value=
"LEASEBACK"
code_value_name=
"售后回租"
/>
<a:record
code_value=
"LEASEOPERAT"
code_value_name=
"经营性租赁"
/>
<a:record
code_value=
"LEASEOPERAT"
code_value_name=
"经营性租赁"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"write_off_flag_ds"
>
...
...
@@ -289,10 +288,10 @@
<a:record
code_value=
"REPUR"
code_value_name=
"解约回购"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"acr510n_invoice_type_ds"
>
<a:dataSet
id=
"acr510n_invoice_type_ds"
>
<a:datas>
<a:record
code_value=
"ECT"
code_value_name=
"电子发票"
/>
<a:record
code_value=
"PAPER"
code_value_name=
"
数电
纸质发票"
/>
<a:record
code_value=
"PAPER"
code_value_name=
"纸质发票"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"acr510n_division_ds"
>
...
...
@@ -304,12 +303,12 @@
<a:record
code_value=
"50"
code_value_name=
"星邦高空作业车"
/>
<a:record
code_value=
"90"
code_value_name=
"租赁二手机(日立)"
/>
<a:record
code_value=
"91"
code_value_name=
"神钢建机"
/>
<a:record
code_value=
"92"
code_value_name=
"北京心诚"
/>
<a:record
code_value=
"99"
code_value_name=
"工程机械"
/>
<!--<a:record code_value="92" code_value_name="北京心诚"/>-->
<a:record
code_value=
"95"
code_value_name=
"经租设备"
/>
<a:record
code_value=
"99"
code_value_name=
"工程机械"
/>
<a:record
code_value=
"80"
code_value_name=
"叉车"
/>
<a:record
code_value=
"70"
code_value_name=
"二手机业务"
/>
<a:record
code_value=
"95"
code_value_name=
"经租设备"
/>
<a:record
code_value=
"93"
code_value_name=
"新业务-厂商担保"
/>
<a:record
code_value=
"93"
code_value_name=
"新业务-厂商担保"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"acr510n_invoice_method_ds"
>
...
...
@@ -320,7 +319,7 @@
</a:dataSet>
<a:dataSet
id=
"allConditionDs"
autoCreate=
"true"
>
<a:fields>
<a:field
name=
"invoice_method"
/>
<a:field
name=
"invoice_method"
/>
<a:field
displayField=
"code_value_name"
name=
"invoice_method_n"
options=
"acr510n_invoice_method_ds"
returnField=
"invoice_method"
valueField=
"code_value"
/>
<a:field
name=
"division"
/>
...
...
@@ -461,9 +460,9 @@
<a:field
name=
"billing_status"
/>
<a:field
name=
"billing_status_n"
displayField=
"code_value_name"
options=
"billing_status_ds"
returnField=
"billing_status"
valueField=
"code_value"
/>
<a:field
name=
"full_elec_invoice_flag"
/>
<a:field
name=
"full_elec_invoice_flag_n"
displayField=
"code_value_name"
options=
"overdue_status_ds"
returnField=
"full_elec_invoice_flag"
valueField=
"code_value"
/>
<a:field
name=
"full_elec_invoice_flag"
/>
<a:field
name=
"full_elec_invoice_flag_n"
displayField=
"code_value_name"
options=
"overdue_status_ds"
returnField=
"full_elec_invoice_flag"
valueField=
"code_value"
/>
</a:fields>
<a:events>
<a:event
name=
"update"
handler=
"queryUpdateFunction"
/>
...
...
@@ -539,8 +538,9 @@
</a:hBox>
<a:hBox>
<a:comboBox
bindTarget=
"allConditionDs"
name=
"billing_status_n"
prompt=
"开票状态"
/>
<a:comboBox
bindTarget=
"allConditionDs"
name=
"full_elec_invoice_flag_n"
prompt=
"是否全电发票"
/>
<a:comboBox
bindTarget=
"allConditionDs"
name=
"full_elec_invoice_flag_n"
prompt=
"是否全电发票"
/>
<a:textField
bindTarget=
"allConditionDs"
name=
"search_term_1"
prompt=
"厂商合同编号"
/>
<a:textField
bindTarget=
"allConditionDs"
name=
"pur_number"
prompt=
"采购单编号"
/>
</a:hBox>
<!-- <a:formBody column="4" labelWidth="400">
<a:lov name="contract_number_from" bindTarget="allConditionDs" prompt="HLS.CONTRACT_NUMBER_FROM"/>
...
...
@@ -579,6 +579,8 @@
<a:column
name=
"bp_id_agent_level1_n"
prompt=
"代理店"
width=
"170"
/>
<a:column
name=
"business_type_desc"
prompt=
"业务类型"
align=
"center"
width=
"70"
/>
<a:column
name=
"times"
align=
"right"
lock=
"true"
prompt=
"期数"
width=
"40"
/>
<a:column
name=
"search_term_1"
align=
"right"
lock=
"true"
prompt=
"厂商合同编号"
width=
"100"
/>
<a:column
name=
"pur_number"
align=
"right"
lock=
"true"
prompt=
"采购单编号"
width=
"100"
/>
<a:column
name=
"cf_item_desc"
lock=
"true"
prompt=
"应收项目"
align=
"center"
/>
<a:column
name=
"due_date"
prompt=
"应收日"
align=
"center"
/>
<a:column
name=
"due_amount"
align=
"right"
prompt=
"应收金额"
renderer=
"Leaf.formatMoney"
/>
...
...
@@ -605,13 +607,13 @@
<a:column name="exchange_rate" align="right" width="80"/>
<a:column name="exchange_rate_type_desc" width="100"/> -->
<a:column
name=
"bill_object_bp_class_desc"
width=
"100"
align=
"center"
prompt=
"商业伙伴分类"
/>
<a:column
name=
"invoice_method_n"
prompt=
"开票方式"
width=
"100"
/>
<a:column
name=
"invoice_method_n"
prompt=
"开票方式"
width=
"100"
/>
<a:column
name=
"division_n"
prompt=
"租赁物"
width=
"100"
/>
<a:column
name=
"write_off_flag_desc"
width=
"100"
align=
"center"
prompt=
"核销标记"
/>
<a:column
name=
"rl_flag_n"
width=
"100"
align=
"center"
prompt=
"是否日立为优质客户付租金"
/>
<a:column
name=
"billing_status_n"
width=
"100"
align=
"center"
prompt=
"开票状态"
/>
<a:column
name=
"full_elec_invoice_flag_n"
width=
"100"
align=
"center"
prompt=
"是否全电发票"
/>
</a:columns>
<a:column
name=
"full_elec_invoice_flag_n"
width=
"100"
align=
"center"
prompt=
"是否全电发票"
/>
</a:columns>
</a:grid>
</a:tab>
<a:tab
prompt=
"抬头信息"
width=
"150"
>
...
...
@@ -622,8 +624,7 @@
<!--<a:column name="object_taxpayer_type_desc" prompt="纳税人类型"/>-->
<a:column
name=
"contract_number"
prompt=
"合同编号"
align=
"center"
width=
"100"
/>
<a:column
name=
"contract_status_desc"
prompt=
"合同状态"
align=
"center"
width=
"80"
/>
<a:column
name=
"billing_method_desc"
prompt=
"开票规则"
width=
"155"
/>
<a:column
name=
"billing_method_desc"
prompt=
"开票规则"
width=
"155"
/>
<a:column
name=
"billing_object_name"
autoAdjust=
"false"
editor=
"contractDs_grid_editor_lov"
prompt=
"开票对象名称"
renderer=
"render_contractDs_grid"
showTitle=
"true"
width=
"200"
/>
...
...
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
c621fdeb
...
...
@@ -9,10 +9,10 @@
dynamiccreateenabled=
"true"
trace=
"true"
>
<a:init-procedure>
<a:model-query
model=
"cont.CON620.get_sys_role"
rootPath=
"role_info"
/>
<a:model-query
model=
"csh.CSH531F.csh_transaction_recoi_check_wfl"
rootPath=
"wfl_status"
/>
<a:model-query
model=
"cont.CON3200.get_user_employee_type"
rootPath=
"employee_info"
/>
<a:model-query
model=
"cont.CON505.contract_approval"
defaultWhereClause=
"t1.contract_id=${/parameter/@contract_id}"
rootPath=
"is_constru_unit_info"
/>
<a:model-query
model=
"csh.CSH531F.csh_transaction_recoi_check_wfl"
rootPath=
"wfl_status"
/>
<a:model-query
model=
"cont.CON3200.get_user_employee_type"
rootPath=
"employee_info"
/>
<a:model-query
fetchAll=
"true"
model=
"cont.CON500.con_contract_get_guid_file_name"
rootPath=
"file_name_path"
/>
<!--<a:model-query model="cont.CON3200.receipt_detail_insert_atm" rootPath="get_contract_ccr"/>-->
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
...
...
@@ -48,6 +48,9 @@
model=
"cont.CON505.con505_contract_content"
modelaction=
"execute"
/>
<a:link
id=
"${/parameter/@layout_code}_file_copy_from_template_link_id"
url=
"${/request/@context_path}/modules/cont/CON505/file_copy_from_template.lsc"
/>
<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=
"prj2000_pur_order_deteail_link_id"
url=
"${/request/@context_path}/modules/prj/PRJ2000/purchase_order_deteail.lview"
></a:link>
<a:link
id=
"${/parameter/@layout_code}_con_batch_dl_link_id"
url=
"${/request/@context_path}/modules/cont/CON505/con_atm_batch_dl.lsc"
/>
<a:link
id=
"${/parameter/@layout_code}_con_cashflow_wirte_off_detail_link"
...
...
@@ -57,18 +60,14 @@
<!-- <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"
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"
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"
/>
<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_tool.js"
/>
<a:link
id=
"con_get_rsc_upload"
model=
"cont.CON505.con505_contract_content"
modelaction=
"query"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function lock_current_window() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
}
...
...
@@ -90,119 +89,141 @@
});
};
//查看财报
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function () {
var bp_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var record = $(bp_ds_id).getAt(0)
new Leaf.Window({
id: 'rsc303_fin_statement_query',
url: $('rsc303_fin_statement_link').getUrl(),
title: '查看财报',
fullScreen: true,
params: {
bp_id: record.get('bp_id_tenant')
}
});
}
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');
if (ds_id == ds.id && ds_id) {
//自然人不展示财报按钮
if((record.get('bp_class') == 'NP' &&
document.getElementById('${/parameter/@layout_code}_user_button9')
|| record.get('contract_status') == 'INCEPT')){
document.getElementById('${/parameter/@layout_code}_user_button9').style.display = 'none';
}
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
// record.set('submit_date',null);
// record.set('guarantee_letter_f','N');
// record.set('guarantee_letter_f_n','否');
// record.getField('submit_date').setReadOnly(true);
// record.getField('guarantee_letter_f').setReadOnly(true);
// record.getField('guarantee_letter_f_n').setReadOnly(true);
// }else
if (record.get('division')!='70'&&record.get('division')!='92'){
if('${/parameter/@cond_para2}'=='N' || '${/parameter/@cond_para2}'==''){
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
if (ds_id == ds.id && ds_id) {
// if (record.get('business_type') == 'LEASEBACK'&&'${/parameter/@function_usage}'=='MODIFY') {
// record.set('submit_date',null);
// record.set('guarantee_letter_f','N');
// record.set('guarantee_letter_f_n','否');
// record.getField('submit_date').setReadOnly(true);
// record.getField('guarantee_letter_f').setReadOnly(true);
// record.getField('guarantee_letter_f_n').setReadOnly(true);
// }else
if (record.get('division')!='70'){
if (record.get('division')!='93'){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN')){
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';
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')){
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';
}
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_BRAND_VALUE')){
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';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_MODELCD').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_USING_HOUR').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RESIDUAL_VALUE_AMOUNT').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OWNERSHIP_FLAG').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE').style.display = 'none';
}else if (record.get('division')=='70'||record.get('division')=='92'){
}
}else if (record.get('division')=='70'){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_THIRD_PARTY_DEPOSIT').style.display = 'none';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2')){
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2').style.display = 'none';
}
if(record.get('division')=='92'){
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_WRITE_OFF_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT').style.display = 'none';
}
}
if(record.get('division_detail')=='03'||record.get('division_detail')=='02'){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN')){
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';
}
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT')){
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';
}
}
}
if (record.get('business_type') == 'LEASE') {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT').style.display = 'none';
if (record.get('business_type') == 'LEASE') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_ENTRUSTED_AMOUNT').style.display = 'none';
}
}
if (record.get('secondary_lease') == 'YES') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'block';
} else /*if (record.get('secondary_lease') == 'NO') */{
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'none';
}
if (record.get('contract_status') != 'REPUR' && record.get('contract_status') != 'REPURING') {
if (document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N')) {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'block';
}
} else {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_REPUR_CONTRACT_ID').style.display = 'none';
}
}
//新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款”时展示;
if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
if (record.get('contract_status') != 'REPUR' && record.get('contract_status') != 'REPURING') {
if (document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N')) {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_BP_ID_TENANT_BF_REPUR_N').style.display = 'none';
}
}
//新增 “限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款”时展示;
if (record.get('pay_method') == 'CCB_THREE'||record.get('pay_method') == 'CCB_TWO') {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
} else {
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'block';
}
} else {
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_BASIC_1_CON_CONTRACT_DEDUCTION_LIMIT').style.display = 'none';
}
}
if('${/parameter/@layout_code}' == "CONTRACT_CREATE_INC" && (record.get('division') == '70'&&record.get('division') == '92')){
if(Ext.isEmpty(record.get('guarantee_letter_f'))){
record.set('guarantee_letter_f','N');
record.set('guarantee_letter_f_n','否');
}
if('${/parameter/@layout_code}' == "CONTRACT_CREATE_INC" && record.get('division') == '70'){
if(Ext.isEmpty(record.get('guarantee_letter_f'))){
record.set('guarantee_letter_f','N');
record.set('guarantee_letter_f_n','否');
}
}
if (document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT")) {
if ('${/parameter/@is_constru_unit}' == 'N'||"${/model/is_constru_unit_info/record/@is_constru_unit}"=='N') {
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT").style.display = "none";
}
}
if (document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_AMOUNT_RECORDED")) {
if ('${/parameter/@is_constru_unit}' == 'N'||"${/model/is_constru_unit_info/record/@is_constru_unit}"=='N') {
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_AMOUNT_RECORDED_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_RENT_DEPOSIT_AMOUNT_RECORDED").style.display = "none";
}
}
if (document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_DOWN_PAYMENT_DEPOSIT_RECORDED")) {
if ( '${/parameter/@is_constru_unit}' == 'N'||"${/model/is_constru_unit_info/record/@is_constru_unit}"=='N') {
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_DOWN_PAYMENT_DEPOSIT_RECORDED_prompt").style.display = "none";
document.getElementById("${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_DOWN_PAYMENT_DEPOSIT_RECORDED").style.display = "none";
}
}
}
}
};
...
...
@@ -321,9 +342,7 @@
param['url_title'] = '租赁申请查询';
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;
function cont3200_lease_renderer(record_id, ds_id) {
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');
...
...
@@ -391,10 +410,10 @@
if (record.get('bp_category') == 'AGENT') {
param['function_code'] = 'HLS303_Q';
param['function_usage'] = 'QUERY';
}else if(record.get('bp_category')=='RENTER' || record.get('bp_category')=='MAN_FACTURER' || record.get('bp_category')=='ASSET_REGULATOR'){
}
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{
}else
{
param['function_code'] = 'CON505H';
param['function_usage'] = 'QUERY';
}
...
...
@@ -649,7 +668,6 @@
};
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 lease_item_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_lease_item');
var record = $(ds_id).getCurrentRecord();
...
...
@@ -663,23 +681,15 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
debugger;
if ($(ds_id).validate()) {
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')){
//
Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}',
'二手机业务需要保证金入账后才能起租');
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')
&&record.get('division_detail')=='01'
){
//Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}',
'二手机业务需要保证金入账后才能起租');
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')){
//
Leaf.showMessage('${l:PROMPT}',
'北京卡家业务需要保证金入账后才能起租');
//
return;
//
}
//为法人且不为95时,财报是否上传提示
var
is_rsc_flag =
''
;
if
(record.get('division')
!=
'95'
&&
record.get('bp_class')
==
'ORG'){
...
...
@@ -695,7 +705,6 @@
}
});
}
if
(
is_rsc_flag =
=
'N'){
Leaf.showConfirm('${HLS.PROMPT}',
'当前承租人未上传财报,是否提交工作流?',
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
...
...
@@ -726,7 +735,6 @@
contract_id:
contract_id
},
scope:
this,
sync:
true,
success:
function
()
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@winid}').close();
...
...
@@ -741,7 +749,6 @@
});
}
}
...
...
@@ -751,7 +758,7 @@
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
record =
$(ds_id).getCurrentRecord();
var
division =
record.get('division');
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
{
...
...
@@ -797,12 +804,28 @@
}
}
Leaf.onReady(function
()
{
debugger;
var
role_id =
"${/session/@role_id}"
;
//仅营业内勤与IT可维护身份证等打包下载功能
if(role_id
!=
'2307'
&&
role_id
!=
'2334'&&
role_id
!=
'1714'){
if(document.getElementById('CONTRACT_QUERY_INC_C_ATTCH_1_USER_BUTTON1_layout_dynamic_button_id')){
$('CONTRACT_QUERY_INC_C_ATTCH_1_USER_BUTTON1_layout_dynamic_button_id').hide();
}
//$('CONTRACT_QUERY_INC_C_ATTCH_1_USER_BUTTON1_layout_dynamic_button_id').hide();
}
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).setQueryParameter('contract_id',
'${/parameter/@contract_id}');
$(ds_id).query();
}
if('${/parameter/@cond_para2}'=='Y'){
if(document.getElementById("${/parameter/@layout_code}_user_button9")){
$jq('#${/parameter/@layout_code}_user_button9').hide();
};
}
})
//附件打包下载
...
...
@@ -841,41 +864,44 @@
};
//加载时调用(grid,table,gridBox)
add
by
23459
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('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');
$(gridId).hideColumn('BP_ID_TENANT_N');
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
{
if(
record.data.division=
='60'){
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');
}
$(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');
}
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){
var
gridId=
ds.bindname+'_layout_grid_id';
if("${/model/role_info/record/@role_code}"
=="0018"
||
"${/model/role_info/record/@role_code}"
=="0019"
){
$(gridId).hideColumn('gld_received_amount');
}
}
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){
var
gridId=
ds.bindname+'_layout_grid_id';
if("${/model/role_info/record/@role_code}"
=="0018"
||
"${/model/role_info/record/@role_code}"
=="0019"
){
$(gridId).hideColumn('gld_received_amount');
}
}
};
/*
时间戳转换为时间
*/
/*
时间戳转换为时间
*/
function
timestampToTime(timestamp)
{
timestamp =
timestamp
?
timestamp
:
null;
var
date =
new
Date(timestamp);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
...
...
@@ -887,11 +913,9 @@
//
var
s =
date.getSeconds()
<
10
?
'0'
+
date.getSeconds()
:
date.getSeconds();
return
Y
+
M
+
D;
};
var
count =
0;
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit']
=
function
(ds,
record)
{
debugger;
if('${/parameter/@layout_code}'
==
'CONTRACT_OP_CREATE_INC'){
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');
...
...
@@ -912,7 +936,7 @@
var division = lease_item_record.get('division');
var machine_number_num = 0;
var secondary_lease = record.get('secondary_lease') ;
var contract_id = record.get('contract_id');
var contract_id = record.get('contract_id');
var contract_status = record.get('contract_status');
var contract_status_result = '';
//校验合同状态
...
...
@@ -937,53 +961,21 @@
}
}
if(!Leaf.isEmpty(secondary_lease)
&&
secondary_lease!='YES') {
if (division == '92'
&&
!Leaf.isEmpty(machine_number)) {
Leaf.request({
url: $('check_machine_number_id').getUrl(),
para: {
machine_number: machine_number,
project_id: project_id
},
scope: this,
success: function (res) {
machine_number_num = res.result.record.v_count;
},
failure: function () {
return false;
},
scope: this,
sync: true
});
}
if (machine_number_num > 0
&&
count == 0) {
count = count + 1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
} else if (machine_number_num > 0
&&
count != 0) {
count = 0;
return false;
}
}
}
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
Leaf.onReady(init);
<script
type=
"text/javascript"
>
<![CDATA[
/*
Leaf.onReady(init);
function init() {
debugger;
//用户对应员工不是员工 就不显示该附件组件
if("${/model/employee_info/record/@employee_type_code}" != 'STAFF'){
document.getElementById('${/parameter/@layout_code}_C_ATTCH_2_con_contract_grid_id_wrap').style.display = 'none';
}
//if('${/parameter/@paper_sign_ccr}' == 'Y' && "${/model/get_contract_ccr/record/@crr_count}" == 'Y'){
// Leaf.showInfoMessage('${l:PROMPT}','此合同进行过签约前变更,请注意租赁开始日和对应的租金还款计划',null,250,100);
//}
}
}*/
]]>
</script>
</a:view>
</a:screen>
src/main/webapp/modules/cont/CON3400/contract_sales_report.lview
View file @
c621fdeb
...
...
@@ -113,17 +113,17 @@
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
record.data.division=record.data.division+',91';
};
if(record.data.lease_name92=='Y'){//add by gzj
record.data.division=record.data.division+',92';
};
//
if(record.data.lease_name92=='Y'){//add by gzj
//
record.data.division=record.data.division+',92';
//
};
if(record.data.lease_name99=='Y'){//add by gzj
record.data.division=record.data.division+',99';
};
if(record.data.lease_name95=='Y'){//add by gzj
record.data.division=record.data.division+',95';
};
if(record.data.lease_name93=='Y'){//add by gzj
record.data.division=record.data.division+',93';
};
if(record.data.lease_name95=='Y'){
record.data.division=record.data.division+',95';
};
record.data.division=record.data.division.substr(1,record.data.division.length);
$('contract_sales_result_ds').query();
...
...
@@ -144,6 +144,7 @@
<a:datas>
<a:record
code_value=
"LEASE"
code_value_name=
"直租"
/>
<a:record
code_value=
"LEASEBACK"
code_value_name=
"售后回租"
/>
<a:record
code_value=
"LEASEOPERAT"
code_value_name=
"经营性租赁"
/>
</a:datas>
</a:dataSet>
<a:dataSet
id=
"contract_sales_report_ds"
autoPageSize=
"true"
>
...
...
@@ -211,16 +212,17 @@
<a:checkBox
name=
"lease_name30"
bindTarget=
"contract_sales_report_ds"
prompt=
"高空作业车"
/>
<a:checkBox
name=
"lease_name50"
bindTarget=
"contract_sales_report_ds"
prompt=
"星邦高空作业车"
/>
<a:checkBox
name=
"lease_name60"
bindTarget=
"contract_sales_report_ds"
prompt=
"新业务"
/>
<!-- <a:checkBox name="lease_name70" bindTarget="contract_sales_report_ds" prompt="铁甲业务"/>-->
<a:checkBox
name=
"lease_name70"
bindTarget=
"contract_sales_report_ds"
prompt=
"二手机业务"
/>
<a:checkBox
name=
"lease_name80"
bindTarget=
"contract_sales_report_ds"
prompt=
"叉车"
/>
<!-- <a:checkBox name="lease_name90" bindTarget="contract_sales_report_ds" prompt="租赁二手机"/>-->
<a:checkBox
name=
"lease_name90"
bindTarget=
"contract_sales_report_ds"
prompt=
"租赁二手机(日立)"
/>
<a:checkBox
name=
"lease_name40"
bindTarget=
"contract_sales_report_ds"
prompt=
"其它"
/>
<a:checkBox
name=
"lease_name91"
bindTarget=
"contract_sales_report_ds"
prompt=
"神钢建机"
/>
//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox
name=
"lease_name92"
bindTarget=
"contract_sales_report_ds"
prompt=
"北京心诚"
/>
<a:checkBox
name=
"lease_name99"
bindTarget=
"contract_sales_report_ds"
prompt=
"工程机械"
/>
</a:form>
<!--<a:checkBox name="lease_name92" bindTarget="contract_sales_report_ds" prompt="北京心诚"/>-->
<a:checkBox
name=
"lease_name99"
bindTarget=
"contract_sales_report_ds"
prompt=
"工程机械"
/>
<a:checkBox
name=
"lease_name95"
bindTarget=
"contract_sales_report_ds"
prompt=
"经租设备"
/>
<a:checkBox
name=
"lease_name93"
bindTarget=
"contract_sales_report_ds"
prompt=
"新业务-厂商担保"
/>
</a:form>
<a:grid
id=
"contract_sales_result_ds_grid"
bindTarget=
"contract_sales_result_ds"
marginHeight=
"150"
navBar=
"true"
marginWidth=
"40"
>
<a:columns>
...
...
@@ -229,6 +231,7 @@
<a:column
name=
"journal_date"
prompt=
"记账日期"
align=
"center"
width=
"220"
renderer=
"formatDate"
/>
<a:column
name=
"division_n"
prompt=
"租赁物"
align=
"center"
width=
"220"
/>
<a:column
name=
"contract_number"
prompt=
"合同编号"
align=
"center"
width=
"220"
/>
<a:column
name=
"search_term_1"
prompt=
"厂商合同编号"
align=
"center"
width=
"220"
/>
<a:column
name=
"business_type_n"
prompt=
"业务类型"
align=
"center"
width=
"220"
/>
<a:column
name=
"bp_tenant_code"
prompt=
"承租人编号"
align=
"center"
width=
"220"
/>
<a:column
name=
"bp_tenant_name"
prompt=
"承租人名称"
align=
"center"
width=
"220"
/>
...
...
@@ -240,6 +243,8 @@
<a:column
name=
"sale_amount"
prompt=
"销售收入"
align=
"center"
width=
"220"
/>
<a:column
name=
"sale_penalty"
prompt=
"逾期利息收入"
align=
"center"
width=
"220"
/>
<a:column
name=
"sale_other"
prompt=
"其他收入"
align=
"center"
width=
"220"
/>
<a:column
name=
"deposit_value_amount"
prompt=
"保证金时间价值收益"
align=
"center"
width=
"220"
/>
<a:column
name=
"full_name"
prompt=
"设备名称"
align=
"center"
width=
"220"
/>
</a:columns>
</a:grid>
...
...
@@ -250,6 +255,7 @@
<a:column
name=
"sale_amount"
prompt=
"销售收入"
align=
"center"
width=
"220"
/>
<a:column
name=
"sale_penalty"
prompt=
"逾期利息收入"
align=
"center"
width=
"220"
/>
<a:column
name=
"sale_other"
prompt=
"其他收入"
align=
"center"
width=
"220"
/>
<a:column
name=
"deposit_value_amount"
prompt=
"保证金时间价值收益"
align=
"center"
width=
"220"
/>
<a:column
name=
"sum_total"
prompt=
"合计"
align=
"center"
width=
"220"
/>
</a:columns>
</a:grid>
...
...
src/main/webapp/modules/cont/CON3500/contract_ifrs9_report.lview
View file @
c621fdeb
...
...
@@ -40,8 +40,9 @@
record.data.division9='';
record.data.division10='';
record.data.division11='';
record.data.division12='';
record.data.division14='';
record.data.division12='';
record.data.division13='';
record.data.division14='';
if(record.data.lease_name10=='Y'){
record.data.division1='10';
}
...
...
@@ -72,21 +73,21 @@
if(record.data.lease_name91=='Y'){
record.data.division10='91';
};
if(record.data.lease_name92=='Y'){
record.data.division11='92';
//if(record.data.lease_name92=='Y'){
//record.data.division11='92';
//};
if(record.data.lease_name99=='Y'){
record.data.division12='99';
};
if(record.data.lease_name99
=='Y'){
record.data.divisio
12='99
';
if(record.data.lease_name95
=='Y'){
record.data.divisio
n13='95
';
};
if(record.data.lease_name93=='Y'){
record.data.divisio14='93';
};
if(record.data.lease_name95=='Y'){
record.data.division13='95';
record.data.division14='93';
};
// record.data.division=record.data.division.substr(1,record.data.division.length);
if(record.data.division1 == ''&&record.data.division2 == ''&&record.data.division3 == ''&&record.data.division4 == ''
&&record.data.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''&&record.data.division11 == ''&&record.data.division12 ==
''&&record.data.division13 ==
''&&record.data.division14 == ''){
&&record.data.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''&&record.data.division11 == ''&&record.data.division12 ==
''&&record.data.division13 ==
''&&record.data.division14 == ''){
// record.data.division1='10,20,30,40,50,60,70,80';
record.data.division1='10';
record.data.division2='20';
...
...
@@ -98,11 +99,10 @@
record.data.division8='80';
record.data.division9='90';
record.data.division10='91';
record.data.division11='92';
record.data.division12='99';
record.data.division14='93';
record.data.division13='95';
//record.data.division11='92';
record.data.division12='99';
record.data.division13='95';
record.data.division14='93';
};
param['division1']= record.data.division1;
param['division2']= record.data.division2;
...
...
@@ -115,9 +115,9 @@
param['division9']= record.data.division9;
param['division10']= record.data.division10;
param['division11']= record.data.division11;
param['division12']= record.data.division12;
param['division14']= record.data.division14
;
param['division13']= record.data.division13
;
param['division12']= record.data.division12;
param['division13']= record.data.division13
;
param['division14']= record.data.division14
;
param['period_name']=period_name;
param['function_code'] = 'CON3400N';
param['function_usage'] = 'MODIFY';
...
...
src/main/webapp/modules/cont/CON505/con_contract_modify.lview
View file @
c621fdeb
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/webapp/modules/cont/CON731/hls_con_contract_change_detail.lview
View file @
c621fdeb
...
...
@@ -4,9 +4,9 @@
<a:init-procedure>
<a:model-query
defaultWhereClause=
"t1.change_req_id = ${/parameter/@change_req_id}"
model=
"cus_deposit.CUS_DEPOSIT106.get_contract_wfl_status"
rootPath=
"default_value_path"
/>
<a:model-query
defaultWhereClause=
"t1.contract_id=${/parameter/@contract_id}"
fetchAll=
"true"
model=
"cont.CON_ET001.create_change_req"
rootPath=
"get_contract_division"
/>
<a:model-query
fetchAll=
"true"
model=
"cont.CON_ET001.con_asset_fee_calc"
rootPath=
"asset_flag_path"
></a:model-query>
</a:init-procedure>
<a:model-query
fetchAll=
"true"
model=
"cont.CON_ET001.create_change_req"
rootPath=
"get_contract_division"
/>
<a:model-query
fetchAll=
"true"
model=
"cont.CON_ET001.con_asset_fee_calc"
rootPath=
"asset_flag_path"
></a:model-query>
</a:init-procedure>
<a:view>
<!-- <a:link id="con731_calc_ccr_fee_link" model="cont.CON731.calc_ccr_fee" modelaction="execute"/>-->
<a:link
id=
"calc_leasse_amount_link"
model=
"cont.CON731.calc_leasse_date"
modelaction=
"execute"
/>
...
...
@@ -51,12 +51,12 @@
$(ds_con_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
$(ds_con_id).query();
}
//让历史信息查询
//让历史信息查询
var history_con_id=get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'T_HISTORY_INGO', 'hls_bp_master');
if($(history_con_id)){
var url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?bp_id=${/parameter/@bp_id}';
$(history_con_id).setQueryUrl(url);
$(history_con_id).query();
var url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?bp_id=${/parameter/@bp_id}';
$(history_con_id).setQueryUrl(url);
$(history_con_id).query();
}
//铁甲业务合同展示保证金字段 18083 2023/5/11
if('${/model/get_contract_division/record/@division}' !='70' && '${/model/get_contract_division/record/@division}' != ''){
...
...
@@ -68,14 +68,25 @@
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none";
}
}
//报价中资管费字段为否时,不展示资产管理费字段 18083 2024/1/29
}else if('${/model/get_contract_division/record/@division}' =='70'){
if('${/model/get_contract_division/record/@division_detail}' =='03'||'${/model/get_contract_division/record/@division_detail}' =='02' ){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_BALANCE").style.display = "none";
}
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_DEPOSIT_DEDUCTION").style.display = "none";
}
}
}
//报价中资管费字段为否时,不展示资产管理费字段 18083 2024/1/29
if('${/model/asset_flag_path/record/@hd_user_col_v06}' !='Y'){
if(document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST")){
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST_prompt").style.display = "none";
document.getElementById("CON_ET_MODIFY_F_QUOTATION_01_CON_CONTRACT_CHANGE_REQ_ASSET_POSSESSION_COST").style.display = "none";
}
}
}
}
});
function open_contract_win(ds_id, record_id) {
...
...
@@ -300,7 +311,6 @@
}
// 回款賬戶變更
if ('${/parameter/@layout_code}' == 'CON_ACCOUNT_CHANGE_MODIFY') {
debugger;
if (name == 'pay_method') {
if ( value== 'WIRE_TRANSFER') {
record.set('bank_account_id', null);
...
...
@@ -600,8 +610,7 @@
change_req_id: '${/parameter/@change_req_id}',
},
success: function (res) {
debugger;
same_flag = res.result.same_flag;
same_flag = res.result.same_flag;
},
failure: function () {
...
...
@@ -618,8 +627,7 @@
}else{
var showMessage ='担保人未发生变更,是否确认提交审批?';
}
// debugger;
Leaf.showConfirm('${l:HLS.PROMPT}', showMessage, function () {
Leaf.showConfirm('${l:HLS.PROMPT}', showMessage, function () {
var req_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract');
var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
...
...
@@ -910,8 +918,8 @@
}
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_BASE_10', 'con_contract_lease_item');
if(ds.id == lease_ds_id
&&
lease_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70'
|| record.data.division=='92'
){
var gridId= ds.bindname+'_layout_grid_id';
if(record.data.division=='70'){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('machine_number');
}else {
...
...
@@ -930,8 +938,7 @@
};*/
//add by lihh 20210330审批记录打印
window['${/parameter/@layout_code}_user_button4_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 records = $(ds_id).getCurrentRecord();
var document_id = records.get('contract_id');
var url_l;
...
...
@@ -950,7 +957,7 @@
}
var OpenWindow = window.open(href = url_l, target = "_blank");
};
//保存前调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
var check_flag = true;
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
c621fdeb
...
...
@@ -15,12 +15,14 @@
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_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_get_asset_fee_flag"
rootPath=
"asset_fee_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_division_detail"
rootPath=
"division_detail_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
]]>
</s:server-script>
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
]]>
</s:server-script>
</a:init-procedure>
<a:view>
<a:link
id=
"${/parameter/@layout_code}lease_prj_create_query_link"
...
...
@@ -71,7 +73,7 @@
var gridId= 'PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id';
$(gridId).hideColumn('machine_number_n');
}
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none';
...
...
@@ -85,27 +87,33 @@
$('${/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(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
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')){
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');
}
}
});
function check_empty(value){
});
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
return false;
}
}
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...
...
@@ -140,10 +148,10 @@
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
//首次插入
if (!record.get('calc_session_id')) {
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'||
division=='99'){
if(division=='30' || division=='50'||division=='99'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
...
...
@@ -152,7 +160,7 @@
return;
}
}
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y';
...
...
@@ -216,7 +224,7 @@
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'||
division=='99'){
if(division=='30' || division=='50'||division=='99'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
...
...
@@ -225,10 +233,10 @@
return;
}
}
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');
...
...
@@ -257,6 +265,7 @@
||(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)) {
//直接进入报价页面
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
...
...
@@ -285,7 +294,7 @@
$(quotation_ds_id).query();
$(history_ds_id).query();
});
}else {
}
else {
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y';
...
...
@@ -491,47 +500,7 @@
var project_id = project_record.get('project_id');
var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease');
if(!Leaf.isEmpty(secondary_lease) && secondary_lease !='YES'){
if(division == '92' && !Leaf.isEmpty(machine_number)){
Leaf.request({
url: $('check_machine_number_id').getUrl(),
para: {
machine_number: machine_number,
project_id :project_id
},
scope: this,
success: function (res) {
machine_number_num= res.result.record.v_count;
},
failure: function () {
return false;
},
scope: this,
sync: true
});
}
if (machine_number_num>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0
&&
count != 0){
count = 0;
return false;
}
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined'
&&
typeof(machine_number2) != 'undefined'){
if( machine_number1 != machine_number2){
$L.showErrorMessage('提示', '新报单的机号与关联的合同机号必须相同!');
return false;
}
}
}
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var bp_tenant_detail_r = $(score_ds_id).getCurrentRecord();
...
...
@@ -555,9 +524,9 @@
}
if (bp_tenant_detail_r && ds.id == prj_project_ds_id) {
for (var key in bp_tenant_detail_r.data) {
if(division!='70'
&&
division!='92
'){
if(division!='70
'){
//非铁甲排除铁甲必填
if (key != 'bp_detail_id'
&&
key != 'score_name'
&&
key != 'bp_age'
&&
key != 'project_id'
&&
key != 'contract_id'
&&
key != 'third_party_credibility'
&&
key != 'third_party_credibility_n'
&&
key != 'third_guar_score'
&&
key != 'tj_score' ) {
if (key != 'bp_detail_id' && key != '
division' && key != '
score_name' && key != 'bp_age' && key != 'project_id'&& key != 'contract_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&& key != 'tj_score' ) {
if(!bp_tenant_detail_r.get(key)){
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
...
...
@@ -566,19 +535,20 @@
bp_rate_flag = true;
}
}
}else if(division == '92'){
if (key != 'bp_detail_id'
&&
key != 'score_name'
&&
key != 'bp_age'
&&
key != 'contract_id'
&&
key != 'project_id'
&&
key != 'third_party_credibility'
&&
key != 'third_party_credibility_n'
&&
key != 'third_guar_score'
&&
key != 'tj_score') {
//if (!bp_tenant_detail_r.get(key)) {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
}else{
bp_rate_flag = true;
}
}
}else{
if (key != 'bp_detail_id'
&&
key != 'score_name'
&&
key != 'bp_age'
&&
key != 'project_id'
&&
key != 'contract_id'
&&
key != 'third_party_credibility'
&&
key != 'third_party_credibility_n'
&&
key != 'third_guar_score' ) {
}
else{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
}else{
bp_rate_flag = true;
}
}
}else{
if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'contract_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score' ) {
if(!bp_tenant_detail_r.get(key)){
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
...
...
@@ -587,6 +557,7 @@
bp_rate_flag = true;
}
}
}
}
}
...
...
@@ -638,9 +609,9 @@
return check_flag;
};
function prj501n_lease_number_renderer(record_id, ds_id){
var prj_quotation_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var prj_quotation_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
var record = $(ds_id).findById(record_id);
var param = {};
param['project_status'] = 'NEW';
...
...
@@ -726,7 +697,7 @@
if (prj_project_lease_item_ds_id==ds.id){
$(prj_quotation_ds_id).query();
}
var record = $(ds_id).getCurrentRecord();
var url = '${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query?project_id=${/parameter/@project_id}
&
bp_id=' + record.get('bp_id_tenant');
$(tenant_ds_id).setQueryUrl(url);
...
...
@@ -838,7 +809,7 @@
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
if(
tenant_ds_id =
=
ds.id){
if
(Leaf.isEmpty(record.get('send_message'))){
record.set('send_message',
'YES');
record.set('send_message_n',
'是');
...
...
@@ -856,8 +827,7 @@
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id)
{
//产品线不为二手机业务,将资管费等字段置空
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
...
...
@@ -885,95 +855,86 @@
record.getField('customer_margin').setReadOnly(true);
record.getField('customer_margin_n').setReadOnly(true);
}
if
(division
!=
'70'
&&division!='92'
&&
division
!=
'')
{
if
(division
!=
'70'
&&
division
!=
'')
{
if(division
!=
'93'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
}
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')
.style.display =
'none'
;
}
else
if
((
division=
='70'||
division=
='92')&&division!='')
{
}
}
else
if
(
division=
='70'&&division!='')
{
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
//北京心诚与云南铁拳隐藏承租人保证金字段
18083
2023/5/24
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
}
}
}
if
(
division=
='92'
&&
division
!=
'')
{
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
}
}
if
(
ds_id =
=
ds.id
&&
ds_id)
{
division=
record.get('division');
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'none'
;
}else
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'block'
;
//
神钢建机时,当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(record.get('secondary_lease')
==
'YES'
||
record.get('secondary_lease_new')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO'
&&
record.get('secondary_lease_new')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
if
(record.get('secondary_lease')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
//业务类型回租时,默认只读“首付款抵扣”选项
if
(record.get('business_type')
==
'LEASEBACK')
{
...
...
@@ -991,9 +952,13 @@
record.getField('bank_account_id_n').setRequired(false);
}
if(
division =
=
'92'){
//云南铁拳,调整租金支付方式为必填
if(
division =
=
'70'){
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
//深圳美鹏和hcs显示分公司,其他隐藏
var
bp_code =
'${/model/user_agent_description/record/@bp_code}'
;
...
...
@@ -1012,15 +977,16 @@
var
description =
'${/model/description/record/@employee_type_code}'
;
var
bp_code=
'${/model/user_agent_description/record/@bp_code}'
;
var
invoice_agent_id=
record.get('invoice_agent_id');
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if((
division=
='80'||division=='30'||division=='50'||division=='99')
&&
bp_code
!==
'D00010019'){
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
}
}
}
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if((
division=
='80'||division=='30'||division=='50'||division=='99')
&&
bp_code
!==
'D00010019'){
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
}
}
}
//博雷顿展示
授信额度占用
字段
if(division
!='93'){
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if(bp_code
!==
'D00000029'
&&
bp_code
!==
'D00000031'
&&
bp_code
!==
'D00000026'
&&
bp_code
!==
'D00000030'){
...
...
@@ -1031,52 +997,70 @@
record.getField('credit_line_n').setRequired(false);
record.getField('credit_line').setReadOnly(true);
record.getField('credit_line_n').setReadOnly(true);
}else
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
}
}
}
}else
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
}
}
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”或"建行扣款(两方)"时展示,必填,大于0,默认20万,可修改;
if
(record.get('PAY_METHOD')
==
'CCB_THREE'||record.get('PAY_METHOD')
==
'CCB_TWO')
{
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'block'
;
}
record.getField('deduction_limit').setRequired(true);
}
else
{
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'none'
;
}
record.getField('deduction_limit').setRequired(false);
}
}
if(document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
//add
by
wangwei
非铁甲业务隐藏铁甲评分
var
bp_tenant_rate_detail_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'bp_tenant_rate_detail');
if
(
bp_tenant_rate_detail_ds_id =
=
ds.id
&&
bp_tenant_rate_detail_ds_id)
{
if
(division
!=
'70'
&&
division
!=
'')
{
if
(division
!=
'70'
&&
division
!=
'')
{
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
//铁甲细分非产品线细分一隐藏铁甲平分
}else
if(
division =
=
'70'
&&
division
!=
''
&&
('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}
}
};
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
var
quo_rate_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_RATE_N',
'prj_quotation');
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
var
quo_rate_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_RATE_N',
'prj_quotation');
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
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if('${/parameter/@asset_fee_flag}'=='Y'){
...
...
@@ -1095,10 +1079,11 @@
$('${/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
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//
隐藏
组件
//
展示
组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
...
...
@@ -1106,10 +1091,12 @@
$('${/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(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
@@ -1124,7 +1111,7 @@
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='30'||division=='50'||division=='80'||
division=
='99'){
if(
division=
='30'||division=='50'||division=='80'||division=='99'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
...
...
@@ -1135,7 +1122,7 @@
}
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'
||
division=
='92'
){
if(
division=
='70'){
if(
name=
='lease_name_n'){
record.data.type_name=
value;
}else
if(
name=
='modelcd'){
...
...
@@ -1148,16 +1135,16 @@
//选择承租人带出开票信息
if
(
prj_project_ds_id =
=
ds.id
&&
prj_project_ds_id)
{
if
(
name =
=
"payment_deduction"
&&
value=
="DOWN_PAYMENT_DEDUCTION")
{
//业务类型回租时,默认只读“首付款抵扣”选项
if
($(prj_project_ds_id).getAt(0).get('business_type')
==
'LEASE')
{
Leaf.showInfoMessage("提示",
"直租业务不能选择首付款抵扣");
setTimeout(function
()
{
$(prj_project_ds_id).getAt(0).set('payment_deduction',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n',
null);
},
10);
//业务类型回租时,默认只读“首付款抵扣”选项
if
($(prj_project_ds_id).getAt(0).get('business_type')
==
'LEASE')
{
Leaf.showInfoMessage("提示",
"直租业务不能选择首付款抵扣");
setTimeout(function
()
{
$(prj_project_ds_id).getAt(0).set('payment_deduction',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n',
null);
},
10);
}
}
}
if
(
name =
=
"bp_id_tenant_n"
&&
value)
{
var
bp_id_tenant =
record.get('bp_id_tenant');
Leaf.Masker.mask(Ext.getBody());
...
...
@@ -1265,86 +1252,26 @@
}
//add
by
niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if(record.get('division')
!='91')
{
if
(
name =
=
'secondary_lease')
{
if
(
value =
=
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}else
{
//当“旧机二次租赁”、“新机二次租赁”中任意一个为“是”,则系统提示只能任选其一(两个都选择是,则提示)
//当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(
name =
=
'secondary_lease_new'){
if
(
value =
=
'YES')
{
if
(record.get('secondary_lease')
==
'YES')
{
record.set('secondary_lease_new','NO');
record.set('secondary_lease_new_n','否');
Leaf.showMessage('${l:HLS.PROMPT}',
'旧机二次租赁、新机二次租赁只能任选其一!');
return
false;
}
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if
(
value =
=
'NO')
{
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
if
(
name =
=
'secondary_lease'){
if
(
value =
=
'YES')
{
if
(record.get('secondary_lease_new')
==
'YES')
{
record.set('secondary_lease','NO');
record.set('secondary_lease_n','否');
Leaf.showMessage('${l:HLS.PROMPT}',
'旧机二次租赁、新机二次租赁只能任选其一!');
return
false;
}
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if
(
value =
=
'NO')
{
if
(record.get('secondary_lease_new')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
if
(
name =
=
'secondary_lease')
{
if
(
value=
='YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if(
value=
='NO'){
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',null);
record.set('repur_contract_id_n',null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(
name=
='pay_method')
{
...
...
@@ -1406,11 +1333,15 @@
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
if (value == 'HL_PRICR_E' || value == 'HL_PRICR_EN') {
if(document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
}
} else {
if(document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
quotation_record.set('large_balance', 'NO');
quotation_record.set('large_balance_n', '否');
}
...
...
@@ -1419,9 +1350,10 @@
}
}
}
if(document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('PROJECT_CREATE_NP_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
};
...
...
@@ -1432,12 +1364,12 @@
//控制资管费现金流隐藏
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_NS', 'prj_quotation');
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'
&&
division!='99'){
$(gridId).hideColumn('machine_number_n');
}
if(division=='70'
|| division=='92'
){
if(division=='70'){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
...
...
@@ -1465,9 +1397,9 @@
record.getField('bp_id_n').setReadOnly(true);
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 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');
//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');
...
...
@@ -1475,13 +1407,13 @@
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
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'))) {
}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');
...
...
@@ -1492,18 +1424,20 @@
$('${/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')){
}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');
}
}
}
}
}
}
}
}
};
//序号自增 add by lijingjing
...
...
@@ -1525,7 +1459,7 @@
}
var
rk_value =
seq_num
+
1;
record.set('lease_item_seq',
rk_value);
if(
division=
='70'
||
division=
='92'
){
if(
division=
='70'){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setRequired(true);
...
...
@@ -1628,7 +1562,7 @@
Leaf.showMessage('${l:PROMPT}',
'${l:HLS.EXECUTE_AFTER_SAVE}');
return;
}
if(current_record.get('division')=='70'
||
current_record.get('division')=='92'
){
if(current_record.get('division')=='70'){
var
bp_number;
$L.request({
url:
'${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
...
...
@@ -1676,10 +1610,10 @@
if
($(ds_id).validate())
{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if(
division=
='30'||division=='50'||
division=
='99'){
if(
division=
='30'||division=='50'||division=='99'){
var
record=
$(lease_ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
set_number=
records.get('set_number');
...
...
@@ -1687,7 +1621,7 @@
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
q_value=
records.get('q_value');
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
...
...
@@ -1700,8 +1634,8 @@
return;
}
}
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
...
...
@@ -1738,7 +1672,7 @@
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if(
division=
='30'||division=='50'||
division=
='99'){
if(
division=
='30'||division=='50'||division=='99'){
var
record=
$(lease_ds_id).getCurrentRecord();
var
records=
$(ds_id).getCurrentRecord();
var
set_number=
records.get('set_number');
...
...
@@ -1746,7 +1680,7 @@
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
q_value=
records.get('q_value');
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
...
...
@@ -1759,8 +1693,8 @@
return;
}
}
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
...
...
@@ -1811,7 +1745,7 @@
}
Leaf.onReady(function(){
if(
division=
='70'
||
division=
='92'
){
if(
division=
='70'){
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('full_name_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('division_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('equipments');
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create_entrance.lview
View file @
c621fdeb
...
...
@@ -34,16 +34,10 @@
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var record = $(ds_id).getCurrentRecord();
if(record.data.division=='70'&&record.data.business_type!='LEASEBACK'){
debugger;
// $L.showErrorMessage("提示", '租赁物为铁甲业务的业务类型只能是售后回租!');
$L.showErrorMessage("提示", '租赁物为二手机业务的业务类型只能是售后回租!');
return false;
}
if(record.data.division=='92'&&record.data.business_type!='LEASEBACK'){
debugger;
$L.showErrorMessage("提示", '租赁物为北京卡家的业务类型只能是售后回租!');
return false;
return false;
}
if(record.data.division=='95'&&record.data.business_type!='LEASEOPERAT'){
$L.showErrorMessage("提示", '租赁物为经租设备的业务类型只能是经营性租赁!');
return false;
...
...
@@ -64,10 +58,10 @@
record.set('function_code', 'PRJ500D');
url = "prj_chance_create_link";
}
record.data['url_title'] = '报价申请创建';
record.set('function_usage', 'CREATE');
record.set('document_category', 'PROJECT');
record.set('default_value_dsid', ds_id);
record.data['url_title'] = '报价申请创建';
var param = record.data;
record.set('winid', 'prj_porject_create_win_id');
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
c621fdeb
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: wangwei5743
$Date: 2014-10-8 下午3:16:19
$Revision: 1.0
$purpose: 租赁申请创建 创建界面
$Author: wangwei5743
$Date: 2014-10-8 下午3:16:19
$Revision: 1.0
$purpose: 租赁申请创建 创建界面
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:s=
"leaf.plugin.script"
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
trace=
"true"
>
...
...
@@ -18,18 +18,21 @@
<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_get_asset_fee_flag"
rootPath=
"asset_fee_path"
></a:model-query>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_division_detail"
rootPath=
"division_detail_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.division_detail = $ctx.get('/model/division_detail_path/record/@division_detail');
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
]]>
</s:server-script>
]]>
</s:server-script>
</a:init-procedure>
<a:view>
<a:link
id=
"prj501N_prj_lease_item_maintain_link"
model=
"prj.PRJ500N.prj_project_lease_item_delete"
modelaction=
"execute"
/>
<a:link
id=
"hls_bp_master_billing_link"
model=
"prj.PRJ500N.hls_bp_master_billing"
modelaction=
"query"
/>
<a:link
id=
"bp_tenant_detail_query_link"
model=
"prj.PRJ500D.bp_tenant_old_r_query"
modelaction=
"query"
/>
<a:link
id=
"${/parameter/@pre_layout}get_special_fields_link_id"
<a:link
id=
"${/parameter/@
layout_code}${/parameter/@
pre_layout}get_special_fields_link_id"
model=
"cont.CON500.con_contract_get_special_fields"
modelaction=
"update"
/>
<a:link
id=
"${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id"
url=
"${/request/@context_path}/uploadFile.lview"
/>
...
...
@@ -126,7 +129,7 @@
});
};
function check_empty(value){
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
...
...
@@ -135,8 +138,10 @@
}
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
var url;
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
...
...
@@ -177,7 +182,7 @@
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
//首次插入
if (!record.get('calc_session_id')) {
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'|| division=='99'){
...
...
@@ -189,7 +194,7 @@
return;
}
}
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y';
...
...
@@ -265,11 +270,10 @@
return;
}
}
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');
...
...
@@ -288,16 +292,18 @@
if(check_empty(int_rate_display)){
int_rate_display=0;
}
if(check_empty(cal_btb_int_rate)){
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)) {
//直接进入报价页面
var win = new Leaf.Window({
id: 'hls_fin_calc_quotation_update_link_winid',
...
...
@@ -717,25 +723,27 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
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');
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
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//
取消
隐藏组件
//隐藏组件
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');
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');
}
}
}
}
}
}
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
@@ -751,7 +759,7 @@
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'
||division=='92'
){
if(
division=
='70'){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setRequired(true);
...
...
@@ -924,91 +932,37 @@
}
//add
by
niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if(record.get('division')
!='91')
{
if
(
name =
=
'secondary_lease')
{
if
(
value =
=
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}else
{
//当“旧机二次租赁”、“新机二次租赁”中任意一个为“是”,则系统提示只能任选其一(两个都选择是,则提示)
//当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(
name =
=
'secondary_lease_new'){
if
(
value =
=
'YES')
{
if
(record.get('secondary_lease')
==
'YES')
{
record.set('secondary_lease_new','NO');
record.set('secondary_lease_new_n','否');
Leaf.showMessage('${l:HLS.PROMPT}',
'旧机二次租赁、新机二次租赁只能任选其一!');
return
false;
}
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if
(
value =
=
'NO')
{
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
if
(
name =
=
'secondary_lease'){
if
(
value =
=
'YES')
{
if
(record.get('secondary_lease_new')
==
'YES')
{
record.set('secondary_lease','NO');
record.set('secondary_lease_n','否');
Leaf.showMessage('${l:HLS.PROMPT}',
'旧机二次租赁、新机二次租赁只能任选其一!');
return
false;
}
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if
(
value =
=
'NO')
{
if
(record.get('secondary_lease_new')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
if
(
name =
=
'secondary_lease')
{
if
(
value =
=
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(
name=
='pay_method')
{
if(
value=
='CCB_THREE'||value=='CCB_TWO'){
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'block'
;
}
record.getField('deduction_limit').setRequired(true);
if(Ext.isEmpty(record.get('deduction_limit'))){
record.set('deduction_limit',200000);
...
...
@@ -1016,8 +970,10 @@
}else{
record.getField('deduction_limit').setRequired(false);
record.set('deduction_limit',null);
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'none'
;
}
}
}
}
...
...
@@ -1063,21 +1019,27 @@
var quotation_record = $(prj_quotation_ds_id).getCurrentRecord();
if ($(prj_project_ds_id).getAt(0).get('business_type') == 'LEASE') {
if (value == 'HL_PRICR_E' || value == 'HL_PRICR_EN'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'block';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'block';
}
}else{
quotation_record.set('large_balance','NO');
quotation_record.set('large_balance_n','否');
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
}
}
}
}
}
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
};
...
...
@@ -1097,7 +1059,7 @@
if(division!='30'
&&
division!='50'
&&
division!='99'){
$(gridId).hideColumn('machine_number_n');
}
if(
(division=='70'||division=='92')
&&
division!=''){
if(
division=='70'
&&
division!=''){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
...
...
@@ -1133,7 +1095,7 @@
$(gridId).hideColumn('created_by_n');
}
if (lease_item_ds_id == ds.id
&&
lease_item_ds_id) {
if(division=='30'||division=='50'||division=='80'||division=='99'){
if(division=='30'||division=='50'||division=='80'||
division=='99'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
...
...
@@ -1153,7 +1115,7 @@
record.getField('bp_id_n').setReadOnly(true);
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 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}'==''){
...
...
@@ -1163,13 +1125,13 @@
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
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'))) {
}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');
...
...
@@ -1180,18 +1142,20 @@
$('${/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')){
}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');
}
}
}
}
}
}
}
}
};
function arrToObject(arr) {
...
...
@@ -1205,7 +1169,8 @@
}
var
division=
''
;
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
if(
tenant_ds_id =
=
ds.id){
if
(Leaf.isEmpty(record.get('send_message'))){
...
...
@@ -1236,81 +1201,51 @@
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(record.get('pay_method')
==
'CCB_THREE'||record.get('pay_method')
==
'CCB_TWO')
{
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'block'
;
}
record.getField('deduction_limit').setRequired(true);
}
else
{
if(document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')){
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'none'
;
}
record.getField('deduction_limit').setRequired(false);
}
if('${/parameter/@function_usage}'!='QUERY')
{
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'none'
;
}else
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'block'
;
//
神钢建机时,当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(record.get('secondary_lease')
==
'YES'
||
record.get('secondary_lease_new')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO'
&&
record.get('secondary_lease_new')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
if
('${/parameter/@function_usage}'
!=
'QUERY')
{
if
(record.get('secondary_lease')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
else
{
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
else
if
(record.get('secondary_lease')
==
'NO')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'none'
;
}else
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'block'
;
//
神钢建机时,当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(record.get('secondary_lease')
==
'YES'
||
record.get('secondary_lease_new')
==
'YES')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
else
if
(record.get('secondary_lease')
==
'NO'
&&
record.get('secondary_lease_new')
==
'NO')
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
if
(record.get('secondary_lease')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
}
else
if
(record.get('secondary_lease')
==
'NO')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
//业务类型回租时,默认只读“首付款抵扣”选项
...
...
@@ -1330,9 +1265,12 @@
}
if
('${/parameter/@function_usage}'
!=
'QUERY')
{
if
(
division =
=
'92')
{
//云南铁拳并入二手机,调整租金支付方式为必填
if
(
division =
=
'70')
{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
}
...
...
@@ -1362,14 +1300,16 @@
var
credit_record =
$(ds_id).getCurrentRecord();
var
invoice_agent_id=
record.get('invoice_agent_id');
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if((
division=
='80'||division=='30'||division=='50'||
division=
='99')
&&
bp_code
!==
'D00010019'){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
}
}
}
//博雷顿展示
授信额度占用
字段
if(division
!='93')
{
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if((
division=
='80'||division=='30'||division=='50'||
division=
='99')
&&
bp_code
!==
'D00010019'){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
}
}
}
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if(bp_code
!==
'D00000026'
&&
bp_code
!==
'D00000029'
&&
bp_code
!==
'D00000030'
&&
bp_code
!==
'D00000031'){
...
...
@@ -1382,17 +1322,20 @@
credit_record.getField('credit_line_n').setRequired(false);
}else
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
else
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
}
}
}
}
else
{
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
}
}else
{
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
}
}
//只读页面隐藏保存按钮
...
...
@@ -1402,7 +1345,7 @@
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
//产品线维护了组合利率的调整加载事件显示
//产品线维护了组合利率的调整加载事件显示
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
...
...
@@ -1412,7 +1355,6 @@
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
}else{
if
(check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N'
)
{
record.set('asset_id',
null);
...
...
@@ -1440,49 +1382,66 @@
record.getField('customer_margin').setReadOnly(true);
record.getField('customer_margin_n').setReadOnly(true);
}
if(division!='70'&&division!='
92'&&division!='
'){
if(division!='70'&&division!=''){
if(division
!=
'93'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
}
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_MODELCD')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_USING_HOUR')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_RESIDUAL_VALUE_AMOUNT')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OWNERSHIP_FLAG')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_PRODUCE_DATE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')
.style.display =
'none'
;
}else
if((
division=
='70'||division=='92')&&division!=''){
}
}else
if((
division=
='70')&&division!=''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_THIRD_PARTY_DEPOSIT')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE2')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
if
(
division=
='92'
&&
division
!=
'')
{
}
//北京心诚与云南铁拳隐藏承租人保证金字段
18083
2023/5/24
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
}
}
}
var
bp_code =
'${/model/user_agent_description/record/@bp_code}'
;
if
(!Ext.isEmpty(bp_code)){
...
...
@@ -1494,30 +1453,46 @@
var
quotation_record =
$(prj_quotation_ds_id).getCurrentRecord();
if
($(ds_id).getAt(0).get('business_type')
==
'LEASE')
{
if
(quotation_record.get('price_list')
==
'HL_PRICR_E'
||
quotation_record.get('price_list')
==
'HL_PRICR_EN'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'block'
;
}
}else{
quotation_record.set('large_balance','NO');
quotation_record.set('large_balance_n','否');
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
}
}
}else{
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
}
}else
{
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
}
}
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
if
(
score_ds_id =
=
ds.id)
{
if
(division
!=
'70'
&&
division
!=
'')
{
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
//铁甲细分非产品线细分一隐藏铁甲评分
}else
if(
division =
=
'70'
&&
division
!=
''
&&
('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}
if
(!record.get('score_name'))
{
if
($(ds_id).getCurrentRecord())
{
var
score_name =
$(ds_id).getCurrentRecord().get('legal_person')
||
$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
...
...
@@ -1525,8 +1500,10 @@
}
}
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
};
//pdf预览
add
by
zhuxianfei
...
...
@@ -1560,7 +1537,7 @@
var
billing_url =
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'
;
$(billing_ds_id).setQueryUrl(billing_url);
$(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')
.style.display =
'none'
;
...
...
@@ -1570,11 +1547,15 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
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')){
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');
}
}
});
//序号自增
add
by
lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
...
...
@@ -1669,7 +1650,6 @@
};
window['${/parameter/@layout_code}_user_button1_layout_dynamic_click']
=
function
()
{
debugger;
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
lease_item_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project_lease_item');
var
quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
...
...
@@ -1684,26 +1664,36 @@
if
(bp_tenant_detail_r)
{
for
(var
key
in
bp_tenant_detail_r.data)
{
if(division!='70'){
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'&&
key
!=
'contract_id'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&
key
!=
'tj_score'
)
{
//if
(!bp_tenant_detail_r.get(key))
{
if
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
key
!=
'score_name'&&
key
!=
'contract_id'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&
key
!=
'tj_score'
)
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
return;
}
}
}else{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'&&
key
!=
'contract_id'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'
)
{
//if
(!bp_tenant_detail_r.get(key))
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&key
!=
'tj_score')
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag =
false;
break;
}else{
bp_rate_flag =
true;
}
}
}else{
if
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
key
!=
'score_name'&&
key
!=
'contract_id'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'
)
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
return;
}
}
}
}
}
}
if(current_record.get('division')=='70'
||
current_record.get('division')=='92'
){
if(current_record.get('division')=='70'){
var
bp_number;
$L.request({
url:
'${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
...
...
@@ -1779,7 +1769,7 @@
var
show =
down_payment_rate_new
*
100;
if
((
price_list =
=
'HL_PRICR_E'
||
price_list =
=
'HL_PRICR_TEST'
||
price_list =
=
'HL_PRICR_NTEST'
||
price_list =
=
'HL_PRICR_EN')
&&
secondary_lease =
=
'NO')
{
if
((div((H16
+
H97),
(H99
+
H102
-
H16)).toFixed(2)
*
1)
<
down_payment_rate_new)
{
if(current_record.get('division')!='91'){
if(current_record.get('division')!='91'
&¤t_record.get('division')!='93'
){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
return;
...
...
@@ -2093,31 +2083,22 @@
return
false;
}
if
(record.get('signing_city')){
var
reg =
/^(.){4,}$/;
if
(!reg.test(record.get('signing_city')))
{
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
return
false;
//
var
reg =
/^([\u2E80-\u9FFF]){4,}$/;
//
var
reg =
/^(.){4,}$/;
//
if
(!reg.test(record.get('signing_city')))
{
//
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
//
return
false;
//
}
if
(record.get('signing_city').indexOf('州')
==
-1
&&
record.get('signing_city').indexOf('县')
==
-1
&&
record.get('signing_city').indexOf('区')
==
-1)
{
Leaf.showConfirm('${HLS.PROMPT}',
'合同签订地所填写内容,未细化到区/县/州级别,是否确认?',
function
()
{});
}
}
}
if
(bp_tenant_detail_r
&&
ds.id =
=
prj_project_ds_id)
{
for
(var
key
in
bp_tenant_detail_r.data)
{
if(division
!=
'70'&&division!='92'){
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&key
!=
'tj_score')
{
//if
(!bp_tenant_detail_r.get(key))
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag =
false;
break;
}
else
{
bp_rate_flag =
true;
}
}
}else
if(
division =
=
'92'){
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&key
!=
'tj_score')
{
//if
(!bp_tenant_detail_r.get(key))
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
if(division
!=
'70'){
if
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&key
!=
'tj_score')
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag =
false;
break;
...
...
@@ -2126,8 +2107,18 @@
}
}
}else{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score')
{
//if
(!bp_tenant_detail_r.get(key))
{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'&&key
!=
'tj_score')
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag =
false;
break;
}else{
bp_rate_flag =
true;
}
}
}else{
if
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score')
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag =
false;
...
...
@@ -2137,6 +2128,7 @@
}
}
}
}
}
}
...
...
@@ -2150,48 +2142,7 @@
var
project_id =
project_record.get('project_id');
var
machine_number_num =
0;
var
secondary_lease =
project_record.get('secondary_lease');
if(!Leaf.isEmpty(secondary_lease)
&&
secondary_lease!='YES'){
if(
division =
=
'92'
&&
!Leaf.isEmpty(machine_number)){
Leaf.request({
url:
$('check_machine_number_id').getUrl(),
para:
{
machine_number:
machine_number,
project_id
:
project_id
},
scope:
this,
success:
function
(res)
{
machine_number_num=
res.result.record.v_count;
},
failure:
function
()
{
return
false;
},
scope:
this,
sync:
true
});
}
if
(machine_number_num
>
0
&&
count == 0){
count = count+1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
}else if(machine_number_num>0
&&
count != 0){
count = 0;
return false;
}
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined'
&&
typeof(machine_number2) != 'undefined'){
if( machine_number1 != machine_number2){
$L.showErrorMessage('提示', '新报单的机号与关联的合同机号必须相同!');
return false;
}
}
}
return
true;
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
c621fdeb
...
...
@@ -13,17 +13,18 @@
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_description"
/>
<a:model-query
fetchAll=
"true"
model=
"zjwfl.ZJWFL1060.zi_wfl_approve_get_submitted"
rootPath=
"approve_history_rp"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_asset_fee_flag"
rootPath=
"asset_fee_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.prj_project_get_division_detail"
rootPath=
"division_detail_path"
></a:model-query>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.
asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag
');
$ctx.parameter.asset_fee_flag = $ctx.get('/model/asset_fee_path/record/@asset_fee_flag');
$ctx.parameter.
division_detail = $ctx.get('/model/division_detail_path/record/@division_detail
');
]]>
</s:server-script>
</a:init-procedure>
<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,12 +61,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_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"
/>
...
...
@@ -116,7 +118,7 @@
});
};
function check_empty(value){
function check_empty(value){
if(Ext.isEmpty(value)||typeof(value)=='undefined'||value==''||value==null){
return true;
}else{
...
...
@@ -125,6 +127,7 @@
}
//add by zhuxianfei
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
...
...
@@ -228,7 +231,7 @@
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');
...
...
@@ -374,10 +377,9 @@
}
if (bp_tenant_detail_r && ds.id == prj_project_ds_id) {
for (var key in bp_tenant_detail_r.data) {
if(division!='70'&&division != '92'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score'&&key != 'tj_score') {
//if(!bp_tenant_detail_r.get(key)){
if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
if(division!='70'){
if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
...
...
@@ -385,20 +387,19 @@
bp_rate_flag = true;
}
}
}else if(division == '92'){
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
//if (!bp_tenant_detail_r.get(key)) {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
}else{
bp_rate_flag = true;
}
}
} else{
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score') {
//if(!bp_tenant_detail_r.get(key)){
}else{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age'&& key != 'contract_id' && key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'third_guar_score'&&key != 'tj_score') {
if (typeof bp_tenant_detail_r.get(key) == "null" || typeof bp_tenant_detail_r.get(key) == "undefined" || bp_tenant_detail_r.get(key) === "") {
Leaf.showInfoMessage("提示", "承租人评分信息区域的所有字段,除\"第三方担保附件得分\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
break;
}else{
bp_rate_flag = true;
}
}
}else{
if (key != 'bp_detail_id' && key != 'division' && key != 'score_name' && key != 'bp_age' && key != 'project_id'&& key != 'third_party_credibility' && key != 'third_party_credibility_n'&& key != 'contract_id'&& key != 'third_guar_score') {
if (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方担保附件分数\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
...
...
@@ -408,7 +409,7 @@
}
}
}
}
}
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
...
...
@@ -418,47 +419,7 @@
var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0;
var secondary_lease = project_record.get('secondary_lease');
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(),
para: {
machine_number: machine_number,
project_id: project_id
},
scope: this,
success: function (res) {
machine_number_num = res.result.record.v_count;
},
failure: function () {
return false;
},
scope: this,
sync: true
});
}
if (machine_number_num >
0
&&
count == 0) {
count = count + 1;
$L.showErrorMessage('提示', '该机号已存在,请重新确认!');
return false;
} else if (machine_number_num > 0
&&
count != 0) {
count = 0;
return false;
}
}
//神钢建机,新报单的机号与关联的合同机号必须相同
if(division == '91'){
debugger;
var machine_number1 = lease_item_record.get('machine_number');
var machine_number2 = project_record.get('machine_number');
if(typeof(machine_number1) != 'undefined'
&&
typeof(machine_number2) != 'undefined'){
if( machine_number1 != machine_number2){
$L.showErrorMessage('提示', '新报单的机号与关联的合同机号必须相同!');
return false;
}
}
}
if(!bp_rate_flag){
return false;
}
...
...
@@ -681,12 +642,12 @@
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
//控制资管费现金流隐藏
var cashflow_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_CASHFLOW_NS', 'prj_quotation');
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'){
$(gridId).hideColumn('machine_number_n');
}
if(
(division=='70'||division=='92')
&&
division!=''){
if(
division=='70'
&&
division!=''){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
...
...
@@ -745,9 +706,9 @@
record.getField('bp_id_n').setReadOnly(true);
}
}
//现金流列表加载时隐藏资管费 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');
//现金流列表加载时隐藏资管费 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');
...
...
@@ -755,13 +716,13 @@
}
}else{
if(Ext.isEmpty($(cashflow_ds_id).getAt(0))){
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'))) {
}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');
...
...
@@ -772,15 +733,15 @@
$('${/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')){
}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');
}
}
}
}
}
}
}
}
...
...
@@ -846,6 +807,49 @@
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);
...
...
@@ -855,8 +859,7 @@
var
billing_url =
'${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_bp/query?project_id=${/parameter/@project_id}'
;
$(billing_ds_id).setQueryUrl(billing_url);
$(billing_ds_id).query();
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
//不为租赁二手机业务时隐藏资管费相关字段及费率
18083
2023/1/15
if('${/parameter/@asset_fee_flag}'=='N'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')
.style.display =
'none'
;
...
...
@@ -866,15 +869,14 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
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')){
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');
}
//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');
//}
}
})
//序号自增
add
by
lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
...
...
@@ -965,7 +967,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
},
...
...
@@ -1021,6 +1023,11 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}else
if(record.get('division')
==
'70'
&&
division
!=
''
&&
('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}
}
if
(
ds_id =
=
ds.id
&&
ds_id)
{
...
...
@@ -1049,104 +1056,37 @@
record.getField('deduction_limit').setRequired(false);
}
if('${/parameter/@function_usage}'!='QUERY')
{
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'none'
;
}
}else
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'block'
;
if
(record.get('secondary_lease')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
//
神钢建机时,当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(record.get('secondary_lease')
==
'YES'
||
record.get('secondary_lease_new')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO'
&&
record.get('secondary_lease_new')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
else
{
if(division!='91')
{
if
(record.get('secondary_lease')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
}
else
if
(record.get('secondary_lease')
==
'NO')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
//“新机二次租赁”字段仅展示在神钢产品线的页面中,其余产品线不展示
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'none'
;
}
}else
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_SECONDARY_LEASE_NEW')
.style.display =
'block'
;
if
(record.get('secondary_lease')
==
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
//
神钢建机时,当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(record.get('secondary_lease')
==
'YES'
||
record.get('secondary_lease_new')
==
'YES')
{
if(
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
}
else
if
(record.get('secondary_lease')
==
'NO'
&&
record.get('secondary_lease_new')
==
'NO')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
else
if
(record.get('secondary_lease')
==
'NO')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
...
...
@@ -1168,9 +1108,12 @@
}
if
('${/parameter/@function_usage}'
!=
'QUERY')
{
if
(
division =
=
'92')
{
//云南铁拳并入二手机,调整租金支付方式为必填
if
(
division =
=
'70')
{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
record.getField('pay_method').setReadOnly(false);
record.getField('pay_method_n').setReadOnly(false);
}
}
}
//深圳美鹏和hcs显示分公司,其他隐藏
...
...
@@ -1191,6 +1134,7 @@
var
create_bp_code =
'${/model/approve_history_rp/record/@bp_code}'
;
var
credit_record =
$(ds_id).getCurrentRecord();
if(!Ext.isEmpty(create_bp_code)){
if(
create_bp_code =
=
'D00000029'
||
create_bp_code =
=
'D00000026'
||
create_bp_code =
=
'D00000030'
||
create_bp_code =
=
'D00000031'){
if('${/parameter/@editable_flag}'
==
'Y'
||
'${/parameter/@editable_flag}'
==
'YE'){
credit_record.getField('credit_line').setReadOnly(false);
...
...
@@ -1213,34 +1157,42 @@
document.getElementById('${/parameter/@layout_code}_save')
.style.display =
"none"
;
}
}
}else
if('${/parameter/@editable_flag}'
!=
'YE'){
}else
if('${/parameter/@editable_flag}'
!=
'YE'
&&
division
!=
'93'
){
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save')
.style.display =
"none"
;
}
}else
{
}else
if(division
!='93')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
}else
if(
division=
='93'
&&
'${/parameter/@editable_flag}'
==
'YE'){
credit_record.getField('credit_line').setReadOnly(false);
credit_record.getField('credit_line_n').setReadOnly(false);
credit_record.getField('credit_line').setRequired(true);
credit_record.getField('credit_line_n').setRequired(true);
}else
if(
division=
='93'
&&
'${/parameter/@editable_flag}'
!=
'YE'){
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save')
.style.display =
"none"
;
}
}
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
//产品线维护了组合利率的调整加载事件显示
//产品线维护了组合利率的调整加载事件显示
if('${/parameter/@asset_fee_flag}'=='N'||'${/parameter/@asset_fee_flag}'==''){
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
record.getField('hd_user_col_v06').setRequired(false);
record.getField('hd_user_col_v06_n').setRequired(false);
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
}else{
if
(check_empty(record.get('hd_user_col_v06'))||record.get('hd_user_col_v06')=='N'
)
{
...
...
@@ -1250,15 +1202,16 @@
//record.set('int_rate_display',
'');
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
//隐藏组件
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
}else{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//显示组件
//显示组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
...
...
@@ -1270,11 +1223,13 @@
record.getField('customer_margin').setReadOnly(true);
record.getField('customer_margin_n').setReadOnly(true);
}
if(division!='70'&&division!='92'&&division!=''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
if(division!='70'&&division!=''){
if(division
!=
'93'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
}
}
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_BRAND_VALUE_prompt')
.style.display =
'none'
;
...
...
@@ -1311,7 +1266,7 @@
}
}else
if(
(
division=
='70'||division=='92')
&&division!=''){
}else
if(
division=
='70'
&&division!=''){
if(
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
...
...
@@ -1329,14 +1284,13 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
}
}
if
(
division=
='92'
&&
division
!=
'')
{
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
}
//云南铁拳隐藏承租人保证金字段
18083
2023/5/24
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
}
}
}
...
...
@@ -1386,7 +1340,6 @@
if(document.getElementById('${/parameter/@layout_code}_save')){
document.getElementById('${/parameter/@layout_code}_save')
.style.display =
"none"
;
}
}
};
if('${/parameter/@editable_flag}'
==
'Y'
||
'${/parameter/@editable_flag}'
==
'YE'){
...
...
@@ -1411,6 +1364,7 @@
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
var
prj_quotation_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
@@ -1422,7 +1376,7 @@
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if('${/parameter/@asset_fee_flag}'=='Y'){
...
...
@@ -1437,35 +1391,28 @@
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
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')){
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');
}
//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');
//}
}
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')){
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');
}
//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');
//
}
}
}
}
}
//选择承租人带出开票信息
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');
...
...
@@ -1474,8 +1421,7 @@
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');
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'||division=='92'){
debugger;
if(
division=
='70'){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false);
...
...
@@ -1533,7 +1479,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
},
...
...
@@ -1638,96 +1584,26 @@
}
//add
by
niminmin
//当“二次租赁”字段选择‘是’时,“回购合同编号”字段为必填。当选择‘否’时,“回购合同编号”字段为只读。
if(record.get('division')
!='91')
{
if
(
name =
=
'secondary_lease')
{
if
(
value =
=
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
}else
{
//当“旧机二次租赁”、“新机二次租赁”中任意一个为“是”,则系统提示只能任选其一(两个都选择是,则提示)
//当“旧机二次租赁”、
“新机二次租赁”中任意一个为“是”,则校验结清合同号必填
if
(
name =
=
'secondary_lease_new'){
if
(
value =
=
'YES')
{
if
(record.get('secondary_lease')
==
'YES')
{
record.set('secondary_lease_new','NO');
record.set('secondary_lease_new_n','否');
Leaf.showMessage('${l:HLS.PROMPT}',
'旧机二次租赁、新机二次租赁只能任选其一!');
return
false;
}
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if
(
value =
=
'NO')
{
if
(record.get('secondary_lease')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
if
(
name =
=
'secondary_lease')
{
if
(
value =
=
'YES')
{
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
}
if
(
name =
=
'secondary_lease'){
if
(
value =
=
'YES')
{
if
(record.get('secondary_lease_new')
==
'YES')
{
record.set('secondary_lease','NO');
record.set('secondary_lease_n','否');
Leaf.showMessage('${l:HLS.PROMPT}',
'旧机二次租赁、新机二次租赁只能任选其一!');
return
false;
}
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'block'
;
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}else
if
(
value =
=
'NO')
{
if
(record.get('secondary_lease_new')
==
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
record.getField('repur_contract_id').setRequired(true);
record.getField('repur_contract_id_n').setRequired(true);
record.getField('repur_contract_id').setReadOnly(false);
record.getField('repur_contract_id_n').setReadOnly(false);
}
else
if
(
value =
=
'NO')
{
record.getField('repur_contract_id').setRequired(false);
record.getField('repur_contract_id_n').setRequired(false);
record.getField('repur_contract_id').setReadOnly(true);
record.getField('repur_contract_id_n').setReadOnly(true);
record.set('repur_contract_id',
null);
record.set('repur_contract_id_n',
null);
if(document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')){
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_REPUR_CONTRACT_ID')
.style.display =
'none'
;
}
}
}
...
...
@@ -1817,6 +1693,7 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE').style.display = 'none';
}
};
//附件打包下载
window['${/parameter/@layout_code}_ACY_USER_BUTTON1_layout_dynamic_tab_click'] = function () {
...
...
@@ -1824,7 +1701,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