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
62665759
Commit
62665759
authored
Apr 28, 2024
by
xiao-hesheng
Browse files
流程五脚本编写
parent
3122c168
Changes
4
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_a7流程五_中心库入库结算_正结算3_内网验收入库结算.air/a_a7流程五_中心库入库结算_正结算3_内网验收入库结算.py
View file @
62665759
...
@@ -182,6 +182,7 @@ def check_accept_order(type=1):
...
@@ -182,6 +182,7 @@ def check_accept_order(type=1):
break
break
else
:
else
:
print
(
'设置产品合格出现问题'
)
print
(
'设置产品合格出现问题'
)
time
.
sleep
(
6
)
continue
continue
# ========设置验收全部合格
# ========设置验收全部合格
...
...
air_case/b5_spd3_core_business_flow/a_a9流程六_中心库入库结算_负结算.air/a_a9流程六_中心库入库结算_负结算.py
View file @
62665759
...
@@ -204,11 +204,12 @@ try:
...
@@ -204,11 +204,12 @@ try:
set_dept_user
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
],
2
)
set_dept_user
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
],
2
)
set_dept_user
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid3'
],
3
)
set_dept_user
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid3'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid3'
],
3
)
center_warehouse_return
()
#中心库退货
center_warehouse_return
()
#中心库退货
center_warehouse_return
()
#中心库退货
OBh_ID
=
settle
()
# 生成结算单
OBh_ID
=
settle
()
# 生成结算单
print
(
OBh_ID
)
print
(
OBh_ID
)
# 调用审批结算单
# 调用审批结算单
approval_center
(
OBh_ID
)
approval_center
(
OBh_ID
)
invoice
(
2
,
OBh_ID
)
#type=2 传递结算单号,外网查询
invoice
(
2
,
OBh_ID
)
#type=2 传递结算单号,外网查询
开票
commonFuc
().
check_text_exist_result_text
(
'succeed'
,
'succeed'
)
commonFuc
().
check_text_exist_result_text
(
'succeed'
,
'succeed'
)
except
:
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
air_case/public1/public1/public1.py
View file @
62665759
...
@@ -476,7 +476,7 @@ def get_udi(type=1):
...
@@ -476,7 +476,7 @@ def get_udi(type=1):
titlename
=
(
'list_a'
,
'list_b'
,
'list_c'
)
titlename
=
(
'list_a'
,
'list_b'
,
'list_c'
)
# 将条码信息写入文件
# 将条码信息写入文件
FileUtils
().
w_info8
(
info
,
module
,
'条码信息'
,
titlename
,
'message18'
)
FileUtils
().
w_info8
(
info
,
module
,
'条码信息'
,
titlename
,
'message18'
)
def
invoice
(
type
=
1
,
OBh_ID
=
'OBh
0347202404280009
'
):
def
invoice
(
type
=
1
,
OBh_ID
=
'OBh
xxxxxxxxxxxxxxx
'
):
# # 登录获取用户id等信息,使用创建的用户登录===========开始
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"供货关系申请2"
,
'message'
)
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"供货关系申请2"
,
'message'
)
# print(info)
# print(info)
...
@@ -567,11 +567,11 @@ def invoice(type=1,OBh_ID='OBh0347202404280009'):
...
@@ -567,11 +567,11 @@ def invoice(type=1,OBh_ID='OBh0347202404280009'):
distrId
=
j
[
'distrId'
]
distrId
=
j
[
'distrId'
]
distrOrderNo
=
j
[
'distrOrderNo'
]
distrOrderNo
=
j
[
'distrOrderNo'
]
settlePrice
=
j
[
'settlePrice'
]
settlePrice
=
j
[
'settlePrice'
]
#
maxSettleQty = j['
left
SettleQty']
maxSettleQty
=
j
[
'
max
SettleQty'
]
#
maxSettleAmount = j['
left
SettleAmount']
maxSettleAmount
=
j
[
'
max
SettleAmount'
]
#
curSettleQty = j['curSettleQty']
curSettleQty
=
j
[
'curSettleQty'
]
#
curSettleAmount = j['curSettleAmount']
curSettleAmount
=
j
[
'curSettleAmount'
]
#
leftSettleQty = j['leftSettleQty']
leftSettleQty
=
j
[
'leftSettleQty'
]
leftSettleAmount
=
j
[
'leftSettleAmount'
]
leftSettleAmount
=
j
[
'leftSettleAmount'
]
hosId
=
j
[
'hosId'
]
hosId
=
j
[
'hosId'
]
provId
=
j
[
'provId'
]
provId
=
j
[
'provId'
]
...
@@ -585,6 +585,7 @@ def invoice(type=1,OBh_ID='OBh0347202404280009'):
...
@@ -585,6 +585,7 @@ def invoice(type=1,OBh_ID='OBh0347202404280009'):
detailList
=
None
detailList
=
None
for
i
in
list_a
:
for
i
in
list_a
:
detailList
=
i
[
'detailList'
]
detailList
=
i
[
'detailList'
]
break
list2
=
detailList
list2
=
detailList
for
k
in
list2
:
for
k
in
list2
:
maxSettleQty
=
k
[
'leftSettleQty'
]
maxSettleQty
=
k
[
'leftSettleQty'
]
...
@@ -613,6 +614,7 @@ def invoice(type=1,OBh_ID='OBh0347202404280009'):
...
@@ -613,6 +614,7 @@ def invoice(type=1,OBh_ID='OBh0347202404280009'):
# ===========发票暂存===============================================
# ===========发票暂存===============================================
#==============发票提交===========================================
#==============发票提交===========================================
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submitCache_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submitCache_url"
)
print
(
'发票提交'
,
url
)
hosVersion
=
3
hosVersion
=
3
hosName
=
commonFuc
().
get_business_data
(
module
,
'hosName'
)
hosName
=
commonFuc
().
get_business_data
(
module
,
'hosName'
)
invoiceQty
=
leftSettleQty
invoiceQty
=
leftSettleQty
...
...
report/summary.html
View file @
62665759
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
22
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
18
秒
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
<td
class=
"details-col-elapsed"
>
100.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -72,9 +72,9 @@
...
@@ -72,9 +72,9 @@
</tr>
</tr>
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_a
5
流程五_中心库入库结算_正结算
1_提交采购计划
/log.html'
target=
'_blank'
>
a_a
5
流程五_中心库入库结算_正结算
1_提交采购计划
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_a
8
流程五_中心库入库结算_正结算
3_外网开票
/log.html'
target=
'_blank'
>
a_a
8
流程五_中心库入库结算_正结算
3_外网开票
</a></td>
<td
class=
"success"
>
成功
</td>
<td
class=
"success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
22.161
</td>
<td
class=
"details-col-elapsed"
>
18.227
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
</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