Commit 5f88f860 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程五脚本编写

parent a5544ca1
......@@ -209,10 +209,10 @@ def get_stockId(name, type=1):
elif type == 3:
children = []
print('data', data)
children=commonFuc().analysis_json('children',commonFuc().analysis_json('children',data))
print('children',children)
children = commonFuc().analysis_json('children', commonFuc().analysis_json('children', data))
print('children', children)
for i in children:
id3=i['id']
id3 = i['id']
print(id3)
return id3
......@@ -363,7 +363,7 @@ def set_dept_user(dept_id, deptName, type=1):
# r_d2库房管理_库区设置_人员管理_添加人员
url = commonFuc().get_api_add_port_url() + commonFuc().get_business_data(module, "basic_stockUser_insert_url")
print('url库房管理_库区设置_人员管理_添加人员',url)
print('url库房管理_库区设置_人员管理_添加人员', url)
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
......@@ -372,7 +372,7 @@ def set_dept_user(dept_id, deptName, type=1):
# # 请求体
request_body = commonFuc().get_business_data(module, "payload62_9_1_1", dept_id, deptName, get_hosid(), stockAreaId,
username1, uxid1, username1)
print('url库房管理_库区设置_人员管理_添加人员request_body',request_body)
print('url库房管理_库区设置_人员管理_添加人员request_body', request_body)
request_body_json = get_process_list(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