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
6e383ca8
Commit
6e383ca8
authored
Jan 17, 2024
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资管费报单改造
parent
7d321b47
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
16 deletions
+134
-16
prj_quotation_save.lwm
.../webapp/WEB-INF/classes/prj/PRJ501/prj_quotation_save.lwm
+2
-1
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+46
-4
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+45
-7
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+41
-4
No files found.
src/main/webapp/WEB-INF/classes/prj/PRJ501/prj_quotation_save.lwm
View file @
6e383ca8
...
...
@@ -99,7 +99,8 @@
p_ref_d02=>to_date(${@ref_d02},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d03=>to_date(${@ref_d03},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d04=>to_date(${@ref_d04},'yyyy-mm-dd hh24:mi:ss'),
p_ref_d05=>to_date(${@ref_d05},'yyyy-mm-dd hh24:mi:ss'));
p_ref_d05=>to_date(${@ref_d05},'yyyy-mm-dd hh24:mi:ss'),
p_btb_int_rate=>${@btb_int_rate});
end;
]]>
</bm:update-sql>
<bm:parameters>
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
6e383ca8
...
...
@@ -70,7 +70,18 @@
var gridId= 'PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id';
$(gridId).hideColumn('machine_number_n');
}
});
//不为租赁二手机业务时隐藏资管费相关字段及费率 18083 2023/1/15
if(division!='70'){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06').style.display = 'none';
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt').style.display = 'none';
}
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id').style.display = 'none';
}
}
});
window['${/parameter/@layout_code}_quote_layout_dynamic_click'] = function () {
...
...
@@ -775,7 +786,12 @@
}
var
prj_quotation_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_quotation');
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id)
{
debugger;
//产品线不为二手机业务,将资管费等字段置空
if(division
!=
'70'&&
division
!=
''){
record.getField('hd_user_col_v06').setRequired(false);
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
}
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')
.style.display =
'none'
...
...
@@ -958,13 +974,39 @@
//更新时调用
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_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
quo_rate_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_RATE_N',
'prj_quotation');
var
prj_project_history_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'T_HISTORY_INGO',
'hls_bp_master');
var
score_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_TENANT_SCORE_INFO',
'bp_tenant_rate_detail');
var
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if
(record.get('hd_user_col_v06')
==
'N')
{
record.set('asset_id',
null);
record.set('asset_id_n',
null);
record.set('btb_int_rate',
'');
record.set('int_rate_display',
'');
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
}
else
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
}
}
}
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
6e383ca8
...
...
@@ -586,7 +586,7 @@
$(prj_quotation_ds_id).query();
$(score_ds_id).query();
}
if (prj_project_lease_item_ds_id==ds.id){
$(prj_quotation_ds_id).query();
}
...
...
@@ -666,7 +666,31 @@
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
tenant_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_BASIC_INFO_1',
'prj_project');
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if
(record.get('hd_user_col_v06')
==
'N')
{
record.set('asset_id',
null);
record.set('asset_id_n',
null);
record.set('btb_int_rate',
'');
record.set('int_rate_display',
'');
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
}
else
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
}
}
}
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
...
...
@@ -1255,7 +1279,7 @@
var
description =
'${/model/description/record/@employee_type_code}'
;
var
bp_code=
'${/model/user_agent_description/record/@bp_code}'
;
var
credit_record =
$(ds_id).getCurrentRecord();
var
invoice_agent_id=
record.get('invoice_agent_id');
if(!Ext.isEmpty(description)
&&
description =
=
'AGENT'){
if(!Ext.isEmpty(bp_code)){
...
...
@@ -1275,7 +1299,7 @@
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
}else
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
...
...
@@ -1297,6 +1321,19 @@
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
if(division
!=
'70'&&
division
!=
''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt')
.style.display =
'none'
;
}
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
record.getField('hd_user_col_v06').setRequired(false);
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
}
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')
.style.display =
'none'
...
...
@@ -1417,6 +1454,7 @@
$(billing_ds_id).query();
});
//序号自增
add
by
lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
...
...
@@ -1737,7 +1775,7 @@
var
total_price=
records.get('total_price');
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
q_value=
records.get('q_value');
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
...
...
@@ -1798,7 +1836,7 @@
var
lease_item_amount=
record.get('lease_item_amount');
var
residual_value=
record.get('residual_value');
var
q_value=
records.get('q_value');
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return;
...
...
@@ -1934,7 +1972,7 @@
return
false;
}
if
(record.get('signing_city')){
var
reg =
/^(.){4,}$/;
if
(!reg.test(record.get('signing_city')))
{
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
6e383ca8
...
...
@@ -655,8 +655,8 @@
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('modelcd').setReadOnly(
tru
e);
record.getField('modelcd').setRequired(
fals
e);
record.getField('modelcd').setReadOnly(
fals
e);
record.getField('modelcd').setRequired(
tru
e);
record.getField('ownership_flag_n').setRequired(true);
record.getField('residual_value_amount').setRequired(true);
record.getField('full_name').setRequired(false);
...
...
@@ -1136,6 +1136,19 @@
}
}
if
(
prj_quotation_ds_id =
=
ds.id
&&
prj_quotation_ds_id){
if(division
!=
'70'&&
division
!=
''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06')
.style.display =
'none'
;
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_HD_USER_COL_V06_prompt')
.style.display =
'none'
;
}
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
record.getField('hd_user_col_v06').setRequired(false);
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
}
if(division!='70'&&division!='92'&&division!=''){
if(document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN')){
document.getElementById('${/parameter/@layout_code}_F_QUOTATION_N_PRJ_QUOTATION_CUSTOMER_MARGIN_prompt')
.style.display =
'none'
;
...
...
@@ -1276,8 +1289,7 @@
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function
(ds,
record,
name,
value,
old_value,
bp_seq)
{
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){
if(
name =
=
'send_message_n'){
if(
value=
='是'){
...
...
@@ -1288,6 +1300,31 @@
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if
(record.get('hd_user_col_v06')
==
'N')
{
record.set('asset_id',
null);
record.set('asset_id_n',
null);
record.set('btb_int_rate',
'');
record.set('int_rate_display',
'');
record.getField('asset_id').setRequired(false);
record.getField('asset_id_n').setRequired(false);
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'none'
;
}
}
else
{
record.getField('asset_id').setRequired(true);
record.getField('asset_id_n').setRequired(true);
//隐藏组件
if(document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')){
document.getElementById('${/parameter/@layout_code}_F_RATE_N_component_id')
.style.display =
'block'
;
}
}
}
}
//选择承租人带出开票信息
var
prj_project_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'prj_project');
...
...
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