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
2e1d80cc
Commit
2e1d80cc
authored
Jul 12, 2023
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡家+茂甲的租赁物维护权限开放给用户
parent
53044cfc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
125 additions
and
64 deletions
+125
-64
hls_lease_item_modify_entrance.lview
.../modules/hls/HLS203N/hls_lease_item_modify_entrance.lview
+63
-0
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+2
-2
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+53
-58
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+7
-4
No files found.
src/main/webapp/modules/hls/HLS203N/hls_lease_item_modify_entrance.lview
View file @
2e1d80cc
...
...
@@ -101,6 +101,7 @@
window['${/parameter/@layout_code}_on_layout_dynamic_grid_load'] = function(ds, record) {
//0017 宏菱管理员 HAND HAND管理员
var role_code = '${/model/user_name_path/record/@role_code}';
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_lease_item');
if (record) {
if (role_code == '0017' || role_code == 'HAND') {
record.getField('ref_n01').setReadOnly(false);
...
...
@@ -108,6 +109,26 @@
record.getField('ref_n01').setReadOnly(true);
}
}
if(ds.id == ds_id){
var record = $(ds_id).getAll()
for (var i=0;i
<record.length
;i++){
if(record[i]
.data.division=
='70'
||
record[i]
.data.division=
='92'){
record[i].getField('pattern').setRequired(false);
record[i].getField('pattern').setReadOnly(true);
record[i].getField('equipments').setReadOnly(true);
record[i].getField('detention').setReadOnly(true);
record[i].getField('detention').setRequired(false);
record[i].getField('machine_model_class').setReadOnly(true);
record[i].getField('machine_model_class_n').setReadOnly(true);
record[i].getField('ref_n01').setReadOnly(true);
record[i].getField('created_by_n').setReadOnly(true);
record[i].getField('vender_id').setReadOnly(true);
record[i].getField('vender_id').setRequired(false);
record[i].getField('vender_id_n').setReadOnly(true);
record[i].getField('vender_id_n').setRequired(false);
}
}
}
};
//新增时调用(grid,table,gridBox)
...
...
@@ -117,6 +138,48 @@
record.getField('ref_n01').setReadOnly(false);
};
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update']
=
function(ds,
record,
name,
value,
old_value,
bp_seq)
{
debugger;
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_lease_item');
if(
ds.id =
=
ds_id){
if(
name =
=
'division'){
if(
value =
=
'70'
||
value =
=
'92'){
record.getField('pattern').setReadOnly(true);
record.getField('pattern').setRequired(false);
record.getField('equipments').setReadOnly(true);
record.getField('detention').setReadOnly(true);
record.getField('detention').setRequired(false);
record.set('machine_model_class','
');
record.set('machine_model_class_n','
');
record.getField('machine_model_class').setReadOnly(true);
record.getField('machine_model_class_n').setReadOnly(true);
record.getField('ref_n01').setReadOnly(true);
record.getField('created_by_n').setReadOnly(true);
record.getField('vender_id').setReadOnly(true);
record.getField('vender_id').setRequired(false);
record.getField('vender_id_n').setReadOnly(true);
record.getField('vender_id_n').setRequired(false);
}else
{
record.getField('pattern').setReadOnly(false);
record.getField('pattern').setRequired(true);
record.getField('equipments').setReadOnly(false);
record.getField('detention').setReadOnly(false);
record.getField('detention').setRequired(true);
record.set('machine_model_class','LARGE');
record.set('machine_model_class_n','大型');
record.getField('machine_model_class').setReadOnly(false);
record.getField('machine_model_class_n').setReadOnly(false);
record.getField('ref_n01').setReadOnly(false);
record.getField('vender_id').setReadOnly(false);
record.getField('vender_id').setRequired(true);
record.getField('vender_id_n').setReadOnly(false);
record.getField('vender_id_n').setRequired(true);
}
}
}
}
//更新机型信息
window['${/parameter/@layout_code}_user_button2_layout_dynamic_click']
=
function
()
{
var
ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_lease_item');
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
2e1d80cc
...
...
@@ -1236,8 +1236,8 @@
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('machine_number_70').setRequired(true);
record.getField('modelcd').setReadOnly(
fals
e);
record.getField('modelcd').setRequired(
tru
e);
record.getField('modelcd').setReadOnly(
tru
e);
record.getField('modelcd').setRequired(
fals
e);
record.getField('full_name').setRequired(false);
record.getField('full_name_n').setRequired(false);
record.getField('ownership_flag_n').setRequired(true);
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
2e1d80cc
...
...
@@ -19,9 +19,9 @@
<!-- <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[
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
]]>
$ctx.parameter.file_path = con_print_path['con_print_path'];
$ctx.parameter.tomcat_source = con_print_path['tomcat_source'];
]]>
</s:server-script>
</a:init-procedure>
<a:view>
...
...
@@ -169,19 +169,19 @@
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
//首次插入
if (!record.get('calc_session_id')) {
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
record.set('to_doc_table', 'HLS_FIN_CALCULATOR_HD');
var calc_recreate_L_formula;
calc_recreate_L_formula = 'Y';
...
...
@@ -249,15 +249,15 @@
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var current_red= $(ds_id).getCurrentRecord();
if(division=='30' || division=='50'){
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
var set_number=current_red.get('set_number');
var total_number=current_red.get('total_number');
if(total_number!=0 && set_number!=total_number){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:HLS.PROMPT}', '租赁物台数与查看明细中台数不一致,请重新维护!');
return;
}
}
var cal_hd_price_list = record.get('cal_hd_price_list');
var price_list = record.get('price_list');
if (cal_hd_price_list == price_list) {
...
...
@@ -586,9 +586,10 @@
$(prj_quotation_ds_id).query();
$(score_ds_id).query();
}
if (prj_project_lease_item_ds_id==ds.id){
$(prj_quotation_ds_id).query();
}
if (prj_project_lease_item_ds_id==ds.id){
$(prj_quotation_ds_id).query();
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
};
...
...
@@ -675,9 +676,11 @@
record.getField('cell_phone').setRequired(false);
}
}
}
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'||division=='92'){
record.getField('lease_name_n').setRequired(true);
...
...
@@ -685,8 +688,8 @@
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('machine_number_70').setRequired(true);
record.getField('modelcd').setReadOnly(
fals
e);
record.getField('modelcd').setRequired(
tru
e);
record.getField('modelcd').setReadOnly(
tru
e);
record.getField('modelcd').setRequired(
fals
e);
record.getField('full_name').setRequired(false);
record.getField('full_name_n').setRequired(false);
record.getField('ownership_flag_n').setRequired(true);
...
...
@@ -949,14 +952,15 @@
};
//加载时调用(grid,table,gridBox)
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 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).query();
*/
$(bp_ds_ids).query();*/
if(lease_item_ds_id == ds.id
&&
lease_item_ds_id){
var gridId= ds.bindname+'_layout_grid_id';
if(division!='30'
&&
division!='50'){
...
...
@@ -970,8 +974,8 @@
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('modelcd').setReadOnly(
fals
e);
record.getField('modelcd').setRequired(
tru
e);
record.getField('modelcd').setReadOnly(
tru
e);
record.getField('modelcd').setRequired(
fals
e);
record.getField('ownership_flag_n').setRequired(true);
record.getField('residual_value_amount').setRequired(true);
record.getField('full_name').setRequired(false);
...
...
@@ -1032,9 +1036,10 @@
return
eval(strJs);
}
var
division=
''
;
//新增和加载时调用(form)
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');
if(
tenant_ds_id =
=
ds.id){
//debugger;
if
(Leaf.isEmpty(record.get('send_message'))){
...
...
@@ -1062,10 +1067,6 @@
record.getField('bank_account_id').setRequired(false);
record.getField('bank_account_id_n').setRequired(false);
}
//新增
“限制金额”字段;
//“扣款限额”:“租金支付方式”为“建行扣款(三方)”时展示,必填,大于0,默认20万,可修改;
if
(record.get('pay_method')
==
'CCB_THREE'||record.get('pay_method')
==
'CCB_TWO')
{
...
...
@@ -1148,23 +1149,27 @@
record.getField('branch_code_n').setRequired(false);
}
//获取员工类型
//
debugger;
debugger;
var
description =
'${/model/description/record/@employee_type_code}'
;
var
bp_code=
'${/model/user_agent_description/record/@bp_code}'
;
var
credit_record =
$(ds_id).getCurrentRecord();
if(
division=
='80'||division=='30'||division=='50'){
var
invoice_agent_id=
record.get('invoice_agent_id');
if((
division=
='80'||division=='30'||division=='50')
&&
invoice_agent_id
!==
25321){
credit_record.set('credit_line','TENANT');
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(bp_code
!==
'
C00010180'
&&
bp_code
!==
'C00010175'
&&
bp_code
!==
'C00010176'
&&
bp_code
!==
'C00010187
'){
if(
bp_code =
='
D00010001
'){
if(bp_code
!==
'
D00000026'
&&
bp_code
!==
'D00000029'
&&
bp_code
!==
'D00000030'
&&
bp_code
!==
'D00000031
'){
if(
bp_code =
='
X00010005'
||
bp_code =
='J00010006
'){
credit_record.set('credit_line','TENANT');
credit_record.set('credit_line_n','承租人');
credit_record.getField('credit_line').setReadOnly(true);
credit_record.getField('credit_line_n').setReadOnly(true);
credit_record.getField('credit_line').setRequired(false);
credit_record.getField('credit_line_n').setRequired(false);
}else
{
document.getElementById('${/parameter/@layout_code}_F_BASIC_INFO_1_PRJ_PROJECT_CREDIT_LINE_prompt')
.style.display =
'none'
;
...
...
@@ -1263,7 +1268,6 @@
document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')
.style.display =
'none'
;
}
if
(!record.get('score_name'))
{
if
($(ds_id).getCurrentRecord())
{
var
score_name =
$(ds_id).getCurrentRecord().get('legal_person')
||
$(ds_id).getCurrentRecord().get('bp_id_tenant_n');
record.set('score_name',
score_name);
...
...
@@ -1422,7 +1426,6 @@
return;
}
}
}else{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'&&
key
!=
'contract_id'
&&
key
!=
'bp_age'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score'
)
{
//if
(!bp_tenant_detail_r.get(key))
{
...
...
@@ -1511,13 +1514,11 @@
var
show =
down_payment_rate_new
*
100;
if
((
price_list =
=
'HL_PRICR_E'
||
price_list =
=
'HL_PRICR_TEST'
||
price_list =
=
'HL_PRICR_NTEST'
||
price_list =
=
'HL_PRICR_EN')
&&
secondary_lease =
=
'NO')
{
if
((div((H16
+
H97),
(H99
+
H102
-
H16)).toFixed(2)
*
1)
<
down_payment_rate_new)
{
if(current_record.get('division')!='91'){
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
return;
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
return;
}
}
}
if
($(ds_id).validate())
{
...
...
@@ -1611,13 +1612,11 @@
var
show =
down_payment_rate_new
*
100;
if
((
price_list =
=
'HL_PRICR_E'
||
price_list =
=
'HL_PRICR_TEST'
||
price_list =
=
'HL_PRICR_NTEST'
||
price_list =
=
'HL_PRICR_EN')
&&
secondary_lease =
=
'NO')
{
if
((div((H16
+
H97),
(H99
+
H102
-
H16)).toFixed(2)
*
1)
<
down_payment_rate_new)
{
if(current_record.get('division')!='91')
{
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
return;
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
Leaf.showMessage('${l:PROMPT}',
'首付款比例+首付款保证金比例之和不能低于'
+
down_payment_rate_new
*
100
+
'%');
return;
}
}
}
if
($(ds_id).validate())
{
...
...
@@ -1632,8 +1631,8 @@
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');
var
q_value=
records.get('q_value');
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return;
...
...
@@ -1692,8 +1691,8 @@
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');
var
q_value=
records.get('q_value');
if(total_price!=lease_item_amount
&&total_price!=null){
Leaf.showMessage('${l:PROMPT}',
'支付计划页面“设备价格”字段值与租赁物明细“设备单价(总)”合计不相等,无法进行提交!');
return;
...
...
@@ -1829,14 +1828,11 @@
return
false;
}
if
(record.get('signing_city')){
//
var
reg =
/^([\u2E80-\u9FFF]){4,}$/;
//
var
reg =
/^(.){4,}$/;
//
if
(!reg.test(record.get('signing_city')))
{
//
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
//
return
false;
//
}
if
(record.get('signing_city').indexOf('州')
==
-1
&&
record.get('signing_city').indexOf('县')
==
-1
&&
record.get('signing_city').indexOf('区')
==
-1)
{
Leaf.showConfirm('${HLS.PROMPT}',
'合同签订地所填写内容,未细化到区/县/州级别,是否确认?',
function
()
{});
var
reg =
/^(.){4,}$/;
if
(!reg.test(record.get('signing_city')))
{
$L.showErrorMessage('提示',
'合同签订地建议格式:“xx市xx区”(也可填写详细地址)!');
return
false;
}
}
}
...
...
@@ -1864,7 +1860,7 @@
bp_rate_flag =
true;
}
}
}
else{
}else{
if
(key
!=
'bp_detail_id'
&&
key
!=
'score_name'
&&
key
!=
'bp_age'&&
key
!=
'contract_id'
&&
key
!=
'project_id'
&&
key
!=
'third_party_credibility'
&&
key
!=
'third_party_credibility_n'&&
key
!=
'third_guar_score')
{
//if
(!bp_tenant_detail_r.get(key))
{
if
(typeof
bp_tenant_detail_r.get(key)
==
"null"
||
typeof
bp_tenant_detail_r.get(key)
==
"undefined"
||
bp_tenant_detail_r.get(key)
===
"")
{
...
...
@@ -1882,7 +1878,6 @@
if
(!bp_rate_flag)
{
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();
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
2e1d80cc
...
...
@@ -634,15 +634,17 @@
if(division!='30'
&&
division!='50'){
$(gridId).hideColumn('machine_number_n');
}
debugger;
if((division=='70'||division=='92')
&&
division!=''){
debugger;
if(record!=''){
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('modelcd').setReadOnly(
fals
e);
record.getField('modelcd').setRequired(
tru
e);
record.getField('modelcd').setReadOnly(
tru
e);
record.getField('modelcd').setRequired(
fals
e);
record.getField('ownership_flag_n').setRequired(true);
record.getField('residual_value_amount').setRequired(true);
record.getField('full_name').setRequired(false);
...
...
@@ -1215,14 +1217,15 @@
var
lease_item_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if
(
lease_item_ds_id =
=
ds.id
&&
lease_item_ds_id)
{
if(
division=
='70'||division=='92'){
debugger;
record.getField('lease_name_n').setRequired(true);
record.getField('brand_value').setRequired(true);
record.getField('produce_date').setReadOnly(false);
record.getField('produce_date').setRequired(true);
record.getField('using_hour').setRequired(true);
record.getField('machine_number_70').setRequired(true);
record.getField('modelcd').setReadOnly(
fals
e);
record.getField('modelcd').setRequired(
tru
e);
record.getField('modelcd').setReadOnly(
tru
e);
record.getField('modelcd').setRequired(
fals
e);
record.getField('full_name').setRequired(false);
record.getField('full_name_n').setRequired(false);
record.getField('ownership_flag_n').setRequired(true);
...
...
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