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
6588bcce
Commit
6588bcce
authored
Sep 29, 2020
by
v_vjyjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
1f27668f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
+28
-2
tx-fi-tax/app/base/utils/toFtClient.js
+1
-1
No files found.
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
6588bcce
...
@@ -401,6 +401,7 @@ class DeliverybillCtl extends CtlBase {
...
@@ -401,6 +401,7 @@ class DeliverybillCtl extends CtlBase {
async
receivePaperPost
(
pobj
,
qobj
,
req
)
{
async
receivePaperPost
(
pobj
,
qobj
,
req
)
{
console
.
log
(
"融易算接收票据快递单号参数--------------------------"
,
JSON
.
stringify
(
pobj
));
console
.
log
(
"融易算接收票据快递单号参数--------------------------"
,
JSON
.
stringify
(
pobj
));
var
deliverInfo
=
await
this
.
service
.
getInfo
({
"bizId"
:
pobj
.
actionBody
.
bizNo
});
var
deliverInfo
=
await
this
.
service
.
getInfo
({
"bizId"
:
pobj
.
actionBody
.
bizNo
});
console
.
log
(
"融易算接收票据快递单号deliverInfo------------------"
,
JSON
.
stringify
(
deliverInfo
));
if
(
deliverInfo
)
{
if
(
deliverInfo
)
{
var
param
=
{
var
param
=
{
companyId
:
deliverInfo
.
deliveryBillInfo
.
deliveryInfo
.
setupInfo
.
supplier
,
//租户信息
companyId
:
deliverInfo
.
deliveryBillInfo
.
deliveryInfo
.
setupInfo
.
supplier
,
//租户信息
...
@@ -411,8 +412,10 @@ class DeliverybillCtl extends CtlBase {
...
@@ -411,8 +412,10 @@ class DeliverybillCtl extends CtlBase {
courierNumber
:
pobj
.
actionBody
.
expressNum
courierNumber
:
pobj
.
actionBody
.
expressNum
}
}
param
.
sign
=
await
toFtClient
.
postToFtBySign
(
"/customerReceiveBill/addCusReceiveBill"
,
param
.
companyId
);
param
.
sign
=
await
toFtClient
.
postToFtBySign
(
"/customerReceiveBill/addCusReceiveBill"
,
param
.
companyId
);
console
.
log
(
"融易算接收票据快递单号param.sign------------------"
,
param
.
sign
);
var
rc
=
this
.
getObject
(
"util.execClient"
);
var
rc
=
this
.
getObject
(
"util.execClient"
);
var
reqUrl
=
settings
.
ftConfig
.
url
+
"/customerReceiveBill/addCusReceiveBill"
;
var
reqUrl
=
settings
.
ftConfig
.
url
+
"/customerReceiveBill/addCusReceiveBill"
;
console
.
log
(
"调代账系统参数--------------------------"
,
JSON
.
stringify
(
param
));
var
result
=
await
rc
.
execPost
(
param
,
reqUrl
);
var
result
=
await
rc
.
execPost
(
param
,
reqUrl
);
var
j
=
JSON
.
parse
(
result
.
stdout
);
var
j
=
JSON
.
parse
(
result
.
stdout
);
console
.
log
(
"融易算接收票据快递单号返回结果--------------------------"
,
JSON
.
stringify
(
j
));
console
.
log
(
"融易算接收票据快递单号返回结果--------------------------"
,
JSON
.
stringify
(
j
));
...
@@ -497,4 +500,27 @@ class DeliverybillCtl extends CtlBase {
...
@@ -497,4 +500,27 @@ class DeliverybillCtl extends CtlBase {
}
}
}
}
module
.
exports
=
DeliverybillCtl
;
module
.
exports
=
DeliverybillCtl
;
\ No newline at end of file
// var task = new DeliverybillCtl();
// var obj={
// "actionType": "receivePaperPost",
// "identifyCode": "book-manage",
// "actionBody": {
// "accountDate": "2020-08",
// "bizNo": "S20200922115649144715",
// "companyId": "241",
// "expressNum": "KD1234566",
// "postWay": 2,
// "requestId": "33db6955-0cf2-4726-bfe5-6aa74e456004",
// "topOrgCode": "gong_si_bao"
// },
// "requestId": "MQ-202009281634woz6B",
// "clientIp": "172.26.176.47",
// "agent": "curl/7.29.0",
// "classname": "bizchance.deliverybillCtl",
// "isPrincipal": false
// }
// task.receivePaperPost(obj,{},{}).then(d=>{
// console.log(JSON.stringify(d));
// })
\ No newline at end of file
tx-fi-tax/app/base/utils/toFtClient.js
View file @
6588bcce
...
@@ -76,7 +76,7 @@ const getChannelCompany = async (id) => {
...
@@ -76,7 +76,7 @@ const getChannelCompany = async (id) => {
...
reqData
,
...
reqData
,
sign
sign
});
});
companyData
=
companyData
.
datas
;
companyData
=
companyData
.
data
.
data
s
;
if
(
id
)
{
if
(
id
)
{
companyData
=
_
.
find
(
companyData
,
(
item
)
=>
{
companyData
=
_
.
find
(
companyData
,
(
item
)
=>
{
return
item
.
id
===
id
return
item
.
id
===
id
...
...
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