Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
test-long
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c6824af1
authored
Oct 08, 2019
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
init
parent
3ed58533
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
web2erp_track.py
web2erp_track.py
View file @
c6824af1
...
...
@@ -19,7 +19,7 @@ class web2erp_track(base):
'''跟踪订单明细的采购轨迹'''
def
__init__
(
self
,
data
=
None
):
super
()
.
__init__
(
data
)
self
.
needupdate_url
=
self
.
CommonConf
.
order_api_url
+
'/
order/track/needupdate
'
self
.
needupdate_url
=
self
.
CommonConf
.
order_api_url
+
'/
ag/bdfdf/cdd
'
self
.
create_url
=
self
.
CommonConf
.
order_api_url
+
'/order/track/create'
self
.
audit_url
=
self
.
CommonConf
.
order_api_url
+
'/order/getrecaudit'
self
.
request
=
Request
()
...
...
@@ -35,6 +35,7 @@ class web2erp_track(base):
try
:
self
.
publish
()
except
EmptyException
as
e
:
self
.
needupdate_url
=
self
.
CommonConf
.
order_api_url
+
'/order/track/needupdate'
pass
except
Exception
as
e
:
self
.
elkReport
(
'订单明细轨迹推送任务失败'
)
...
...
@@ -70,20 +71,7 @@ class web2erp_track(base):
res
=
self
.
request
.
postUrl
(
self
.
audit_url
,
{
'rec_id'
:
body_arr
[
'rec_id'
]})
if
None
==
res
:
raise
Exception
(
'rec_id
%
s,请求查询审核接口失败'
%
(
body_arr
[
'rec_id'
],
))
audit_arr
=
json
.
loads
(
res
)
if
audit_arr
[
'errcode'
]
!=
0
:
raise
Exception
(
audit_arr
[
'errmsg'
])
#记录审核数据
post
.
append
({
'rec_id'
:
body_arr
[
'rec_id'
],
'order_id'
:
body_arr
[
'order_id'
],
'order_goods_type'
:
body_arr
[
'order_goods_type'
],
'track_type'
:
1
,
'track_num'
:
audit_arr
[
'data'
][
'goods_number'
],
'create_name'
:
audit_arr
[
'data'
][
'sale_name'
],
'create_time'
:
audit_arr
[
'data'
][
'confirm_time'
],
'relevance_sn'
:
audit_arr
[
'data'
][
'order_sn'
],
})
#ERP查询轨迹
data
=
{
...
...
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