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
f74ae755
Commit
f74ae755
authored
Jun 17, 2024
by
xiao-hesheng
Browse files
流程十四脚本编写
parent
e21778d8
Changes
36
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b6流程十三请领业务流_三级库向二级库.air/a_b6流程十三请领业务流_三级库向二级库.py
View file @
f74ae755
...
...
@@ -336,7 +336,7 @@ try:
get_stockAreaId_new
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid3'
],
3
)
set_stockShelf_Linkman
()
# 设置库区联系人
#
三级科室产品分配
#三级科室产品分配
dept_goods_distribute
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
])
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
3
))
# 设置登录账号默认权限是三级库
...
...
@@ -349,8 +349,8 @@ try:
BuyCarSubmit
()
# 请领车提交
for
i
in
range
(
6
):
# 三个单据共审批6次
approval_center
()
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
#
设置登录账号默认权限是二级库
#
二级科室领用出库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
#设置登录账号默认权限是二级库
#二级科室领用出库
# 低值拣货执行
pick_execute
()
second_dept_one_key_in
(
3
)
...
...
air_case/b5_spd3_core_business_flow/a_b9流程十六退库业务_二级库向一级库退库.air/a_b9流程十六退库业务_二级库向一级库退库.py
View file @
f74ae755
...
...
@@ -553,18 +553,17 @@ def second_dept_return_Out_Stock(type): # 二级库退库出库
try
:
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
#
设置登录账号默认权限是二级库
second_dept_return_Out_Stock
(
2
)
#高值耗材退货出库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
#
设置登录账号默认权限是二级库
second_dept_return_Out_Stock
(
2
)
#高值耗材退货出库
approval_center
()
#审批
putaway
()
#中心库上架
second_dept_return_Out_Stock
(
1
)
#低值耗材退货出库
second_dept_return_Out_Stock
(
1
)
#低值耗材退货出库
approval_center
()
# 审批
putaway
()
# 中心库上架
second_dept_return_Out_Stock
(
3
)
#试剂耗材退货出库
second_dept_return_Out_Stock
(
3
)
#试剂耗材退货出库
approval_center
()
#审批
putaway
()
#中心库上架
# ===============上面调通了================================
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
air_case/b5_spd3_core_business_flow/a_c0流程十七退货业务 中心库退供应商.air/a_c0流程十七退货业务 中心库退供应商.py
View file @
f74ae755
...
...
@@ -149,7 +149,7 @@ def putaway():
def
second_
dept
_return_Out
_Stock
(
type
):
#
二级库退库出库
def
second_
center_Stock
_return_Out
(
type
):
#
中心库退供应商
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
...
...
@@ -165,7 +165,7 @@ def second_dept_return_Out_Stock(type): # 二级库退库出库
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
if
type
==
2
:
udi_code
=
get_udi
2
(
2
)
# 获取条码 低值1 高值2 试剂3
udi_code
=
get_udi
1
(
2
)
# 获取条码 低值1 高值2 试剂3
# 高值退库出库
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
...
...
@@ -250,7 +250,6 @@ def second_dept_return_Out_Stock(type): # 二级库退库出库
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"dept_stock_out_submit_url"
)
deptid1
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid1"
]
deptName2
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室name'
,
'message6'
)[
"deptid2"
]
stockName2
=
deptName2
+
"库房"
...
...
@@ -269,7 +268,6 @@ def second_dept_return_Out_Stock(type): # 二级库退库出库
# print(orgCode1, orgName1)
# import pdb
# pdb.set_trace()
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_3"
,
stockId
,
deptId2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
uxid
,
userLoginCode
,
cname
,
get_hosid
(),
get_branch_id
(),
...
...
@@ -553,17 +551,16 @@ def second_dept_return_Out_Stock(type): # 二级库退库出库
try
:
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
# 设置登录账号默认权限是二级库
second_dept_return_Out_Stock
(
2
)
#高值耗材退货出库
approval_center
()
#审批
putaway
()
#中心库上架
second_dept_return_Out_Stock
(
1
)
#低值耗材退货出库
approval_center
()
# 审批
putaway
()
# 中心库上架
second_dept_return_Out_Stock
(
3
)
#试剂耗材退货出库
approval_center
()
#审批
putaway
()
#中心库上架
# ===============上面调通了================================
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
1
))
# 设置登录账号默认权限是二级库
second_center_Stock_return_Out
(
2
)
#高值耗材退货出库
# approval_center()#审批
# putaway()#中心库上架
# second_center_Stock_return_Out(1) #低值耗材退货出库
# approval_center() # 审批
# putaway() # 中心库上架
# second_center_Stock_return_Out(3) #试剂耗材退货出库
# approval_center()#审批
# putaway()#中心库上架
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
...
...
data/a2_mdm3_ea/message
View file @
f74ae755
企业信息:
e_id: CR2024061
3
0038
cname: 国药集团公司
K19@c
e_id: CR2024061
7
0038
cname: 国药集团公司
7X@tw
data/a3_mdm3_hs/message
View file @
f74ae755
医院信息:
h_id: 湖南省人民医院
CFrY0
h_name: 湖南省人民医院
CFrY0
h_id: 湖南省人民医院
HRwjx
h_name: 湖南省人民医院
HRwjx
data/a5_mdm3_pdm/message2
View file @
f74ae755
产品审核信息
:
MSPid
:
MSP24061
3
0011_1
MSPid
:
MSP24061
7
0011_1
hosId
:
h0347
hosGoodsId
:
h034700004
093
provGoodsid
:
provGood-99221
28
0
goodsAuditBillId
:
MSP24061
3
0011
targetId
:
MSP24061
3
0011_1
hosGoodsId
:
h034700004
152
provGoodsid
:
provGood-99221
34
0
goodsAuditBillId
:
MSP24061
7
0011
targetId
:
MSP24061
7
0011_1
data/a6_mdm3_si/message
View file @
f74ae755
结算开票信息:
list_a:
- &id001
settleMonth: '20240
6
'
pid: OBh03472024061
3
0004
hosGoodsId: h034700004
090
goodsCode: '00004
090
'
goodsName: 一次性注射器_低值
6Vcb1
settleMonth: '20240
7
'
pid: OBh03472024061
7
0004
hosGoodsId: h034700004
149
goodsCode: '00004
149
'
goodsName: 一次性注射器_低值
RO^f5
goodsGg: G-31891
mfrsName: 德国歌德公司 Geuder AG
unit: 支
...
...
@@ -20,13 +20,13 @@
normalContractId:
normalContract: '1'
detailList:
- pid: OBh03472024061
3
0004
settleMonth: '20240
6
'
hosGoodsId: h034700004
090
- pid: OBh03472024061
7
0004
settleMonth: '20240
7
'
hosGoodsId: h034700004
149
batchCode: '333'
distrDetailId: '03838
410
'
distrId: PSh03472024061
3
0005
distrOrderNo: PSh03472024061
3
0005
distrDetailId: '03838
516
'
distrId: PSh03472024061
7
0005
distrOrderNo: PSh03472024061
7
0005
settlePrice: 99.9999
maxSettleQty: -100.0
maxSettleAmount: -9999.99
...
...
@@ -35,11 +35,11 @@
leftSettleQty: -100.0
leftSettleAmount: -9999.99
hosId: h0347
provId: p1e2
9
2
branchId: h0347-36
69
balanceDetId: OBh03472024061
3
0004-000001
provId: p1e2
a
2
branchId: h0347-36
77
balanceDetId: OBh03472024061
7
0004-000001
purMode: 10
barCode: 0136
69
000004
0
90
0
103331124061
3
1724122
0
21UT24061
3
000202
barCode: 0136
77
000004
14
90103331124061
7
1724122
4
21UT24061
7
000202
batchId:
price:
maxQty:
...
...
@@ -52,14 +52,14 @@
volumeFlag:
onlineKind:
invoicePrice: 99.9999
viewId: 20240
6
OBh03472024061
3
0004h034700004
090
- pid: OBh03472024061
3
0004
settleMonth: '20240
6
'
hosGoodsId: h034700004
090
viewId: 20240
7
OBh03472024061
7
0004h034700004
149
- pid: OBh03472024061
7
0004
settleMonth: '20240
7
'
hosGoodsId: h034700004
149
batchCode: '333'
distrDetailId: '03838
410
'
distrId: PSh03472024061
3
0005
distrOrderNo: PSh03472024061
3
0005
distrDetailId: '03838
516
'
distrId: PSh03472024061
7
0005
distrOrderNo: PSh03472024061
7
0005
settlePrice: 99.9999
maxSettleQty: 100.0
maxSettleAmount: 9999.99
...
...
@@ -68,11 +68,11 @@
leftSettleQty: 100.0
leftSettleAmount: 9999.99
hosId: h0347
provId: p1e2
9
2
branchId: h0347-36
69
balanceDetId: OBh03472024061
3
0004-000002
provId: p1e2
a
2
branchId: h0347-36
77
balanceDetId: OBh03472024061
7
0004-000002
purMode: 10
barCode: 0136
69
000004
090
0103331124061
3
1724122
0
21UT24061
3
00024
6
barCode: 0136
77
000004
149
0103331124061
7
1724122
4
21UT24061
7
00024
3
batchId:
price:
maxQty:
...
...
@@ -85,10 +85,10 @@
volumeFlag:
onlineKind:
invoicePrice: 99.9999
viewId: 20240
6
OBh03472024061
3
0004h034700004
090
unique: 20240
6
OBh03472024061
3
0004h034700004
090
viewId: 20240
7
OBh03472024061
7
0004h034700004
149
unique: 20240
7
OBh03472024061
7
0004h034700004
149
onlineKind: '10'
viewId: 20240
6
OBh03472024061
3
0004h034700004
090
viewId: 20240
7
OBh03472024061
7
0004h034700004
149
list_b:
- *id001
list_c:
...
...
data/b2_herp3_bs/message
View file @
f74ae755
院区新增:
branch_id: h0347-36
69
branch_name: 东土城路院区
!NuM^
branch_id: h0347-36
77
branch_name: 东土城路院区
Y4EjC
科室信息:
dept2_id:
7020cc82c12a46e0a8ca998a00bf6760
dept2_id:
93e0ba6cbd5b4fefabbfdf16d67d9c5c
dept2_name: 二级检验科002
data/b2_herp3_bs/message3
View file @
f74ae755
用户名信息
:
username1
:
自动化测试1
fe4
%
username2
:
自动化测试1
fe4
%
username1
:
自动化测试1
EWs4
username2
:
自动化测试1
EWs4
data/b2_herp3_bs/message4
View file @
f74ae755
一级科室信息
:
dept1_id
:
e65c6628c20e4c9cb6f4beacd41cd390
dept1_id
:
d4f47a79620b4b4e8a797ce80d9d9b02
dept1_name
:
设备科001
data/b2_herp3_bs/message5
View file @
f74ae755
部门和库区信息
:
dept1_id
:
e65c6628c20e4c9cb6f4beacd41cd390
stockAreaId
:
ed6381c144814addbc358c196f11a80
d
dept1_id
:
d4f47a79620b4b4e8a797ce80d9d9b02
stockAreaId
:
77f668239c8f4d8eac3623a2607d24a
d
data/b2_herp3_bs/message6
View file @
f74ae755
所有科室id
:
deptid1
:
e65c6628c20e4c9cb6f4beacd41cd390
deptid2
:
7020cc82c12a46e0a8ca998a00bf6760
deptid3
:
3356dc58500e40bd9b9b536567f12488
deptid4
:
6
e5d85651a1c4826bae24053a770b01
d
deptid5
:
eba07a9680434e60a94f2568bb696772
deptid1
:
d4f47a79620b4b4e8a797ce80d9d9b02
deptid2
:
93e0ba6cbd5b4fefabbfdf16d67d9c5c
deptid3
:
05296212d9a947e6bac56b79ff8b0fc4
deptid4
:
6
d973e90b8ea457a8870c91548b47d6
d
deptid5
:
753cbb636cb243c896e8a921074d0436
所有科室name
:
deptid1
:
设备科001
deptid2
:
二级检验科002
...
...
data/b2_herp3_bs/message7
View file @
f74ae755
shelfinfo
:
shelfid
:
ed6381c144814addbc358c196f11a80
d
shelfCode
:
areah034723
0
5
shelfid
:
77f668239c8f4d8eac3623a2607d24a
d
shelfCode
:
areah034723
5
5
areaName
:
自动化测试
data/b5_spd3_core_business_flow/message
View file @
f74ae755
供货关系申请2:
e_corpId: p1e2
9
2
e_corpId: p1e2
a
2
h_corpId: h0347
e_username: 国药集团公司
K19@c
e_username: 国药集团公司
7X@tw
h_name: test001
data/b5_spd3_core_business_flow/message1
View file @
f74ae755
产品审核信息
:
MSPid
:
MSP24061
3
0007_1
MSPid
:
MSP24061
7
0007_1
hosId
:
h0347
hosGoodsId
:
h034700004
089
provGoodsid
:
provGood-99221
27
6
goodsAuditBillId
:
MSP24061
3
0007
targetId
:
MSP24061
3
0007_1
hosGoodsId
:
h034700004
148
provGoodsid
:
provGood-99221
33
6
goodsAuditBillId
:
MSP24061
7
0007
targetId
:
MSP24061
7
0007_1
data/b5_spd3_core_business_flow/message10
View file @
f74ae755
低值配送单号
:
distrBillId1
:
PSh03472024061
3
0021
distrBillId2
:
PSh03472024061
3
0021
distrBillId1
:
PSh03472024061
7
0021
distrBillId2
:
PSh03472024061
7
0021
高值配送单号
:
distrBillId1
:
PSh03472024061
3
0022
distrBillId2
:
PSh03472024061
3
0022
distrBillId1
:
PSh03472024061
7
0022
distrBillId2
:
PSh03472024061
7
0022
试剂配送单号
:
distrBillId1
:
PSh03472024061
3
0023
distrBillId2
:
PSh03472024061
3
0023
distrBillId1
:
PSh03472024061
7
0023
distrBillId2
:
PSh03472024061
7
0023
data/b5_spd3_core_business_flow/message11
View file @
f74ae755
采购计划单号高值
:
orderNo1
:
PLAN2024061
3
28
494
orderNo2
:
PLAN2024061
3
28
494
orderNo1
:
PLAN2024061
7
28
987
orderNo2
:
PLAN2024061
7
28
987
data/b5_spd3_core_business_flow/message12
View file @
f74ae755
采购计划单号试剂
:
orderNo1
:
PLAN2024061
3
28
492
orderNo2
:
PLAN2024061
3
28
492
orderNo1
:
PLAN2024061
7
28
989
orderNo2
:
PLAN2024061
7
28
989
data/b5_spd3_core_business_flow/message13
View file @
f74ae755
...
...
@@ -3,27 +3,27 @@
-
&id001
-
id
:
hosId
:
h0347
branchId
:
h0347-36
69
branchId
:
h0347-36
77
deptId
:
taskType
:
1
sourceOrgId
:
p1e2
9
2
sourceOrgName
:
国药集团公司
K19@c
sourceOrderNo
:
PSh03472024061
3
0023
sourceOrgId
:
p1e2
a
2
sourceOrgName
:
国药集团公司
7X@tw
sourceOrderNo
:
PSh03472024061
7
0023
billMode
:
'66'
stockKind
:
purMode
:
sourceId
:
PSh03472024061
3
0023
sourceId
:
PSh03472024061
7
0023
sourceDetailId
:
sourceType
:
PSD
sourceTypeName
:
配送单
sourceVersion
:
1
planOrderNo
:
PLAN2024061
3
28
492
purOrderNo
:
CG2024061
3
18
657
recOrgId
:
7020cc82c12a46e0a8ca998a00bf6760
planOrderNo
:
PLAN2024061
7
28
989
purOrderNo
:
CG2024061
7
18
990
recOrgId
:
93e0ba6cbd5b4fefabbfdf16d67d9c5c
recOrgName
:
二级检验科002
billRelationJson
:
'{"buyBillId":"Bh03472024061
3
0001
4
","planBillId":"Ph03472024061
3
025
137
","planOrderNo":"PLAN2024061
3
28
492
","buyOrderNo":"BUY2024061
304983
","purOrderNo":"CG2024061
3
18
657
","purBillId":"Ch03472024061
3
00008
4
","purBillDate":"2024-06-1
3
07
:
42:
07
","distrBillId":"PSh03472024061
3
0023","distrOrderNo":"PSh03472024061
3
0023"}'
taskDate
:
'2024-06-1
3
07:4
2:45
'
billRelationJson
:
'{"buyBillId":"Bh03472024061
7
0001
5
","planBillId":"Ph03472024061
7
025
634
","planOrderNo":"PLAN2024061
7
28
989
","buyOrderNo":"BUY2024061
705078
","purOrderNo":"CG2024061
7
18
990
","purBillId":"Ch03472024061
7
00008
1
","purBillDate":"2024-06-1
7
07
:
42:
59
","distrBillId":"PSh03472024061
7
0023","distrOrderNo":"PSh03472024061
7
0023"}'
taskDate
:
'2024-06-1
7
07:4
3:57
'
taskDateStart
:
taskDateEnd
:
billModeList
:
...
...
data/b5_spd3_core_business_flow/message14
View file @
f74ae755
...
...
@@ -3,11 +3,11 @@
-
&id001
-
purMode
:
60
unitName
:
100支/100
hosGoodsId
:
h034700004
091
hosGoodsId
:
h034700004
150
mdmGoodsCode
:
spdGoodsCode
:
'116610
3
9'
goodsCode
:
'00004
091
'
goodsName
:
新型冠状病毒检测试剂
^z1lH
spdGoodsCode
:
'116610
9
9'
goodsCode
:
'00004
150
'
goodsName
:
新型冠状病毒检测试剂
(xFLb
goodsGg
:
G-31891
mfrsId
:
mfrsName
:
德国歌德公司 Geuder AG
...
...
@@ -22,16 +22,16 @@
pkgDefName
:
'100'
pkgDefQty
:
100.0
batchCode
:
'4444'
expdtDate
:
'2024-12-2
0
'
productDate
:
'2024-06-1
3
'
provName
:
国药集团公司
K19@c
expdtDate
:
'2024-12-2
4
'
productDate
:
'2024-06-1
7
'
provName
:
国药集团公司
7X@tw
provId
:
viewId
:
'03838
428
'
viewId
:
'03838
534
'
verifyFlag
:
0
hasSterilize
:
0
id
:
'03838
428
'
id
:
'03838
534
'
detailRelationJson
:
extInfo
:
'{"goodsGg":"G-31891","goodsCode":"00004
091
","purMode":60,"goodsName":"新型冠状病毒检测试剂
^z1lH
","ygptCode":"","transCond":"","storageCond":"","erpCode":"116610
3
9","ybDefId":""}'
extInfo
:
'{"goodsGg":"G-31891","goodsCode":"00004
150
","purMode":60,"goodsName":"新型冠状病毒检测试剂
(xFLb
","ygptCode":"","transCond":"","storageCond":"","erpCode":"116610
9
9","ybDefId":""}'
recTemperature
:
20
recHumidity
:
30
distrPrice
:
99.9999
...
...
Prev
1
2
Next
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