Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
7 years ago
Commit
db6570997e710ac42ef30cc4d5922774227c1b1a
1 parent
3f1cdb1a
invoice detail
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
apps/home/models/invoice.js
apps/home/models/invoice.js
View file @
db65709
...
...
@@ -21,6 +21,10 @@ module.exports = class extends global.yoho.BaseModel {
if
(
result
.
code
===
200
)
{
_
.
unset
(
result
,
'data.uid'
);
_
.
set
(
result
,
'data.invoicesType'
,
_
.
get
(
result
,
'data.invoices_type'
)
===
2
?
'电子发票'
:
'纸质发票'
);
if
(
!
_
.
get
(
result
,
'data.pdfUrl'
))
{
_
.
set
(
result
,
'data.showInvoice'
,
false
);
}
}
return
result
;
...
...
Please
register
or
login
to post a comment