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
a5df6f0c
Commit
a5df6f0c
authored
Nov 14, 2019
by
25484
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]代理店开票问题修改
parent
378b185c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
33 deletions
+33
-33
bp_agent_create.lview
src/main/webapp/modules/hls/HLS303/bp_agent_create.lview
+16
-16
bp_agent_modify.lview
src/main/webapp/modules/hls/HLS303/bp_agent_modify.lview
+17
-17
No files found.
src/main/webapp/modules/hls/HLS303/bp_agent_create.lview
View file @
a5df6f0c
...
...
@@ -445,22 +445,22 @@
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds_id == ds.id) {
if (record.get('taxpayer_type') == 'Y') {
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account_id').setRequired(true);
} else {
record.getField('tax_registry_num').setRequired(false);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_title').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account_id').setRequired(false);
}
//
if (ds_id == ds.id) {
//
if (record.get('taxpayer_type') == 'Y') {
//
record.getField('tax_registry_num').setRequired(true);
//
record.getField('invoice_bp_address').setRequired(true);
//
record.getField('invoice_title').setRequired(true);
//
record.getField('invoice_bp_phone_num').setRequired(true);
//
record.getField('invoice_bp_bank').setRequired(true);
//
record.getField('invoice_bp_bank_account_id').setRequired(true);
//
} else {
//
record.getField('tax_registry_num').setRequired(false);
//
record.getField('invoice_bp_address').setRequired(false);
//
record.getField('invoice_title').setRequired(false);
//
record.getField('invoice_bp_phone_num').setRequired(false);
//
record.getField('invoice_bp_bank').setRequired(false);
//
record.getField('invoice_bp_bank_account_id').setRequired(false);
//
}
}
};
...
...
src/main/webapp/modules/hls/HLS303/bp_agent_modify.lview
View file @
a5df6f0c
...
...
@@ -74,23 +74,23 @@
//更新时调用
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_update'] = function(ds, record, name, value, old_value, bp_seq) {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master');
if (ds_id == ds.id) {
if (record.get('taxpayer_type') == 'Y') {
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_bp_address').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account_id').setRequired(true);
} else {
record.getField('tax_registry_num').setRequired(false);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_title').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account_id').setRequired(false);
}
}
//
if (ds_id == ds.id) {
//
if (record.get('taxpayer_type') == 'Y') {
//
record.getField('tax_registry_num').setRequired(true);
//
record.getField('invoice_bp_address').setRequired(true);
//
record.getField('invoice_title').setRequired(true);
//
record.getField('invoice_bp_phone_num').setRequired(true);
//
record.getField('invoice_bp_bank').setRequired(true);
//
record.getField('invoice_bp_bank_account_id').setRequired(true);
//
} else {
//
record.getField('tax_registry_num').setRequired(false);
//
record.getField('invoice_bp_address').setRequired(false);
//
record.getField('invoice_title').setRequired(false);
//
record.getField('invoice_bp_phone_num').setRequired(false);
//
record.getField('invoice_bp_bank').setRequired(false);
//
record.getField('invoice_bp_bank_account_id').setRequired(false);
//
}
//
}
var role_ds = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_role');
if (role_ds == ds.id) {
...
...
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