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
89f0f78c
Commit
89f0f78c
authored
May 06, 2023
by
陆正友
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加七位发票
parent
a23e89cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
1 deletion
+46
-1
ap_invoice_import_detail.lview
.../webapp/modules/acp/ACP522/ap_invoice_import_detail.lview
+46
-1
No files found.
src/main/webapp/modules/acp/ACP522/ap_invoice_import_detail.lview
View file @
89f0f78c
...
...
@@ -233,7 +233,52 @@
},
scope:
this
});
}
else
{
}
else
if
(
strs.length =
=
7)
{
//校验重复发票号码
add
by
26887cz
2021-09-07
var
acr_records =
$(acp_ds_id).getAll();
for
(var
i =
0;
i
<
acr_records.length;
i++)
{
if
(acr_records[i].get("invoice_number")
==
invoice_number)
{
Leaf.showMessage('提示',
'发票号码重复,请重新扫描!');
setTimeout(function
()
{
record.set('invoice',
'');
},
50);
return;
}
}
Leaf.request({
url:
$('acp_invoice_inf_import_total_link').getUrl(),
para:
{
invoice_type:
invoice_type,
invoice_code:
invoice_code,
invoice_number:
invoice_number,
total_amount:
total_amount,
invoice_date:
invoice_date,
contract_id:
contract_id
},
success:
function
()
{
Leaf.SideBar.show({
msg:
'导入成功',
duration:
2000
}
);
setTimeout(function
()
{
record.set('invoice',
'');
},
50);
$(acp_ds_id).setQueryParameter('contract_id',
'${/parameter/@contract_id}');
$(acp_ds_id).query();
},
failure:
function
()
{
setTimeout(function
()
{
record.set('invoice',
'');
},
50);
},
error:
function
()
{
setTimeout(function
()
{
record.set('invoice',
'');
},
50);
},
scope:
this
});
}else
{
Leaf.showMessage('提示',
'发票信息有错误,请重新扫描!');
setTimeout(function
()
{
record.set('invoice',
'');
...
...
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