Commit 9129c24c authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程五脚本编写

parent 17cbb13f
...@@ -624,6 +624,12 @@ def invoice(type=1,OBh_ID='OBhxxxxxxxxxxxxxxx'): ...@@ -624,6 +624,12 @@ def invoice(type=1,OBh_ID='OBhxxxxxxxxxxxxxxx'):
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)
time.sleep(3)
if commonFuc().analysis_json('code',result)==1004:
invoiceAmount = -leftSettleAmount
request_body = commonFuc().get_business_data(module, "payload3_2_2_2", hosName, invoiceQty, invoiceAmount,
invoiceDate, hosId, hosVersion)
result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('result', result)
#==============发票提交=========================================== #==============发票提交===========================================
#===============发票确认列表查询 #===============发票确认列表查询
......
企业信息: 企业信息:
e_id: CR202404280057 e_id: CR202404280119
cname: 国药集团公司u)cyX cname: 国药集团公司#&hau
医院信息: 医院信息:
h_id: 湖南省人民医院0XItm h_id: 湖南省人民医院mJSkG
h_name: 湖南省人民医院0XItm h_name: 湖南省人民医院mJSkG
产品审核信息: 产品审核信息:
MSPid: MSP2404280016_1 MSPid: MSP2404280026_1
hosId: h0347 hosId: h0347
hosGoodsId: h034700003212 hosGoodsId: h034700003222
provGoodsid: provGood-99220321 provGoodsid: provGood-99220331
goodsAuditBillId: MSP2404280016 goodsAuditBillId: MSP2404280026
targetId: MSP2404280016_1 targetId: MSP2404280026_1
院区新增: 院区新增:
branch_id: h0347-3537 branch_id: h0347-3539
branch_name: 东土城路院区NFX^( branch_name: 东土城路院区PDz&a
科室信息: 科室信息:
dept2_id: 0b1dbf8c875c4362b174a6445a69a41e dept2_id: ea3691b307894b3a8987b4bf444fcdca
dept2_name: 二级检验科002 dept2_name: 二级检验科002
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