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
97e4ffca
Commit
97e4ffca
authored
Feb 21, 2020
by
Darming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]评分-排除第三方信用度
parent
c6d6ef11
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
68 deletions
+67
-68
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+1
-1
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+66
-67
No files found.
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
97e4ffca
...
@@ -324,7 +324,7 @@
...
@@ -324,7 +324,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 (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' &&
key != 'project_id
') {
if (key != 'bp_detail_id' && key != 'score_name' && key != 'bp_age' &&
key != 'project_id' && key != 'third_party_credibility' && key != 'third_party_credibility_n
') {
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;
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
97e4ffca
...
@@ -534,28 +534,28 @@
...
@@ -534,28 +534,28 @@
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');
//选择承租人带出开票信息
//选择承租人带出开票信息
if
(
prj_project_ds_id=
=ds.id
&&prj_project_ds_id)
{
if
(
prj_project_ds_id =
=
ds.id
&&
prj_project_ds_id)
{
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());
Leaf.request({
Leaf.request({
url:
$('hls_bp_master_billing_link').getUrl(),
url:
$('hls_bp_master_billing_link').getUrl(),
para:
{
para:
{
bp_id:bp_id_tenant
bp_id:
bp_id_tenant
},
},
success:
function(res)
{
success:
function
(res)
{
var
billing_into=
res.result.record;
var
billing_into =
res.result.record;
var
prj_project_bp_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project_bp');
var
prj_project_bp_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project_bp');
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type_n',billing_into.taxpayer_type_n);
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type_n',
billing_into.taxpayer_type_n);
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type',billing_into.taxpayer_type);
$(prj_project_bp_ds_id).getAt(0).set('taxpayer_type',
billing_into.taxpayer_type);
$(prj_project_bp_ds_id).getAt(0).set('invoice_title',billing_into.invoice_title);
$(prj_project_bp_ds_id).getAt(0).set('invoice_title',
billing_into.invoice_title);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_address',billing_into.invoice_bp_address);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_address',
billing_into.invoice_bp_address);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_phone_num',billing_into.invoice_bp_phone_num);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_phone_num',
billing_into.invoice_bp_phone_num);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank',billing_into.invoice_bp_bank);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank',
billing_into.invoice_bp_bank);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank_account',billing_into.invoice_bp_bank_account);
$(prj_project_bp_ds_id).getAt(0).set('invoice_bp_bank_account',
billing_into.invoice_bp_bank_account);
$(prj_project_bp_ds_id).getAt(0).set('tax_registry_num',billing_into.tax_registry_num);
$(prj_project_bp_ds_id).getAt(0).set('tax_registry_num',
billing_into.tax_registry_num);
$(prj_project_bp_ds_id).getAt(0).set('ref_v07',billing_into.ref_v07);
$(prj_project_bp_ds_id).getAt(0).set('ref_v07',
billing_into.ref_v07);
//record.set();
//record.set();
Leaf.Masker.unmask(Ext.getBody());
Leaf.Masker.unmask(Ext.getBody());
...
@@ -570,7 +570,7 @@
...
@@ -570,7 +570,7 @@
});
});
//根据承租人查找该承租人的历史合同信息
//根据承租人查找该承租人的历史合同信息
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryUrl('${/request/@context_path}/autocrud/prj.PRJ501N.prj_project_history_display/query');
$(prj_project_history_ds_id).setQueryParameter("bp_id",bp_id_tenant);
$(prj_project_history_ds_id).setQueryParameter("bp_id",
bp_id_tenant);
$(prj_project_history_ds_id).query();
$(prj_project_history_ds_id).query();
Leaf.Masker.mask(Ext.getBody());
Leaf.Masker.mask(Ext.getBody());
...
@@ -609,7 +609,7 @@
...
@@ -609,7 +609,7 @@
scope:
this
scope:
this
});
});
}
}
if
(
name =
=
'legal_person'
&&
value)
{
if
(
name =
=
'legal_person'
&&
value)
{
$(score_ds_id).getCurrentRecord().set('score_name',
value);
$(score_ds_id).getCurrentRecord().set('score_name',
value);
}
}
if
(
name =
=
'pay_method')
{
if
(
name =
=
'pay_method')
{
...
@@ -630,16 +630,16 @@
...
@@ -630,16 +630,16 @@
}
}
}
}
if(
name=
=
'payment_deduction')
{
if
(
name =
=
'payment_deduction')
{
var
quoation_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
quoation_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
quoation_record =
$(quoation_ds_id).getCurrentRecord();
var
quoation_record =
$(quoation_ds_id).getCurrentRecord();
var
down_payment =
quoation_record.get('down_payment')
||
0;
var
down_payment =
quoation_record.get('down_payment')
||
0;
var
calc_session_id
=
quoation_record.get('calc_session_id');
var
calc_session_id
=
quoation_record.get('calc_session_id');
var
other_payment2;
var
other_payment2;
if
(value
&&calc_session_id
&&
value =
=
'NO_DEDUCTION')
{
if
(value
&&
calc_session_id
&&
value =
=
'NO_DEDUCTION')
{
other_payment2 =
0;
other_payment2 =
0;
}
else
if
(value
&&calc_session_id&&
value
!=
'NO_DEDUCTION')
{
}
else
if
(value
&&
calc_session_id
&&
value
!=
'NO_DEDUCTION')
{
other_payment2=
down_payment;
other_payment2 =
down_payment;
}
}
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
Leaf.request({
...
@@ -661,12 +661,12 @@
...
@@ -661,12 +661,12 @@
});
});
}
}
if
(
name =
=
'bp_id_tenant')
{
if
(
name =
=
'bp_id_tenant')
{
if
(!value)
{
if
(!value)
{
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)
{
bp_tenant_detail_r.set(key,'');
bp_tenant_detail_r.set(key,
'');
}
}
}
}
}
}
...
@@ -865,7 +865,7 @@
...
@@ -865,7 +865,7 @@
fullScreen:
true,
fullScreen:
true,
draggable:
true
draggable:
true
});
});
win.on('close',
function()
{
win.on('close',
function
()
{
$(ds_id).query();
$(ds_id).query();
});
});
}
}
...
@@ -890,9 +890,9 @@
...
@@ -890,9 +890,9 @@
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
')
{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n
')
{
if
(!bp_tenant_detail_r.get(key))
{
if
(!bp_tenant_detail_r.get(key))
{
Leaf.showInfoMessage("提示","承租人评分信息区域的所有字段,除\"第三方信用度\"外,其他都为必输字段,请填写!");
Leaf.showInfoMessage("提示",
"承租人评分信息区域的所有字段,除\"第三方信用度\"外,其他都为必输字段,请填写!");
return;
return;
}
}
}
}
...
@@ -950,19 +950,18 @@
...
@@ -950,19 +950,18 @@
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')
{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n')
{
debugger;
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
{
bp_rate_flag =
true;
bp_rate_flag =
true;
}
}
}
}
}
}
}
}
if
(!bp_rate_flag)
{
if
(!bp_rate_flag)
{
return
false;
return
false;
}
}
...
...
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