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
b43ef469
Commit
b43ef469
authored
Jun 04, 2024
by
xiao-hesheng
Browse files
流程十一脚本编写
parent
43dad629
Changes
5
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b5流程十二请领业务流_二级库向二级库.air/a_b5流程十二请领业务流_二级库向二级库.py
View file @
b43ef469
...
...
@@ -323,32 +323,6 @@ def edit_goods_target(currentDeptId, targetDeptId):
print
(
'编辑产品请领渠道result'
,
result
)
def
get_centeStock_pick_list_counts
():
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
username
=
info
[
'username1'
]
password
=
commonFuc
().
get_business_data
(
"b2_herp3_bs"
,
"password"
)
print
(
'username,password'
,
username
,
password
)
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
2
)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 生成拣货单列表查询===============================================
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
url1
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_stock_out_buyPage_url"
)
print
(
'领用出库列表查询================='
,
url1
)
request_body1
=
commonFuc
().
get_business_data
(
module
,
"payload46_1"
,
get_branch_id
())
print
(
'领用出库列表查询'
,
'request_body'
,
request_body1
)
result1
=
commonFuc
().
http_post
(
url1
,
request_body1
,
headers
)
print
(
'领用出库列表查询,result1'
,
result1
)
total1
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result1
))
return
total1
def
pick_execute
():
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
...
...
air_case/b5_spd3_core_business_flow/a_b6流程十三请领业务流_三级库向二级库.air/a_b6流程十三请领业务流_三级库向二级库.py
View file @
b43ef469
...
...
@@ -65,13 +65,13 @@ def second_dept_Request(hosGoodsId, type):
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_queryGoodsInfoPage_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
'
]
deptid
3
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid
3
'
]
deptname
3
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid
3
'
]
# 高值
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
areaCode
=
get_stockAreaId_new
(
deptid
2
,
deptname
2
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload39"
,
GoodsId
,
get_hosid
(),
deptid
2
,
areaCode
)
areaCode
=
get_stockAreaId_new
(
deptid
3
,
deptname
3
,
3
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload39"
,
GoodsId
,
get_hosid
(),
deptid
3
,
areaCode
)
print
(
'我要请领_手工请领_列表查询'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'我要请领_手工请领_列表查询,result'
,
result
)
...
...
@@ -106,7 +106,7 @@ def second_dept_Request(hosGoodsId, type):
# print('list_a', len(list_a), list_a)
info
=
(
list_a
,
list_b
,
list_c
)
titlename
=
(
'list_a'
,
'list_b'
,
'list_c'
)
FileUtils
().
w_info8
(
info
,
module
,
'
二
级库向二级库请领产品信息'
,
titlename
,
'message2
3
'
)
FileUtils
().
w_info8
(
info
,
module
,
'
三
级库向二级库请领产品信息'
,
titlename
,
'message2
4
'
)
# 我要请领_手工请领_列表查询===========================
# 添加到请领车=============================================
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
...
...
@@ -253,32 +253,6 @@ def edit_goods_target(currentDeptId, targetDeptId):
print
(
'编辑产品请领渠道result'
,
result
)
def
get_centeStock_pick_list_counts
():
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
username
=
info
[
'username1'
]
password
=
commonFuc
().
get_business_data
(
"b2_herp3_bs"
,
"password"
)
print
(
'username,password'
,
username
,
password
)
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
2
)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 生成拣货单列表查询===============================================
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
url1
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_stock_out_buyPage_url"
)
print
(
'领用出库列表查询================='
,
url1
)
request_body1
=
commonFuc
().
get_business_data
(
module
,
"payload46_1"
,
get_branch_id
())
print
(
'领用出库列表查询'
,
'request_body'
,
request_body1
)
result1
=
commonFuc
().
http_post
(
url1
,
request_body1
,
headers
)
print
(
'领用出库列表查询,result1'
,
result1
)
total1
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result1
))
return
total1
def
pick_execute
():
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
...
...
data/b5_spd3_core_business_flow/message18
View file @
b43ef469
条码信息
:
list_a
:
-
&id001
id
:
UT240604000
203
snCode
:
UT240604000
203
ssccCode
:
'010839000182
861720
'
pkgCodeSee
:
013651000003975010333112406041724121121UT240604000
203
id
:
UT240604000
801
snCode
:
UT240604000
801
ssccCode
:
'010839000182
951629
'
pkgCodeSee
:
013651000003975010333112406041724121121UT240604000
801
hosGoodsId
:
h034700003975
hosGoodsCode
:
'00003975'
goodsCode
:
'00003975'
...
...
@@ -28,8 +28,8 @@
shelfNo
:
A01-A-01-01
pkgDefId
:
99ff61b624d544dfb4c563de0140fb75
extInfo
:
'{"pkgDefId": "99ff61b624d544dfb4c563de0140fb75", "pkgDefQty": 100, "purBillId":
"CG2024060417
689
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh03472024060400
0
5",
"inStockTime"
:
"2024-06-04 07:3
0:01
", "distrDetailId": "038380
0
5", "certificateCode":
"CG2024060417
717
"
,
"pkgDefName"
:
"100", "distrBillId": "PSh03472024060400
1
5",
"inStockTime"
:
"2024-06-04 07:3
5:38
", "distrDetailId": "038380
1
5", "certificateCode":
""}'
bottleId
:
pkgType
:
'16'
...
...
@@ -41,7 +41,7 @@
shelfKindName
:
普通货位
provName
:
国药集团公司*0SeL
provId
:
p1e26b
inStockDate
:
'2024-06-04 07:3
0:01
'
inStockDate
:
'2024-06-04 07:3
5:38
'
mfrCode
:
made
:
德国
price
:
...
...
data/b5_spd3_core_business_flow/message22
View file @
b43ef469
...
...
@@ -2,8 +2,8 @@
list_a
:
-
&id001
-
id
:
478cb7e75b6b473cb0702cccf4e19f83
lastModified
:
'2024-06-04 09:
01:46
'
version
:
1
lastModified
:
'2024-06-04 09:
27:52
'
version
:
2
createTime
:
'2024-06-04 09:01:30'
createUser
:
h0347_UID-051312
lastModifiedUser
:
h0347_UID-051312
...
...
report/summary.html
View file @
b43ef469
...
...
@@ -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分
2
秒
</td>
<td
class=
'details-col-elapsed'
>
2分
0
秒
</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_b5流程十二请领业务流_二级库向二级库/log.html'
target=
'_blank'
>
a_b5流程十二请领业务流_二级库向二级库
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
1
22.777
</td>
<td
class=
"details-col-elapsed"
>
1
19.869
</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