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

流程十七脚本提交

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