Commit 923bfbae by 王昆

dd

parent 70dd4d6a
...@@ -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, "季度账期");
......
<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
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment