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
6b041fca
Commit
6b041fca
authored
Apr 12, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
a0483251
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
+7
-7
No files found.
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
View file @
6b041fca
...
@@ -5,7 +5,7 @@ const validation = system.getObject("util.validation");
...
@@ -5,7 +5,7 @@ const validation = system.getObject("util.validation");
class
InvoiceCtl
extends
CtlBase
{
class
InvoiceCtl
extends
CtlBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
invoiceSve
=
system
.
getObject
(
"service.saas.
invoiceSve"
);
this
.
saasinvoiceSve
=
system
.
getObject
(
"service.saas.saas
invoiceSve"
);
this
.
tradeSve
=
system
.
getObject
(
"service.trade.tradeSve"
);
this
.
tradeSve
=
system
.
getObject
(
"service.trade.tradeSve"
);
}
}
...
@@ -20,7 +20,7 @@ class InvoiceCtl extends CtlBase {
...
@@ -20,7 +20,7 @@ class InvoiceCtl extends CtlBase {
if
(
!
params
.
remark
)
{
if
(
!
params
.
remark
)
{
return
system
.
getResult
(
null
,
"请填写审核备注"
);
return
system
.
getResult
(
null
,
"请填写审核备注"
);
}
}
let
rs
=
await
this
.
invoiceSve
.
audit
(
params
)
let
rs
=
await
this
.
saas
invoiceSve
.
audit
(
params
)
if
(
rs
.
status
===
0
&&
!
params
.
status
)
{
if
(
rs
.
status
===
0
&&
!
params
.
status
)
{
await
this
.
tradeSve
.
cancelInvoice
({
saas_invoice_id
:
params
.
id
});
await
this
.
tradeSve
.
cancelInvoice
({
saas_invoice_id
:
params
.
id
});
}
}
...
@@ -39,7 +39,7 @@ class InvoiceCtl extends CtlBase {
...
@@ -39,7 +39,7 @@ class InvoiceCtl extends CtlBase {
validation
.
check
(
params
,
'invoice_time'
,
{
name
:
"开票时间"
,
is_require
:
true
});
validation
.
check
(
params
,
'invoice_time'
,
{
name
:
"开票时间"
,
is_require
:
true
});
validation
.
check
(
params
,
'mail_no'
,
{
name
:
"快递单号"
,
is_require
:
true
});
validation
.
check
(
params
,
'mail_no'
,
{
name
:
"快递单号"
,
is_require
:
true
});
validation
.
check
(
params
,
'invoice_img'
,
{
name
:
"发票图片"
,
is_require
:
true
});
validation
.
check
(
params
,
'invoice_img'
,
{
name
:
"发票图片"
,
is_require
:
true
});
let
rs
=
await
this
.
invoiceSve
.
makeout
(
params
);
let
rs
=
await
this
.
saas
invoiceSve
.
makeout
(
params
);
return
rs
;
return
rs
;
}
catch
(
error
)
{
}
catch
(
error
)
{
let
msg
=
error
.
message
;
let
msg
=
error
.
message
;
...
@@ -52,7 +52,7 @@ class InvoiceCtl extends CtlBase {
...
@@ -52,7 +52,7 @@ class InvoiceCtl extends CtlBase {
async
platformTitleAddr
(
params
,
pobj2
,
req
)
{
async
platformTitleAddr
(
params
,
pobj2
,
req
)
{
try
{
try
{
let
id
=
params
.
id
;
let
id
=
params
.
id
;
this
.
invoiceSve
.
byid
// this.saas
invoiceSve.byid
let
result
=
{};
let
result
=
{};
...
@@ -100,7 +100,7 @@ class InvoiceCtl extends CtlBase {
...
@@ -100,7 +100,7 @@ class InvoiceCtl extends CtlBase {
//发票列表
//发票列表
async
invoicePage
(
params
,
pobj2
,
req
)
{
async
invoicePage
(
params
,
pobj2
,
req
)
{
try
{
try
{
let
rs
=
await
this
.
invoiceSve
.
platforminvoicePage
(
params
);
let
rs
=
await
this
.
saas
invoiceSve
.
platforminvoicePage
(
params
);
return
rs
;
return
rs
;
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
...
@@ -111,7 +111,7 @@ class InvoiceCtl extends CtlBase {
...
@@ -111,7 +111,7 @@ class InvoiceCtl extends CtlBase {
async
applyPage
(
params
,
pobj2
,
req
)
{
async
applyPage
(
params
,
pobj2
,
req
)
{
try
{
try
{
params
.
owner_type
=
"00"
;
params
.
owner_type
=
"00"
;
let
rs
=
await
this
.
invoiceSve
.
platforminvoiceapplyPage
(
params
);
let
rs
=
await
this
.
saas
invoiceSve
.
platforminvoiceapplyPage
(
params
);
return
rs
;
return
rs
;
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
...
@@ -122,7 +122,7 @@ class InvoiceCtl extends CtlBase {
...
@@ -122,7 +122,7 @@ class InvoiceCtl extends CtlBase {
async
platformApplyPage
(
params
,
pobj2
,
req
)
{
async
platformApplyPage
(
params
,
pobj2
,
req
)
{
try
{
try
{
params
.
owner_type
=
"10"
;
params
.
owner_type
=
"10"
;
let
rs
=
await
this
.
invoiceSve
.
platforminvoiceapplyPage
(
params
);
let
rs
=
await
this
.
saas
invoiceSve
.
platforminvoiceapplyPage
(
params
);
return
rs
;
return
rs
;
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
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