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
b043b48a
Commit
b043b48a
authored
Jun 12, 2024
by
xiao-hesheng
Browse files
流程十二脚本编写
parent
b1fe2ea9
Changes
4
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b8流程十五退库业务_三级库向二级库退库.air/a_b8流程十五退库业务_三级库向二级库退库.py
View file @
b043b48a
...
...
@@ -143,7 +143,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
# import pdb
# pdb.set_trace()
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_3"
,
stockId
,
stockName2
,
areaCode
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_3"
,
stockId
,
deptId3
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
uxid
,
userLoginCode
,
cname
,
get_hosid
(),
get_branch_id
(),
deptid1
,
...
...
@@ -271,7 +271,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1
=
get_orgCode
()
orgName1
=
get_orgName
()
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_4"
,
stockId
,
stockName2
,
areaCode
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_4"
,
stockId
,
deptId3
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
uxid
,
userLoginCode
,
cname
,
get_hosid
(),
get_branch_id
(),
deptid1
,
...
...
@@ -398,7 +398,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1
=
get_orgCode
()
orgName1
=
get_orgName
()
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_4"
,
stockId
,
stockName2
,
areaCode
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload50_2_4"
,
stockId
,
deptId3
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
uxid
,
userLoginCode
,
cname
,
get_hosid
(),
get_branch_id
(),
deptid1
,
...
...
air_case/b5_spd3_core_business_flow/a_b9流程十六退库业务_二级库向一级库退库.air/a_b9流程十六退库业务_二级库向一级库退库.py
View file @
b043b48a
...
...
@@ -22,7 +22,7 @@ python runner_test.py tag id2302-19 debug mdm3
def
second_dept_return_Out_Stock
(
type
):
#
三
级库退库出库
def
second_dept_return_Out_Stock
(
type
):
#
二
级库退库出库
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
...
...
@@ -51,12 +51,12 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
stockName
=
commonFuc
().
analysis_json
(
'stockName'
,
list_a
)
areaCode
=
commonFuc
().
analysis_json
(
'areaCode'
,
list_a
)
areaName
=
commonFuc
().
analysis_json
(
'areaName'
,
list_a
)
deptId
3
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
3
"
]
targetDeptId
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
2
"
]
deptName
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室name'
,
'message6'
)[
"deptid2"
]
targetStockId
=
get_stockId
(
deptName
+
'库房'
,
2
)
deptId
2
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
2
"
]
targetDeptId
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
1
"
]
deptName
=
get_branch_name
()
targetStockId
=
get_stockId
(
deptName
+
'
中心
库房'
,
1
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65"
,
udi_code
,
stockId
,
deptId
3
,
areaCode
,
areaName
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65"
,
udi_code
,
stockId
,
deptId
2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
)
print
(
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
...
...
@@ -150,7 +150,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1
,
orgName1
,
get_hosid
(),
get_hosid
(),
mgrCorpName
,
get_branch_id
(),
get_branch_name
(),
mgrRangeId
,
mgrRangeName
,
extStr1
,
extStr3
,
get_hosid
(),
stockId
,
deptId
3
,
get_hosid
(),
stockId
,
deptId
2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
UTid
,
createTime
,
snCode
,
get_hosid
(),
stockId
,
areaCode
,
areaName
,
shelfCode
,
codeType
,
hosGoodsId
,
mdmGoodsCode
,
goodsCode
,
goodsDi
,
...
...
@@ -181,12 +181,12 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
stockName
=
commonFuc
().
analysis_json
(
'stockName'
,
list_a
)
areaCode
=
commonFuc
().
analysis_json
(
'areaCode'
,
list_a
)
areaName
=
commonFuc
().
analysis_json
(
'areaName'
,
list_a
)
deptId
3
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
3
"
]
targetDeptId
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
2
"
]
deptName
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室name'
,
'message6'
)[
"deptid2"
]
targetStockId
=
get_stockId
(
deptName
+
'库房'
,
2
)
deptId
2
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
2
"
]
targetDeptId
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
1
"
]
deptName
=
get_branch_name
()
targetStockId
=
get_stockId
(
deptName
+
'
中心
库房'
,
1
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65"
,
udi_code
,
stockId
,
deptId
3
,
areaCode
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65"
,
udi_code
,
stockId
,
deptId
2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
)
print
(
'request_body'
,
request_body
)
...
...
@@ -278,7 +278,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1
,
orgName1
,
get_hosid
(),
get_hosid
(),
mgrCorpName
,
get_branch_id
(),
get_branch_name
(),
mgrRangeId
,
mgrRangeName
,
extStr1
,
extStr3
,
get_hosid
(),
stockId
,
deptId
3
,
get_hosid
(),
stockId
,
deptId
2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
UTid
,
createTime
,
snCode
,
get_hosid
(),
stockId
,
areaCode
,
areaName
,
shelfCode
,
codeType
,
hosGoodsId
,
mdmGoodsCode
,
goodsCode
,
goodsDi
,
...
...
@@ -308,12 +308,12 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
stockName
=
commonFuc
().
analysis_json
(
'stockName'
,
list_a
)
areaCode
=
commonFuc
().
analysis_json
(
'areaCode'
,
list_a
)
areaName
=
commonFuc
().
analysis_json
(
'areaName'
,
list_a
)
deptId
3
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
3
"
]
targetDeptId
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
2
"
]
deptName
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室name'
,
'message6'
)[
"deptid2"
]
targetStockId
=
get_stockId
(
deptName
+
'库房'
,
2
)
deptId
2
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
2
"
]
targetDeptId
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid
1
"
]
deptName
=
get_branch_name
()
targetStockId
=
get_stockId
(
deptName
+
'
中心
库房'
,
1
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65"
,
udi_code
,
stockId
,
deptId
3
,
areaCode
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65"
,
udi_code
,
stockId
,
deptId
2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
)
print
(
'request_body'
,
request_body
)
...
...
@@ -405,7 +405,7 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
orgCode1
,
orgName1
,
get_hosid
(),
get_hosid
(),
mgrCorpName
,
get_branch_id
(),
get_branch_name
(),
mgrRangeId
,
mgrRangeName
,
extStr1
,
extStr3
,
get_hosid
(),
stockId
,
deptId
3
,
get_hosid
(),
stockId
,
deptId
2
,
areaCode
,
areaName
,
targetStockId
,
targetDeptId
,
UTid
,
createTime
,
snCode
,
get_hosid
(),
stockId
,
areaCode
,
areaName
,
shelfCode
,
...
...
@@ -426,13 +426,13 @@ def second_dept_return_Out_Stock(type): # 三级库退库出库
try
:
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
3
))
# 设置登录账号默认权限是三级库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
2
))
# 设置登录账号默认权限是三级库
second_dept_return_Out_Stock
(
2
)
# 高值耗材退货出库
second_dept_return_Out_Stock
(
1
)
# 低值耗材退货出库
second_dept_return_Out_Stock
(
3
)
# 低值耗材退货出库
second_dept_one_key_in
(
2
)
second_dept_one_key_in
(
2
)
second_dept_one_key_in
(
2
)
#
second_dept_return_Out_Stock(1) # 低值耗材退货出库
#
second_dept_return_Out_Stock(3) # 低值耗材退货出库
#
second_dept_one_key_in(2)
#
second_dept_one_key_in(2)
#
second_dept_one_key_in(2)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
data/b5_spd3_core_business_flow/message18
View file @
b043b48a
条码信息
:
list_a
:
-
&id001
id
:
UT24061200080
2
snCode
:
UT24061200080
2
ssccCode
:
'010839000184006
129
'
pkgCodeSee
:
01366700000407
6
010
4444
112406121724121921UT24061200080
2
hosGoodsId
:
h03470000407
6
hosGoodsCode
:
'0000407
6
'
goodsCode
:
'0000407
6
'
goodsName
:
新型冠状病毒检测试剂DJUhI
id
:
UT24061200080
5
snCode
:
UT24061200080
5
ssccCode
:
'010839000184006
525
'
pkgCodeSee
:
01366700000407
5
010
333
112406121724121921UT24061200080
5
hosGoodsId
:
h03470000407
5
hosGoodsCode
:
'0000407
5
'
goodsCode
:
'0000407
5
'
goodsName
:
一次性注射器_低值xaYjQ
goodsSpec
:
G-31891
goodsMfrsName
:
德国歌德公司 Geuder AG
unit
:
支
purMode
:
6
0
batchCode
:
'
4444
'
purMode
:
1
0
batchCode
:
'
333
'
productDate
:
'2024-06-12'
expdtDate
:
'2024-12-19'
pkgDefName
:
'100'
...
...
@@ -26,13 +26,13 @@
unitName
:
100支/100
shelfCode
:
areah03472290-A-01-01
shelfNo
:
A01-A-01-01
pkgDefId
:
0d3db4404bcb46b9b80830502f069b4f
extInfo
:
'{"pkgDefId": "
0d3db4404bcb46b9b80830502f069b4f
", "pkgDefQty": 100, "purBillId":
"CG20240612185
47
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh034720240612001
7
",
"inStockTime"
:
"2024-06-12
09:27:01
", "distrDetailId": "0383838
1
", "certificateCode":
pkgDefId
:
192b76e92d77496294bb16d04feeecc4
extInfo
:
'{"pkgDefId": "
192b76e92d77496294bb16d04feeecc4
", "pkgDefQty": 100, "purBillId":
"CG20240612185
52
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh03472024061200
2
1",
"inStockTime"
:
"2024-06-12
13:40:49
", "distrDetailId": "0383838
5
", "certificateCode":
""}'
bottleId
:
pkgType
:
'
6
6'
pkgType
:
'
1
6'
miDjmc
:
''
miCode
:
''
transferRatio
:
1.0
...
...
@@ -41,13 +41,13 @@
shelfKindName
:
普通货位
provName
:
国药集团公司2u7a4
provId
:
p1e28e
inStockDate
:
'2024-06-12
09:27:01
'
inStockDate
:
'2024-06-12
13:40:48
'
mfrCode
:
made
:
德国
price
:
barName
:
100支/100
purModeText
:
检验试剂
codeType
:
6
6
purModeText
:
低值耗材
codeType
:
1
6
list_b
:
-
*id001
list_c
:
...
...
report/summary.html
View file @
b043b48a
...
...
@@ -77,7 +77,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
21
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
44
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</table>
...
...
@@ -95,7 +95,7 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_b8流程十五退库业务_三级库向二级库退库/log.html'
target=
'_blank'
>
a_b8流程十五退库业务_三级库向二级库退库
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
21.376
</td>
<td
class=
"details-col-elapsed"
>
44.287
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
...
...
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