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
aad4fde1
Commit
aad4fde1
authored
Aug 02, 2024
by
xiao-hesheng
Browse files
优化调整脚本
parent
a42105e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b2流程九请领业务流_二级库向中心库.air/a_b2流程九请领业务流_二级库向中心库.py
View file @
aad4fde1
...
@@ -163,7 +163,8 @@ def BuyCarSubmit():
...
@@ -163,7 +163,8 @@ def BuyCarSubmit():
print
(
'请领车查询================='
,
url
)
print
(
'请领车查询================='
,
url
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
areaCode
=
get_stockAreaId_new
(
deptid2
,
deptname2
,
2
)
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2)
areaCode
=
get_stockAreaId_new_fromDb
(
deptname2
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid2
)
print
(
'请领车查询'
,
'request_body'
,
request_body
)
print
(
'请领车查询'
,
'request_body'
,
request_body
)
...
...
air_case/b5_spd3_core_business_flow/a_b3流程十请领业务流_二级库向边仓.air/a_b3流程十请领业务流_二级库向边仓.py
View file @
aad4fde1
...
@@ -194,7 +194,8 @@ def BuyCarSubmit():
...
@@ -194,7 +194,8 @@ def BuyCarSubmit():
print
(
'请领车查询================='
,
url
)
print
(
'请领车查询================='
,
url
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
areaCode
=
get_stockAreaId_new
(
deptid2
,
deptname2
,
2
)
# areaCode = get_stockAreaId_new(deptid2, deptname2, 2)
areaCode
=
get_stockAreaId_new_fromDb
(
deptname2
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid2
)
print
(
'请领车查询'
,
'request_body'
,
request_body
)
print
(
'请领车查询'
,
'request_body'
,
request_body
)
...
...
air_case/public1/public1/public1.py
View file @
aad4fde1
...
@@ -652,6 +652,7 @@ def get_udi1(type=1): # 库存明细查询获取条码
...
@@ -652,6 +652,7 @@ def get_udi1(type=1): # 库存明细查询获取条码
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
data1
=
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
data1
=
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
total
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
total
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
if
total
>=
1
:
if
total
>=
1
:
# pkgcode = data1['pkgCodeSee']
# pkgcode = data1['pkgCodeSee']
# pkgcode1 = pkgcode[0:20]
# pkgcode1 = pkgcode[0:20]
...
...
data/b5_spd3_core_business_flow/message13
View file @
aad4fde1
...
@@ -8,21 +8,21 @@
...
@@ -8,21 +8,21 @@
taskType
:
1
taskType
:
1
sourceOrgId
:
p1e37e
sourceOrgId
:
p1e37e
sourceOrgName
:
国药集团公司sya!$
sourceOrgName
:
国药集团公司sya!$
sourceOrderNo
:
PSh034720240802001
1
sourceOrderNo
:
PSh034720240802001
5
billMode
:
'25'
billMode
:
'25'
stockKind
:
stockKind
:
purMode
:
purMode
:
sourceId
:
PSh034720240802001
1
sourceId
:
PSh034720240802001
5
sourceDetailId
:
sourceDetailId
:
sourceType
:
PSD
sourceType
:
PSD
sourceTypeName
:
配送单
sourceTypeName
:
配送单
sourceVersion
:
1
sourceVersion
:
1
planOrderNo
:
SSSQ2024080203
69
planOrderNo
:
SSSQ2024080203
75
purOrderNo
:
SSTZ2024080203
47
purOrderNo
:
SSTZ2024080203
50
recOrgId
:
ea59fe790acd41719499e7278b8bb50b
recOrgId
:
ea59fe790acd41719499e7278b8bb50b
recOrgName
:
二级检验科002
recOrgName
:
二级检验科002
billRelationJson
:
'{"operationApplyOrderNo":"SSSQ2024080203
69
","operationNoticeBillId":"Nh03472024080200000
2
","distrBillId":"PSh034720240802001
1
","operationNoticeOrderNo":"SSTZ2024080203
47
","distrOrderNo":"PSh034720240802001
1
","operationApplyBillId":"Oh03472024080200000
2
"}'
billRelationJson
:
'{"operationApplyOrderNo":"SSSQ2024080203
75
","operationNoticeBillId":"Nh03472024080200000
5
","distrBillId":"PSh034720240802001
5
","operationNoticeOrderNo":"SSTZ2024080203
50
","distrOrderNo":"PSh034720240802001
5
","operationApplyBillId":"Oh03472024080200000
8
"}'
taskDate
:
'2024-08-02 1
4
:09:
0
4'
taskDate
:
'2024-08-02 1
5
:09:4
7
'
taskDateStart
:
taskDateStart
:
taskDateEnd
:
taskDateEnd
:
billModeList
:
billModeList
:
...
...
data/b5_spd3_core_business_flow/message15
View file @
aad4fde1
验收单号
:
验收单号
:
CHECK_NO1
:
CHECKh0347202408020001
0
CHECK_NO1
:
CHECKh0347202408020001
3
CHECK_NO2
:
CHECKh0347202408020001
0
CHECK_NO2
:
CHECKh0347202408020001
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