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
923bfbae
Commit
923bfbae
authored
Apr 03, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
70dd4d6a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
2 deletions
+100
-2
xgg-saas-merchant/app/base/service/impl/tax/taxSve.js
+3
-2
xgg-saas-merchant/app/front/entry/public/apidoc/tax/tax.md
+97
-0
No files found.
xgg-saas-merchant/app/base/service/impl/tax/taxSve.js
View file @
923bfbae
...
@@ -34,12 +34,13 @@ class TaxService extends ServiceBase {
...
@@ -34,12 +34,13 @@ class TaxService extends ServiceBase {
async
getReportDataQuarter
(
params
)
{
async
getReportDataQuarter
(
params
)
{
try
{
try
{
let
data
=
{
let
data
=
{
"accountPeriod"
:
this
.
trim
(
params
.
accountPeriod
),
"companyId"
:
this
.
trim
(
params
.
companyId
),
"companyId"
:
this
.
trim
(
params
.
companyId
),
"customerId"
:
this
.
trim
(
params
.
customerId
),
"customerId"
:
this
.
trim
(
params
.
customerId
),
"desc"
:
this
.
trim
(
params
.
desc
)
||
"string"
,
"desc"
:
this
.
trim
(
params
.
desc
)
||
"string"
,
"reportType"
:
this
.
trim
(
params
.
reportType
)
||
2
,
"reportType"
:
this
.
trim
(
params
.
reportType
)
||
2
,
"signWithoutKey"
:
this
.
trim
(
params
.
signWithoutKey
)
||
"string"
"signWithoutKey"
:
this
.
trim
(
params
.
signWithoutKey
)
||
"string"
,
"endPeriod"
:
this
.
trim
(
params
.
endPeriod
),
"startPeriod"
:
this
.
trim
(
params
.
startPeriod
)
}
}
let
url
=
settings
.
ntapi
().
getReportDataQuarter
;
let
url
=
settings
.
ntapi
().
getReportDataQuarter
;
return
await
this
.
callApi
(
url
,
params
,
"季度账期"
);
return
await
this
.
callApi
(
url
,
params
,
"季度账期"
);
...
...
xgg-saas-merchant/app/front/entry/public/apidoc/tax/tax.md
0 → 100644
View file @
923bfbae
<a
name=
"menu"
>
目录
</a>
1.
[
根据用户id查询账簿
](
#getCustomerById
)
1.
[
日账期
](
#getReportData
)
1.
[
季度账期
](
#getReportDataQuarter
)
1.
[
个体户列表
](
#businessmenPage
)
## **<a name="getCustomerById"> 根据用户id查询账簿</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/tax/taxCtl/getCustomerById
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
id
:
"xxxx"
//个体工商户ID
}
```
#### 返回结果
```
javascript
{
"code"
:
"000000"
,
"data"
:
{
"accountant"
:
"管理员"
,
"companyId"
:
106
,
"createBy"
:
"21222"
,
"currentPeriod"
:
202002
,
"customerName"
:
"宿迁张娇商务咨询服务中心1"
,
"id"
:
498786
,
"initPeriod"
:
202002
,
"latelyPeriod"
:
202002
,
"outOfService"
:
0
,
"province"
:
1100
,
"valueAddedTax"
:
2
},
"errMsg"
:
"请求成功"
}
```
## **<a name="getReportData"> 月账期</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/tax/taxCtl/getReportData
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"accountPeriod"
:
""
,
"companyId"
:
""
,
//公司ID
"customerId"
:
""
,
//客户IDd
"desc"
:
"string"
,
//描述 默认 string
"reportType"
:
2
,
//账期类型 默认2
"signWithoutKey"
:
"string"
,
}
```
#### 返回结果
```
javascript
{}
```
## **<a name="getReportDataQuarter"> 季度账期</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/tax/taxCtl/getReportDataQuarter
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"companyId"
:
""
,
//公司ID
"customerId"
:
""
,
//客户IDd
"desc"
:
"string"
,
//描述 默认 string
"reportType"
:
2
,
//账期类型 默认2
"signWithoutKey"
:
"string"
,
"endPeriod"
:
"202008"
,
"startPeriod"
:
"202005"
}
```
#### 返回结果
```
javascript
```
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