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
5eb17a31
Commit
5eb17a31
authored
Sep 14, 2024
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二手机自然人银企直连改造及北京心诚终端模板改造
parent
e14c815e
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
352 additions
and
44 deletions
+352
-44
bp_agent_second_lease.lwm
...app/WEB-INF/classes/hls/HLS213N/bp_agent_second_lease.lwm
+24
-0
con_file_download.lwm
...ain/webapp/WEB-INF/classes/wx/WX100/con_file_download.lwm
+39
-9
con_re_print_entrance.lview
...in/webapp/modules/cont/CON311/con_re_print_entrance.lview
+1
-1
con_re_incept_modify.lview
...in/webapp/modules/cont/CON3200/con_re_incept_modify.lview
+9
-0
con_contract_modify.lview
...main/webapp/modules/cont/CON505/con_contract_modify.lview
+1
-1
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+2
-0
hls_bp_master_create_entrance.lview
...p/modules/hls/HLS213N/hls_bp_master_create_entrance.lview
+19
-8
hls_bp_master_modify_entrance.lview
...p/modules/hls/HLS214N/hls_bp_master_modify_entrance.lview
+34
-0
prj_project_create.lview
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
+82
-9
prj_project_maintain.lview
...ain/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
+85
-12
prj_project_maintain_wfl_new.lview
...pp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
+56
-4
No files found.
src/main/webapp/WEB-INF/classes/hls/HLS213N/bp_agent_second_lease.lwm
0 → 100644
View file @
5eb17a31
<?xml version="1.0" encoding="UTF-8"?>
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"true"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select nvl((select 'Y'
from dual
where exists (select 1
from exp_emp_assign_e_v ee,
hls_bp_master h,
hls_bp_master_agent_division hb
where ee.unit_id = h.unit_id
and h.bp_id = hb.bp_id
and h.bp_category = 'AGENT'
and ee.user_id = ${/session/@user_id}
and hb.division in ('70', '92'))),
'N') second_lease_flag
from dual
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/wx/WX100/con_file_download.lwm
View file @
5eb17a31
...
@@ -57,9 +57,31 @@ select fa.file_name,fa.file_path,fa.attachment_id
...
@@ -57,9 +57,31 @@ select fa.file_name,fa.file_path,fa.attachment_id
'PERSONAL_CREDIT',
'PERSONAL_CREDIT',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_TJ_FR_E',
'FINANCE_LEASE_CONTRACT_FR_TJ_E','FINANCE_LEASE_CONTRACT_FR_TJ_E',
'CSH_PAYMENT_REQ_TJ_E','CSH_PAYMENT_REQ_TJ_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',
--北京心诚合并二手机
'FINANCE_LEASE_CONTRACT_KJ_E','FINANCE_LEASE_CONTRACT_TJ_E',
'CON_CONTRACT_MORTGAGE_KJ_E','CON_CONTRACT_MORTGAGE_TJ_E',
'CON_COLLECTION_PAYMENT_KJ_E','CON_COLLECTION_PAYMENT_TJ_E',
'CSH_PAYMENT_REQ_KJ_1_E','CSH_PAYMENT_REQ_TJ_E',
'LEASE_CONTRACT_PAR_KJ_1_E','SPOUSE_COMMITMENT',
'LEASE_CONTRACT_PAR_KJ_E','GUARANTEE_COMMITMENT',
'FINANCE_LEASE_CONTRACT_KJ_S_E','FINANCE_LEASE_CONTRACT_TJ_S_E',
'FINANCE_LEASE_CONTRACT_FR_KJ_E','FINANCE_LEASE_CONTRACT_FR_TJ_E',
'FINANCE_LEASE_CONTRACT_KJ_FR_E','FINANCE_LEASE_CONTRACT_TJ_FR_E',
--'PERSONAL_CREDIT','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT','ENTERPRISE_CREDIT',
'PERSONAL_CREDIT_BLD_E',
'PERSONAL_CREDIT_BLD_E',
'CREDIT_AUTHOR',
'CREDIT_AUTHOR',
'ENTERPRISE_CREDIT_BLD_E',
'ENTERPRISE_CREDIT_BLD_E',
...
@@ -121,7 +143,12 @@ select fa.file_name,fa.file_path,fa.attachment_id
...
@@ -121,7 +143,12 @@ select fa.file_name,fa.file_path,fa.attachment_id
'ENTERPRISE_CREDIT_KJ_E','ENTERPRISE_CREDIT',
'ENTERPRISE_CREDIT_KJ_E','ENTERPRISE_CREDIT',
'PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'GUARANTOR_PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'GUARANTOR_PERSONAL_CREDIT_MJ_E','PERSONAL_CREDIT',
'ENTERPRISE_CREDIT_MJ_E','ENTERPRISE_CREDIT'
'ENTERPRISE_CREDIT_MJ_E','ENTERPRISE_CREDIT',
--二手机新增付款请求书区分签署人,卖方付款
'CSH_PAYMENT_REQ_TJ_RE','CSH_PAYMENT_REQ_TJ_E',
--'CSH_PAYMENT_REQ_KJ_1_RE','CSH_PAYMENT_REQ_KJ_1_E',
'CSH_PAYMENT_REQ_KJ_1_RE','CSH_PAYMENT_REQ_TJ_E',
'CSH_LEASEBACK_YNTQ_RE','CSH_PAYMENT_REQ_TJ_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
...
@@ -141,7 +168,10 @@ select fa.file_name,fa.file_path,fa.attachment_id
...
@@ -141,7 +168,10 @@ select fa.file_name,fa.file_path,fa.attachment_id
and ht.templet_code = ct.templet_code
and ht.templet_code = ct.templet_code
and ct.templet_id = cf.templet_id
and ct.templet_id = cf.templet_id
and hs.enable_flag = 'Y'
and hs.enable_flag = 'Y'
and hs.signer_category not in ('AGENCY_STORE_SEAL','AGENCY_STORE_SIGN','HONGLING_SEAL','HONGLING_SIGN',
and hs.signer_category not in ('AGENCY_STORE_SEAL',
'AGENCY_STORE_SIGN',
'HONGLING_SEAL',
'HONGLING_SIGN',
'MAN_FACTURER_SEAL',
'MAN_FACTURER_SEAL',
'MAN_FACTURER_SIGN',
'MAN_FACTURER_SIGN',
'SUPPLIER_SEAL',
'SUPPLIER_SEAL',
...
...
src/main/webapp/modules/cont/CON311/con_re_print_entrance.lview
View file @
5eb17a31
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
return;
return;
}
}
//代理店北京慧珠不支持打印纸质合同文本
//代理店北京慧珠不支持打印纸质合同文本
if(
bp_id_agent_code=
='D00010038'){
if(
bp_id_agent_code=
='D00010038'
||bp_id_agent_code=='D00010023'
){
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
Leaf.showErrorMessage('提示','当前合同不支持打印纸质合同文本!');
return;
return;
}
}
...
...
src/main/webapp/modules/cont/CON3200/con_re_incept_modify.lview
View file @
5eb17a31
...
@@ -894,6 +894,7 @@
...
@@ -894,6 +894,7 @@
//加载时调用(grid,table,gridBox)
add
by
23459
//加载时调用(grid,table,gridBox)
add
by
23459
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
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');
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP_1',
'con_contract_bp');
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'){
...
@@ -921,6 +922,14 @@
...
@@ -921,6 +922,14 @@
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('ownership_flag_n');
$(gridId).hideColumn('created_by_n');
$(gridId).hideColumn('created_by_n');
}
}
}
if
(
ds.id =
=
bp_ds_id
&&
bp_ds_id){
//非二手机及北京心诚业务隐藏银行账号字段
if(record.data.division!='70'
&&
record.data.division!='92'){
var
gridBpId=
ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}
}
}
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){
...
...
src/main/webapp/modules/cont/CON505/con_contract_modify.lview
View file @
5eb17a31
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
5eb17a31
...
@@ -775,7 +775,9 @@
...
@@ -775,7 +775,9 @@
bp_id: head_record.get('bp_id')
bp_id: head_record.get('bp_id')
},
},
success: function (res) {
success: function (res) {
if($(signer_ds_id)){
$(signer_ds_id).query();
$(signer_ds_id).query();
}
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
},
failure: function (res) {
failure: function (res) {
...
...
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create_entrance.lview
View file @
5eb17a31
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<a:model-query
model=
"cont.CON620.get_sys_role"
rootPath=
"role_info"
/>
<a:model-query
model=
"cont.CON620.get_sys_role"
rootPath=
"role_info"
/>
<a:model-query
defaultWhereClause=
"t1.user_id=${/session/@user_id}"
model=
"hls.HLS214N.sys_user_lv"
rootPath=
"user_name_path"
/>
<a:model-query
defaultWhereClause=
"t1.user_id=${/session/@user_id}"
model=
"hls.HLS214N.sys_user_lv"
rootPath=
"user_name_path"
/>
<a:model-query
defaultWhereClause=
"t.user_id=${/session/@user_id}"
model=
"hls.HLS214N.sys_division"
rootPath=
"user_division"
/>
<a:model-query
defaultWhereClause=
"t.user_id=${/session/@user_id}"
model=
"hls.HLS214N.sys_division"
rootPath=
"user_division"
/>
<a:model-query
model=
"hls.HLS213N.bp_agent_second_lease"
rootPath=
"second_lease_flag"
/>
</a:init-procedure>
</a:init-procedure>
<a:view>
<a:view>
<a:link
id=
"hls_bp_master_link"
url=
"${/request/@context_path}/modules/hls/HLS213N/hls_bp_master_create.lview"
/>
<a:link
id=
"hls_bp_master_link"
url=
"${/request/@context_path}/modules/hls/HLS213N/hls_bp_master_create.lview"
/>
...
@@ -35,6 +36,15 @@
...
@@ -35,6 +36,15 @@
record.data['url_title'] ='商业伙伴创建'
record.data['url_title'] ='商业伙伴创建'
var param=record.data;
var param=record.data;
hls_doc_get_layout_code('get_layout_code_link_id',param,'hls_bp_op_master_link',null,'${/parameter/@layout_code}');
hls_doc_get_layout_code('get_layout_code_link_id',param,'hls_bp_op_master_link',null,'${/parameter/@layout_code}');
}else{
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&'${/model/second_lease_flag/record/@second_lease_flag}'=='Y'){
record.set('function_code', 'HLS213VE');
record.set('function_usage', 'CREATE');
record.set('default_value_dsid', ds_id);
record.data['url_title'] = '商业伙伴创建';
var param = record.data;
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
}else{
}else{
record.set('function_code', 'HLS213D');
record.set('function_code', 'HLS213D');
record.set('function_usage', 'CREATE');
record.set('function_usage', 'CREATE');
...
@@ -44,6 +54,7 @@
...
@@ -44,6 +54,7 @@
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
hls_doc_get_layout_code('get_layout_code_link_id', param, 'hls_bp_master_link', null, '${/parameter/@layout_code}');
}
}
}
}
}
};
};
//更新时调用
//更新时调用
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){
...
@@ -106,7 +117,7 @@
...
@@ -106,7 +117,7 @@
}else if("${/model/user_division/record/@division}"=='95'){
}else if("${/model/user_division/record/@division}"=='95'){
r.set('bp_category','RENTER');
r.set('bp_category','RENTER');
r.set('bp_category_n','租赁商');
r.set('bp_category_n','租赁商');
}
else{
}else{
r.set('bp_category', 'TENANT');
r.set('bp_category', 'TENANT');
r.set('bp_category_n', '承租人');
r.set('bp_category_n', '承租人');
}
}
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_modify_entrance.lview
View file @
5eb17a31
...
@@ -143,6 +143,15 @@ debugger;
...
@@ -143,6 +143,15 @@ debugger;
if(record.get('bp_wfl_status') == 'APPROVING' || record.get('invoice_wfl_status') == 'APPROVING'){
if(record.get('bp_wfl_status') == 'APPROVING' || record.get('invoice_wfl_status') == 'APPROVING'){
// 展示原始信息,后续待定
// 展示原始信息,后续待定
if(record.get('bp_type')!='RENTER' && record.get('bp_type')!='MAN_FACTURER' && record.get('bp_type')!='ASSET_REGULATOR'){
if(record.get('bp_type')!='RENTER' && record.get('bp_type')!='MAN_FACTURER' && record.get('bp_type')!='ASSET_REGULATOR'){
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&record.get('second_lease_flag')=='Y'){
param['function_code'] = 'HLS214VED';
param['function_usage'] = 'QUERY';
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
var link_id = 'hls_bp_master_modify_link';
}else{
param['function_code'] = 'HLS215D';
param['function_code'] = 'HLS215D';
param['function_usage'] = 'QUERY';
param['function_usage'] = 'QUERY';
param['bp_class'] = bp_class;
param['bp_class'] = bp_class;
...
@@ -150,6 +159,7 @@ debugger;
...
@@ -150,6 +159,7 @@ debugger;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
param['query_only'] = 'Y';
var link_id = 'hls_bp_master_modify_link';
var link_id = 'hls_bp_master_modify_link';
}
}else {
}else {
param['function_code'] = 'HLS215D_OP';
param['function_code'] = 'HLS215D_OP';
param['function_usage'] = 'QUERY';
param['function_usage'] = 'QUERY';
...
@@ -209,6 +219,19 @@ debugger;
...
@@ -209,6 +219,19 @@ debugger;
// param['layout_debugger_flag']='Y';
// param['layout_debugger_flag']='Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_op_modify_link', ds_id);
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_op_modify_link', ds_id);
} else{
} else{
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&record.get('second_lease_flag')=='Y'){
param['function_code'] = 'HLS214VE';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['change_req_id'] = res.result.change_req_id;
param['document_id'] = res.result.change_req_id;
param['cond_para1'] = user_category;
param['bp_name_updated_flag'] = record.get('bp_name_updated_flag');
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
param['delete_flag'] = 'Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}else{
param['function_code'] = 'HLS214F';
param['function_code'] = 'HLS214F';
param['function_usage'] = 'MODIFY';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['bp_class'] = bp_class;
...
@@ -223,6 +246,7 @@ debugger;
...
@@ -223,6 +246,7 @@ debugger;
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_req_modify_link', ds_id);
}
}
}
}
}
},
},
failure: function () {
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
...
@@ -276,6 +300,15 @@ debugger;
...
@@ -276,6 +300,15 @@ debugger;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'Y';
param['query_only'] = 'Y';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_op_modify_link', ds_id);
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_op_modify_link', ds_id);
}else{
if(record.get('bp_class')=='NP' &&record.get('bp_type')=='VENDER' &&record.get('second_lease_flag')=='Y'){
param['function_code'] = 'HLS214VED';
param['function_usage'] = 'MODIFY';
param['bp_class'] = bp_class;
param['cond_para1'] = user_category;
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
param['query_only'] = 'N';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_bp_master_modify_link', ds_id);
}else{
}else{
param['function_code'] = 'HLS214D';
param['function_code'] = 'HLS214D';
param['function_usage'] = 'MODIFY';
param['function_usage'] = 'MODIFY';
...
@@ -288,6 +321,7 @@ debugger;
...
@@ -288,6 +321,7 @@ debugger;
}
}
}
}
}
}
}
function open_ccx_detail_win(ds_id, record_id) {
function open_ccx_detail_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
var record = $(ds_id).findById(record_id);
...
...
src/main/webapp/modules/prj/PRJ500N/prj_project_create.lview
View file @
5eb17a31
...
@@ -518,7 +518,7 @@
...
@@ -518,7 +518,7 @@
for (var key in bp_tenant_detail_r.data) {
for (var key in bp_tenant_detail_r.data) {
if(division!='70'){
if(division!='70'){
//非铁甲排除铁甲必填
//非铁甲排除铁甲必填
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'&& key != 'tj_score' ) {
if (key != 'bp_detail_id' && key != '
division' && 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'&& key != 'tj_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;
...
@@ -530,7 +530,7 @@
...
@@ -530,7 +530,7 @@
}
}
else{
else{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
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 != '
division' && 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 (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;
...
@@ -540,7 +540,7 @@
...
@@ -540,7 +540,7 @@
}
}
}
}
}else{
}else{
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 (key != 'bp_detail_id' && key != '
division' && 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;
...
@@ -1057,6 +1057,24 @@
...
@@ -1057,6 +1057,24 @@
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');
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');
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if(
bp_ds_id =
=
ds.id&&bp_ds_id){
if(
division=
='70'
||
division =
='92'){
if(
name =
=
'bp_category'){
if(
value =
='VENDER'){
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
}else{
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
}
}
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if
(
name =
=
'hd_user_col_v06')
{
...
@@ -1384,6 +1402,7 @@
...
@@ -1384,6 +1402,7 @@
}
}
}
}
if (bp_ds_id == ds.id
&&
bp_ds_id) {
if (bp_ds_id == ds.id
&&
bp_ds_id) {
if (record.get('bp_category') == 'TENANT') {
if (record.get('bp_category') == 'TENANT') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
...
@@ -1392,6 +1411,25 @@
...
@@ -1392,6 +1411,25 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70'
&&
division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}else if(division =='70' ||division =='92'){
if (record.get('bp_category') == 'VENDER') {
record.getField('bp_category_n').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setRequired(true);
}else{
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setRequired(false);
}
}
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
...
@@ -1488,6 +1526,21 @@
...
@@ -1488,6 +1526,21 @@
record.set('seq_num',
rk_value);
record.set('seq_num',
rk_value);
}
}
//新增时只有二手机供应商银行账号必填
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if
(
bp_ds_id =
=
ds.id
&&
bp_ds_id)
{
if(
division=
='70'
||
division=
='92'){
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
}else{
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
}
}
};
};
//客户评分
//客户评分
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click']
=
function
()
{
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click']
=
function
()
{
...
@@ -1581,12 +1634,28 @@
...
@@ -1581,12 +1634,28 @@
$L.showMessage('提示','承租人的居住地址不能为空');
$L.showMessage('提示','承租人的居住地址不能为空');
return
;
return
;
}
}
}
//二手机产品线合作伙伴维护了供应商则需校验供应商银行信息必填
18083
2024/7/10
var
vender_bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
var
vender_records =
$(vender_bp_ds_id).getAll();
var
vender_count =
0;
for(var
i=
0;i<vender_records.length;i++){
if(vender_records[i].get('bp_category')=='VENDER'){
vender_count =
vender_count+1;
}
}
//if(vender_count
>
0
&&
vender_count!=1){
//Leaf.showErrorMessage('错误', '只能维护一个供应商!');
//return false;
//}
}
var promt;
if((current_record.get('division')=='70' ||current_record.get('division')=='92')
&&
vender_count>0){
promt ='该笔报单后续将把设备款全部支付给供应商,确认要提交工作流吗?';
}else{
promt ='确认要提交工作流吗?';
}
if (record.get('large_balance') == 'YES') {
if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number');
var project_number = current_record.get('project_number');
Leaf.request({
Leaf.request({
...
@@ -1603,7 +1672,7 @@
...
@@ -1603,7 +1672,7 @@
}else{
}else{
if ($(ds_id).validate()) {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
,
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
promt
, function () {
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
...
@@ -1663,7 +1732,7 @@
...
@@ -1663,7 +1732,7 @@
});
});
}else {
}else {
if ($(ds_id).validate()) {
if ($(ds_id).validate()) {
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
,
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
promt
, function () {
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var lease_ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'F_QUOTATION_N', 'prj_quotation');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
var ds_id = get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'G_LEASE_HEAD_CAR', 'prj_project_lease_item');
if(division=='30'||division=='50'|| division=='99'){
if(division=='30'||division=='50'|| division=='99'){
...
@@ -1764,6 +1833,8 @@
...
@@ -1764,6 +1833,8 @@
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('residual_value_amount');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('residual_value_amount');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('ownership_flag_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('ownership_flag_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('created_by_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('created_by_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num');
}
}
else {
else {
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('machine_number_70');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('machine_number_70');
...
@@ -1776,6 +1847,8 @@
...
@@ -1776,6 +1847,8 @@
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('residual_value_amount');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('residual_value_amount');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('ownership_flag_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('ownership_flag_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('created_by_n');
$('PROJECT_CREATE_NP_G_LEASE_HEAD_CAR_prj_project_lease_item_layout_grid_id').hideColumn('created_by_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num_n');
$('PROJECT_CREATE_NP_G_BP_prj_project_bp_layout_grid_id').hideColumn('vender_bank_account_num');
}
}
})
})
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain.lview
View file @
5eb17a31
...
@@ -705,6 +705,24 @@
...
@@ -705,6 +705,24 @@
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');
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');
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if(
bp_ds_id =
=
ds.id&&bp_ds_id){
if(
division=
='70'
||
division =
='92'){
if(
name =
=
'bp_category'){
if(
value =
='VENDER'){
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
}else{
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
}
}
}
}
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
//二手车资管费为否,隐藏组合利率组件及将字段设置为空
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
prj_quotation_ds_id =
=
ds.id)
{
if
(
name =
=
'hd_user_col_v06')
{
if
(
name =
=
'hd_user_col_v06')
{
...
@@ -1101,6 +1119,7 @@
...
@@ -1101,6 +1119,7 @@
}
}
}
}
if (bp_ds_id == ds.id
&&
bp_ds_id) {
if (bp_ds_id == ds.id
&&
bp_ds_id) {
debugger;
if (record.get('bp_category') == 'TENANT') {
if (record.get('bp_category') == 'TENANT') {
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
...
@@ -1109,6 +1128,25 @@
...
@@ -1109,6 +1128,25 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70'
&&
division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}else if(division =='70' ||division =='92'){
if (record.get('bp_category') == 'VENDER') {
record.getField('bp_category_n').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setRequired(true);
}else{
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setRequired(false);
}
}
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
...
@@ -1545,6 +1583,7 @@
...
@@ -1545,6 +1583,7 @@
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
$('${/parameter/@layout_code}_G_CASHFLOW_NS_prj_quotation_layout_grid_id').hideColumn('btb_fee');
}
}
}
}
});
});
//序号自增
add
by
lijingjing
//序号自增
add
by
lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add']
=
function
(ds,
record,
config_records,
bp_seq)
{
...
@@ -1586,7 +1625,21 @@
...
@@ -1586,7 +1625,21 @@
record.set('seq_num',
rk_value);
record.set('seq_num',
rk_value);
}
}
//新增时只有二手机供应商银行账号必填
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if
(
bp_ds_id =
=
ds.id
&&
bp_ds_id)
{
if('${/parameter/@division}'=='70'
||
'${/parameter/@division}'=='92'){
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
}else{
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
}
}
};
};
//indexchange事件(grid,attach,gridbox,table)
//indexchange事件(grid,attach,gridbox,table)
//
window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange']
=
function(ds,
record,
bp_seq)
{
//
window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange']
=
function(ds,
record,
bp_seq)
{
...
@@ -1653,7 +1706,7 @@
...
@@ -1653,7 +1706,7 @@
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(division!='70'){
if(division!='70'){
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'&&
key
!=
'tj_score'
)
{
if
(key
!=
'bp_detail_id'
&&
key
!=
'
division'
&&
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'&&
key
!=
'tj_score'
)
{
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;
...
@@ -1661,7 +1714,7 @@
...
@@ -1661,7 +1714,7 @@
}
}
}else{
}else{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
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
!=
'
division'
&&
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
(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;
...
@@ -1671,7 +1724,7 @@
...
@@ -1671,7 +1724,7 @@
}
}
}
}
}else{
}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
(key
!=
'bp_detail_id'
&&
key
!=
'
division'
&&
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
(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;
...
@@ -1707,6 +1760,21 @@
...
@@ -1707,6 +1760,21 @@
Leaf.showMessage('提示','承租人的居住地址不能为空');
Leaf.showMessage('提示','承租人的居住地址不能为空');
return
;
return
;
}
}
//二手机产品线合作伙伴维护了供应商则需校验供应商银行信息必填
18083
2024/7/10
var
vender_bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
var
vender_records =
$(vender_bp_ds_id).getAll();
var
vender_count =
0;
for(var
i=
0;i<vender_records.length;i++){
if(vender_records[i].get('bp_category')=='VENDER'){
vender_count =
vender_count+1;
}
}
//if(vender_count
>
0
&&
vender_count!=1){
//Leaf.showErrorMessage('错误', '只能维护一个供应商!');
//return false;
//}
}
}
if (current_record.dirty == true) {
if (current_record.dirty == true) {
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
...
@@ -1724,6 +1792,12 @@
...
@@ -1724,6 +1792,12 @@
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
Leaf.showMessage('${l:PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
return;
}
}
var promt;
if((current_record.get('division')=='70' ||current_record.get('division')=='92')
&&
vender_count>0){
promt ='该笔报单后续将把设备款全部支付给供应商,确认要提交工作流吗?';
}else{
promt ='确认要提交工作流吗?';
}
if (record.get('large_balance') == 'YES') {
if (record.get('large_balance') == 'YES') {
var project_number = current_record.get('project_number');
var project_number = current_record.get('project_number');
Leaf.request({
Leaf.request({
...
@@ -1766,7 +1840,7 @@
...
@@ -1766,7 +1840,7 @@
}
}
}
}
if
($(ds_id).validate())
{
if
($(ds_id).validate())
{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
,
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
promt
,
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
url:
$('prj_approval_link_id').getUrl(),
...
@@ -1800,7 +1874,7 @@
...
@@ -1800,7 +1874,7 @@
});
});
}
else
{
}
else
{
if
($(ds_id).validate())
{
if
($(ds_id).validate())
{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
,
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
promt
,
function
()
{
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({
Leaf.request({
url:
$('prj_approval_link_id').getUrl(),
url:
$('prj_approval_link_id').getUrl(),
...
@@ -1864,7 +1938,7 @@
...
@@ -1864,7 +1938,7 @@
}
}
}
}
if
($(ds_id).validate())
{
if
($(ds_id).validate())
{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
,
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
promt
,
function
()
{
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
if(
division=
='30'||division=='50'||
division=
='99'){
if(
division=
='30'||division=='50'||
division=
='99'){
...
@@ -1923,7 +1997,7 @@
...
@@ -1923,7 +1997,7 @@
});
});
}
else
{
}
else
{
if
($(ds_id).validate())
{
if
($(ds_id).validate())
{
Leaf.showConfirm('${HLS.PROMPT}',
'确认要提交工作流吗?'
,
function
()
{
Leaf.showConfirm('${HLS.PROMPT}',
promt
,
function
()
{
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
lease_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
var
ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_LEASE_HEAD_CAR',
'prj_project_lease_item');
...
@@ -2086,7 +2160,7 @@
...
@@ -2086,7 +2160,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'){
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
!=
'
division'
&&
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
(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;
...
@@ -2097,7 +2171,7 @@
...
@@ -2097,7 +2171,7 @@
}
}
}else{
}else{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
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
!=
'
division'
&&
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
(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;
...
@@ -2107,8 +2181,7 @@
...
@@ -2107,8 +2181,7 @@
}
}
}
}
}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
(key
!=
'bp_detail_id'
&&
key
!=
'division'
&&
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)
===
"")
{
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;
...
...
src/main/webapp/modules/prj/PRJ501N/prj_project_maintain_wfl_new.lview
View file @
5eb17a31
...
@@ -378,7 +378,7 @@
...
@@ -378,7 +378,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'){
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 != '
division' && 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 (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;
...
@@ -389,7 +389,7 @@
...
@@ -389,7 +389,7 @@
}
}
}else{
}else{
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
if('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02'){
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 != '
division' && 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 (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;
...
@@ -399,7 +399,7 @@
...
@@ -399,7 +399,7 @@
}
}
}
}
}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 != '
division' && 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 (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;
...
@@ -705,6 +705,25 @@
...
@@ -705,6 +705,25 @@
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_category_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
record.getField('bp_id_n').setReadOnly(true);
}
}
//非二手机业务隐藏银行账号信息字段;二手机业务且为供应商时银行账号必填
if(division !='70'
&&
division !='92'){
var gridBpId= ds.bindname+'_layout_grid_id';
$(gridBpId).hideColumn('vender_bank_account_num');
$(gridBpId).hideColumn('vender_bank_account_num_n');
}else if(division =='70' ||division =='92'){
if (record.get('bp_category') == 'VENDER') {
record.getField('bp_category_n').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setRequired(true);
}else{
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setRequired(false);
}
}
}
}
//现金流列表加载时隐藏资管费 18083
//现金流列表加载时隐藏资管费 18083
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
if(cashflow_ds_id == ds.id
&&
cashflow_ds_id){
...
@@ -918,6 +937,21 @@
...
@@ -918,6 +937,21 @@
record.set('seq_num',
rk_value);
record.set('seq_num',
rk_value);
}
}
//新增时只有二手机供应商银行账号必填
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if
(
bp_ds_id =
=
ds.id
&&
bp_ds_id)
{
if(
division=
='70'
||
division=
='92'){
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
}else{
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
}
}
};
};
//客户评分
//客户评分
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click']
=
function
()
{
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click']
=
function
()
{
...
@@ -1023,7 +1057,7 @@
...
@@ -1023,7 +1057,7 @@
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'
;
}
}
}else
if(
division
=
=
'70'
&&
division
!=
''
&&
('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
}else
if(
record.get('division')
==
'70'
&&
division
!=
''
&&
('${/parameter/@division_detail}'=='03'||'${/parameter/@division_detail}'=='02')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
if(document.getElementById('${/parameter/@layout_code}_F_TENANT_SCORE_INFO_BP_TENANT_RATE_DETAIL_TJ_SCORE')){
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'
;
...
@@ -1365,6 +1399,24 @@
...
@@ -1365,6 +1399,24 @@
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');
var
prj_quotation_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
prj_quotation_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'F_QUOTATION_N',
'prj_quotation');
var
bp_ds_id =
get_dsid_by_tabcode_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'G_BP',
'prj_project_bp');
if(
bp_ds_id =
=
ds.id&&bp_ds_id){
if(
division=
='70'
||
division =
='92'){
if(
name =
=
'bp_category'){
if(
value =
='VENDER'){
record.getField('vender_bank_account_num').setRequired(true);
record.getField('vender_bank_account_num_n').setRequired(true);
record.getField('vender_bank_account_num').setReadOnly(false);
record.getField('vender_bank_account_num_n').setReadOnly(false);
}else{
record.getField('vender_bank_account_num').setRequired(false);
record.getField('vender_bank_account_num_n').setRequired(false);
record.getField('vender_bank_account_num').setReadOnly(true);
record.getField('vender_bank_account_num_n').setReadOnly(true);
}
}
}
}
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
tenant_ds_id =
=
ds.id&&tenant_ds_id){
if(
name =
=
'send_message_n'){
if(
name =
=
'send_message_n'){
...
...
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