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
168e4f68
Commit
168e4f68
authored
Jan 26, 2021
by
xiaochao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/付款申请审批记录打印' into develop
parents
87a2c6a2
eeb9fe55
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
287 additions
and
142 deletions
+287
-142
acr_invoice_apply_detail.lview
.../webapp/modules/acr/ACR610/acr_invoice_apply_detail.lview
+1
-1
acr_invoice_apply_detail_wfl.lview
...app/modules/acr/ACR610/acr_invoice_apply_detail_wfl.lview
+1
-1
csh_transaction_hand_receipt_update.lview
...ules/csh/CSH510/csh_transaction_hand_receipt_update.lview
+81
-28
csh_transaction_hand_receipt_update_readonly.lview
...CSH510/csh_transaction_hand_receipt_update_readonly.lview
+10
-11
csh_transaction_excel_import.lview
...pp/modules/csh/CSH510N/csh_transaction_excel_import.lview
+107
-43
csh_transaction_receipt.lview
...n/webapp/modules/csh/CSH511/csh_transaction_receipt.lview
+81
-28
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+6
-30
No files found.
src/main/webapp/modules/acr/ACR610/acr_invoice_apply_detail.lview
View file @
168e4f68
...
...
@@ -97,7 +97,7 @@
}
if (name == 'attachment') {
if (record.get('paid_byother_flag') == 'T') {
if (record.get('guarantor_name_duty') != '
是
'){
if (record.get('guarantor_name_duty') != '
Y
'){
return '
<a
href=
"javascript:acr610_detail_upload_window(' + record.get('file_id') + ')"
>
附件
</a>
';
}
}
...
...
src/main/webapp/modules/acr/ACR610/acr_invoice_apply_detail_wfl.lview
View file @
168e4f68
...
...
@@ -97,7 +97,7 @@
}
if (name == 'attachment') {
if (record.get('paid_byother_flag') == 'T') {
if (record.get('guarantor_name_duty') != '
是
'){
if (record.get('guarantor_name_duty') != '
Y
'){
return '
<a
href=
"javascript:acr610_detail_upload_window(' + record.get('file_id') + ')"
>
附件
</a>
';
}
}
...
...
src/main/webapp/modules/csh/CSH510/csh_transaction_hand_receipt_update.lview
View file @
168e4f68
...
...
@@ -215,23 +215,25 @@
record.getField('paid_byother_flag_n').setReadOnly(false);
record.set('transaction_type', 'RECEIPT');
}
}else if(name == 'extra_nam'){
//深圳美鹏
// var extra_nam = record.get('extra_nam');
var bp_code = record.get('bp_code');
if (bp_code == 'C00010168'){
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc','是');
record.set('guarantor_name_duty','Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}else if (bp_code != 'C00010168'){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
}else if (name =='bp_code'){
// else if(name == 'extra_nam'){
// //深圳美鹏
// // var extra_nam = record.get('extra_nam');
// var bp_code = record.get('bp_code');
//
// if (bp_code == 'C00010168'){
// record.getField('guarantor_name_duty_desc').setReadOnly(false);
// record.set('guarantor_name_duty_desc','6666');
// record.set('guarantor_name_duty','Y');
// record.getField('guarantor_name_duty_desc').setRequired(true);
// }else if (bp_code != 'C00010168'){
// record.getField('guarantor_name_duty_desc').setReadOnly(true);
// record.set('guarantor_name_duty_desc','4444');
// record.set('guarantor_name_duty','N');
// record.getField('guarantor_name_duty_desc').setRequired(false);
// }
// }
else if (name =='bp_code'){
var bp_id = record.get('bp_id');
Leaf.request({
url: $('extra_nam_csh_transaction_receipt_data_link_id').getUrl(),
...
...
@@ -258,12 +260,19 @@
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241){
if (unit_code == 241 || unit_code == 610){
if(record.get('paid_byother_flag') == 'T'){
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc',
'是');
record.set('guarantor_name_duty',
'Y');
record.set('guarantor_name_duty_desc',
'是');
record.set('guarantor_name_duty',
'Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}else if(unit_code != 241){
}else if(record.get('paid_byother_flag') == 'F'){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
}else if(unit_code != 241 || unit_code != 610){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
...
...
@@ -294,6 +303,48 @@
Leaf.Masker.unmask(Ext.getBody());
}
});
}else if(name == 'paid_byother_flag'){
if(record.get('paid_byother_flag') =='T'){
var extra_id = record.get('bp_id');
if (extra_id != null){
Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id: extra_id},
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241 || unit_code == 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc', '是');
record.set('guarantor_name_duty', 'Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
} else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
}else {
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc', '是');
record.set('guarantor_name_duty', 'Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}
}else if(record.get('paid_byother_flag') =='F'){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
}
}
...
...
@@ -449,12 +500,12 @@
scope:
this,
success:
function
(res)
{
var
unit_code =
res.result.unit_code;
if
(
unit_code =
=
241){
if
(
unit_code =
=
241
||
unit_code =
=
610
){
record.getField('guarantor_name_duty_desc').setReadOnly(false);
//
record.set('guarantor_name_duty_desc','是');
//
record.set('guarantor_name_duty','Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}else
if(unit_code
!=
241){
}else
if(unit_code
!=
241
||
unit_code
!=
610
){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
//
record.set('guarantor_name_duty_desc','否');
//
record.set('guarantor_name_duty','N');
...
...
@@ -615,8 +666,10 @@
</a:field>
<!--担保人履行担保义务-->
<a:field
name=
"guarantor_name_duty_desc"
displayField=
"code_value_name"
options=
"yes_no_ds"
prompt=
"担保人履行担保义务"
returnField=
"guarantor_name_duty"
valueField=
"code_value"
/>
<a:field
name=
"guarantor_name_duty"
required=
"true"
/>
<a:field
name=
"guarantor_name_duty_desc"
displayField=
"code_value_name"
options=
"yes_no_ds"
prompt=
"担保人履行担保义务"
returnField=
"guarantor_name_duty"
valueField=
"code_value"
/>
<!--<a:field name="guarantor_name_duty" required="true"/>-->
</a:fields>
<a:events>
<a:event
name=
"update"
handler=
"onUpdate_csh511_receipt"
/>
...
...
@@ -697,7 +750,7 @@
<!--担保人履行担保义务-->
<a:comboBox
name=
"guarantor_name_duty_desc"
bindTarget=
"csh_transaction_receipt_head_ds"
prompt=
"担保人履行担保义务"
width=
"180"
/>
<
a:column
name=
"guarantor_name_duty"
hidden=
"true"
/
>
<
!--<a:column name="guarantor_name_duty" hidden="true"/>--
>
</a:hBox>
</a:fieldSet>
<!--删除下面的字段 currency_name,bank_account_name,banka,bank_branch_name,bank_account_num,bank_account_type_name,exchange_rate_type_display-->
...
...
src/main/webapp/modules/csh/CSH510/csh_transaction_hand_receipt_update_readonly.lview
View file @
168e4f68
...
...
@@ -229,7 +229,6 @@
success:
function
(res)
{
//先查询数量
var
count =
res.result.extra_name_count;
//根据数量,一个直接查询显示,多个显示空
if
(
count =
=
1){
//查询代理点得简称
...
...
@@ -247,14 +246,14 @@
scope:
this,
success:
function
(res)
{
var
unit_code =
res.result.unit_code;
if
(
unit_code =
=
241){
record.getField('guarantor_name_duty
').setReadOnly(false);
record.set('guarantor_name_duty','是');
record.getField('guarantor_name_duty
').setRequired(true);
}else
if(unit_code
!=
241){
record.getField('guarantor_name_duty').setReadOnly(true);
record.set('guarantor_name_duty','否');
record.getField('guarantor_name_duty
').setRequired(false);
if
(
unit_code =
=
241
||
unit_code =
=
610
){
record.getField('guarantor_name_duty_desc
').setReadOnly(false);
//
record.set('guarantor_name_duty','是');
//
record.getField('guarantor_name_duty_desc
').setRequired(true);
}else
if(unit_code
!=
241
||
unit_code
!=
610
){
record.getField('guarantor_name_duty
_desc
').setReadOnly(true);
//
record.set('guarantor_name_duty','否');
//
record.getField('guarantor_name_duty_desc
').setRequired(false);
}
},
failure:
function
()
{
...
...
@@ -504,7 +503,7 @@
<a:field
name=
"collection_classes_desc"
options=
"ds_collection_classes_ds"
displayField=
"code_value_name"
returnField=
"collection_classes"
valueField=
"code_value"
/>
<a:field
name=
"paid_byother_flag_n"
options=
"PAID_BYOTHER_FLAG_DS"
returnField=
"paid_byother_flag"
displayField=
"code_value_name"
valueField=
"code_value"
/>
<a:field
name=
"extra_nam"
/>
<a:field
name=
"guarantor_name_duty"
/>
<a:field
name=
"guarantor_name_duty
_desc
"
/>
</a:fields>
<a:events>
<!--<a:event name="update" handler="onUpdate_csh511_receipt"/>
...
...
@@ -581,7 +580,7 @@
<a:textField
width=
"300"
name=
"ref_v05"
prompt=
"备注"
bindTarget=
"csh_transaction_receipt_head_ds"
readOnly=
"true"
/>
<!--担保人履行担保义务-->
<a:comboBox
name=
"guarantor_name_duty"
bindTarget=
"csh_transaction_receipt_head_ds"
<a:comboBox
name=
"guarantor_name_duty
_desc
"
bindTarget=
"csh_transaction_receipt_head_ds"
prompt=
"担保人履行担保义务"
readOnly=
"true"
width=
"180"
/>
</a:hBox>
</a:fieldSet>
...
...
src/main/webapp/modules/csh/CSH510N/csh_transaction_excel_import.lview
View file @
168e4f68
...
...
@@ -124,11 +124,23 @@
//当也没变动时候,触发事件
function update_import_data(ds, record, name, value, oldvalue) {
if (name =='paid_byother_flag'){
var paid_byother_flag = record.get('paid_byother_flag');
//深圳美鹏
var bp_code = record.get('bp_code');
if (paid_byother_flag == 'T'
&&
bp_code == 'C00010168'){
//dev环境下的深圳美鹏的code bp_code == 'C00010168'
//uat 和生产环境下深圳美鹏的code D00010001 D00000009
if (paid_byother_flag == 'T'){
//判断是否是深圳美鹏code
if (bp_code == 'D00010001' || bp_code == 'D00000009'){
record.set('guarantor_name_duty','Y');
record.set('guarantor_name_duty_desc','是');
record.getField('guarantor_name_duty_desc').setReadOnly(false);
}else {
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
record.getField('guarantor_name_duty_desc').setReadOnly(true);
}
}else if (paid_byother_flag == 'T'
&&
bp_code == 'C00010168'){
record.set('guarantor_name_duty','Y');
record.set('guarantor_name_duty_desc','是');
record.getField('guarantor_name_duty_desc').setReadOnly(false);
...
...
@@ -165,30 +177,55 @@
success: function (res) {
var unit_code = res.result.unit_code;
// alert(paid_byother_flag);
if (unit_code == 241
&&
paid_byother_flag == null){
if (unit_code == 241 || unit_code == 610){
if (paid_byother_flag == null){
//dev环境code --- C00010168
record.set('bp_code','C00010168');
//uat和生产有两个深圳美鹏code
// if (unit_code == 241){
// record.set('bp_code','D00010001');
// }else if (unit_code == 610){
// record.set('bp_code','D00000009');
// }
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
}else if (unit_code == 241
&&
paid_byother_flag == 'T'){
}else {
record.set('bp_code','C00000000');
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
}
}else if (unit_code == 241 || unit_code == 610){
if (paid_byother_flag == 'T'){
//dev环境code --- C00010168
record.set('bp_code','C00010168');
//uat和生产有两个深圳美鹏code
// if (unit_code == 241){
// record.set('bp_code','D00010001');
// }else if (unit_code == 610){
// record.set('bp_code','D00000009');
// }
record.set('guarantor_name_duty','Y');
record.set('guarantor_name_duty_desc','是');
record.getField('guarantor_name_duty_desc').setReadOnly(false);
}else {
record.set('bp_code','C00010000');
//默认值
record.set('bp_code','C00000000');
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}else {
record.set('bp_code','C00000000');
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
}
});
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
...
...
@@ -197,7 +234,6 @@
Leaf.Masker.unmask(Ext.getBody());
}
});
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
...
...
@@ -206,23 +242,6 @@
Leaf.Masker.unmask(Ext.getBody());
}
});
}else if (name == 'extra_nam'){
var bp_id = record.get('bp_id');
var paid_byother_flag = record.get('paid_byother_flag');
Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id : bp_id},
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241
&&
paid_byother_flag == 'T'){
record.set('guarantor_name_duty','Y');
record.set('guarantor_name_duty_desc','是');
record.getField('guarantor_name_duty_desc').setReadOnly(false);
}else{
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
}
},
failure: function () {
...
...
@@ -233,6 +252,39 @@
}
});
}
// else if (name == 'extra_nam'){
// var bp_id = record.get('bp_id');
// var paid_byother_flag = record.get('paid_byother_flag');
// Leaf.request({
// url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
// para: {bp_id : bp_id},
// scope: this,
// success: function (res) {
// var unit_code = res.result.unit_code;
// if (unit_code == 241 || unit_code == 610){
// if (paid_byother_flag == 'T'){
// record.set('guarantor_name_duty','Y');
// record.set('guarantor_name_duty_desc','是');
// record.getField('guarantor_name_duty_desc').setReadOnly(false);
// }else {
// record.getField('guarantor_name_duty_desc').setReadOnly(true);
// record.set('guarantor_name_duty_desc','否');
// record.set('guarantor_name_duty','N');
// }
// }else{
// record.getField('guarantor_name_duty_desc').setReadOnly(true);
// record.set('guarantor_name_duty_desc','否');
// record.set('guarantor_name_duty','N');
// }
// },
// failure: function () {
// Leaf.Masker.unmask(Ext.getBody());
// },
// error: function () {
// Leaf.Masker.unmask(Ext.getBody());
// }
// });
// }
}
//页面加载时触发事件
function onload_import_data(ds) {
...
...
@@ -241,8 +293,20 @@
var
record =
records[i];
var
bp_code =
record.get('bp_code');
var
paid_byother_flag =
record.get('paid_byother_flag');
record.getField('extra_nam').setRequired(true);
if
(
paid_byother_flag =
=
'T'
&&
bp_code =
=
'C00010168'){
//
record.getField('extra_nam').setRequired(true);
//dev环境的深圳美鹏code
----
C00010168
//uat和生产环境深圳美鹏的code
---
D00010001
D00000009
if
(
bp_code =
=
'D00010001'
||
bp_code =
=
'D00000009'
){
if
(
paid_byother_flag =
=
'T'){
record.set('guarantor_name_duty','Y');
record.set('guarantor_name_duty_desc','是');
record.getField('guarantor_name_duty_desc').setReadOnly(false);
}else{
record.set('guarantor_name_duty','N');
record.set('guarantor_name_duty_desc','否');
record.getField('guarantor_name_duty_desc').setReadOnly(true);
}
}else
if(
paid_byother_flag =
=
'T'
&&
bp_code =
=
'C00010168'){
record.set('guarantor_name_duty','Y');
record.set('guarantor_name_duty_desc','是');
record.getField('guarantor_name_duty_desc').setReadOnly(false);
...
...
@@ -336,7 +400,7 @@
</a:field>
<a:field
name=
"extra_nam"
required=
"true"
lovGridHeight=
"350"
lovHeight=
"500"
lovLabelWidth=
"90"
lovService=
"csh.CSH510.csh_extra_nam_add_lov"
lovWidth=
"550"
title=
"代理店简称"
>
lovService=
"csh.CSH510.csh_extra_nam_add_lov"
lovWidth=
"550"
title=
"代理店简称"
readOnly=
"true"
>
<a:mapping>
<a:map
from=
"extra_nam"
to=
"extra_nam"
/>
<a:map
from=
"bp_code"
to=
"bp_code"
/>
...
...
@@ -387,7 +451,7 @@
<a:column
name=
"attribute_24"
prompt=
"附言"
width=
"80"
/>
<a:column
name=
"extra_nam"
prompt=
"代理店简称"
width=
"80"
editor=
"grid_lov"
/>
<a:column
name=
"extra_nam"
prompt=
"代理店简称"
width=
"80"
editor=
"grid_lov"
/>
<a:column
name=
"bp_code"
prompt=
"代理店简称code"
hidden=
"true"
/>
<a:column
name=
"guarantor_name_duty_desc"
prompt=
"担保人履行担保义务"
width=
"80"
editor=
"grid_cb"
/>
...
...
src/main/webapp/modules/csh/CSH511/csh_transaction_receipt.lview
View file @
168e4f68
...
...
@@ -245,59 +245,77 @@
record.getField('paid_byother_flag_n').setReadOnly(false);
record.set('transaction_type', 'RECEIPT');
}
}else if(name == 'extra_nam'){
//深圳美鹏
// var extra_nam = record.get('extra_nam');
var bp_code = record.get('bp_code');
if (bp_code == 'C00010168'){
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc','是');
record.set('guarantor_name_duty','Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}else if (bp_code != 'C00010168'){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc','否');
record.set('guarantor_name_duty','N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
}
// else if(name == 'extra_nam'){
// //深圳美鹏
// // var extra_nam = record.get('extra_nam');
// var bp_code = record.get('bp_code');
// //bp_code == 'C00010168'
// if (bp_code == 'D00010001' || bp_code == 'D00000009'){
// record.getField('guarantor_name_duty_desc').setReadOnly(false);
// record.set('guarantor_name_duty_desc','是');
// record.set('guarantor_name_duty','Y');
// record.getField('guarantor_name_duty_desc').setRequired(true);
// }else if (bp_code != 'D00010001' || bp_code == 'D00000009'){
// record.getField('guarantor_name_duty_desc').setReadOnly(true);
// record.set('guarantor_name_duty_desc','否');
// record.set('guarantor_name_duty','N');
// record.getField('guarantor_name_duty_desc').setRequired(false);
// }
// }
else if (name =='bp_code') {
var bp_id = record.get('bp_id');
Leaf.request({
url: $('extra_nam_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id
: bp_id},
para: {bp_id: bp_id},
scope: this,
success: function (res) {
//先查询数量
var count = res.result.extra_name_count;
//根据数量,一个直接查询显示,多个显示空
if (count == 1){
if (count == 1)
{
//查询代理点得简称
Leaf.request({
url: $('get_extra_nam_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id
: bp_id},
para: {bp_id: bp_id},
scope: this,
success: function (res) {
var extra_name = res.result.extra_name;
record.set('extra_nam',extra_name);
record.set('extra_nam',
extra_name);
var extra_id = bp_id;
Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id
: extra_id},
para: {bp_id: extra_id},
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241){
if (unit_code == 241 || unit_code == 610) {
if(record.get('paid_byother_flag') == 'T'){
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc',
'是');
record.set('guarantor_name_duty',
'Y');
record.set('guarantor_name_duty_desc',
'是');
record.set('guarantor_name_duty',
'Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}else if(unit_code != 241
){
}else if(record.get('paid_byother_flag') == 'F'
){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc',
'否');
record.set('guarantor_name_duty',
'N');
record.set('guarantor_name_duty_desc',
'否');
record.set('guarantor_name_duty',
'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
} else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
}
});
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
...
...
@@ -306,6 +324,7 @@
Leaf.Masker.unmask(Ext.getBody());
}
});
}
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
...
...
@@ -314,6 +333,26 @@
Leaf.Masker.unmask(Ext.getBody());
}
});
}else if(name == 'paid_byother_flag'){
if(record.get('paid_byother_flag') =='T'){
var extra_id = record.get('bp_id');
if (extra_id != null){
Leaf.request({
url: $('get_extra_code_csh_transaction_receipt_data_link_id').getUrl(),
para: {bp_id: extra_id},
scope: this,
success: function (res) {
var unit_code = res.result.unit_code;
if (unit_code == 241 || unit_code == 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc', '是');
record.set('guarantor_name_duty', 'Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
} else if (unit_code != 241 || unit_code != 610) {
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
},
failure: function () {
...
...
@@ -323,6 +362,19 @@
Leaf.Masker.unmask(Ext.getBody());
}
});
}else {
record.getField('guarantor_name_duty_desc').setReadOnly(false);
record.set('guarantor_name_duty_desc', '是');
record.set('guarantor_name_duty', 'Y');
record.getField('guarantor_name_duty_desc').setRequired(true);
}
}else if(record.get('paid_byother_flag') =='F'){
record.getField('guarantor_name_duty_desc').setReadOnly(true);
record.set('guarantor_name_duty_desc', '否');
record.set('guarantor_name_duty', 'N');
record.getField('guarantor_name_duty_desc').setRequired(false);
}
}
}
// function onAdd_csh511_receipt(ds, record) {
// record.set('precision',2);
...
...
@@ -489,6 +541,7 @@
<a:mapping>
<a:map
from=
"bp_id"
to=
"bp_id"
/>
<a:map
from=
"bp_name"
to=
"bp_name"
/>
<a:map
from=
"bp_code"
to=
"bp_code"
/>
<a:map
from=
"bp_name"
to=
"csh_bp_name"
/>
<a:map
from=
"bp_category"
to=
"bp_category"
/>
<a:map
from=
"bp_category_name"
to=
"bp_category_display"
/>
...
...
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
168e4f68
...
...
@@ -80,30 +80,14 @@
var record1 = new Leaf.Record({
'address_type': 'HOUSEHOLD_ADDRESS',
'address_type_n': '户籍地址',
'country_id': 37,
'country_id_n': '中华人民共和国',
'province_id': 0,
'province_id_n': '',
'city_id': 0,
'city_id_n': '',
'district_id': 0,
'district_id_n': '',
'address': ' ',
'phone': ' '
'country_id': 32,
'country_id_n': '中华人民共和国'
});
var record2 = new Leaf.Record({
'address_type': 'POSTAL_ADDRESS',
'address_type_n': '通讯地址',
'country_id': 37,
'country_id_n': '中华人民共和国',
'province_id': 0,
'province_id_n': '',
'city_id': 0,
'city_id_n': '',
'district_id': 0,
'district_id_n': '',
'address': ' ',
'phone': ' '
'country_id': 32,
'country_id_n': '中华人民共和国'
});
address_ds_id_ds.add(record1);
address_ds_id_ds.add(record2);
...
...
@@ -122,16 +106,8 @@
var record2 = new Leaf.Record({
'address_type': 'POSTAL_ADDRESS',
'address_type_n': '通讯地址',
'country_id': 37,
'country_id_n': '中华人民共和国',
'province_id': 0,
'province_id_n': '',
'city_id': 0,
'city_id_n': '',
'district_id': 0,
'district_id_n': '',
'address': ' ',
'phone': ' '
'country_id': 32,
'country_id_n': '中华人民共和国'
});
address_ds_id_ds.add(record2);
...
...
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