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
Compare Revisions
2511b6207db1ffbdc51527a56a9d838e39257600...34f308d298997c4e4ccbc0808a89488abee93755
Commits (3)
脚本优化
· 4d0445e2
xiao-hesheng
authored
Jul 08, 2024
4d0445e2
脚本优化
· b550aa70
xiao-hesheng
authored
Jul 08, 2024
b550aa70
脚本优化
· 34f308d2
xiao-hesheng
authored
Jul 08, 2024
34f308d2
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b2流程九请领业务流_二级库向中心库.air/a_b2流程九请领业务流_二级库向中心库.py
View file @
34f308d2
...
...
@@ -407,12 +407,19 @@ def main():
second_dept_Request
(
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message3'
)[
'hosGoodsId'
],
3
)
BuyCarSubmit
()
# 请领车提交
for
i
in
range
(
6
):
# 三个单据共审批6次
"""
这里的审批跟审批流的设置有关
"""
for
i
in
range
(
3
):
# 三个单据共审批3次
approval_center
()
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
#设置登录账号默认权限是中心库
#获取拣货单列表个数
for
i
in
range
(
get_centeStock_pick_list_counts
()):
centeStock_pick
()
#中心库拣货
try
:
for
i
in
range
(
get_centeStock_pick_list_counts
()):
centeStock_pick
()
#中心库拣货
except
:
for
i
in
range
(
3
):
# 三个单据共审批3次
approval_center
()
#低值拣货执行
hosGoodsId
=
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message2'
)[
'hosGoodsId'
]
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
...
...
data/b5_spd3_core_business_flow/message18
View file @
34f308d2
条码信息
:
list_a
:
-
&id001
-
id
:
UT240708000101
lastModified
:
version
:
createTime
:
'2024-07-08 05:06:21'
createUser
:
lastModifiedUser
:
snCode
:
UT240708000101
hosId
:
h0347
branchId
:
stockId
:
3a4ab96db19047cc9c36e92a6cc5ea06
areaCode
:
areah03472677
areaName
:
自动化测试
shelfCode
:
areah03472677-2-01-01
codeType
:
66
tagType
:
0
hosGoodsId
:
h034700004501
mdmGoodsCode
:
'11661454'
goodsCode
:
'00004501'
goodsDi
:
'01123456789012'
barName
:
100支/100
batchCode
:
'4444'
expdtDate
:
'2025-01-14'
productDate
:
'2024-07-08'
mfrCode
:
mfrCodeSee
:
pkgCode
:
"0101123456789012104444\x1D112407081725011421UT240708000101"
pkgCodeSee
:
0101123456789012104444112407081725011421UT240708000101
ssccCode
:
'010839000187194625'
extInfo
:
outId
:
tbStatus
:
20
goodsCodeDi
:
barcodeId
:
ext
:
pkgDefId
:
2d4d3bd0ebe745efa73bb7123cf21f6a
pkgDefQty
:
100
purBillId
:
CG2024070820770
pkgDefName
:
'100'
distrBillId
:
PSh0347202407080004
inStockTime
:
'2024-07-08 05:08:08'
distrDetailId
:
'03839345'
certificateCode
:
''
sourceDetailId
:
purMode
:
60
purModes
:
price
:
pid
:
goodsMfrsName
:
德国歌德公司 Geuder AG
mfrsName
:
goodsSpec
:
G-31891
unit
:
支
goodsName
:
新型冠状病毒检测试剂hO3Tu
pkgDefId
:
2d4d3bd0ebe745efa73bb7123cf21f6a
pkgDefQty
:
100
defaultPkgDefQty
:
defaultQty
:
defaultSurplusQty
:
defaultPkgDefId
:
purDetailId
:
pkgDefName
:
'100'
printNum
:
0
deptId
:
deptName
:
billId
:
taskId
:
made
:
德国
provId
:
p1e32e
provName
:
国药集团公司^n1@F
subProvId
:
p1e32e
subProvName
:
国药集团公司^n1@F
provHosGoodsId
:
sourceType
:
taskDate
:
sourceOrderNo
:
taskType
:
detailId
:
branchGoodsPkgDefList
:
unitName
:
areaCodeList
:
diType
:
mdmGoodsSpecCode
:
hosGoodsCode
:
'00004501'
supplyId
:
inSettlement
:
spdGoodsCode
:
codeKind
:
brand
:
miCode
:
transferRatio
:
1.0
miDjmc
:
tbStatusList
:
purModeText
:
stockName
:
tbStatusText
:
pkgType
:
bottleId
:
pkgStatus
:
qty
:
packUnit
:
minSaleQty
:
rfidFlag
:
mfrCodeFlag
:
scanStatus
:
scanId
:
multiChargeFlag
:
useFrequency
:
chargeUnit
:
lockStatus
:
remark
:
hosBatchId
:
settleFlag
:
inStockTime
:
verifyFlag
:
subSendFlag
:
10
id
:
UT240708000102
snCode
:
UT240708000102
ssccCode
:
'010839000187194724'
pkgCodeSee
:
0101123456789012104444112407081725011421UT240708000102
hosGoodsId
:
h034700004501
hosGoodsCode
:
'00004501'
goodsCode
:
'00004501'
goodsName
:
新型冠状病毒检测试剂hO3Tu
goodsSpec
:
G-31891
goodsMfrsName
:
德国歌德公司 Geuder AG
unit
:
支
purMode
:
60
batchCode
:
'4444'
productDate
:
'2024-07-08'
expdtDate
:
'2025-01-14'
pkgDefName
:
'100'
pkgDefQty
:
100.0
stockId
:
3a4ab96db19047cc9c36e92a6cc5ea06
stockName
:
东土城路院区IjnkG中心库房
areaName
:
自动化测试
areaCode
:
areah03472677
lockStatus
:
0
unitName
:
100支/100
shelfCode
:
areah03472677-2-01-01
shelfNo
:
自动化测试-2-01-01
pkgDefId
:
2d4d3bd0ebe745efa73bb7123cf21f6a
extInfo
:
'{"pkgDefId": "2d4d3bd0ebe745efa73bb7123cf21f6a", "pkgDefQty": 100, "purBillId":
"CG2024070820770"
,
"pkgDefName"
:
"100", "distrBillId": "PSh0347202407080004",
"inStockTime"
:
"2024-07-08 05:08:08", "distrDetailId": "03839345", "certificateCode":
""}'
bottleId
:
pkgType
:
'66'
miDjmc
:
''
miCode
:
''
transferRatio
:
1.0
qty
:
1
shelfKind
:
0
shelfKindName
:
普通货位
provName
:
国药集团公司^n1@F
provId
:
p1e32e
inStockDate
:
mfrCode
:
made
:
德国
price
:
barName
:
100支/100
purModeText
:
检验试剂
codeType
:
66
list_b
:
-
*id001
list_c
:
...
...
data/b5_spd3_core_business_flow/message21
View file @
34f308d2
...
...
@@ -16,7 +16,7 @@
pkgDefName
:
'100'
pkgDefQty
:
100.0
pkgQty
:
qty
:
0
qty
:
100.
0
goodsImg
:
[]
pkgDefId
:
2d4d3bd0ebe745efa73bb7123cf21f6a
buyPkgQty
:
...
...
@@ -34,14 +34,14 @@
targetStockName
:
东土城路院区IjnkG中心库房
purchaseFlag
:
1
tempFlag
:
0
grantWay
:
3
grantWay
:
2
deptGoodsStatus
:
codingType
:
0
purModeText
:
检验试剂
goodsGeneralName
:
检测试剂
provName
:
国药集团公司^n1@F
noRecPkgQty
:
3
.0
noRecQty
:
3
00.0
noRecPkgQty
:
5
.0
noRecQty
:
5
00.0
autoUnpack
:
0
consumeQty
:
consumePkgQty
:
...
...
data/b5_spd3_core_business_flow/message22
View file @
34f308d2
...
...
@@ -2,8 +2,8 @@
list_a
:
-
&id001
-
id
:
84695465c4144015943479b370abbed2
lastModified
:
'2024-07-08 08:
21:02
'
version
:
2
lastModified
:
'2024-07-08 08:
48:49
'
version
:
4
createTime
:
'2024-07-08 05:03:31'
createUser
:
h0347_UID-051402
lastModifiedUser
:
h0347_UID-051402
...
...
main1/main_text.py
View file @
34f308d2
...
...
@@ -29,7 +29,7 @@ def main_text():
window_width
=
root
.
winfo_screenwidth
()
window_height
=
root
.
winfo_screenheight
()
# 设置窗口大小
root
.
geometry
(
'
395x28
0'
)
root
.
geometry
(
'
800x56
0'
)
# 刷新窗口参数
root
.
update
()
# 计算窗口居中时左上角的坐标
...
...
@@ -172,24 +172,24 @@ def main_text():
return
result
# 文本显示的位置。
Button
(
root
,
text
=
'流程一'
,
width
=
8
,
height
=
4
,
command
=
flow1
).
grid
(
row
=
2
,
column
=
0
)
Button
(
root
,
text
=
'流程二'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow2
).
grid
(
row
=
2
,
column
=
2
)
Button
(
root
,
text
=
'流程三'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow3
).
grid
(
row
=
2
,
column
=
4
)
Button
(
root
,
text
=
'流程
四
'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow4
).
grid
(
row
=
2
,
column
=
6
)
Button
(
root
,
text
=
'流程五'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow5
).
grid
(
row
=
2
,
column
=
8
)
Button
(
root
,
text
=
'流程六'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow6
).
grid
(
row
=
2
,
column
=
10
)
Button
(
root
,
text
=
'流程七'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow7
).
grid
(
row
=
3
,
column
=
0
)
Button
(
root
,
text
=
'流程八'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow8
).
grid
(
row
=
3
,
column
=
2
)
Button
(
root
,
text
=
'流程九'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow9
).
grid
(
row
=
3
,
column
=
4
)
Button
(
root
,
text
=
'流程十'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow10
).
grid
(
row
=
3
,
column
=
6
)
Button
(
root
,
text
=
'流程十一'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow11
).
grid
(
row
=
3
,
column
=
8
)
Button
(
root
,
text
=
'流程十二'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow12
).
grid
(
row
=
3
,
column
=
10
)
Button
(
root
,
text
=
'流程十三'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow13
).
grid
(
row
=
4
,
column
=
0
)
Button
(
root
,
text
=
'流程十四'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow14
).
grid
(
row
=
4
,
column
=
2
)
Button
(
root
,
text
=
'流程十五'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow15
).
grid
(
row
=
4
,
column
=
4
)
Button
(
root
,
text
=
'流程十六'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow16
).
grid
(
row
=
4
,
column
=
6
)
Button
(
root
,
text
=
'流程十七'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow17
).
grid
(
row
=
4
,
column
=
8
)
Button
(
root
,
text
=
'流程十八'
,
anchor
=
'center'
,
width
=
8
,
height
=
4
,
command
=
flow18
).
grid
(
row
=
4
,
column
=
10
)
Button
(
root
,
text
=
'流程一
\n
外网企业注册审批
'
,
width
=
16
,
height
=
8
,
command
=
flow1
).
grid
(
row
=
2
,
column
=
0
)
Button
(
root
,
text
=
'流程二
\n
供货关系申请审批
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow2
).
grid
(
row
=
2
,
column
=
2
)
Button
(
root
,
text
=
'流程三
\n
流程三_产品导
\n
入和审批
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow3
).
grid
(
row
=
2
,
column
=
4
)
Button
(
root
,
text
=
'流程
\n
内网基础模块设置
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow4
).
grid
(
row
=
2
,
column
=
6
)
Button
(
root
,
text
=
'流程五
\n
中心库入库正结算
\n
开票
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow5
).
grid
(
row
=
2
,
column
=
8
)
Button
(
root
,
text
=
'流程六
\n
中心库入库负结算
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow6
).
grid
(
row
=
2
,
column
=
10
)
Button
(
root
,
text
=
'流程七
\n
中心库入库正负结算
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow7
).
grid
(
row
=
3
,
column
=
0
)
Button
(
root
,
text
=
'流程八
\n
高值跟台业务
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow8
).
grid
(
row
=
3
,
column
=
2
)
Button
(
root
,
text
=
'流程九
\n
请领业务二级库向
\n
中心库
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow9
).
grid
(
row
=
3
,
column
=
4
)
Button
(
root
,
text
=
'流程十
\n
请领业务流_二级库
\n
向边仓
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow10
).
grid
(
row
=
3
,
column
=
6
)
Button
(
root
,
text
=
'流程十一
\n
请领业务流_二级库
\n
向直送
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow11
).
grid
(
row
=
3
,
column
=
8
)
Button
(
root
,
text
=
'流程十二
\n
请领业务流_二级库
\n
向二级库
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow12
).
grid
(
row
=
3
,
column
=
10
)
Button
(
root
,
text
=
'流程十三
\n\n
请领业务流_三级库
\n
向二级库
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow13
).
grid
(
row
=
4
,
column
=
0
)
Button
(
root
,
text
=
'流程十四
\n
退库业务消耗退库
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow14
).
grid
(
row
=
4
,
column
=
2
)
Button
(
root
,
text
=
'流程十五
\n
退库业务三级库向
\n
二级库退库
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow15
).
grid
(
row
=
4
,
column
=
4
)
Button
(
root
,
text
=
'流程十六
\n
退库业务_二级库向
\n
一级库退库
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow16
).
grid
(
row
=
4
,
column
=
6
)
Button
(
root
,
text
=
'流程十七
\n
退库业务_中心库退
\n
供应商
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow17
).
grid
(
row
=
4
,
column
=
8
)
Button
(
root
,
text
=
'流程十八
\n
中心库业务_拆包功能
'
,
anchor
=
'center'
,
width
=
16
,
height
=
8
,
command
=
flow18
).
grid
(
row
=
4
,
column
=
10
)
Button
(
root
,
text
=
'一键执行'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
flow0
).
grid
(
row
=
5
,
column
=
2
)
Button
(
root
,
text
=
'删除垃圾数据'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
del_data
).
grid
(
row
=
5
,
column
=
4
)
Button
(
root
,
text
=
'退 出'
,
anchor
=
'center'
,
width
=
8
,
height
=
2
,
command
=
exit
).
grid
(
row
=
5
,
column
=
8
)
...
...