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
0013ee01
Commit
0013ee01
authored
Dec 02, 2021
by
王炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价评分改造
parent
d58b5aea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
38 deletions
+50
-38
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+30
-24
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+20
-14
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
0013ee01
...
@@ -384,9 +384,9 @@
...
@@ -384,9 +384,9 @@
}
}
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 (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' && key != 'project_id'
&& key != 'third_party_credibility' && key != 'third_party_credibility_n'
) {
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'
) {
if(!bp_tenant_detail_r.get(key)){
if(!bp_tenant_detail_r.get(key)){
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方
信用度
\"外,其他都为必输字段,请填写!");
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方
担保附件分数
\"外,其他都为必输字段,请填写!");
bp_rate_flag = false;
bp_rate_flag = false;
break;
break;
}else{
}else{
...
@@ -701,8 +701,8 @@
...
@@ -701,8 +701,8 @@
}
}
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
!==
'
D00000029'
&&
bp_code
!==
'D00000031'
&&
bp_code
!==
'D00000026'
&&
bp_code
!==
'D00000030
'){
if(bp_code
!==
'
C00010180'
&&
bp_code
!==
'C00010175'
&&
bp_code
!==
'C00010176'
&&
bp_code
!==
'C00010187
'){
if(
bp_code =
='
X00010005'
||
bp_code =
='J00010006
'){
if(
bp_code =
='
D00010001
'){
record.set('credit_line','TENANT');
record.set('credit_line','TENANT');
record.set('credit_line_n','承租人');
record.set('credit_line_n','承租人');
record.getField('credit_line').setRequired(false);
record.getField('credit_line').setRequired(false);
...
@@ -719,8 +719,8 @@
...
@@ -719,8 +719,8 @@
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_prompt')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE')
.style.display =
'none'
;
}
}
//新增
“限制金额”字段;
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(record.get('PAY_METHOD')
==
'CCB_THREE')
{
if
(record.get('PAY_METHOD')
==
'CCB_THREE')
{
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'
;
...
@@ -730,9 +730,9 @@
...
@@ -730,9 +730,9 @@
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_PAY_INFO_PRJ_PROJECT_DEDUCTION_LIMIT')
.style.display =
'none'
;
record.getField('deduction_limit').setRequired(false);
record.getField('deduction_limit').setRequired(false);
}
}
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'
;
}
}
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'
;
};
};
//更新时调用
//更新时调用
...
@@ -746,7 +746,7 @@
...
@@ -746,7 +746,7 @@
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'){
if(
name=
='lease_name_n'){
if(
name=
='lease_name_n'){
record.data.type_name=
value;
record.data.type_name=
value;
}else
if(
name=
='modelcd'){
}else
if(
name=
='modelcd'){
record.data.pattern=
value;
record.data.pattern=
value;
}
}
...
@@ -757,16 +757,16 @@
...
@@ -757,16 +757,16 @@
//选择承租人带出开票信息
//选择承租人带出开票信息
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")
{
//业务类型回租时,默认只读“首付款抵扣”选项
//业务类型回租时,默认只读“首付款抵扣”选项
if
($(prj_project_ds_id).getAt(0).get('business_type')
==
'LEASE')
{
if
($(prj_project_ds_id).getAt(0).get('business_type')
==
'LEASE')
{
Leaf.showInfoMessage("提示",
"直租业务不能选择首付款抵扣");
Leaf.showInfoMessage("提示",
"直租业务不能选择首付款抵扣");
setTimeout(function
()
{
setTimeout(function
()
{
$(prj_project_ds_id).getAt(0).set('payment_deduction',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n',
null);
$(prj_project_ds_id).getAt(0).set('payment_deduction_n',
null);
},
10);
},
10);
}
}
}
}
if
(
name =
=
"bp_id_tenant_n"
&&
value)
{
if
(
name =
=
"bp_id_tenant_n"
&&
value)
{
var
bp_id_tenant =
record.get('bp_id_tenant');
var
bp_id_tenant =
record.get('bp_id_tenant');
Leaf.Masker.mask(Ext.getBody());
Leaf.Masker.mask(Ext.getBody());
...
@@ -901,9 +901,9 @@
...
@@ -901,9 +901,9 @@
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);
if(Ext.isEmpty(record.get('deduction_limit'))){
if(Ext.isEmpty(record.get('deduction_limit'))){
record.set('deduction_limit',200000);
record.set('deduction_limit',200000);
}
}
}else{
}else{
record.getField('deduction_limit').setRequired(false);
record.getField('deduction_limit').setRequired(false);
record.set('deduction_limit',null);
record.set('deduction_limit',null);
...
@@ -924,6 +924,15 @@
...
@@ -924,6 +924,15 @@
record.set('bp_age',
jsGetAge(value.format('yyyy-mm-dd').toString()));
record.set('bp_age',
jsGetAge(value.format('yyyy-mm-dd').toString()));
}
}
}
}
if(
name=
='third_guar_score'&&!Ext.isEmpty(value)){
if(value<0||value
>
10){
setTimeout(function () {
record.set('third_guar_score', '');
}, 0);
Leaf.showInfoMessage("提示", "第三方担保附件分数范围为0-10,请重新输入!");
}
}
}
}
var device_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_SCORE_DEVICE', 'bp_tenant_rate_item');
var device_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_SCORE_DEVICE', 'bp_tenant_rate_item');
if (device_ds_id == ds.id) {
if (device_ds_id == ds.id) {
...
@@ -959,9 +968,6 @@
...
@@ -959,9 +968,6 @@
}
}
}
}
}
}
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'
;
};
};
...
@@ -1197,7 +1203,7 @@
...
@@ -1197,7 +1203,7 @@
});
});
}
}
}
}
//
if
($(ds_id).validate())
{
//
if
($(ds_id).validate())
{
//
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
//
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?',
function
()
{
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
0013ee01
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
$Author: wangwei5743
$Author: wangwei5743
$Date: 2014-10-8 下午3:16:19
$Date: 2014-10-8 下午3:16:19
$Revision: 1.0
$Revision: 1.0
$purpose: 租赁申请创建 创建界面
$purpose: 租赁申请创建 创建界面
-->
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:s=
"leaf.plugin.script"
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
xmlns:s=
"leaf.plugin.script"
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
trace=
"true"
>
customizationEnabled=
"true"
dynamiccreateenabled=
"true"
trace=
"true"
>
...
@@ -822,6 +822,16 @@
...
@@ -822,6 +822,16 @@
record.set('bp_age',
jsGetAge(value.format('yyyy-mm-dd').toString()));
record.set('bp_age',
jsGetAge(value.format('yyyy-mm-dd').toString()));
}
}
}
}
if(
name=
='third_guar_score'&&!Ext.isEmpty(value)){
if(value<0||value
>
10){
setTimeout(function () {
record.set('third_guar_score', '');
}, 0);
Leaf.showInfoMessage("提示", "第三方担保附件分数范围为0-10,请重新输入!");
}
}
}
}
var device_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_SCORE_DEVICE', 'bp_tenant_rate_item');
var device_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_SCORE_DEVICE', 'bp_tenant_rate_item');
if (device_ds_id == ds.id) {
if (device_ds_id == ds.id) {
...
@@ -856,8 +866,6 @@
...
@@ -856,8 +866,6 @@
}
}
}
}
}
}
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'
;
};
};
...
@@ -1023,8 +1031,8 @@
...
@@ -1023,8 +1031,8 @@
}
}
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);
...
@@ -1126,8 +1134,6 @@
...
@@ -1126,8 +1134,6 @@
}
}
}
}
}
}
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
//pdf预览
add
by
zhuxianfei
...
@@ -1270,10 +1276,10 @@
...
@@ -1270,10 +1276,10 @@
var
bp_tenant_detail_r =
$(score_ds_id).getCurrentRecord();
var
bp_tenant_detail_r =
$(score_ds_id).getCurrentRecord();
if
(bp_tenant_detail_r)
{
if
(bp_tenant_detail_r)
{
for
(var
key
in
bp_tenant_detail_r.data)
{
for
(var
key
in
bp_tenant_detail_r.data)
{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'
)
{
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
(!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)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方
信用度
\"外,其他都为必输字段,请填写!");
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方
担保附件分数
\"外,其他都为必输字段,请填写!");
return;
return;
}
}
}
}
...
@@ -1600,10 +1606,10 @@
...
@@ -1600,10 +1606,10 @@
}
}
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
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n
')
{
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)
===
"")
{
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方
信用度
\"外,其他都为必输字段,请填写!");
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方
担保附件得分
\"外,其他都为必输字段,请填写!");
bp_rate_flag =
false;
bp_rate_flag =
false;
break;
break;
}
else
{
}
else
{
...
...
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