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
1745105a
Commit
1745105a
authored
Jul 05, 2024
by
xiao-hesheng
Browse files
脚本优化
parent
8823ea73
Changes
8
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a8流程五_中心库入库结算_正结算3_外网开票.air/a_a8流程五_中心库入库结算_正结算3_外网开票.py
View file @
1745105a
...
...
@@ -392,6 +392,7 @@ def main():
# 调用审批结算单
approval_center
(
OBH_ID
)
invoice
(
2
,
OBH_ID
)
print
(
'流程五结束'
)
except
Exception
as
e
:
print
(
'脚本出现异常,请检查脚本或者数据'
)
print
(
"发生异常:"
,
str
(
e
))
...
...
air_case/b5_spd3_core_business_flow/a_a9流程六_中心库入库结算_负结算.air/a_a9流程六_中心库入库结算_负结算.py
View file @
1745105a
...
...
@@ -236,5 +236,6 @@ def main():
approval_center
(
OBh_ID
)
invoice
(
2
,
OBh_ID
)
#type=2 传递结算单号,外网查询开票
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
print
(
'流程六结束'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
air_case/b5_spd3_core_business_flow/a_b0流程七_中心库入库结算_正负结算.air/a_b0流程七_中心库入库结算_正负结算.py
View file @
1745105a
...
...
@@ -234,5 +234,6 @@ def main():
approval_center
(
OBh_ID
)
invoice
(
3
,
OBh_ID
)
#type=2 传递结算单号,外网查询开票
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
print
(
'流程七结束'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'succees'
)
air_case/b5_spd3_core_business_flow/a_b1流程八_高值跟台业务流程.air/a_b1流程八_高值跟台业务流程.py
View file @
1745105a
...
...
@@ -343,5 +343,6 @@ def main():
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
# 设置登录账号默认权限是中心库
out_return_gt
()
# 跟台退货出库_中心库处理
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
print
(
'流程八结束'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
air_case/b5_spd3_core_business_flow/a_b2流程九请领业务流_二级库向中心库.air/a_b2流程九请领业务流_二级库向中心库.py
View file @
1745105a
...
...
@@ -429,5 +429,6 @@ def main():
second_dept_one_key_in
()
second_dept_one_key_in
()
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
print
(
'流程九结束'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
data/b5_spd3_core_business_flow/message18
View file @
1745105a
条码信息
:
list_a
:
-
&id001
id
:
UT240705000
215
snCode
:
UT240705000
215
ssccCode
:
'0108390001870
465
28'
pkgCodeSee
:
010112345678901210
333
112407051725011121UT240705000
215
hosGoodsId
:
h03470000446
2
hosGoodsCode
:
'0000446
2
'
goodsCode
:
'0000446
2
'
goodsName
:
一次性注射器_低值C2g9i
id
:
UT240705000
313
snCode
:
UT240705000
313
ssccCode
:
'0108390001870
663
28'
pkgCodeSee
:
010112345678901210
4444
112407051725011121UT240705000
313
hosGoodsId
:
h03470000446
3
hosGoodsCode
:
'0000446
3
'
goodsCode
:
'0000446
3
'
goodsName
:
新型冠状病毒检测试剂a7oLM
goodsSpec
:
G-31891
goodsMfrsName
:
德国歌德公司 Geuder AG
unit
:
支
purMode
:
1
0
batchCode
:
'
333
'
purMode
:
6
0
batchCode
:
'
4444
'
productDate
:
'2024-07-05'
expdtDate
:
'2025-01-11'
pkgDefName
:
'100'
...
...
@@ -26,13 +26,13 @@
unitName
:
100支/100
shelfCode
:
areah03472634-2-01-01
shelfNo
:
自动化测试-2-01-01
pkgDefId
:
db284f5e13594188b4aa09a5832293ec
extInfo
:
'{"pkgDefId": "
db284f5e13594188b4aa09a5832293ec
", "pkgDefQty": 100, "purBillId":
"CG202407052062
0
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh034720240705002
6
",
"inStockTime"
:
"2024-07-05 10:2
1:08
", "distrDetailId": "0383928
0
", "certificateCode":
pkgDefId
:
fdfa9805e01946bba3c5b8bd487a6dc7
extInfo
:
'{"pkgDefId": "
fdfa9805e01946bba3c5b8bd487a6dc7
", "pkgDefQty": 100, "purBillId":
"CG202407052062
2
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh034720240705002
8
",
"inStockTime"
:
"2024-07-05 10:2
0:42
", "distrDetailId": "0383928
2
", "certificateCode":
""}'
bottleId
:
pkgType
:
'
1
6'
pkgType
:
'
6
6'
miDjmc
:
''
miCode
:
''
transferRatio
:
1.0
...
...
@@ -46,8 +46,8 @@
made
:
德国
price
:
barName
:
100支/100
purModeText
:
低值耗材
codeType
:
1
6
purModeText
:
检验试剂
codeType
:
6
6
list_b
:
-
*id001
list_c
:
...
...
data/b5_spd3_core_business_flow/message21
View file @
1745105a
...
...
@@ -40,8 +40,8 @@
purModeText
:
检验试剂
goodsGeneralName
:
检测试剂
provName
:
国药集团公司GxzLS
noRecPkgQty
:
0
noRecQty
:
0
noRecPkgQty
:
1.
0
noRecQty
:
100.
0
autoUnpack
:
0
consumeQty
:
consumePkgQty
:
...
...
data/b5_spd3_core_business_flow/message22
View file @
1745105a
...
...
@@ -2,8 +2,8 @@
list_a
:
-
&id001
-
id
:
2aeb6b71864042b8aece41d819c70542
lastModified
:
'2024-07-05 10:4
0
:3
9
'
version
:
1
lastModified
:
'2024-07-05 10:
5
4:3
0
'
version
:
2
createTime
:
'2024-07-05 10:13:37'
createUser
:
h0347_UID-051395
lastModifiedUser
:
h0347_UID-051395
...
...
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