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
8 years ago
Commit
d9a1b32e464464dd6e49ef98ede06265fd69f99c
1 parent
cdce690e
error tip
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
public/js/home/invoice.page.js
public/js/home/invoice.page.js
View file @
d9a1b32
...
...
@@ -5,7 +5,10 @@
*/
var
$
=
require
(
'yoho-jquery'
);
var
Dialog
=
require
(
'../common/dialog'
).
Dialog
;
var
dialog
=
require
(
'../common/dialog'
);
var
Dialog
=
dialog
.
Dialog
,
Alert
=
dialog
.
Alert
;
var
$hideDg
=
$
(
'#invoice-hide-dg'
);
...
...
@@ -180,6 +183,7 @@ $('#me-invoice-orders').on('click', '.supply-invoice', function() {
btnClass
:
[
'sure-apply'
],
cb
:
function
()
{
var
info
=
packInvoiceInfo
(
dg
.
$el
);
var
errAlert
;
if
(
!
validateInvoice
(
dg
.
$el
,
info
))
{
return
;
...
...
@@ -188,6 +192,13 @@ $('#me-invoice-orders').on('click', '.supply-invoice', function() {
info
.
orderCode
=
$
(
this
).
data
(
'id'
);
supplyInvoice
(
info
,
function
(
data
)
{
if
(
data
.
code
!==
200
)
{
dg
.
$el
.
hide
();
errAlert
=
new
Alert
(
data
.
message
).
show
();
errAlert
.
$el
.
on
(
'click'
,
'.close'
,
function
()
{
dg
.
$el
.
show
();
}).
on
(
'click'
,
'.alert-sure'
,
function
()
{
dg
.
$el
.
show
();
});
return
;
}
...
...
Please
register
or
login
to post a comment