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
33683f42
Commit
33683f42
authored
Apr 03, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xgg-saas-merchant' of gitlab.gongsibao.com:jiangyong/zhichan into xgg-saas-merchant
parents
378f2c3a
cad457a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1294 additions
and
228 deletions
+1294
-228
xgg-saas-merchant/app/base/service/impl/tax/taxSve.js
+3
-2
xgg-saas-merchant/app/base/system.js
+1
-226
xgg-saas-merchant/app/front/entry/public/apidoc/README.md
+2
-0
xgg-saas-merchant/app/front/entry/public/apidoc/tax/tax.md
+1288
-0
No files found.
xgg-saas-merchant/app/base/service/impl/tax/taxSve.js
View file @
33683f42
...
...
@@ -34,12 +34,13 @@ class TaxService extends ServiceBase {
async
getReportDataQuarter
(
params
)
{
try
{
let
data
=
{
"accountPeriod"
:
this
.
trim
(
params
.
accountPeriod
),
"companyId"
:
this
.
trim
(
params
.
companyId
),
"customerId"
:
this
.
trim
(
params
.
customerId
),
"desc"
:
this
.
trim
(
params
.
desc
)
||
"string"
,
"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
;
return
await
this
.
callApi
(
url
,
params
,
"季度账期"
);
...
...
xgg-saas-merchant/app/base/system.js
View file @
33683f42
...
...
@@ -3,224 +3,6 @@ var objsettings = require("../config/objsettings");
var
settings
=
require
(
"../config/settings"
);
class
System
{
<<<<<<<
HEAD
static
declare
(
ns
)
{
var
ar
=
ns
.
split
(
'.'
);
var
root
=
System
;
for
(
var
i
=
0
,
len
=
ar
.
length
;
i
<
len
;
++
i
)
{
var
n
=
ar
[
i
];
if
(
!
root
[
n
])
{
root
[
n
]
=
{};
root
=
root
[
n
];
}
else
{
root
=
root
[
n
];
}
}
}
static
register
(
key
,
ClassObj
)
{
if
(
System
.
objTable
[
key
]
!=
null
)
{
throw
new
Error
(
"相同key的对象已经存在"
);
}
else
{
let
obj
=
new
ClassObj
();
System
.
objTable
[
key
]
=
obj
;
}
return
System
.
objTable
[
key
];
}
static
getResult
(
data
,
opmsg
=
"操作成功"
,
req
)
{
return
{
status
:
!
data
?
-
1
:
0
,
msg
:
opmsg
,
data
:
data
||
null
,
bizmsg
:
req
&&
req
.
session
&&
req
.
session
.
bizmsg
?
req
.
session
.
bizmsg
:
"empty"
};
}
/**
* 请求返回成功
* @param {*} data 操作成功返回的数据
* @param {*} okmsg 操作成功的描述
*/
static
getResultSuccess
(
data
,
okmsg
=
"success"
)
{
return
{
status
:
0
,
msg
:
okmsg
,
data
:
data
||
null
,
};
}
/**
* 请求返回失败
* @param {*} status 操作失败状态,默认为-1
* @param {*} errmsg 操作失败的描述,默认为fail
* @param {*} data 操作失败返回的数据
*/
static
getResultFail
(
status
=
-
1
,
errmsg
=
"fail"
,
data
=
null
)
{
return
{
status
:
status
,
msg
:
errmsg
,
data
:
data
,
};
}
static
getObject
(
objpath
)
{
var
pathArray
=
objpath
.
split
(
"."
);
var
packageName
=
pathArray
[
0
];
var
groupName
=
pathArray
[
1
];
var
filename
=
pathArray
[
2
];
var
classpath
=
""
;
if
(
filename
)
{
classpath
=
objsettings
[
packageName
]
+
"/"
+
groupName
;
}
else
{
classpath
=
objsettings
[
packageName
];
filename
=
groupName
;
}
var
objabspath
=
classpath
+
"/"
+
filename
+
".js"
;
if
(
System
.
objTable
[
objabspath
]
!=
null
)
{
console
.
log
(
"get cached obj"
);
return
System
.
objTable
[
objabspath
];
}
else
{
console
.
log
(
"no cached..."
);
var
ClassObj
=
require
(
objabspath
);
return
System
.
register
(
objabspath
,
ClassObj
);
}
}
static
getUiConfig
(
appid
)
{
var
configPath
=
settings
.
basepath
+
"/app/base/db/metadata/"
+
appid
+
"/index.js"
;
if
(
settings
.
env
==
"dev"
)
{
delete
require
.
cache
[
configPath
];
}
var
configValue
=
require
(
configPath
);
return
configValue
;
}
static
getUiConfig2
(
appid
)
{
var
configPath
=
settings
.
basepath
+
"/app/base/db/metadata/index.js"
;
// if(settings.env=="dev"){
// console.log("delete "+configPath+"cache config");
// delete require.cache[configPath];
// }
delete
require
.
cache
[
configPath
];
var
configValue
=
require
(
configPath
);
return
configValue
[
appid
];
}
static
get_client_ip
(
req
)
{
var
ip
=
req
.
headers
[
'x-forwarded-for'
]
||
req
.
ip
||
req
.
connection
.
remoteAddress
||
req
.
socket
.
remoteAddress
||
(
req
.
connection
.
socket
&&
req
.
connection
.
socket
.
remoteAddress
)
||
''
;
var
x
=
ip
.
match
(
/
(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
0-1
]{1}[
0-9
]{2}
|
[
1-9
]{1}[
0-9
]{1}
|
[
1-9
])\.(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
0-1
]{1}[
0-9
]{2}
|
[
1-9
]{1}[
0-9
]{1}
|
[
1-9
]
|0
)\.(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
0-1
]{1}[
0-9
]{2}
|
[
1-9
]{1}[
0-9
]{1}
|
[
1-9
]
|0
)\.(
25
[
0-5
]
|2
[
0-4
][
0-9
]
|
[
0-1
]{1}[
0-9
]{2}
|
[
1-9
]{1}[
0-9
]{1}
|
[
0-9
])
$/
);
if
(
x
)
{
return
x
[
0
];
}
else
{
return
"localhost"
;
}
};
static
y2f
(
y
)
{
if
(
!
y
)
{
return
0
;
}
return
(
Number
(
y
)
*
100
).
toFixed
(
0
);
}
static
f2y
(
f
)
{
if
(
!
f
)
{
return
0
;
}
return
parseFloat
((
Number
(
f
)
/
100
).
toFixed
(
2
));
}
static
f2y4list
(
list
,
fields
,
prev
)
{
if
(
!
list
||
list
.
length
==
0
||
!
fields
||
fields
.
length
==
0
)
{
return
;
}
prev
=
prev
||
""
;
for
(
var
item
of
list
)
{
for
(
var
f
of
fields
)
{
var
v
=
item
[
f
]
||
0
;
try
{
item
[
f
+
"_y"
]
=
prev
+
parseFloat
((
Number
(
v
)
/
100
).
toFixed
(
2
));
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
}
}
static
getUid
(
len
,
radix
)
{
var
chars
=
'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
.
split
(
''
);
var
uuid
=
[],
i
;
radix
=
radix
||
chars
.
length
;
if
(
len
)
{
for
(
i
=
0
;
i
<
len
;
i
++
)
uuid
[
i
]
=
chars
[
0
|
Math
.
random
()
*
radix
];
}
else
{
var
r
;
uuid
[
8
]
=
uuid
[
13
]
=
uuid
[
18
]
=
uuid
[
23
]
=
'-'
;
uuid
[
14
]
=
'4'
;
for
(
i
=
0
;
i
<
36
;
i
++
)
{
if
(
!
uuid
[
i
])
{
r
=
0
|
Math
.
random
()
*
16
;
uuid
[
i
]
=
chars
[(
i
==
19
)
?
(
r
&
0x3
)
|
0x8
:
r
];
}
}
}
return
uuid
.
join
(
''
);
}
static
microsetting
()
{
console
.
log
(
settings
.
env
,
"-------------- microsetting env ------------------"
);
var
path
=
"/api/op/action/springboard"
;
if
(
settings
.
env
==
"dev"
)
{
// var domain = "http://192.168.18.237";
let
local
=
"http://127.0.0.1"
;
let
dev
=
"http://39.107.234.14"
;
return
{
// 公共服务
common
:
dev
+
":3102"
+
path
,
// common: "http://127.0.0.1:3102" + path,
// 商户服务
merchant
:
dev
+
":3101"
+
path
,
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order
:
dev
+
":3103"
+
path
,
// order: "http://127.0.0.1:3103" + path,
// 发票服务
invoice
:
dev
+
":3105"
+
path
,
// invoice: "http://127.0.0.1:3105" + path,
// 用户服务
uc
:
dev
+
":3106"
+
path
,
// uc: "http://127.0.0.1:3106" + path,
// 交易
trade
:
local
+
":3107"
+
path
,
// uc: "http://127.0.0.1:3106" + path,
}
}
else
{
var
odomain
=
"http://123.57.217.203"
return
{
common
:
"xggsvecommon-service"
+
path
,
merchant
:
"xggsvemerchant-service"
+
path
,
order
:
"xggsveorder-service"
+
path
,
invoice
:
"xggsveinvoice-service"
+
path
,
uc
:
"xggsveuc-service"
+
path
,
trade
:
"xggsvetrade-service"
+
path
,
}
}
}
=======
static
declare
(
ns
)
{
var
ar
=
ns
.
split
(
'.'
);
var
root
=
System
;
...
...
@@ -394,27 +176,21 @@ class System {
return
{
// 公共服务
common
:
dev
+
":3102"
+
path
,
// common: "http://127.0.0.1:3102" + path,
// 商户服务
merchant
:
dev
+
":3101"
+
path
,
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
// order: dev + ":3103" + path,
order
:
"http://127.0.0.1:3103"
+
path
,
order
:
dev
+
":3103"
+
path
,
// 发票服务
invoice
:
dev
+
":3105"
+
path
,
// invoice: "http://127.0.0.1:3105" + path,
// 用户服务
uc
:
dev
+
":3106"
+
path
,
// uc: "http://127.0.0.1:3106" + path,
// 交易
trade
:
local
+
":3107"
+
path
,
// uc: "http://127.0.0.1:3106" + path,
}
}
else
{
var
odomain
=
"http://123.57.217.203"
...
...
@@ -428,7 +204,6 @@ class System {
}
}
}
>>>>>>>
70
dd4d6a06ce8b5666709fec7981da46532606aa
}
Date
.
prototype
.
Format
=
function
(
fmt
)
{
//author: meizz
...
...
xgg-saas-merchant/app/front/entry/public/apidoc/README.md
View file @
33683f42
...
...
@@ -22,6 +22,8 @@
## 交易管理
1
[
交易接口
](
/doc/saas/trade.md
)
## 报表管理
1
[
账期
](
/doc/tax/tax.md
)
## 小程序接口
1
[
登录
](
/doc/applet/login.md
)
...
...
xgg-saas-merchant/app/front/entry/public/apidoc/tax/tax.md
0 → 100644
View file @
33683f42
<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
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"code"
:
"1"
,
"data"
:
{
"reportData"
:
[
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"一、营业收入"
,
"lineNo"
:
1
,
"sort"
:
10
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"减:营业成本"
,
"lineNo"
:
2
,
"sort"
:
20
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"税金及附加"
,
"lineNo"
:
3
,
"sort"
:
30
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"销售费用"
,
"lineNo"
:
4
,
"sort"
:
40
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"管理费用"
,
"lineNo"
:
5
,
"sort"
:
50
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"研发费用"
,
"lineNo"
:
6
,
"sort"
:
55
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"财务费用"
,
"lineNo"
:
7
,
"sort"
:
60
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"其中:利息费用"
,
"lineNo"
:
8
,
"sort"
:
64
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"利息收入"
,
"lineNo"
:
9
,
"sort"
:
68
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"其他收益"
,
"lineNo"
:
10
,
"sort"
:
100
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"投资收益(损失以“-”号填列)"
,
"lineNo"
:
11
,
"sort"
:
110
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"其中:对联营企业和合营企业的投资收益"
,
"lineNo"
:
12
,
"sort"
:
120
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"加:公允价值变动收益(损失以“-”号填列)"
,
"lineNo"
:
13
,
"sort"
:
130
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"资产减值损失(损失以“-”号填列)"
,
"lineNo"
:
14
,
"sort"
:
140
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"资产处置收益(损失以“-”号填列)"
,
"lineNo"
:
15
,
"sort"
:
150
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"二、营业利润(亏损以“-”号填列)"
,
"lineNo"
:
16
,
"sort"
:
160
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"加:营业外收入"
,
"lineNo"
:
17
,
"sort"
:
170
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"减:营业外支出"
,
"lineNo"
:
18
,
"sort"
:
180
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"三、利润总额(亏损以“-”号填列)"
,
"lineNo"
:
19
,
"sort"
:
190
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"减:所得税费用"
,
"lineNo"
:
20
,
"sort"
:
200
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"四、净利润(净亏损以“-”号填列)"
,
"lineNo"
:
21
,
"sort"
:
210
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(一)持续经营净利润(净亏损以“-”号填列)"
,
"lineNo"
:
22
,
"sort"
:
220
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(二)终止经营净利润(净亏损以“-”号填列)"
,
"lineNo"
:
23
,
"sort"
:
230
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"五、其他综合收益的税后净额"
,
"lineNo"
:
24
,
"sort"
:
240
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"(一)以后不能重分类进损益的其他综合收益"
,
"lineNo"
:
25
,
"sort"
:
250
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"1.重新计量设定收益计划净负债或净资产的变动"
,
"lineNo"
:
26
,
"sort"
:
260
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"2.权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
,
"lineNo"
:
27
,
"sort"
:
270
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"……"
,
"lineNo"
:
28
,
"sort"
:
280
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"(二)以后将重分类进损益的其他综合收益"
,
"lineNo"
:
29
,
"sort"
:
290
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"1.权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
,
"lineNo"
:
30
,
"sort"
:
300
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"2.可供出售金融资产公允价值变动损益"
,
"lineNo"
:
31
,
"sort"
:
310
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"3.持有至到期投资重分类可供出售金融资产损益"
,
"lineNo"
:
32
,
"sort"
:
320
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"4.现金流经套期损益的有效部分"
,
"lineNo"
:
33
,
"sort"
:
330
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"5.外币财务报表折算差额"
,
"lineNo"
:
34
,
"sort"
:
340
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"……"
,
"lineNo"
:
35
,
"sort"
:
350
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"六、综合收益总额"
,
"lineNo"
:
36
,
"sort"
:
360
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
0
,
"itemName"
:
"七、每股收益:"
,
"lineNo"
:
37
,
"sort"
:
370
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(一)基本每股收益"
,
"lineNo"
:
38
,
"sort"
:
380
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(二)稀释每股收益"
,
"lineNo"
:
39
,
"sort"
:
390
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
}
]
}
},
"bizmsg"
:
"empty"
}
```
## **<a name="getReportDataQuarter"> 季度账期</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/tax/taxCtl/getReportDataQuarter
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"companyId"
:
102
,
//公司ID
"customerId"
:
498779
,
//客户IDd
"desc"
:
"string"
,
//描述 默认 string
"endPeriod"
:
202003
,
//结束期限
"reportType"
:
2
,
//账期类型 默认2
"signWithoutKey"
:
"string"
,
"startPeriod"
:
202001
//开始期限
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"code"
:
"1"
,
"data"
:
{
"reportData"
:
[
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"一、营业收入"
,
"lineNo"
:
1
,
"sort"
:
10
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"减:营业成本"
,
"lineNo"
:
2
,
"sort"
:
20
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"税金及附加"
,
"lineNo"
:
3
,
"sort"
:
30
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"销售费用"
,
"lineNo"
:
4
,
"sort"
:
40
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"管理费用"
,
"lineNo"
:
5
,
"sort"
:
50
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"研发费用"
,
"lineNo"
:
6
,
"sort"
:
55
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"财务费用"
,
"lineNo"
:
7
,
"sort"
:
60
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"其中:利息费用"
,
"lineNo"
:
8
,
"sort"
:
64
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"利息收入"
,
"lineNo"
:
9
,
"sort"
:
68
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"其他收益"
,
"lineNo"
:
10
,
"sort"
:
100
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"投资收益(损失以“-”号填列)"
,
"lineNo"
:
11
,
"sort"
:
110
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"其中:对联营企业和合营企业的投资收益"
,
"lineNo"
:
12
,
"sort"
:
120
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"加:公允价值变动收益(损失以“-”号填列)"
,
"lineNo"
:
13
,
"sort"
:
130
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"资产减值损失(损失以“-”号填列)"
,
"lineNo"
:
14
,
"sort"
:
140
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"资产处置收益(损失以“-”号填列)"
,
"lineNo"
:
15
,
"sort"
:
150
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"二、营业利润(亏损以“-”号填列)"
,
"lineNo"
:
16
,
"sort"
:
160
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"加:营业外收入"
,
"lineNo"
:
17
,
"sort"
:
170
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"减:营业外支出"
,
"lineNo"
:
18
,
"sort"
:
180
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"三、利润总额(亏损以“-”号填列)"
,
"lineNo"
:
19
,
"sort"
:
190
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"减:所得税费用"
,
"lineNo"
:
20
,
"sort"
:
200
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"四、净利润(净亏损以“-”号填列)"
,
"lineNo"
:
21
,
"sort"
:
210
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(一)持续经营净利润(净亏损以“-”号填列)"
,
"lineNo"
:
22
,
"sort"
:
220
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(二)终止经营净利润(净亏损以“-”号填列)"
,
"lineNo"
:
23
,
"sort"
:
230
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"五、其他综合收益的税后净额"
,
"lineNo"
:
24
,
"sort"
:
240
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"(一)以后不能重分类进损益的其他综合收益"
,
"lineNo"
:
25
,
"sort"
:
250
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"1.重新计量设定收益计划净负债或净资产的变动"
,
"lineNo"
:
26
,
"sort"
:
260
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"2.权益法下在被投资单位不能重分类进损益的其他综合收益中享有的份额"
,
"lineNo"
:
27
,
"sort"
:
270
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"……"
,
"lineNo"
:
28
,
"sort"
:
280
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"(二)以后将重分类进损益的其他综合收益"
,
"lineNo"
:
29
,
"sort"
:
290
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"1.权益法下在被投资单位以后将重分类进损益的其他综合收益中享有的份额"
,
"lineNo"
:
30
,
"sort"
:
300
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"2.可供出售金融资产公允价值变动损益"
,
"lineNo"
:
31
,
"sort"
:
310
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"3.持有至到期投资重分类可供出售金融资产损益"
,
"lineNo"
:
32
,
"sort"
:
320
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"4.现金流经套期损益的有效部分"
,
"lineNo"
:
33
,
"sort"
:
330
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"5.外币财务报表折算差额"
,
"lineNo"
:
34
,
"sort"
:
340
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"……"
,
"lineNo"
:
35
,
"sort"
:
350
,
"style"
:
{
"indent"
:
"2"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
1
,
"itemName"
:
"六、综合收益总额"
,
"lineNo"
:
36
,
"sort"
:
360
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
0
,
"itemName"
:
"七、每股收益:"
,
"lineNo"
:
37
,
"sort"
:
370
,
"style"
:
{
"indent"
:
"0"
,
"bold"
:
"1"
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(一)基本每股收益"
,
"lineNo"
:
38
,
"sort"
:
380
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
},
{
"column"
:
1
,
"formulaType"
:
2
,
"itemName"
:
"(二)稀释每股收益"
,
"lineNo"
:
39
,
"sort"
:
390
,
"style"
:
{
"indent"
:
"1"
,
"bold"
:
""
},
"value"
:
[
0
,
0
]
}
]
}
},
"bizmsg"
:
"empty"
}
```
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