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
1b8d5624
Commit
1b8d5624
authored
Jan 09, 2023
by
gzj34291
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
北京卡家业务
parent
7916e879
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
381 additions
and
87 deletions
+381
-87
project_approval.lwm
...n/webapp/WEB-INF/classes/prj/PRJ501N/project_approval.lwm
+26
-1
con_contract_list_query.lwm
...bapp/WEB-INF/classes/wx/WX100/con_contract_list_query.lwm
+3
-0
con_contract_query.lwm
...in/webapp/WEB-INF/classes/wx/WX100/con_contract_query.lwm
+10
-3
con_file_download.lwm
...ain/webapp/WEB-INF/classes/wx/WX100/con_file_download.lwm
+11
-1
acr_invoice_condition_n.lview
.../webapp/modules/acr/ACR510N/acr_invoice_condition_n.lview
+2
-1
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+55
-12
contract_sales_report.lview
...n/webapp/modules/cont/CON3400/contract_sales_report.lview
+4
-1
contract_ifrs9_report.lview
...n/webapp/modules/cont/CON3500/contract_ifrs9_report.lview
+7
-1
contract_ifrs9_report_query.lview
...pp/modules/cont/CON3500/contract_ifrs9_report_query.lview
+4
-4
con_doc_batch_create.lsc
src/main/webapp/modules/cont/CON500/con_doc_batch_create.lsc
+5
-1
con_contract_modify.lview
...main/webapp/modules/cont/CON505/con_contract_modify.lview
+1
-1
con_contract_cashflow_monthly.lview
...p/modules/cont/CON930/con_contract_cashflow_monthly.lview
+5
-1
con_early_termination_et_detail.lview
...ules/cont/CON_ET001/con_early_termination_et_detail.lview
+17
-17
con_early_termination_modify_query.lview
...s/cont/CON_ET003/con_early_termination_modify_query.lview
+2
-2
csh_payment_create_entrance.lview
...bapp/modules/csh/CSH501/csh_payment_create_entrance.lview
+1
-2
csh_payment_req.lview
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
+2
-2
hls_fin_calculator_update_n.lview
...app/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
+22
-1
prj_project_create_entrance.lview
...app/modules/prj/PRJ500N/prj_project_create_entrance.lview
+5
-0
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+80
-22
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+118
-14
prj_project_modify_entrance.lview
...app/modules/prj/PRJ501N/prj_project_modify_entrance.lview
+1
-0
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ501N/project_approval.lwm
View file @
1b8d5624
...
@@ -7,13 +7,34 @@
...
@@ -7,13 +7,34 @@
-->
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT COUNT(1) v_count
FROM (SELECT p.project_id
FROM prj_project p, prj_project_lease_item v
WHERE p.project_id = v.project_id
AND (v.machine_number_70 = ${@machine_number} or v.machine_number = ${@machine_number})
AND p.project_status <>
'CLOSED'
AND nvl(p.secondary_lease, 'NO') = 'NO'
and p.project_id
<
> nvl(${@project_id},1)
UNION
SELECT c.project_id
FROM con_contract c, con_contract_lease_item h
WHERE c.contract_id = h.contract_id
AND (h.machine_number_70 = ${@machine_number} or h.machine_number = ${@machine_number})
AND c.contract_status
<
> 'CANCEL'
AND nvl(c.secondary_lease, 'NO') = 'NO'
AND c.data_class = 'NORMAL'
and c.project_id != nvl(${@project_id},1))
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"update"
>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
<bm:update-sql>
<![CDATA[
begin
begin
prj_project_pkg.project_submit(
prj_project_pkg.project_submit(
p_project_id =>
${@project_id},
p_project_id =>
${@project_id},
p_user_id => ${/session/@user_id}
p_user_id => ${/session/@user_id}
);
);
end;
end;
]]>
</bm:update-sql>
]]>
</bm:update-sql>
...
@@ -22,6 +43,7 @@
...
@@ -22,6 +43,7 @@
<bm:update-sql>
<![CDATA[
<bm:update-sql>
<![CDATA[
begin
begin
prj_project_check_pkg.check_prj_lease_item(
prj_project_check_pkg.check_prj_lease_item(
p_project_id =>
${@project_id},
p_machine_number =>${@machine_number},
p_machine_number =>${@machine_number},
p_user_id => ${/session/@user_id}
p_user_id => ${/session/@user_id}
...
@@ -30,4 +52,7 @@
...
@@ -30,4 +52,7 @@
]]>
</bm:update-sql>
]]>
</bm:update-sql>
</bm:operation>
</bm:operation>
</bm:operations>
</bm:operations>
<bm:fields>
<bm:field
name=
"v_count"
databaseType=
"NUMBER"
datatype=
"java.lang.Long"
physicalName=
"v_count"
/>
</bm:fields>
</bm:model>
</bm:model>
src/main/webapp/WEB-INF/classes/wx/WX100/con_contract_list_query.lwm
View file @
1b8d5624
...
@@ -26,6 +26,9 @@
...
@@ -26,6 +26,9 @@
where hm.bp_id = t1.bp_id_agent_level1) id_card_no_agent,
where hm.bp_id = t1.bp_id_agent_level1) id_card_no_agent,
decode(t1.division,70,(SELECT i.machine_number_70
decode(t1.division,70,(SELECT i.machine_number_70
FROM con_contract_lease_item i
FROM con_contract_lease_item i
WHERE i.contract_id = t1.contract_id
AND i.equipment_type = 'MAIN'),92,(SELECT i.machine_number_70
FROM con_contract_lease_item i
WHERE i.contract_id = t1.contract_id
WHERE i.contract_id = t1.contract_id
AND i.equipment_type = 'MAIN'),(SELECT i.machine_number
AND i.equipment_type = 'MAIN'),(SELECT i.machine_number
FROM con_contract_lease_item i
FROM con_contract_lease_item i
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_contract_query.lwm
View file @
1b8d5624
...
@@ -38,7 +38,11 @@ select *
...
@@ -38,7 +38,11 @@ select *
and ci.equipment_type = 'MAIN') brand_id,
and ci.equipment_type = 'MAIN') brand_id,
decode(t1.division,70,(select a.brand_value --update by xsh35973 20220323
decode(t1.division,70,(select a.brand_value --update by xsh35973 20220323
from CON_CONTRACT_LEASE_ITEM a
from CON_CONTRACT_LEASE_ITEM a
where a.contract_id = t1.contract_id),NVL((SELECT a.description
where a.contract_id = t1.contract_id),
92,
(select a.brand_value --update by 34291
from CON_CONTRACT_LEASE_ITEM a
where a.contract_id = t1.contract_id),NVL((SELECT a.description
FROM hls_car_brands_vl a
FROM hls_car_brands_vl a
WHERE a.brand_id =
WHERE a.brand_id =
(select ci.brand_id
(select ci.brand_id
...
@@ -50,12 +54,15 @@ select *
...
@@ -50,12 +54,15 @@ select *
from con_contract_lease_item ci
from con_contract_lease_item ci
where ci.contract_id = t1.contract_id
where ci.contract_id = t1.contract_id
and ci.equipment_type = 'MAIN') modelcd, --机型
and ci.equipment_type = 'MAIN') modelcd, --机型
decode(t1.division,70,(SELECT i.machine_number_70 --update by xsh35973 20220323
decode(t1.division,70,(SELECT i.machine_number_70
FROM con_contract_lease_item i
FROM con_contract_lease_item i
WHERE i.contract_id = t1.contract_id
WHERE i.contract_id = t1.contract_id
AND i.equipment_type = 'MAIN'),
(SELECT i.machine_number
AND i.equipment_type = 'MAIN'),
92,(SELECT i.machine_number_70
FROM con_contract_lease_item i
FROM con_contract_lease_item i
WHERE i.contract_id = t1.contract_id
WHERE i.contract_id = t1.contract_id
AND i.equipment_type = 'MAIN'),(SELECT i.machine_number
FROM con_contract_lease_item i
WHERE i.contract_id = t1.contract_id
AND i.equipment_type = 'MAIN')) machine_number, --机号
AND i.equipment_type = 'MAIN')) machine_number, --机号
t1.lease_times, --期数
t1.lease_times, --期数
t1.lease_start_date, --起租日
t1.lease_start_date, --起租日
...
...
src/main/webapp/WEB-INF/classes/wx/WX100/con_file_download.lwm
View file @
1b8d5624
...
@@ -58,7 +58,17 @@ select fa.file_name,fa.file_path,fa.attachment_id
...
@@ -58,7 +58,17 @@ select fa.file_name,fa.file_path,fa.attachment_id
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'CON_GUR_NP',
'CON_GUR_NP',
'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'
)
from con_ele_signer_file cf, con_contract_ele_signer cs
from con_ele_signer_file cf, con_contract_ele_signer cs
where cf.con_ele_signer_id = cs.con_ele_signer_id
where cf.con_ele_signer_id = cs.con_ele_signer_id
and cs.contract_id = ${@contract_id}
and cs.contract_id = ${@contract_id}
...
...
src/main/webapp/modules/acr/ACR510N/acr_invoice_condition_n.lview
View file @
1b8d5624
...
@@ -119,6 +119,7 @@
...
@@ -119,6 +119,7 @@
function invoiceHd_confirm() {
function invoiceHd_confirm() {
debugger;
Leaf.Masker.mask(Ext.getBody());
Leaf.Masker.mask(Ext.getBody());
var final_bill_flag = $('allConditionDs').getAt(0).get('final_bill_flag');
var final_bill_flag = $('allConditionDs').getAt(0).get('final_bill_flag');
var cat_ini_flag = $('allConditionDs').getAt(0).get('cat_ini_flag');
var cat_ini_flag = $('allConditionDs').getAt(0).get('cat_ini_flag');
...
@@ -297,7 +298,7 @@
...
@@ -297,7 +298,7 @@
<a:record
code_value=
"50"
code_value_name=
"星邦高空作业车"
/>
<a:record
code_value=
"50"
code_value_name=
"星邦高空作业车"
/>
<a:record
code_value=
"90"
code_value_name=
"租赁二手机"
/>
<a:record
code_value=
"90"
code_value_name=
"租赁二手机"
/>
<a:record
code_value=
"91"
code_value_name=
"神钢建机"
/>
<a:record
code_value=
"91"
code_value_name=
"神钢建机"
/>
<a:record
code_value=
"92"
code_value_name=
"北京卡家"
/>
</a:datas>
</a:datas>
</a:dataSet>
</a:dataSet>
<a:dataSet
id=
"acr510n_invoice_method_ds"
>
<a:dataSet
id=
"acr510n_invoice_method_ds"
>
...
...
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
1b8d5624
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
url=
"${/request/@context_path}/uploadFile.lview"
/>
url=
"${/request/@context_path}/uploadFile.lview"
/>
<a:link
id=
"${/parameter/@layout_code}_prj500_cdd_downloadFile_id"
<a:link
id=
"${/parameter/@layout_code}_prj500_cdd_downloadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
url=
"${/request/@context_path}/downloadFile.lview"
/>
<a:link
id=
"check_machine_number_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"query"
/>
<!--打印使用-->
<!--打印使用-->
<a:link
id=
"${/parameter/@layout_code}_con505_contract_content_id"
model=
"cont.CON505.con505_contract_content"
<a:link
id=
"${/parameter/@layout_code}_con505_contract_content_id"
model=
"cont.CON505.con505_contract_content"
modelaction=
"update"
/>
modelaction=
"update"
/>
...
@@ -92,7 +93,7 @@
...
@@ -92,7 +93,7 @@
// record.getField('guarantee_letter_f').setReadOnly(true);
// record.getField('guarantee_letter_f').setReadOnly(true);
// record.getField('guarantee_letter_f_n').setReadOnly(true);
// record.getField('guarantee_letter_f_n').setReadOnly(true);
// }else
// }else
if (record.get('division')!='70'){
if (record.get('division')!='70'
&&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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_CUSTOMER_MARGIN').style.display = 'none';
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt')!=null){
if(document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_WRITE_OFF_AMOUNT_prompt')!=null){
...
@@ -116,7 +117,7 @@
...
@@ -116,7 +117,7 @@
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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_PRODUCE_DATE').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'){
}else if (record.get('division')=='70'
||record.get('division')=='92'
){
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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE').style.display = 'none';
...
@@ -126,6 +127,12 @@
...
@@ -126,6 +127,12 @@
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_prompt').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_LEASE_FIN_INFO_1_CON_CONTRACT_OTHER_FEE2').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('business_type') == 'LEASE') {
if (record.get('business_type') == 'LEASE') {
...
@@ -154,7 +161,7 @@
...
@@ -154,7 +161,7 @@
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_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'
){
if('${/parameter/@layout_code}' == "CONTRACT_CREATE_INC" &&
(record.get('division') == '70'&&record.get('division') == '92')
){
if(Ext.isEmpty(record.get('guarantee_letter_f'))){
if(Ext.isEmpty(record.get('guarantee_letter_f'))){
record.set('guarantee_letter_f','N');
record.set('guarantee_letter_f','N');
record.set('guarantee_letter_f_n','否');
record.set('guarantee_letter_f_n','否');
...
@@ -605,6 +612,10 @@
...
@@ -605,6 +612,10 @@
Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
Leaf.showMessage('${l:PROMPT}',
'铁甲业务需要保证金入账后才能起租');
return;
return;
}
}
//
if(record.get('division')=='92'&&record.get('write_off_amount')<record.get('customer_margin')){
//
Leaf.showMessage('${l:PROMPT}',
'北京卡家业务需要保证金入账后才能起租');
//
return;
//
}
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
Leaf.request({
...
@@ -719,7 +730,7 @@
...
@@ -719,7 +730,7 @@
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'con_contract_lease_item');
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'con_contract_lease_item');
if(
ds.id =
=
lease_item_ds_id&&lease_item_ds_id){
if(
ds.id =
=
lease_item_ds_id&&lease_item_ds_id){
var
gridId=
ds.bindname+'_layout_grid_id';
var
gridId=
ds.bindname+'_layout_grid_id';
if(
record.data.division=
='70'){
if(
record.data.division=
='70'
||
record.data.division=
='92'
){
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('full_name');
$(gridId).hideColumn('division_n');
$(gridId).hideColumn('division_n');
$(gridId).hideColumn('equipments');
$(gridId).hideColumn('equipments');
...
@@ -741,14 +752,6 @@
...
@@ -741,14 +752,6 @@
$(gridId).hideColumn('created_by_n');
$(gridId).hideColumn('created_by_n');
}
}
if(
record.data.division=
='30'||record.data.division=='50'||record.data.division=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
}
}
var
cashflow_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_CASHFLOW_1',
'con_contract_cashflow');
var
cashflow_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_CASHFLOW_1',
'con_contract_cashflow');
if(
ds.id =
=
cashflow_ds_id&&cashflow_ds_id){
if(
ds.id =
=
cashflow_ds_id&&cashflow_ds_id){
...
@@ -758,6 +761,45 @@
...
@@ -758,6 +761,45 @@
}
}
}
}
};
};
var
count =
0;
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit']
=
function
(ds,
record)
{
debugger;
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'con_contract_lease_item');
var
lease_item_record =
$(lease_item_ds_id).getCurrentRecord();
var
con_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'con_contract');
var
contract_record =
$(con_ds_id).getAt(0);
var
project_id =
contract_record.get('project_id');
var
machine_number =
lease_item_record.get('machine_number_70');
var
division =
lease_item_record.get('division');
var
machine_number_num =
0;
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>
]]>
</script>
...
@@ -774,3 +816,4 @@
...
@@ -774,3 +816,4 @@
]]>
</script>
]]>
</script>
</a:view>
</a:view>
</a:screen>
</a:screen>
src/main/webapp/modules/cont/CON3400/contract_sales_report.lview
View file @
1b8d5624
...
@@ -112,6 +112,9 @@
...
@@ -112,6 +112,9 @@
};
};
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
record.data.division=record.data.division+',91';
record.data.division=record.data.division+',91';
};
if(record.data.lease_name92=='Y'){//add by gzj
record.data.division=record.data.division+',92';
};
};
record.data.division=record.data.division.substr(1,record.data.division.length);
record.data.division=record.data.division.substr(1,record.data.division.length);
$('contract_sales_result_ds').query();
$('contract_sales_result_ds').query();
...
@@ -204,7 +207,7 @@
...
@@ -204,7 +207,7 @@
<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_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_name91"
bindTarget=
"contract_sales_report_ds"
prompt=
"神钢建机"
/>
//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox
name=
"lease_name92"
bindTarget=
"contract_sales_report_ds"
prompt=
"北京卡家"
/>
</a:form>
</a:form>
<a:grid
id=
"contract_sales_result_ds_grid"
bindTarget=
"contract_sales_result_ds"
marginHeight=
"150"
navBar=
"true"
marginWidth=
"40"
>
<a:grid
id=
"contract_sales_result_ds_grid"
bindTarget=
"contract_sales_result_ds"
marginHeight=
"150"
navBar=
"true"
marginWidth=
"40"
>
...
...
src/main/webapp/modules/cont/CON3500/contract_ifrs9_report.lview
View file @
1b8d5624
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
record.data.division8='';
record.data.division8='';
record.data.division9='';
record.data.division9='';
record.data.division10='';
record.data.division10='';
record.data.division11='';
if(record.data.lease_name10=='Y'){
if(record.data.lease_name10=='Y'){
record.data.division1='10';
record.data.division1='10';
}
}
...
@@ -64,9 +65,12 @@
...
@@ -64,9 +65,12 @@
if(record.data.lease_name91=='Y'){
if(record.data.lease_name91=='Y'){
record.data.division10='91';
record.data.division10='91';
};
};
if(record.data.lease_name92=='Y'){
record.data.division11='92';
};
// record.data.division=record.data.division.substr(1,record.data.division.length);
// 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 == ''
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.division5 == ''&&record.data.division6 == ''&&record.data.division7 == ''&&record.data.division8 == ''&&record.data.division9 == ''&&record.data.division10 == ''
&&record.data.division11 == ''
){
// record.data.division1='10,20,30,40,50,60,70,80';
// record.data.division1='10,20,30,40,50,60,70,80';
record.data.division1='10';
record.data.division1='10';
record.data.division2='20';
record.data.division2='20';
...
@@ -78,6 +82,7 @@
...
@@ -78,6 +82,7 @@
record.data.division8='80';
record.data.division8='80';
record.data.division9='90';
record.data.division9='90';
record.data.division10='91';
record.data.division10='91';
record.data.division11='92';
};
};
param['division1']= record.data.division1;
param['division1']= record.data.division1;
param['division2']= record.data.division2;
param['division2']= record.data.division2;
...
@@ -89,6 +94,7 @@
...
@@ -89,6 +94,7 @@
param['division8']= record.data.division8;
param['division8']= record.data.division8;
param['division9']= record.data.division9;
param['division9']= record.data.division9;
param['division10']= record.data.division10;
param['division10']= record.data.division10;
param['division11']= record.data.division11;
param['period_name']=period_name;
param['period_name']=period_name;
param['function_code'] = 'CON3400N';
param['function_code'] = 'CON3400N';
param['function_usage'] = 'MODIFY';
param['function_usage'] = 'MODIFY';
...
...
src/main/webapp/modules/cont/CON3500/contract_ifrs9_report_query.lview
View file @
1b8d5624
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
window['${/parameter/@layout_code}_user_button3_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_ifrs9');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'con_contract_ifrs9');
$(ds_id).setQueryParameter("period_name",'${/parameter/@period_name}');
$(ds_id).setQueryParameter("period_name",'${/parameter/@period_name}');
//查看job有没有返回结果
//查看job有没有返回结果
Leaf.Masker.mask(Ext.getBody());
Leaf.Masker.mask(Ext.getBody());
Leaf.request({
Leaf.request({
url: $('get_job_finish_flag_link').getUrl(),
url: $('get_job_finish_flag_link').getUrl(),
...
@@ -179,9 +179,9 @@
...
@@ -179,9 +179,9 @@
});
});
};
};
//承租人最大逾期天数
//承租人最大逾期天数
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() {
window['${/parameter/@layout_code}_user_button4_layout_dynamic_click'] = function() {
var url = $('contract_ifrs9_sum_report_link').getUrl();
var url = $('contract_ifrs9_sum_report_link').getUrl();
new Leaf.Window({
new Leaf.Window({
id: 'contract_ifrs9_sum_report_link_winid',
id: 'contract_ifrs9_sum_report_link_winid',
params: {
params: {
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
width: 900,
width: 900,
height: 600
height: 600
}).on('close', function () {
}).on('close', function () {
null;
null;
});
});
...
...
src/main/webapp/modules/cont/CON500/con_doc_batch_create.lsc
View file @
1b8d5624
...
@@ -122,7 +122,11 @@
...
@@ -122,7 +122,11 @@
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_D_ESWJ' ||record_data.templet_code =='BUSINESS_CONTRACT_D_ESWJ_OEC'||record_data.templet_code =='BUSINESS_CONTRACT_D_ESWJ'
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_D_ESWJ' ||record_data.templet_code =='BUSINESS_CONTRACT_D_ESWJ_OEC'||record_data.templet_code =='BUSINESS_CONTRACT_D_ESWJ'
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_FR_TJ' //update by xsh35973 添加法人铁甲保证函
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_FR_TJ' //update by xsh35973 添加法人铁甲保证函
//addby xsh35973 20221017 神钢建机
//addby xsh35973 20221017 神钢建机
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_SG'||record_data.templet_code =='FINANCE_LEASE_CON_SG'||record_data.templet_code =='BUSINESS_CONTRACT_SG'||record_data.templet_code =='CON_CONTRACT_LEASE_BACK_SG') {
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_SG'||record_data.templet_code =='FINANCE_LEASE_CON_SG'||record_data.templet_code =='BUSINESS_CONTRACT_SG'||record_data.templet_code =='CON_CONTRACT_LEASE_BACK_SG'
//add by gzj 2022-12-23 北京卡家
||record_data.templet_code =='CON_COLLECTION_PAYMENT_KJ'||record_data.templet_code =='LEASE_CONTRACT_PAR_KJ_1'||record_data.templet_code =='CSH_PAYMENT_REQ_KJ'||record_data.templet_code =='FINANCE_LEASE_CONTRACT_KJ_SURE'
||record_data.templet_code =='CSH_PAYMENT_REQ_KJ_1'||record_data.templet_code =='CON_CONTRACT_MORTGAGE_KJ'||record_data.templet_code =='FINANCE_LEASE_CONTRACT_KJ_FR'||record_data.templet_code =='FINANCE_LEASE_CONTRACT_FR_KJ'
||record_data.templet_code =='FINANCE_LEASE_CONTRACT_KJ'||record_data.templet_code =='LEASE_CONTRACT_PAR_KJ'||record_data.templet_code =='PERSONAL_CREDIT_KJ'||record_data.templet_code =='ENTERPRISE_CREDIT_KJ') {
// word转pdf
// word转pdf
var pdf_file_path=datePath+guid_file_name_tables[0].guid_file_name + 'con_' + record_data.content_id;
var pdf_file_path=datePath+guid_file_name_tables[0].guid_file_name + 'con_' + record_data.content_id;
...
...
src/main/webapp/modules/cont/CON505/con_contract_modify.lview
View file @
1b8d5624
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/webapp/modules/cont/CON930/con_contract_cashflow_monthly.lview
View file @
1b8d5624
...
@@ -45,6 +45,9 @@
...
@@ -45,6 +45,9 @@
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
if(record.data.lease_name91=='Y'){//addby xsh35973 20221011 I-12357新增产品线
record.data.division=record.data.division+',91';
record.data.division=record.data.division+',91';
};
};
if(record.data.lease_name92=='Y'){//add by gzj 2022-12-19 10:17:53
record.data.division=record.data.division+',92';
};
record.data.division=record.data.division.substr(1,record.data.division.length);
record.data.division=record.data.division.substr(1,record.data.division.length);
Leaf.Masker.mask(Ext.getBody(), '正在统计并查询,请稍等...');
Leaf.Masker.mask(Ext.getBody(), '正在统计并查询,请稍等...');
Leaf.request({
Leaf.request({
...
@@ -126,6 +129,7 @@
...
@@ -126,6 +129,7 @@
<a:field
checkedValue=
"Y"
name=
"lease_name70"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
checkedValue=
"Y"
name=
"lease_name70"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
checkedValue=
"Y"
name=
"lease_name80"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
checkedValue=
"Y"
name=
"lease_name80"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
checkedValue=
"Y"
name=
"lease_name90"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
checkedValue=
"Y"
name=
"lease_name90"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
checkedValue=
"Y"
name=
"lease_name92"
uncheckedValue=
"N"
defaultValue=
"N"
/>
<a:field
name=
"division"
/>
<a:field
name=
"division"
/>
<a:field
name=
"overdue_day1"
required=
"true"
prompt=
"已到期1个月界定天数"
defaultValue=
"30"
/>
<a:field
name=
"overdue_day1"
required=
"true"
prompt=
"已到期1个月界定天数"
defaultValue=
"30"
/>
<a:field
name=
"overdue_day2"
required=
"true"
prompt=
"已到期2个月界定天数"
defaultValue=
"60"
/>
<a:field
name=
"overdue_day2"
required=
"true"
prompt=
"已到期2个月界定天数"
defaultValue=
"60"
/>
...
@@ -173,7 +177,7 @@
...
@@ -173,7 +177,7 @@
<a:checkBox
name=
"lease_name90"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"租赁二手机"
/>
<a:checkBox
name=
"lease_name90"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"租赁二手机"
/>
<a:checkBox
name=
"lease_name40"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"其它"
/>
<a:checkBox
name=
"lease_name40"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"其它"
/>
<a:checkBox
name=
"lease_name91"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"神钢建机"
/>
//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox
name=
"lease_name91"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"神钢建机"
/>
//addby xsh35973 20221011 I-12357新增产品线
<a:checkBox
name=
"lease_name92"
bindTarget=
"con_contract_cashflow_monthly_query_ds"
prompt=
"北京卡家"
/>
...
...
src/main/webapp/modules/cont/CON_ET001/con_early_termination_et_detail.lview
View file @
1b8d5624
...
@@ -39,26 +39,26 @@
...
@@ -39,26 +39,26 @@
$(ds_con_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
$(ds_con_id).setQueryParameter('contract_id', '${/parameter/@contract_id}');
$(ds_con_id).query();
$(ds_con_id).query();
}
}
if ('${/model/pilot_run_user/record/@pilot_run_flag}' != 'Y'){
if ('${/model/pilot_run_user/record/@pilot_run_flag}' != 'Y') {
if ('${/parameter/@simulation_flag}' == 'Y') {
if ('${/parameter/@simulation_flag}' == 'Y') {
if (document.getElementById('${/parameter/@layout_code}_submit_approval')) {
if (document.getElementById('${/parameter/@layout_code}_submit_approval')) {
document.getElementById('${/parameter/@layout_code}_submit_approval').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_submit_approval').style.display = 'none';
}
}
if (document.getElementById('${/parameter/@layout_code}_user_button3')) {
if (document.getElementById('${/parameter/@layout_code}_user_button3')) {
document.getElementById('${/parameter/@layout_code}_user_button3').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_user_button3').style.display = 'none';
}
}
if (document.getElementById('${/parameter/@layout_code}_user_button4')) {
if (document.getElementById('${/parameter/@layout_code}_user_button4')) {
document.getElementById('${/parameter/@layout_code}_user_button4').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_user_button4').style.display = 'none';
}
} else {
if (document.getElementById('${/parameter/@layout_code}_user_button5')) {
document.getElementById('${/parameter/@layout_code}_user_button5').style.display = 'none';
}
}
}
}
if ('${/model/pilot_run_user/record/@pilot_run_flag}' == 'N') {
else{
$('${/parameter/@layout_code}_user_button4').hide();
if (document.getElementById('${/parameter/@layout_code}_user_button5')) {
document.getElementById('${/parameter/@layout_code}_user_button5').style.display = 'none';
}
}
}
}
if ('${/model/pilot_run_user/record/@pilot_run_flag}' == 'N'){
$('${/parameter/@layout_code}_user_button4').hide();
}
}
}
});
});
var calc_flag = 'N';
var calc_flag = 'N';
...
...
src/main/webapp/modules/cont/CON_ET003/con_early_termination_modify_query.lview
View file @
1b8d5624
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
-->
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
trace=
"true"
>
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
trace=
"true"
>
<a:init-procedure>
<a:init-procedure>
<a:model-query
fetchAll=
"true"
model=
"basic.
sys_code_value_v_lease
"
rootPath=
"hls_division_path"
/>
<a:model-query
fetchAll=
"true"
model=
"basic.
hls_division_for_lov
"
rootPath=
"hls_division_path"
/>
</a:init-procedure>
</a:init-procedure>
<a:view>
<a:view>
<a:link
id=
"con_et_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"con_et_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
</a:mapping>
</a:mapping>
</a:field>
</a:field>
<!--产品线-->
<!--产品线-->
<a:field
name=
"division_n"
displayField=
"
value_name"
options=
"hls_division_ds"
returnField=
"division"
valueField=
"value_code
"
/>
<a:field
name=
"division_n"
displayField=
"
description"
options=
"hls_division_ds"
returnField=
"division"
valueField=
"division
"
/>
<a:field
name=
"contract_status"
/>
<a:field
name=
"contract_status"
/>
<a:field
name=
"contract_status_desc"
displayField=
"code_value_name"
options=
"contract_status_ds"
returnField=
"contract_status"
valueField=
"code_value"
/>
<a:field
name=
"contract_status_desc"
displayField=
"code_value_name"
options=
"contract_status_ds"
returnField=
"contract_status"
valueField=
"code_value"
/>
<a:field
name=
"req_employee_n"
/>
<a:field
name=
"req_employee_n"
/>
...
...
src/main/webapp/modules/csh/CSH501/csh_payment_create_entrance.lview
View file @
1b8d5624
...
@@ -215,8 +215,6 @@
...
@@ -215,8 +215,6 @@
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'csh_payment_req_hd');
var param = {};
var param = {};
param['payment_req_id'] = record.get('payment_req_id');
param['payment_req_id'] = record.get('payment_req_id');
param['document_category'] = record.get('document_category');
param['document_category'] = record.get('document_category');
...
@@ -234,6 +232,7 @@
...
@@ -234,6 +232,7 @@
} else if (record.get('business_type') == 'PREPAYMENT') {
} else if (record.get('business_type') == 'PREPAYMENT') {
param['function_code'] = 'CSH501_PRE_D';
param['function_code'] = 'CSH501_PRE_D';
}
}
if (record.get('approval_status') == 'NEW' || record.get('approval_status') == 'RETURN' || record.get('approval_status') == 'REJECT') {
if (record.get('approval_status') == 'NEW' || record.get('approval_status') == 'RETURN' || record.get('approval_status') == 'REJECT') {
param['function_usage'] = 'UPDATE';
param['function_usage'] = 'UPDATE';
param['function_code'] = 'CSH501D';
param['function_code'] = 'CSH501D';
...
...
src/main/webapp/modules/csh/CSH501/csh_payment_req.lview
View file @
1b8d5624
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
var
lnds_records =
$(ds_id).getAll();
var
lnds_records =
$(ds_id).getAll();
if
(
ds.id =
=
ds_id)
{
if
(
ds.id =
=
ds_id)
{
for
(var
i =
0;
i
<
lnds_records.length;
i++)
{
for
(var
i =
0;
i
<
lnds_records.length;
i++)
{
if
(lnds_records[i].get('division')
==
'70')
{
if
(lnds_records[i].get('division')
==
'70'
||
lnds_records[i].get('division')
==
'92'
)
{
lnds_records[i].getField('tenant_bank_account_number').setRequired(false);
lnds_records[i].getField('tenant_bank_account_number').setRequired(false);
lnds_records[i].getField('tenant_bank_account_number_n').setRequired(false);
lnds_records[i].getField('tenant_bank_account_number_n').setRequired(false);
}
}
...
@@ -227,7 +227,7 @@
...
@@ -227,7 +227,7 @@
}
}
if
('${/parameter/@division}'
==91||'${/parameter/@division}'
=='神钢建机'){
if
('${/parameter/@division}'
==91||'${/parameter/@division}'
=='神钢建机'
||'${/parameter/@division}'
==92||'${/parameter/@division}'
=='北京卡家'
){
debugger
debugger
if
(
con_business_type =
=
'LEASEBACK'){
if
(
con_business_type =
=
'LEASEBACK'){
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'csh_payment_req_ln');
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'csh_payment_req_ln');
...
...
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
View file @
1b8d5624
...
@@ -1535,7 +1535,7 @@
...
@@ -1535,7 +1535,7 @@
debugger;
debugger;
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var temp_head_records = $('hls_fin_calculator_hd_ds').getAll();
var H1, H54, H159, H16, H12,H99,H102;
var H1, H54, H159, H16, H12,H99,H102
,H15,H44
;
for (var i = 0; i
< temp_head_records.length
;
i++)
{
for (var i = 0; i
< temp_head_records.length
;
i++)
{
if
(temp_head_records[i].get('column_code')
==
'H1')
{
if
(temp_head_records[i].get('column_code')
==
'H1')
{
H1 =
temp_head_records[i].get('column_value')
||
0;
H1 =
temp_head_records[i].get('column_value')
||
0;
...
@@ -1553,6 +1553,12 @@
...
@@ -1553,6 +1553,12 @@
else
if
(temp_head_records[i].get('column_code')
==
'H102')
{
else
if
(temp_head_records[i].get('column_code')
==
'H102')
{
H102 =
temp_head_records[i].get('column_value')
||
0;
H102 =
temp_head_records[i].get('column_value')
||
0;
}
}
else
if
(temp_head_records[i].get('column_code')
==
'H15')
{
H15 =
temp_head_records[i].get('column_value')
||
0;
}
else
if
(temp_head_records[i].get('column_code')
==
'H44')
{
H44 =
temp_head_records[i].get('column_value')
||
0;
}
}
}
//
if
('${/parameter/@division}'==91
&&
(((H1<=12
&&
plus(H54,4.75)
!=
6.75)
||
(H1
>
12
&&
plus(H54,4.75) != 7.3))||H54
< 0
)){
//
if
('${/parameter/@division}'==91
&&
(((H1<=12
&&
plus(H54,4.75)
!=
6.75)
||
(H1
>
12
&&
plus(H54,4.75) != 7.3))||H54
< 0
)){
...
@@ -1576,6 +1582,20 @@
...
@@ -1576,6 +1582,20 @@
unlock_calc_current_window();
unlock_calc_current_window();
return
false;
return
false;
}
}
if('${/parameter/@division}'==92){
var
dowm_payment =
div(H16,
plus(H99,H102)).toFixed(2)
*
100;
if(dowm_payment
<
30){
Leaf.showMessage('${l:PROMPT}',
'首付比例不低于30%');
unlock_calc_current_window();
return
false;
}
if(H44!=100){
Leaf.showMessage('${l:PROMPT}',
'留购金需要为100元');
unlock_calc_current_window();
return
false;
}
}
if
(
H1 =
=
1
&&
(
H159 =
=
'HL_PRICR_NTEST'
||
H159 =
=
'HL_PRICR_TEST'))
{
if
(
H1 =
=
1
&&
(
H159 =
=
'HL_PRICR_NTEST'
||
H159 =
=
'HL_PRICR_TEST'))
{
Leaf.showMessage('${l:PROMPT}',
'均等还款期数应大于1期');
Leaf.showMessage('${l:PROMPT}',
'均等还款期数应大于1期');
unlock_calc_current_window();
unlock_calc_current_window();
...
@@ -1596,6 +1616,7 @@
...
@@ -1596,6 +1616,7 @@
});
});
}
}
}
}
}
}
lock_calc_current_window('${l:HLS.CALCULATING}');
lock_calc_current_window('${l:HLS.CALCULATING}');
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create_entrance.lview
View file @
1b8d5624
...
@@ -33,6 +33,11 @@
...
@@ -33,6 +33,11 @@
$L.showErrorMessage("提示", '租赁物为铁甲业务的业务类型只能是售后回租!');
$L.showErrorMessage("提示", '租赁物为铁甲业务的业务类型只能是售后回租!');
return false;
return false;
}
}
if(record.data.division=='92'&&record.data.business_type!='LEASEBACK'){
debugger;
$L.showErrorMessage("提示", '租赁物为北京卡家的业务类型只能是售后回租!');
return false;
}
if ($(ds_id).validate()) {
if ($(ds_id).validate()) {
record.set('function_code', 'PRJ500D');
record.set('function_code', 'PRJ500D');
record.set('function_usage', 'CREATE');
record.set('function_usage', 'CREATE');
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
1b8d5624
...
@@ -11,10 +11,13 @@
...
@@ -11,10 +11,13 @@
<a:model-query
defaultWhereClause=
"t1.user_id=${/session/@user_id}"
model=
"prj.PRJ500D.sys_user_lv"
<a:model-query
defaultWhereClause=
"t1.user_id=${/session/@user_id}"
model=
"prj.PRJ500D.sys_user_lv"
rootPath=
"user_name_path"
/>
rootPath=
"user_name_path"
/>
<a:model-query
<a:model-query
defaultWhereClause=
"v.role_id = ${/session/@role_id} and v.role_code in ('HAND','0017')"
defaultWhereClause=
"v.role_id = ${/session/@role_id} and v.role_code in ('HAND','0017'
,'0019'
)"
model=
"zjwfl.sys_role_flag"
rootPath=
"role_flag_path"
/>
model=
"zjwfl.sys_role_flag"
rootPath=
"role_flag_path"
/>
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_description"
/>
<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_description"
rootPath=
"description"
/>
<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"/>-->
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
...
@@ -64,6 +67,7 @@
...
@@ -64,6 +67,7 @@
model=
"prj.PRJ505.prj_project_create_contract"
modelaction=
"execute"
/>
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=
"prj_approval_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"update"
/>
<a:link
id=
"check_prj_lease_item_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"execute"
/>
<a:link
id=
"check_prj_lease_item_link_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"execute"
/>
<a:link
id=
"check_machine_number_id"
model=
"prj.PRJ501N.project_approval"
modelaction=
"query"
/>
<script
src=
"${/request/@context_path}/javascripts/jquery-1.6.4.min.js"
type=
"text/javascript"
/>
<script
src=
"${/request/@context_path}/javascripts/jquery-1.6.4.min.js"
type=
"text/javascript"
/>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
...
@@ -399,7 +403,12 @@
...
@@ -399,7 +403,12 @@
if ('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
if ('${/model/role_flag_path/record/@sys_role_flag}' == 'Y') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
} else {
} else {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
if (query_only == 'Y' || '${/parameter/@function_usage}' == 'QUERY') {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_downloadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
} else {
url = $('${/parameter/@layout_code}${/parameter/@pre_layout}prj500_cdd_uploadFile_id').getUrl() + '?table_name=PRJ_CDD_ITEM_CHECK&header_id=' + record.get('check_id');
}
}
}
var win = new Leaf.Window({
var win = new Leaf.Window({
url: url,
url: url,
...
@@ -485,7 +494,7 @@
...
@@ -485,7 +494,7 @@
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'attachment') {
if (name == 'attachment') {
link_function = 'prj501n_upload_file';
link_function = 'prj501n_upload_file';
if (record.get('cdd_item') == 'ADD_ATTACH') {
if (record.get('cdd_item') == 'ADD_ATTACH'
||record.get('cdd_item') == 'TJ_SCORE_SHEET'
) {
link_function = 'prj501n_upload_file_new';
link_function = 'prj501n_upload_file_new';
}
}
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">
' + config_record.get('prompt') + '
</a>
';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\',\'' + config_record.get('query_only') + '\');">
' + config_record.get('prompt') + '
</a>
';
...
@@ -650,7 +659,6 @@
...
@@ -650,7 +659,6 @@
//更新时调用
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
debugger;
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_project_history_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
var
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
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
...
@@ -667,13 +675,11 @@
...
@@ -667,13 +675,11 @@
record.getField('cell_phone').setRequired(false);
record.getField('cell_phone').setRequired(false);
}
}
}
}
}
}
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'){
if(
division=
='70'
||division=='92'
){
record.getField('lease_name_n').setRequired(true);
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setRequired(true);
record.getField('produce_date').setRequired(true);
...
@@ -943,12 +949,11 @@
...
@@ -943,12 +949,11 @@
};
};
//加载时调用(grid,table,gridBox)
//加载时调用(grid,table,gridBox)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function (ds, record, config_records, bp_seq) {
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
var bp_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_BP', 'prj_project_bp');
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).setQueryParameter('bp_id','${/parameter/@bp_id_tenant}');
$(bp_ds_ids).query(); */
$(bp_ds_ids).query(); */
...
@@ -957,11 +962,12 @@
...
@@ -957,11 +962,12 @@
if(division!='30'
&&
division!='50'){
if(division!='30'
&&
division!='50'){
$(gridId).hideColumn('machine_number_n');
$(gridId).hideColumn('machine_number_n');
}
}
if(
division=='70'
&&
division!=''){
if(
(division=='70'||division=='92')
&&
division!=''){
//debugger;
//debugger;
if(record!=''){
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setRequired(true);
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('modelcd').setReadOnly(false);
record.getField('modelcd').setReadOnly(false);
...
@@ -1028,9 +1034,7 @@
...
@@ -1028,9 +1034,7 @@
var
division=
''
;
var
division=
''
;
//新增和加载时调用(form)
//新增和加载时调用(form)
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
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(
tenant_ds_id =
=
ds.id){
//debugger;
//debugger;
if
(Leaf.isEmpty(record.get('send_message'))){
if
(Leaf.isEmpty(record.get('send_message'))){
...
@@ -1141,14 +1145,13 @@
...
@@ -1141,14 +1145,13 @@
var
description =
'${/model/description/record/@employee_type_code}'
;
var
description =
'${/model/description/record/@employee_type_code}'
;
var
bp_code=
'${/model/user_agent_description/record/@bp_code}'
;
var
bp_code=
'${/model/user_agent_description/record/@bp_code}'
;
var
credit_record =
$(ds_id).getCurrentRecord();
var
credit_record =
$(ds_id).getCurrentRecord();
if(
division=
='80'){
if(
division=
='80'
||division=='30'||division=='50'
){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
credit_record.set('credit_line_n','承租人');
}
}else
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
if(!Ext.isEmpty(bp_code)){
if(bp_code
!==
'
D00000026'
&&
bp_code
!==
'D00000029'
&&
bp_code
!==
'D00000030'
&&
bp_code
!==
'D00000031
'){
if(bp_code
!==
'
C00010180'
&&
bp_code
!==
'C00010175'
&&
bp_code
!==
'C00010176'
&&
bp_code
!==
'C00010187
'){
if(
bp_code =
='
X00010005'
||
bp_code =
='J00010006
'){
if(
bp_code =
='
D00010001
'){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
credit_record.set('credit_line_n','承租人');
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line').setReadOnly(true);
...
@@ -1176,7 +1179,7 @@
...
@@ -1176,7 +1179,7 @@
}
}
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
if(division!='70'&&division!=''){
if(division!='70'&&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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
;
...
@@ -1200,7 +1203,7 @@
...
@@ -1200,7 +1203,7 @@
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')
.style.display =
'none'
;
}else
if(
division=
='70'
&&division!=''){
}else
if(
(
division=
='70'||division=='92')
&&division!=''){
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
...
@@ -1213,6 +1216,11 @@
...
@@ -1213,6 +1216,11 @@
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.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'
;
}
var
bp_code =
'${/model/user_agent_description/record/@bp_code}'
;
var
bp_code =
'${/model/user_agent_description/record/@bp_code}'
;
if
(!Ext.isEmpty(bp_code)){
if
(!Ext.isEmpty(bp_code)){
//
if
(
bp_code =
=
'C00010168'
||
bp_code =
=
'C00010198'
||
bp_code =
=
'C00010170')
{
//
if
(
bp_code =
=
'C00010168'
||
bp_code =
=
'C00010198'
||
bp_code =
=
'C00010170')
{
...
@@ -1248,6 +1256,7 @@
...
@@ -1248,6 +1256,7 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.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
(!record.get('score_name'))
{
if
($(ds_id).getCurrentRecord())
{
if
($(ds_id).getCurrentRecord())
{
var
score_name =
$(ds_id).getCurrentRecord().get('legal_person')
||
$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
var
score_name =
$(ds_id).getCurrentRecord().get('legal_person')
||
$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
record.set('score_name',
score_name);
record.set('score_name',
score_name);
...
@@ -1419,7 +1428,7 @@
...
@@ -1419,7 +1428,7 @@
}
}
}
}
if(current_record.get('division')=='70'){
if(current_record.get('division')=='70'
||
current_record.get('division')=='92'
){
var
bp_number;
var
bp_number;
$L.request({
$L.request({
url:
'${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
url:
'${/request/@context_path}/autocrud/prj.PRJ500N.get_bp_address/query',
...
@@ -1802,6 +1811,7 @@
...
@@ -1802,6 +1811,7 @@
var
bp_rate_flag;
var
bp_rate_flag;
/*保存前调用,生成项目编号*/
/*保存前调用,生成项目编号*/
var
count =
0;
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit']
=
function
(ds,
record)
{
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit']
=
function
(ds,
record)
{
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
...
@@ -1822,7 +1832,7 @@
...
@@ -1822,7 +1832,7 @@
}
}
if
(bp_tenant_detail_r
&&
ds.id =
=
prj_project_ds_id)
{
if
(bp_tenant_detail_r
&&
ds.id =
=
prj_project_ds_id)
{
for
(var
key
in
bp_tenant_detail_r.data)
{
for
(var
key
in
bp_tenant_detail_r.data)
{
if(division
!=
'70'){
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
(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
(!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
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
...
@@ -1833,7 +1843,18 @@
...
@@ -1833,7 +1843,18 @@
bp_rate_flag =
true;
bp_rate_flag =
true;
}
}
}
}
}else{
}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
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score')
{
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
(!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
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
...
@@ -1845,11 +1866,48 @@
...
@@ -1845,11 +1866,48 @@
}
}
}
}
}
}
}
}
}
}
if
(!bp_rate_flag)
{
if
(!bp_rate_flag)
{
return
false;
return
false;
}
}
debugger;
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
var
lease_item_record =
$(lease_item_ds_id).getCurrentRecord();
var
project_record =
$(prj_project_ds_id).getCurrentRecord();
var
machine_number =
lease_item_record.get('machine_number_70');
var
project_id =
project_record.get('project_id');
var
machine_number_num =
0;
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;
}
return true;
return true;
};
};
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
1b8d5624
...
@@ -13,9 +13,9 @@
...
@@ -13,9 +13,9 @@
<a:model-query
fetchAll=
"true"
model=
"prj.PRJ500D.user_agent_description"
rootPath=
"user_agent_description"
/>
<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=
"zjwfl.ZJWFL1060.zi_wfl_approve_get_submitted"
rootPath=
"approve_history_rp"
/>
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
<s:server-script
import=
"contract_print_path.js"
>
<![CDATA[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
]]>
]]>
</s:server-script>
</s:server-script>
</a:init-procedure>
</a:init-procedure>
<a:view>
<a:view>
...
@@ -40,6 +40,9 @@
...
@@ -40,6 +40,9 @@
url=
"${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation.lsc"
/>
url=
"${/request/@context_path}/modules/hls/HLS500/hls_fin_doc_quotation.lsc"
/>
<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=
"${/parameter/@layout_code}hls_bp_master_query_link"
<a:link
id=
"${/parameter/@layout_code}hls_bp_master_query_link"
url=
"${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"
/>
url=
"${/request/@context_path}/modules/hls/HLS215N/hls_bp_master_query.lview"
/>
...
@@ -59,6 +62,7 @@
...
@@ -59,6 +62,7 @@
<a:link
id=
"${/parameter/@layout_code}_prj_project_update_status_link_id"
<a:link
id=
"${/parameter/@layout_code}_prj_project_update_status_link_id"
model=
"prj.PRJ505.prj_project_create_contract"
modelaction=
"execute"
/>
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=
"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"
/>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
...
@@ -313,6 +317,7 @@
...
@@ -313,6 +317,7 @@
var bp_rate_flag;
var bp_rate_flag;
/*保存前调用,生成项目编号*/
/*保存前调用,生成项目编号*/
var count = 0;
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var prj_project_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
var score_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_TENANT_SCORE_INFO', 'bp_tenant_rate_detail');
...
@@ -332,7 +337,7 @@
...
@@ -332,7 +337,7 @@
}
}
if (bp_tenant_detail_r && ds.id == prj_project_ds_id) {
if (bp_tenant_detail_r && ds.id == prj_project_ds_id) {
for (var key in bp_tenant_detail_r.data) {
for (var key in bp_tenant_detail_r.data) {
if(division!='70'){
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 (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(!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 (typeof bp_tenant_detail_r.get(key)== "null"||typeof bp_tenant_detail_r.get(key)== "undefined"|| bp_tenant_detail_r.get(key)== "") {
...
@@ -343,6 +348,17 @@
...
@@ -343,6 +348,17 @@
bp_rate_flag = true;
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{
} 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 (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)){
//if(!bp_tenant_detail_r.get(key)){
...
@@ -358,6 +374,39 @@
...
@@ -358,6 +374,39 @@
}
}
}
}
var lease_item_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var lease_item_record = $(lease_item_ds_id).getCurrentRecord();
var project_record = $(prj_project_ds_id).getCurrentRecord();
var project_id = project_record.get('project_id');
var machine_number = lease_item_record.get('machine_number_70');
var machine_number_num = 0;
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(!bp_rate_flag){
if(!bp_rate_flag){
return false;
return false;
}
}
...
@@ -454,6 +503,7 @@
...
@@ -454,6 +503,7 @@
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}lease_number_query_link', record.ds.id, '${/parameter/@layout_code}');
hls_doc_get_layout_code('${/parameter/@layout_code}_get_layout_code_link_id', param, '${/parameter/@layout_code}lease_number_query_link', record.ds.id, '${/parameter/@layout_code}');
}
}
//超链接渲染
//超链接渲染
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
var link_function = '';
var link_function = '';
...
@@ -583,9 +633,9 @@
...
@@ -583,9 +633,9 @@
if(division!='30'
&&
division!='50'){
if(division!='30'
&&
division!='50'){
$(gridId).hideColumn('machine_number_n');
$(gridId).hideColumn('machine_number_n');
}
}
if(division=='70'
&&
division!=''){
if((division=='70'||division=='92')
&&
division!=''){
debugger;
if(record!=''){
if(record!=''){
debugger;
record.getField('lease_name_n').setRequired(true);
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setReadOnly(false);
...
@@ -619,6 +669,15 @@
...
@@ -619,6 +669,15 @@
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
$(gridId).hideColumn('created_by_n');
}
}
if(record.get('division')=='30'||record.get('division')=='50'||record.get('division')=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
}
}
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
/* var bp_ds_ids = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'F_HISTORY_INFO_1', 'prj_project_bp');
...
@@ -825,10 +884,35 @@
...
@@ -825,10 +884,35 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_form_add_and_load']
=
function
(ds,
record,
config_records,
bp_seq)
{
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
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
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
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',
'是');
record.getField('cell_phone').setRequired(true);
}
else
if(
record.get('send_message')
==
'YES'){
record.getField('cell_phone').setRequired(true);
}
if
(Leaf.isEmpty(record.get('cell_phone'))){
record.set('cell_phone',
record.get('phone_number'));
}
}
//addby
xsh35973
20221014
神钢建机首付款抵扣只读
if
(
division=
='91')
{
//若为神钢建机
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
var
current_record =
$(ds_id).getCurrentRecord();
current_record.getField('payment_deduction').setReadOnly(true);
current_record.getField('payment_deduction_n').setReadOnly(true);
}
//add
by
wangwei
非铁甲业务隐藏铁甲评分
//add
by
wangwei
非铁甲业务隐藏铁甲评分
var
bp_tenant_rate_detail_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'bp_tenant_rate_detail');
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
(
bp_tenant_rate_detail_ds_id =
=
ds.id
&&
bp_tenant_rate_detail_ds_id)
{
if
(
division
!=
'70'
&&
division
!=
'')
{
if
(
record.get('division')
!=
'70'
&&
division
!=
'')
{
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
}
...
@@ -844,7 +928,7 @@
...
@@ -844,7 +928,7 @@
}
}
//新增
“限制金额”字段;
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(record.get('pay_method')
==
'CCB_THREE')
{
if
(record.get('pay_method')
==
'CCB_THREE'
||record.get('pay_method')
==
'CCB_TWO'
)
{
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_prompt')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'block'
;
record.getField('deduction_limit').setRequired(true);
record.getField('deduction_limit').setRequired(true);
...
@@ -915,7 +999,6 @@
...
@@ -915,7 +999,6 @@
var
create_bp_code =
'${/model/approve_history_rp/record/@bp_code}'
;
var
create_bp_code =
'${/model/approve_history_rp/record/@bp_code}'
;
var
credit_record =
$(ds_id).getCurrentRecord();
var
credit_record =
$(ds_id).getCurrentRecord();
if(!Ext.isEmpty(create_bp_code)){
if(!Ext.isEmpty(create_bp_code)){
debugger;
if(
create_bp_code =
=
'C00010180'
||
create_bp_code =
=
'C00010175'
||
create_bp_code =
=
'C00010176'
||
create_bp_code =
=
'C00010187'){
if(
create_bp_code =
=
'C00010180'
||
create_bp_code =
=
'C00010175'
||
create_bp_code =
=
'C00010176'
||
create_bp_code =
=
'C00010187'){
if('${/parameter/@editable_flag}'
==
'Y'
||
'${/parameter/@editable_flag}'
==
'YE'){
if('${/parameter/@editable_flag}'
==
'Y'
||
'${/parameter/@editable_flag}'
==
'YE'){
credit_record.getField('credit_line').setReadOnly(false);
credit_record.getField('credit_line').setReadOnly(false);
...
@@ -947,7 +1030,7 @@
...
@@ -947,7 +1030,7 @@
}
}
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
if(division!='70'&&division!=''){
if(division!='70'&&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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')
.style.display =
'none'
;
...
@@ -972,7 +1055,7 @@
...
@@ -972,7 +1055,7 @@
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CONTRACT_AMOUNT')
.style.display =
'none'
;
}else
if(
division=
='70'
&&division!=''){
}else
if(
(
division=
='70'||division=='92')
&&division!=''){
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_OTHER_FEE')
.style.display =
'none'
;
...
@@ -985,6 +1068,12 @@
...
@@ -985,6 +1068,12 @@
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.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'
;
}
var
bp_code =
'${/model/user_agent_description/record/@bp_code}'
;
var
bp_code =
'${/model/user_agent_description/record/@bp_code}'
;
if
(!Ext.isEmpty(bp_code)){
if
(!Ext.isEmpty(bp_code)){
//
if
(
bp_code =
=
'C00010168'
||
bp_code =
=
'C00010198'
||
bp_code =
=
'C00010170')
{
//
if
(
bp_code =
=
'C00010168'
||
bp_code =
=
'C00010198'
||
bp_code =
=
'C00010170')
{
...
@@ -1013,7 +1102,6 @@
...
@@ -1013,7 +1102,6 @@
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'block'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'block'
;
}
}
}
}
debugger;
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_LARGE_BALANCE')
.style.display =
'none'
;
if('${/parameter/@function_usage}'
==
'QUERY'
&&
'${/parameter/@editable_flag}'
!=
'YE'
&&
'${/parameter/@editable_flag}'
!=
'Y'
){
if('${/parameter/@function_usage}'
==
'QUERY'
&&
'${/parameter/@editable_flag}'
!=
'YE'
&&
'${/parameter/@editable_flag}'
!=
'Y'
){
...
@@ -1040,7 +1128,7 @@
...
@@ -1040,7 +1128,7 @@
}
}
//更新时调用
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
debugger;
debugger;
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&&tenant_ds_id){
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
...
@@ -1063,7 +1151,7 @@
...
@@ -1063,7 +1151,7 @@
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
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');
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
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'){
if(
division=
='70'
||division=='92'
){
record.getField('lease_name_n').setRequired(true);
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setReadOnly(false);
...
@@ -1084,6 +1172,22 @@
...
@@ -1084,6 +1172,22 @@
}else
{
}else
{
record.getField('modelcd').setReadOnly(true);
record.getField('modelcd').setReadOnly(true);
}
}
if(
name=
='produce_date'&&
!Ext.isEmpty(record.get('produce_date'))){
var
quotation_record =
$(prj_quotation_ds_id).getCurrentRecord();
quotation_record.set('produce_date',record.get('produce_date'));
};
if(
division=
='30'||division=='50'||division=='80'){
record.getField('set_number').setRequired(true);
}else{
record.getField('set_number').setReadOnly(true);
if(Ext.isEmpty(record.get('set_number'))){
record.set('set_number',1);
}
}
}
}
if
(
prj_project_ds_id =
=
ds.id
&&
prj_project_ds_id)
{
if
(
prj_project_ds_id =
=
ds.id
&&
prj_project_ds_id)
{
if
(
name =
=
"payment_deduction"
&&
value=
="DOWN_PAYMENT_DEDUCTION")
{
if
(
name =
=
"payment_deduction"
&&
value=
="DOWN_PAYMENT_DEDUCTION")
{
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_modify_entrance.lview
View file @
1b8d5624
...
@@ -76,6 +76,7 @@
...
@@ -76,6 +76,7 @@
}
}
}
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function (value, record, name, config_record) {
if (name == 'project_number' && value) {
if (name == 'project_number' && value) {
return '<a href="javascript:open_project_modify_win(\'' + record.id + '\',\'' + record.ds.id + '\')">
' + value + '
</a>
';
return '<a href="javascript:open_project_modify_win(\'' + record.id + '\',\'' + record.ds.id + '\')">
' + value + '
</a>
';
...
...
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