Commit 41f942ee authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本

parent 90448f1f
......@@ -48,6 +48,8 @@ def test1():
commonFuc().get_business_data(module, "json_contentType"), token,
commonFuc().get_business_data(module, "X-APP-CODE"))
# branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
branch_name= FileUtils().r_info(module, '院区新增')["branch_name"]
name=branch_name+'中心库房'
# str = commonFuc().get_business_data(module, 'data3')
# list2 = list(str.split(","))
# print(list2)
......@@ -56,13 +58,19 @@ def test1():
# date2=timeUtils().get_time_hms(2)
# for i in list2:
dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
# #调用库区设置脚本新增库区
# pro_path = commonFuc().get_pro_path()
# sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air')
# using(pro_path + r'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air')
# from r_c3库房管理_库区设置_新增库区 import test1
# test1(dept2_id)
# dept2_id = FileUtils().r_info(module, '科室信息')["dept2_id"]
#查询库房id
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\r_b9库房管理_库区设置_库房查询_查询全部.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\r_b9库房管理_库区设置_库房查询_查询全部.air')
from r_b9库房管理_库区设置_库房查询_查询全部 import test1
stockId=test1(name)
#调用库区设置脚本新增库区
pro_path = commonFuc().get_pro_path()
sys.path.append(pro_path + r'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air')
using(pro_path + r'\\air_case\\b2_herp3_bs\\r_c3库房管理_库区设置_新增库区.air')
from r_c3库房管理_库区设置_新增库区 import test1
test1(stockId)
# 请求体
request_body = commonFuc().get_business_data(module, "payload58_6",dept2_id)
request_body='['+str(request_body)+']'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment