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
0b19218d
Commit
0b19218d
authored
Apr 10, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
ea3daeae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
0 deletions
+99
-0
xgg-saas-merchant/app/base/controller/impl/saas/invoiceCtl.js
+10
-0
xgg-saas-merchant/app/base/service/impl/saas/invoiceSve.js
+8
-0
xgg-saas-merchant/app/front/entry/public/apidoc/invoice/invoice.md
+81
-0
No files found.
xgg-saas-merchant/app/base/controller/impl/saas/invoiceCtl.js
View file @
0b19218d
...
@@ -64,5 +64,15 @@ class InvoiceCtl extends CtlBase {
...
@@ -64,5 +64,15 @@ class InvoiceCtl extends CtlBase {
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
//发票申请列表
async
merchantinvoiceapplyPage
(
params
,
pobj2
,
req
)
{
try
{
let
rs
=
await
this
.
invoiceSve
.
merchantinvoiceapplyPage
(
params
);
return
rs
;
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
module
.
exports
=
InvoiceCtl
;
module
.
exports
=
InvoiceCtl
;
xgg-saas-merchant/app/base/service/impl/saas/invoiceSve.js
View file @
0b19218d
...
@@ -14,6 +14,14 @@ class InvoiceService extends ServiceBase {
...
@@ -14,6 +14,14 @@ class InvoiceService extends ServiceBase {
return
rs
;
return
rs
;
}
}
async
merchantinvoiceapplyPage
(
params
){
var
rs
=
await
this
.
callms
(
"invoice"
,
"merchantinvoiceapplyPage"
,
params
);
if
(
rs
&&
rs
.
data
&&
rs
.
data
.
rows
)
{
this
.
transOrderField
(
rs
.
data
.
rows
);
}
return
rs
;
}
transOrderField
(
rows
)
{
transOrderField
(
rows
)
{
if
(
!
rows
||
rows
.
length
==
0
)
{
if
(
!
rows
||
rows
.
length
==
0
)
{
return
;
return
;
...
...
xgg-saas-merchant/app/front/entry/public/apidoc/invoice/invoice.md
View file @
0b19218d
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
1.
[
交付商交付
](
#delivered
)
1.
[
交付商交付
](
#delivered
)
1.
[
查询详细信息
](
#invoice
)
1.
[
查询详细信息
](
#invoice
)
1.
[
发票列表
](
#merchantinvoicePage
)
1.
[
发票列表
](
#merchantinvoicePage
)
1.
[
发票申请列表
](
#merchantinvoiceapplyPage
)
## **<a name="processList"> 业务进度字典 </a>**
## **<a name="processList"> 业务进度字典 </a>**
[
返回到目录
](
#menu
)
[
返回到目录
](
#menu
)
...
@@ -602,3 +603,83 @@
...
@@ -602,3 +603,83 @@
}
}
```
```
## **<a name="merchantinvoiceapplyPage"> 发票申请列表 </a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/saas/invoiceCtl/merchantinvoiceapplyPage
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求参数 `POST`
```
javascript
{
"currentPage"
:
1
,
"pageSize"
:
10
,
"apply_no"
:
""
,
//发票申请编号
"begin_time"
:
""
,
//开始时间
"end_time"
:
""
//结束时间
}
```
**返回结果**
| 参数名|数据类型| 说明 |
|---|:---:|---|
| status | Number | 状态码 |
| msg | String | 提示信息 |
| data | JSON | 返回值 |
**示例**
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
{
"count"
:
1
,
"rows"
:
[
{
"id"
:
"1"
,
"saas_id"
:
"1"
,
"saas_merchant_id"
:
"11248111258000991"
,
"batch_no"
:
"1"
,
"owner_type"
:
"商户发票"
,
"fee_type"
:
"注册订单费用"
,
"invoice_type"
:
"增值税专用发票"
,
//发票类型
"status"
:
"1"
,
//进度
"sve_invoice_id"
:
"1"
,
"apply_no"
:
"1"
,
//发票申请编号
"from_name"
:
"1"
,
//开票方
"from_credit_code"
:
"1"
,
"from_addr"
:
"1"
,
"from_mobile"
:
"1"
,
"from_bank"
:
"1"
,
"from_account"
:
"1"
,
"to_name"
:
"1"
,
//发票抬头
"to_credit_code"
:
"1"
,
"to_addr"
:
"1"
,
"to_mobile"
:
"1"
,
"to_bank"
:
"1"
,
"to_account"
:
"1"
,
"mail_to"
:
"1"
,
"mail_mobile"
:
"1"
,
"mail_addr"
:
"1"
,
"personal_invoice_tax"
:
1
,
//个税
"additional_tax"
:
1
,
"value_added_tax"
:
1
,
"service_tax"
:
1
,
"created_at"
:
"2020-04-10 22:39:43"
,
//申请时间
"updated_at"
:
"2020-04-10 22:39:40"
,
"deleted_at"
:
null
,
"version"
:
0
,
"invoice_join"
:
""
,
"price"
:
0
}
]
},
"requestid"
:
"712c62cc9dfd455b82ae13bf68c882c9"
}
```
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