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
968a4856
Commit
968a4856
authored
Sep 24, 2024
by
xiao-hesheng
Browse files
流程五脚本提交
parent
e4963354
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b6_spd3_core_business_flow_database_check/a_a9流程六_中心库入库结算_负结算_数据库验证.air/a_a9流程六_中心库入库结算_负结算_数据库验证.py
View file @
968a4856
...
...
@@ -1022,28 +1022,28 @@ sys.path.append(pro_path + r'/air_case/b5_spd3_core_business_flow/a_a9流程六_
using
(
pro_path
+
r
'//air_case/b5_spd3_core_business_flow/a_a9流程六_中心库入库结算_负结算.air'
)
from
a_a9流程六_中心库入库结算_负结算
import
center_warehouse_return
try
:
# updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) # 设置登录账号默认权限是1级库
# # test1() # 提交采购计划 # 外网配送 # 内网验收入库结算
# # 先查询所有的部门信息写入文件
# dept_query_all()
# # 设置库房人员,根据传入的科室id和科室名称来设置库房
# # 中心库type=1 二级type=2三级type=3
# 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)
# # updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) #设置登录账号默认权限是中心库
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
# 设置登录账号默认权限是1级库
# test1() # 提交采购计划 # 外网配送 # 内网验收入库结算
# 先查询所有的部门信息写入文件
dept_query_all
()
# 设置库房人员,根据传入的科室id和科室名称来设置库房
# 中心库type=1 二级type=2三级type=3
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
)
# updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) #设置登录账号默认权限是中心库
center_warehouse_return
()
#中心库退货
# center_warehouse_return()#中心库退货
# # center_warehouse_return()#中心库退货
# OBh_ID=settle() # 生成结算单
# print(OBh_ID)
# time.sleep(6)
# check_mcms_out_balance(1, OBh_ID) # 结算审批前的结算数据
# # 调用审批结算单
# approval_center(OBh_ID)
# time.sleep(6)
# check_mcms_out_balance_approve_after(1, OBh_ID) # 结算审批后的结算数据
# time.sleep(3)
# invoice(2,OBh_ID)#type=2 传递结算单号,外网查询开票
# time.sleep(3)
OBh_ID
=
settle
()
# 生成结算单
print
(
OBh_ID
)
time
.
sleep
(
6
)
check_mcms_out_balance
(
1
,
OBh_ID
)
# 结算审批前的结算数据
# 调用审批结算单
approval_center
(
OBh_ID
)
time
.
sleep
(
6
)
check_mcms_out_balance_approve_after
(
1
,
OBh_ID
)
# 结算审批后的结算数据
time
.
sleep
(
3
)
invoice
(
2
,
OBh_ID
)
#type=2 传递结算单号,外网查询开票
time
.
sleep
(
3
)
# 检查最终的发票数据,过程数据在流程五中检查
check_mcms_invoice
()
time
.
sleep
(
3
)
...
...
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