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
7f921c31
Commit
7f921c31
authored
Apr 14, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddg
parent
b4dc8e77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
55 deletions
+2
-55
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
+0
-19
xgg-saas-platform/app/base/service/impl/saas/saasinvoiceSve.js
+1
-35
xgg-saas-platform/app/base/system.js
+1
-1
No files found.
xgg-saas-platform/app/base/controller/impl/saas/invoiceCtl.js
View file @
7f921c31
...
...
@@ -364,25 +364,6 @@ class InvoiceCtl extends CtlBase {
}
}
/**
* 发票账单列表
* @param {*} params
* @param {*} pobj2
* @param {*} req
*/
async
invoiceOrder
(
params
,
pobj2
,
req
){
if
(
!
params
.
id
){
return
system
.
getResult
(
null
,
`发票ID 不能为空`
);
}
try
{
return
await
this
.
saasinvoiceSve
.
invoiceOrder
(
params
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
}
module
.
exports
=
InvoiceCtl
;
xgg-saas-platform/app/base/service/impl/saas/saasinvoiceSve.js
View file @
7f921c31
...
...
@@ -6,10 +6,7 @@ class SaasinvoiceService extends ServiceBase {
constructor
()
{
super
();
this
.
DEFAULT_BUSINESSMEN_TYPE
=
"10"
;
//默认的 销售方类型 个体工商户
this
.
DEFAULT_CHANNEL_ID
=
"2"
;
//默认的 渠道类型
this
.
tradeSve
=
system
.
getObject
(
"service.trade.tradeSve"
);
this
.
DEFAULT_CHANNEL_ID
=
"2"
;
//默认的 渠道类型
}
async
platforminvoicePage
(
params
)
{
...
...
@@ -146,35 +143,5 @@ class SaasinvoiceService extends ServiceBase {
});
console
.
log
(
res
.
data
);
}
/**
* 发票详情
* @param {*} params
*/
async
invoiceOrder
(
params
){
try
{
let
saasInvoiceApply
=
await
this
.
callms
(
"invoice"
,
"saasInvoiceInfo"
,
params
);
if
(
saasInvoiceApply
.
status
!=
0
||
!
saasInvoiceApply
.
data
){
return
system
.
getResult
(
null
,
`系统错误`
);
}
saasInvoiceApply
=
saasInvoiceApply
.
data
;
let
tradOrder
=
[];
if
(
saasInvoiceApply
.
fee_type
==
"00"
){
//个体户注册订单
tradOrder
=
[];
}
else
{
//查询流水
let
tradOrderRes
=
await
this
.
tradeSve
.
invoiceTrade
({
id
:
saasInvoiceApply
.
id
,
order_type
:
saasInvoiceApply
.
fee_type
});
if
(
tradOrderRes
.
status
==
0
){
tradOrder
=
tradOrderRes
.
data
;
}
}
saasInvoiceApply
.
tradOrder
=
tradOrder
;
return
system
.
getResult
(
saasInvoiceApply
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误`
);
}
}
}
module
.
exports
=
SaasinvoiceService
;
\ No newline at end of file
xgg-saas-platform/app/base/system.js
View file @
7f921c31
...
...
@@ -200,7 +200,7 @@ class System {
order
:
dev
+
":3103"
+
path
,
// 发票服务
invoice
:
local
+
":3105"
+
path
,
invoice
:
dev
+
":3105"
+
path
,
// 用户服务
uc
:
dev
+
":3106"
+
path
,
...
...
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