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
140406c8
Commit
140406c8
authored
Sep 18, 2020
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 推送财税 参数 转换
parent
5d11bc40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
tx-fi-tax/app/base/utils/toFtClient.js
+6
-7
No files found.
tx-fi-tax/app/base/utils/toFtClient.js
View file @
140406c8
...
...
@@ -59,7 +59,7 @@ const postToFtBySign = async (url, data, headers = {}) => {
let
tenantInfo
=
await
getChannelCompany
(
data
.
companyId
);
data
.
companyId
=
tenantInfo
.
id
;
let
sign
=
system
.
signValid
(
data
,
tenantInfo
.
signSecret
);
var
res
=
postRequest
(
`
${
ftConfig
.
url
}${
url
}
`
,
{
...
data
,
sign
},
headers
=
{});
var
res
=
await
postRequest
(
`
${
ftConfig
.
url
}${
url
}
`
,
{
...
data
,
sign
},
headers
=
{});
console
.
log
(
"postToFtBySign:res--------------------------------------"
+
JSON
.
stringify
(
res
));
return
res
;
}
...
...
@@ -85,7 +85,7 @@ const getChannelCompany = async (id) => {
throw
new
Error
(
"查不到租户信息"
);
}
}
console
.
log
(
"getChannelCompany:companyData------------------------------------------"
+
companyData
);
console
.
log
(
"getChannelCompany:companyData------------------------------------------"
+
companyData
);
return
companyData
;
}
...
...
@@ -100,9 +100,8 @@ const addCusAccApplyInfo = async (deliverData, pobj) => {
"企业会计准则"
:
2
}
const
valueAddedTax
=
{
"小规模纳税人"
:
0
,
"一般纳税人"
:
1
,
"个体工商户"
:
2
"smallScaleTaxpayer"
:
0
,
"generalTaxpayer"
:
1
,
}
let
reqData
=
{
accountStandard
:
accountStandard
[
pobj
.
accountingType
],
...
...
@@ -153,9 +152,9 @@ const feedbackToRys = async (data) => {
},
requestId
:
uuidv4
()
});
console
.
log
(
"resData--------------------------"
,
JSON
.
stringify
(
resData
));
console
.
log
(
"resData--------------------------"
,
JSON
.
stringify
(
resData
));
if
(
resData
.
status
!==
0
)
{
console
.
log
(
"resData.msg--------------------------"
+
resData
.
msg
+
"-------------------------msg"
);
console
.
log
(
"resData.msg--------------------------"
+
resData
.
msg
+
"-------------------------msg"
);
throw
new
Error
(
resData
.
msg
)
}
}
...
...
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