Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
35a21629
Commit
35a21629
authored
Mar 12, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
ab9f04a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
xggsve-invoice/app/base/service/impl/invoice/iinvoicestatusSve.js
+19
-25
No files found.
xggsve-invoice/app/base/service/impl/invoice/iinvoicestatusSve.js
View file @
35a21629
...
@@ -252,6 +252,22 @@ class IinvoicestatusService extends ServiceBase {
...
@@ -252,6 +252,22 @@ class IinvoicestatusService extends ServiceBase {
}
}
}
}
/**
* 平台审核失败
* @param {*} params
*/
async
deliverReject
(
params
)
{
let
_invoice
=
params
.
_invoice
;
_invoice
.
status
=
this
.
trim
(
params
.
status
);
try
{
await
_invoice
.
save
();
return
system
.
getResultSuccess
();
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
/**
/**
* 平台验收
* 平台验收
* @param {*} params
* @param {*} params
...
@@ -367,29 +383,22 @@ class IinvoicestatusService extends ServiceBase {
...
@@ -367,29 +383,22 @@ class IinvoicestatusService extends ServiceBase {
* 客户交付
* 客户交付
* @param {*} params
* @param {*} params
*/
*/
async
deliverCustomer
(
params
)
{
async
deliveryCustomer
(
params
)
{
if
(
!
params
.
invoice_id
)
{
return
system
.
getResult
(
null
,
`参数错误 发票ID不能为空`
);
}
if
(
!
params
.
status
)
{
return
system
.
getResult
(
null
,
`参数错误 发票状态不能为空`
);
}
if
(
!
params
.
deliver_mail_no
)
{
if
(
!
params
.
deliver_mail_no
)
{
return
system
.
getResult
(
null
,
`参数错误 客户快递单号不能为空`
);
return
system
.
getResult
(
null
,
`参数错误 客户快递单号不能为空`
);
}
}
let
iivoiceInforegProperty
=
{};
let
iivoiceInforegProperty
=
{};
iivoiceInforegProperty
.
id
=
this
.
trim
(
params
.
_order
.
id
);
iivoiceInforegProperty
.
id
=
this
.
trim
(
params
.
invoice_
id
);
iivoiceInforegProperty
.
deliver_mail_no
=
this
.
trim
(
params
.
deliver_mail_no
);
iivoiceInforegProperty
.
deliver_mail_no
=
this
.
trim
(
params
.
deliver_mail_no
);
let
iinvoiceProperty
=
{};
let
iinvoiceProperty
=
{};
iinvoiceProperty
.
status
=
this
.
trim
(
params
.
status
);
iinvoiceProperty
.
status
=
this
.
trim
(
params
.
status
);
iinvoiceProperty
.
id
=
params
.
_invoice
.
id
;
iinvoiceProperty
.
id
=
params
.
_invoice
.
id
;
try
{
try
{
await
this
.
db
.
transaction
(
async
t
=>
{
await
this
.
db
.
transaction
(
async
t
=>
{
await
this
.
oorder
inforegDao
.
update
(
iivoiceInforegProperty
,
t
);
await
this
.
iinvoice
inforegDao
.
update
(
iivoiceInforegProperty
,
t
);
await
this
.
dao
.
update
(
iinvoiceProperty
,
t
);
await
this
.
dao
.
update
(
iinvoiceProperty
,
t
);
});
});
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
...
@@ -545,21 +554,6 @@ class IinvoicestatusService extends ServiceBase {
...
@@ -545,21 +554,6 @@ class IinvoicestatusService extends ServiceBase {
}
}
}
}
/**
* 平台审核失败
* @param {*} params
*/
async
deliverReject
(
params
)
{
let
_invoice
=
params
.
_invoice
;
_invoice
.
status
=
this
.
trim
(
params
.
status
);
try
{
await
_invoice
.
save
();
return
system
.
getResultSuccess
();
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
...
...
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