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
78f67b47
Commit
78f67b47
authored
Jun 04, 2024
by
xiao-hesheng
Browse files
流程十二脚本编写
parent
b43ef469
Changes
5
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b6流程十三请领业务流_三级库向二级库.air/a_b6流程十三请领业务流_三级库向二级库.py
View file @
78f67b47
...
...
@@ -157,10 +157,10 @@ def BuyCarSubmit():
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_queryBuyCarPage_url"
)
print
(
'请领车查询================='
,
url
)
deptid
2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid
5
'
]
deptname
2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid
5
'
]
areaCode
=
get_stockAreaId_new
(
deptid
2
,
deptname
2
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid
2
)
deptid
3
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid
3
'
]
deptname
3
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid
3
'
]
areaCode
=
get_stockAreaId_new
(
deptid
3
,
deptname
3
,
3
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid
3
)
print
(
'请领车查询'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
...
...
@@ -340,7 +340,7 @@ try:
# 设置部门负责人
set_dept_lead_new
(
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
'所有科室id'
,
'message6'
)[
"deptid3"
])
# 设置二级科室负责人
get_stockAreaId_new
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid3'
],
2
)
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'
])
...
...
@@ -359,9 +359,9 @@ try:
# 二级科室领用出库
# 低值拣货执行
pick_execute
()
second_dept_one_key_in
(
5
)
second_dept_one_key_in
(
5
)
second_dept_one_key_in
(
5
)
second_dept_one_key_in
(
3
)
second_dept_one_key_in
(
3
)
second_dept_one_key_in
(
3
)
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
air_case/public1/public1/public1.py
View file @
78f67b47
...
...
@@ -2675,6 +2675,8 @@ def out_warehouse_review(PICK_ID): # 出库复核
def
second_dept_one_key_in
(
type
=
2
):
if
type
==
2
:
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# 设置登录账号默认权限是二级库
elif
type
==
3
:
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
3
))
# 设置登录账号默认权限是二级库
elif
type
==
5
:
updateUserLoginDefaultRange
(
get_listUserMgrRangePage1
(
5
))
# 设置登录账号默认权限是二级库
module
=
"b5_spd3_core_business_flow"
...
...
data/b5_spd3_core_business_flow/message18
View file @
78f67b47
条码信息
:
list_a
:
-
&id001
id
:
UT24060400080
1
snCode
:
UT24060400080
1
ssccCode
:
'01083900018295
1629
'
pkgCodeSee
:
013651000003975010333112406041724121121UT24060400080
1
id
:
UT24060400080
3
snCode
:
UT24060400080
3
ssccCode
:
'01083900018295
3920
'
pkgCodeSee
:
013651000003975010333112406041724121121UT24060400080
3
hosGoodsId
:
h034700003975
hosGoodsCode
:
'00003975'
goodsCode
:
'00003975'
...
...
@@ -28,8 +28,8 @@
shelfNo
:
A01-A-01-01
pkgDefId
:
99ff61b624d544dfb4c563de0140fb75
extInfo
:
'{"pkgDefId": "99ff61b624d544dfb4c563de0140fb75", "pkgDefQty": 100, "purBillId":
"CG202406041771
7
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh034720240604001
5
",
"inStockTime"
:
"2024-06-04 0
7:35:38
", "distrDetailId": "0383801
5
", "certificateCode":
"CG20240604177
2
1"
,
"pkgDefName"
:
"100", "distrBillId": "PSh034720240604001
9
",
"inStockTime"
:
"2024-06-04 0
8:45:09
", "distrDetailId": "0383801
9
", "certificateCode":
""}'
bottleId
:
pkgType
:
'16'
...
...
@@ -41,7 +41,7 @@
shelfKindName
:
普通货位
provName
:
国药集团公司*0SeL
provId
:
p1e26b
inStockDate
:
'2024-06-04 0
7:35:38
'
inStockDate
:
'2024-06-04 0
8:45:09
'
mfrCode
:
made
:
德国
price
:
...
...
data/b5_spd3_core_business_flow/message22
View file @
78f67b47
库区信息
:
list_a
:
-
&id001
-
id
:
478cb7e75b6b473cb0702cccf4e19f83
lastModified
:
'2024-06-04
09:27:52
'
version
:
2
createTime
:
'2024-06-04 0
9
:0
1:3
0'
-
id
:
6627e2adb4d84edeb76923b58c175b5a
lastModified
:
'2024-06-04
10:09:16
'
version
:
4
createTime
:
'2024-06-04 0
7
:0
4:5
0'
createUser
:
h0347_UID-051312
lastModifiedUser
:
h0347_UID-051312
stockId
:
7ae0f42212544d588c2cd439155edb09
shelfCode
:
areah0347219
4
stockId
:
2cd98ebbd79f4129afc9f7143fe2e957
shelfCode
:
areah0347219
1
shelfName
:
默认库区
address
:
二级科室
00
5
address
:
三级检测组
00
3
shelfType
:
stockType
:
0
defaultFlag
:
1
...
...
@@ -24,7 +24,7 @@
shelfNo
:
A01
shelfKind
:
0
hosId
:
deptId
:
c4e48d18f4234797a040924db4390279
deptId
:
8b3cd57be7454d8999752d058884d67a
areaCode
:
areaName
:
stockName
:
...
...
report/summary.html
View file @
78f67b47
...
...
@@ -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'
>
2分0
秒
</td>
<td
class=
'details-col-elapsed'
>
1分35
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</table>
...
...
@@ -93,9 +93,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_b
5
流程十
二
请领业务流_
二
级库向二级库/log.html'
target=
'_blank'
>
a_b
5
流程十
二
请领业务流_
二
级库向二级库
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_b
6
流程十
三
请领业务流_
三
级库向二级库/log.html'
target=
'_blank'
>
a_b
6
流程十
三
请领业务流_
三
级库向二级库
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
119.869
</td>
<td
class=
"details-col-elapsed"
>
95.108
</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