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
a404733a
Commit
a404733a
authored
Aug 28, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
ac16f098
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletions
+47
-1
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
+46
-0
tx-fi-tax/app/base/controller/impl/bizchance/fitaxpushqueueCtl.js
+1
-1
No files found.
tx-fi-tax/app/base/controller/impl/bizchance/deliverybillCtl.js
View file @
a404733a
var
system
=
require
(
"../../../system"
);
const
http
=
require
(
"http"
);
const
uuidv4
=
require
(
'uuid/v4'
);
const
querystring
=
require
(
'querystring'
);
const
sha235
=
require
(
"sha256"
);
var
settings
=
require
(
"../../../../config/settings"
);
...
...
@@ -363,6 +364,50 @@ class DeliverybillCtl extends CtlBase {
}
}
//接收票据快递单号
async
receivePaperPost
(
pobj
,
qobj
,
req
)
{
var
param
=
{
companyId
:
""
,
//租户信息
customerName
:
""
,
//客户信息(帐套)
sign
:
""
,
//签名
postWay
:
"2"
,
currentPeriod
:
pobj
.
actionBody
.
accountDate
,
courierNumber
:
pobj
.
actionBody
.
expressNum
}
var
rc
=
this
.
getObject
(
"util.execClient"
);
var
reqUrl
=
settings
.
ftConfig
.
url
+
"/customerReceiveBill/addCusReceiveBill"
;
var
result
=
await
rc
.
execPost
(
param
,
reqUrl
);
var
j
=
JSON
.
parse
(
result
.
stdout
);
return
result
;
}
//票据快递情况反馈
async
confirmPaperPost
(
pobj
,
qobj
,
req
)
{
var
param
=
{
bizNo
:
pobj
.
customer_id
,
//需要根据客户id获取服务示例号
accountDate
:
pobj
.
current_period
,
status
:
pobj
.
status
,
errorStatus
:
-
1
}
if
(
pobj
.
remark
)
{
param
.
remark
=
pobj
.
remark
;
if
(
pobj
.
remark
.
includes
(
"进销项发票不全"
))
{
param
.
errorStatus
=
1
;
}
}
var
pushObj
=
{
pushUrl
:
this
.
rysUrl
+
"service/paperPost/confirm"
,
actionType
:
"confirm"
,
messageBody
:
param
,
headData
:
{
'Source'
:
'GSB'
},
requestId
:
uuidv4
()
}
return
system
.
queueOper
(
pushObj
);
}
}
module
.
exports
=
DeliverybillCtl
;
\ No newline at end of file
tx-fi-tax/app/base/controller/impl/bizchance/fitaxpushqueueCtl.js
View file @
a404733a
...
...
@@ -65,5 +65,5 @@ class FitaxpushqueueCtl extends CtlBase {
}
}
}
module
.
exports
=
f
itaxpushqueueCtl
;
module
.
exports
=
F
itaxpushqueueCtl
;
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