Commit 1efdd8a7 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

优化脚本

parent bbf9b1e3
...@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils ...@@ -4,7 +4,7 @@ from common.fileUtls import FileUtils
__author__ = "xiaohesheng" __author__ = "xiaohesheng"
""" """
case_tag:api,mdm-web产品新增和审核,id2251,id2251-1,sit,on,2023091201 case_tag:api,mdm-web,产品新增和审核,id2251,id2251-1,sit,on,2023091201
主数据平台:产品新增和审核通过 主数据平台:产品新增和审核通过
""" """
......
...@@ -13,7 +13,7 @@ case_tag:api,mdm-web产品规格新增,id2251,id2251-2,sit,on,2023091202 ...@@ -13,7 +13,7 @@ case_tag:api,mdm-web产品规格新增,id2251,id2251-2,sit,on,2023091202
主数据平台:web产品规格新增 主数据平台:web产品规格新增
""" """
module = "mdm3_pim" module = "mdm3_psm"
# 登录 # 登录
info = FileUtils().r_info(module,'产品新增') info = FileUtils().r_info(module,'产品新增')
username=info['username'] username=info['username']
...@@ -41,7 +41,7 @@ url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "submitG ...@@ -41,7 +41,7 @@ url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "submitG
headers = commonFuc().get_business_data(module, "json_headers2", headers = commonFuc().get_business_data(module, "json_headers2",
commonFuc().get_business_data(module, "json_contentType"), token, commonFuc().get_business_data(module, "json_contentType"), token,
projectCode) projectCode)
request_body = commonFuc().get_business_data(module, "payload11", MGID,goodsname) request_body = commonFuc().get_business_data(module, "payload1", MGID,goodsname)
# 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)
......
"listVoPage_url": "/test2api/mdmService/provGoodsInfo/listVoPage"
# 医院注册提交接口_认领
"queryListPage_url": "/test2api/mdmService/companyRegistBill/listPage"
"updateById_url": "/test2api/mdmService/companyRegistBill/updateById"
"checkHosRegistInfo_url": "/test2api/mdmService/companyRegistBill/checkHosRegistInfo"
"submitGoodsRegist_url": "/test2api/mdmService/goodsRegistBill/submitGoodsRegist"
"listAuditBillByPage_url": "/test2api/mdmService/goodsRegistBill/listAuditBillByPage"
"updateById_url2": "/test2api/mdmService/goodsRegistBill/updateById"
"getGoodsRegistBillDetail_url": "/test2api/mdmService/goodsRegistBill/getGoodsRegistBillDetail/"
"handleAuditGoodsRegist_url": "/test2api/mdmService/goodsRegistBill/handleAuditGoodsRegist/"
"submitGoodsSpecsRegist_url": "/test2api/mdmService/goodsRegistBill/submitGoodsSpecsRegist/"
"username": "1679886114521"
"password": "a123456!"
json_contentType: "application/json"
json_headers: {
"Content-Type": "%s"
}
json_headers2: {
"Content-Type": "%s",
"token": "%s",
"X-APP-CODE":"%s"
}
"payload1": {
"registSourceProject": "h0347",
"goodsRegistVO": {
"id": "%s",
"goodsMfrsId": "p56a4",
"goodsName": "%s"
},
"goodsSpecsRegistVOList": [
{
"goodsGg": "20ml",
"miGoodsGg": "20ml",
"miGoodsXh": "20ml",
"goodsUseUnit": "支",
"mi27code": "123456789012243454",
"udiCode": "12345678901234",
"diType":"0",
"rowNum": 1
}
]
}
"name1": "一次性注射器"
checkDict: {"code": 0, "msg":None,"data": {"pageNum": 1, "pageSize": 20, "total": 0, "data": [], "totalInfo": None}}
checkDict1: {"code": -2,"msg": "医院已被注册,请耐心等待审核通知!", "data": None}
checkDict2: {'code': 0, 'msg': None, 'data': 'success'}
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