Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
e2f9c39b
Commit
e2f9c39b
authored
Jun 13, 2024
by
xiao-hesheng
Browse files
流程十二脚本编写
parent
5acad283
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b6流程十三请领业务流_三级库向二级库.air/a_b6流程十三请领业务流_三级库向二级库.py
View file @
e2f9c39b
...
@@ -200,10 +200,6 @@ def BuyCarSubmit():
...
@@ -200,10 +200,6 @@ def BuyCarSubmit():
currentTaskList
=
commonFuc
().
analysis_json
(
'currentTaskList'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
currentTaskList
=
commonFuc
().
analysis_json
(
'currentTaskList'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
def
edit_goods_target
(
currentDeptId
,
targetDeptId
):
def
edit_goods_target
(
currentDeptId
,
targetDeptId
):
module
=
"b2_herp3_bs"
module
=
"b2_herp3_bs"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
# # 登录获取用户id等信息,使用创建的用户登录===========开始
...
@@ -307,24 +303,24 @@ def pick_execute():
...
@@ -307,24 +303,24 @@ def pick_execute():
udi_code
=
'udi_code'
udi_code
=
'udi_code'
print
(
'udi_code'
,
udi_code
)
print
(
'udi_code'
,
udi_code
)
if
purMode
==
10
:
if
purMode
==
10
:
targetAreaCode
,
sourceId
=
pickScan2
(
BH_ID
,
udi_code
,
1
)
# 低值
targetAreaCode
,
sourceId
=
pickScan2
(
BH_ID
,
udi_code
,
1
)
# 低值
elif
purMode
==
20
:
elif
purMode
==
20
:
targetAreaCode
,
sourceId
=
pickScan2
(
BH_ID
,
udi_code
,
2
)
# 高值
targetAreaCode
,
sourceId
=
pickScan2
(
BH_ID
,
udi_code
,
2
)
# 高值
elif
purMode
==
60
:
elif
purMode
==
60
:
targetAreaCode
,
sourceId
=
pickScan2
(
BH_ID
,
udi_code
,
3
)
# 试剂
targetAreaCode
,
sourceId
=
pickScan2
(
BH_ID
,
udi_code
,
3
)
# 试剂
else
:
else
:
targetAreaCode
=
'targetAreaCode'
targetAreaCode
=
'targetAreaCode'
sourceId
=
'sourceId'
sourceId
=
'sourceId'
# 提交领用出库单
# 提交领用出库单
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_stock_out_use_submit_url"
)
"herpService_stock_out_use_submit_url"
)
print
(
'提交拣货执行单================='
,
url
)
print
(
'提交拣货执行单================='
,
url
)
if
purMode
==
10
:
if
purMode
==
10
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_1"
,
targetAreaCode
,
sourceId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_1"
,
targetAreaCode
,
sourceId
)
elif
purMode
==
20
:
elif
purMode
==
20
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_2"
,
targetAreaCode
,
sourceId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_2"
,
targetAreaCode
,
sourceId
)
elif
purMode
==
60
:
elif
purMode
==
60
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_3"
,
targetAreaCode
,
sourceId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload51_1_3"
,
targetAreaCode
,
sourceId
)
print
(
'提交拣货执行单'
,
'request_body'
,
request_body
)
print
(
'提交拣货执行单'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
...
@@ -339,8 +335,8 @@ try:
...
@@ -339,8 +335,8 @@ try:
set_dept_lead_new
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid3"
])
# 设置二级科室负责人
set_dept_lead_new
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid3"
])
# 设置二级科室负责人
get_stockAreaId_new
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
],
get_stockAreaId_new
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid3'
],
3
)
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid3'
],
3
)
set_stockShelf_Linkman
()
#
设置库区联系人
set_stockShelf_Linkman
()
#
设置库区联系人
#三级科室产品分配
#
三级科室产品分配
dept_goods_distribute
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
])
dept_goods_distribute
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
])
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
3
))
# 设置登录账号默认权限是三级库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
3
))
# 设置登录账号默认权限是三级库
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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