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
637de337
Commit
637de337
authored
3 years ago
by
李贺贺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商业伙伴创建及维护开票信息默认值维护
parent
13498439
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
225 deletions
+89
-225
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+41
-98
hls_bp_master_billing.lview
...in/webapp/modules/hls/HLS214N/hls_bp_master_billing.lview
+48
-127
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
637de337
...
...
@@ -216,6 +216,23 @@
}
record.set('invoice_title', record.get('bp_name'));
if(record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
}else if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
record.set('invoice_type','ECT');
record.set('invoice_type_n','电子发票');
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
}
}
...
...
@@ -722,12 +739,6 @@
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}else if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
//小规模纳税人
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -739,13 +750,6 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
}else if (value == 'NO_BILLING'){//暂时不开票
...
...
@@ -759,88 +763,39 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
if (record.get('bp_class') == 'NP') {
//开票
if (value == 'BILLING') {
//一般纳税人
if( record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
//小规模纳税人
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
}else if (value == 'NO_BILLING'){//暂时不开票
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
//纳税人类型
if (name == 'taxpayer_type' && value) {
if (record.get('bp_class') == 'ORG') {
if (value == 'SMALL_SCALE_TAXPAYER') {
if (record.get('invoice_method') == 'BILLING') {
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
//暂不开票
else if( record.get('invoice_method') == 'NO_BILLING'){
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','ECT');
record.set('invoice_type_n','电子发票');
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}else if (value == 'GENERAL_TAXPAYER') {
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
if (record.get('invoice_method') == 'BILLING'){
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
...
...
@@ -851,12 +806,6 @@
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}else if ( record.get('invoice_method') == 'NO_BILLING'){
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -868,12 +817,6 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/hls/HLS214N/hls_bp_master_billing.lview
View file @
637de337
...
...
@@ -32,36 +32,40 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
if(record.get('taxpayer_type') != 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
if (record.get('bp_class') == 'NP') {
if (value == 'NO_BILLING') {
if (record.get('taxpayer_type') != 'GENERAL_TAXPAYER') {
//设置开票类型为纸质只读
record.set('invoice_type', 'PAPER');
record.set('invoice_type_n', '纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
}
if(record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
if(!record.get('invoice_type')){
if(record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
}else if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
record.set('invoice_type','ECT');
record.set('invoice_type_n','电子发票');
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
}
}else {
if(record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
}else if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
}
}
if(record.get('bp_class') == 'NP'){
document.getElementById('${/parameter/@layout_code}_submit_approval').style.display = "none";
...
...
@@ -108,12 +112,6 @@
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}else if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
//小规模纳税人
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -125,13 +123,6 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
}else if (value == 'NO_BILLING'){//暂时不开票
...
...
@@ -145,89 +136,31 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
//add by lihh 20210408 开票类型取值逻辑
if (record.get('bp_class') == 'NP') {
//开票
if (value == 'BILLING') {
//一般纳税人
if( record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
if(record.get('taxpayer_type') == 'SMALL_SCALE_TAXPAYER'){
//小规模纳税人
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
}else if (value == 'NO_BILLING'){//暂时不开票
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
if (name == 'taxpayer_type' && value) {
if (record.get('bp_class') == 'ORG') {
if (value == 'SMALL_SCALE_TAXPAYER') {
if (record.get('invoice_method') == 'BILLING') {
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.set('invoice_type','');
record.set('invoice_type_n','');
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('reception_maile').setRequired(true);
}
//暂不开票
else if( record.get('invoice_method') == 'NO_BILLING'){
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
record.getField('tax_registry_num').setRequired(true);
record.getField('invoice_title').setRequired(true);
record.getField('invoice_bp_address').setRequired(false);
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
record.getField('invoice_type').setRequired(true);
record.getField('invoice_type_n').setRequired(true);
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
}else if (value == 'GENERAL_TAXPAYER') {
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
if (record.get('invoice_method') == 'BILLING'){
record.getField('taxpayer_type').setRequired(true);
record.getField('taxpayer_type_n').setRequired(true);
...
...
@@ -238,12 +171,6 @@
record.getField('invoice_bp_phone_num').setRequired(true);
record.getField('invoice_bp_bank').setRequired(true);
record.getField('invoice_bp_bank_account').setRequired(true);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}else if ( record.get('invoice_method') == 'NO_BILLING'){
record.getField('taxpayer_type').setRequired(true);
...
...
@@ -255,12 +182,6 @@
record.getField('invoice_bp_phone_num').setRequired(false);
record.getField('invoice_bp_bank').setRequired(false);
record.getField('invoice_bp_bank_account').setRequired(false);
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
record.getField('reception_maile').setRequired(false);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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