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
c05f25e0
Commit
c05f25e0
authored
Dec 01, 2022
by
18083
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全电发票商业伙伴开票处改造
parent
f7a579e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
10 deletions
+44
-10
hls_bp_master_create.lview
...ain/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
+17
-4
hls_bp_master_billing.lview
...in/webapp/modules/hls/HLS214N/hls_bp_master_billing.lview
+27
-6
No files found.
src/main/webapp/modules/hls/HLS213N/hls_bp_master_create.lview
View file @
c05f25e0
...
@@ -240,8 +240,8 @@
...
@@ -240,8 +240,8 @@
//设置开票类型为纸质只读
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
//
record.getField('invoice_type').setReadOnly(true);
record.getField('invoice_type_n').setReadOnly(true);
//
record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
...
@@ -447,6 +447,13 @@
...
@@ -447,6 +447,13 @@
return
false;
return
false;
}
}
}
}
}
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是”
18083
2022/11/30
if
(head_record.get('invoice_type')=='PAPER'){
if(head_record.get('full_elec_invoice_flag')=='Y'){
Leaf.showErrorMessage('${l:PROMPT}',
'开票类型为纸质发票,不能选择【是否全电发票】为是');
return
false;
}
}
}
var
role_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_role');
var
role_ds_id =
get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],
'hls_bp_master_role');
var
role_records =
$(role_ds_id).getAll();
var
role_records =
$(role_ds_id).getAll();
...
@@ -872,8 +879,9 @@
...
@@ -872,8 +879,9 @@
//设置开票类型为纸质只读
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
//取消开票类型为纸质只读
18083
2022/11/30
record.getField('invoice_type_n').setReadOnly(true);
//record.getField('invoice_type').setReadOnly(true);
//record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
...
@@ -903,10 +911,15 @@
...
@@ -903,10 +911,15 @@
}
}
}
}
if(
name =
=
'invoice_type'){
if(
name =
=
'invoice_type'){
//设置是否全电发票默认值
18083
2022/11/30
if(
value =
=
'PAPER'){
if(
value =
=
'PAPER'){
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.set('full_elec_invoice_flag','N');
record.set('full_elec_invoice_flag_n','否');
}else{
}else{
record.getField('reception_maile').setRequired(true);
record.getField('reception_maile').setRequired(true);
record.set('full_elec_invoice_flag','Y');
record.set('full_elec_invoice_flag_n','是');
}
}
}
}
}
}
...
...
src/main/webapp/modules/hls/HLS214N/hls_bp_master_billing.lview
View file @
c05f25e0
...
@@ -40,8 +40,9 @@
...
@@ -40,8 +40,9 @@
//设置开票类型为纸质只读
//设置开票类型为纸质只读
record.set('invoice_type','PAPER');
record.set('invoice_type','PAPER');
record.set('invoice_type_n','纸质发票');
record.set('invoice_type_n','纸质发票');
record.getField('invoice_type').setReadOnly(true);
//取消一般纳税人开票类型为只读 18083 2022/11/30
record.getField('invoice_type_n').setReadOnly(true);
//record.getField('invoice_type').setReadOnly(true);
//record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
...
@@ -55,8 +56,9 @@
...
@@ -55,8 +56,9 @@
}
}
}else {
}else {
if(record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
if(record.get('taxpayer_type') == 'GENERAL_TAXPAYER'){
record.getField('invoice_type').setReadOnly(true);
//取消一般纳税人开票类型为只读 18083 2022/11/30
record.getField('invoice_type_n').setReadOnly(true);
//record.getField('invoice_type').setReadOnly(true);
//record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
...
@@ -156,8 +158,9 @@
...
@@ -156,8 +158,9 @@
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
record.getField('invoice_type_n').setReadOnly(false);
}else if (value == 'GENERAL_TAXPAYER') {
}else if (value == 'GENERAL_TAXPAYER') {
record.getField('invoice_type').setReadOnly(true);
//设置开票类型为纸质只读 18083 2022/11/30
record.getField('invoice_type_n').setReadOnly(true);
//record.getField('invoice_type').setReadOnly(true);
//record.getField('invoice_type_n').setReadOnly(true);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('invoice_type_n').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
...
@@ -187,10 +190,15 @@
...
@@ -187,10 +190,15 @@
}
}
}
}
if(name == 'invoice_type'){
if(name == 'invoice_type'){
//设置是否全电发票默认值 18083 2022/11/30
if(value == 'PAPER'){
if(value == 'PAPER'){
record.getField('reception_maile').setRequired(false);
record.getField('reception_maile').setRequired(false);
record.set('full_elec_invoice_flag','N');
record.set('full_elec_invoice_flag_n','否');
}else{
}else{
record.getField('reception_maile').setRequired(true);
record.getField('reception_maile').setRequired(true);
record.set('full_elec_invoice_flag','Y');
record.set('full_elec_invoice_flag_n','是');
}
}
}
}
};
};
...
@@ -271,6 +279,19 @@
...
@@ -271,6 +279,19 @@
return value;
return value;
}
}
};
};
//保存前调用 18083 2022/11/30
window['${/parameter/@layout_code}_on_layout_dynamic_before_submit'] = function (ds, record) {
window['${/parameter/@layout_code}_lock_layout_dynamic_window']();
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
var head_record = $(ds_id).getCurrentRecord();
//若选择开票类型为“纸质发票”,则系统校验无法选择“是否全电发票”为“是”
if (head_record.get('invoice_type')=='PAPER'){
if(head_record.get('full_elec_invoice_flag')=='Y'){
Leaf.showErrorMessage('${l:PROMPT}', '开票类型为纸质发票,不能选择【是否全电发票】为是');
return false;
}
}
}
// 提交审批
// 提交审批
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hls_bp_master_req');
...
...
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