Commit 14aa7a36 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程十七脚本提交

parent 4aae0274
......@@ -144,22 +144,24 @@ def supply_and_marketing_apply():
h_token, h_projectCode, h_uxid, h_corpId, h_name = h_login()
module = "a4_mdm3_cm"
# a3供货关系申请_客户类型_医院_供销关系申请提交
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "submitSupplyRelation_url")
# 获取请求头信息
headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token,
projectCode)
contactUser = commonFuc().randomString(5)
contactWay = contactUser
request_body = commonFuc().get_business_data(module, "payload", h_corpId, contactUser, contactWay)
# 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('result', result)
# #获取接口返回数据
#
check_dict = commonFuc().get_business_data(module, "checkDict")
commonFuc().check_result(check_dict, result)
#2024.8.22在企业审核的时候供货关系就自动建立了,注释如下脚本
# # a3供货关系申请_客户类型_医院_供销关系申请提交
# url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "submitSupplyRelation_url")
# # 获取请求头信息
# headers = commonFuc().get_business_data(module, "json_headers2",
# commonFuc().get_business_data(module, "json_contentType"), token,
# projectCode)
# contactUser = commonFuc().randomString(5)
# contactWay = contactUser
# request_body = commonFuc().get_business_data(module, "payload", h_corpId, contactUser, contactWay)
# print('供销关系申请提交request_body',request_body)
# # 发送请求
# result = commonFuc().http_post(url, request_body, headers)
# print('result', result)
# # #获取接口返回数据
# #
# check_dict = commonFuc().get_business_data(module, "checkDict")
# commonFuc().check_result(check_dict, result)
e_corpId = corpId
e_username = username
return e_corpId, h_corpId, e_username, h_name
......
......@@ -80,6 +80,11 @@ def operationApply(): # 高值跟台申请
print('跟台手术申请提交request_body', request_body)
result = commonFuc().http_post(url, request_body, headers)
print('跟台手术申请提交result', result)
code=commonFuc().analysis_json('code',result)
if code==1004:
commonFuc().check_text_exist_result_text('error', 'succees')
print('跟台手术申请提交失败,脚本退出')
sys.exit(0)
# 跟台手术申请提交=================================================
......
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