Commit dc7a17c7 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程五脚本编写

parent d5f74ce9
......@@ -950,32 +950,54 @@ def SaveCacheBatch2(headers):
viewId = j['viewId']
break
for i in list_a:
pid2 = i['pid']
settleMonth2 = i['settleMonth']
hosGoodsId2 = i['hosGoodsId']
detailList2 = i['detailList']
for j in detailList2:
batchCode2 = j['batchCode']
distrDetailId2 = j['distrDetailId']
distrId2 = j['distrId']
distrOrderNo2 = j['distrOrderNo']
settlePrice2 = j['settlePrice']
maxSettleQty2 = j['maxSettleQty']
maxSettleAmount2 = j['maxSettleAmount']
curSettleQty2 = j['curSettleQty']
curSettleAmount2 = j['curSettleAmount']
leftSettleQty2 = j['leftSettleQty']
leftSettleAmount2 = j['leftSettleAmount']
hosId2 = j['hosId']
provId2 = j['provId']
branchId2 = j['branchId']
balanceDetId2 = j['balanceDetId']
purMode2 = j['purMode']
barCode2 = j['barCode']
viewId2 = j['viewId']
break
# for i in list_a:
# pid2 = i['pid']
# settleMonth2 = i['settleMonth']
# hosGoodsId2 = i['hosGoodsId']
detailList2=commonFuc().analysis_json('detailList',list_a)[1]
print('detailList2',detailList2)
pid2 = commonFuc().analysis_json('pid',detailList2)
settleMonth2 = commonFuc().analysis_json('settleMonth',detailList2)
hosGoodsId2 = commonFuc().analysis_json('hosGoodsId',detailList2)
batchCode2= commonFuc().analysis_json('batchCode',detailList2)
distrDetailId2 = commonFuc().analysis_json('distrDetailId',detailList2)
distrId2 = commonFuc().analysis_json('distrId',detailList2)
distrOrderNo2 = commonFuc().analysis_json('distrOrderNo',detailList2)
settlePrice2 = commonFuc().analysis_json('settlePrice',detailList2)
maxSettleQty2 = commonFuc().analysis_json('maxSettleQty',detailList2)
maxSettleAmount2 = commonFuc().analysis_json('maxSettleAmount',detailList2)
curSettleQty2 = commonFuc().analysis_json('curSettleQty',detailList2)
curSettleAmount2 = commonFuc().analysis_json('curSettleAmount',detailList2)
leftSettleQty2 = commonFuc().analysis_json('leftSettleQty',detailList2)
leftSettleAmount2 = commonFuc().analysis_json('leftSettleAmount',detailList2)
# hosId2 = j['hosId']
# provId2 = j['provId']
# branchId2 = j['branchId']
# balanceDetId2 = j['balanceDetId']
# purMode2 = j['purMode']
# barCode2 = j['barCode']
# viewId2 = j['viewId']
# for j in detailList2:
# batchCode2 = j['batchCode']
# distrDetailId2 = j['distrDetailId']
# distrId2 = j['distrId']
# distrOrderNo2 = j['distrOrderNo']
# settlePrice2 = j['settlePrice']
# maxSettleQty2 = j['maxSettleQty']
# maxSettleAmount2 = j['maxSettleAmount']
# curSettleQty2 = j['curSettleQty']
# curSettleAmount2 = j['curSettleAmount']
# leftSettleQty2 = j['leftSettleQty']
# leftSettleAmount2 = j['leftSettleAmount']
# hosId2 = j['hosId']
# provId2 = j['provId']
# branchId2 = j['branchId']
# balanceDetId2 = j['balanceDetId']
# purMode2 = j['purMode']
# barCode2 = j['barCode']
# viewId2 = j['viewId']
# break
# list2=[]
# detailList=None
# for i in list_a:
......@@ -996,17 +1018,19 @@ def SaveCacheBatch2(headers):
provId,
branchId, balanceDetId, purMode, barCode, viewId)
request_body2 = commonFuc().get_business_data(module, "payload3_1_1_1", pid2, settleMonth2, hosGoodsId2, batchCode2,
request_body2 = commonFuc().get_business_data(module, "payload3_1_1_2", pid2, settleMonth2, hosGoodsId2, batchCode2,
distrDetailId2, distrId2, distrOrderNo2, settlePrice2, maxSettleQty2,
maxSettleAmount2, curSettleQty2, curSettleAmount2, leftSettleQty2,
leftSettleAmount2, hosId2,
provId2,
branchId2, balanceDetId2, purMode2, barCode2, viewId2)
leftSettleAmount2, hosId,
provId,
branchId, balanceDetId, purMode, barCode, viewId)
# print('request_body1', request_body1,request_body1)
# print('request_body2', request_body2, request_body2)
request_body3 = str(request_body1) + ',' + str(request_body2)
request_body4 = get_process_list(request_body3)
print('request_body4', request_body4)
# while True:
# time.sleep(3)
result = commonFuc().http_post(url, request_body4, headers)
print('result', result)
......
......@@ -32,6 +32,7 @@ json_headers2: {
"payload3": {"settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":2.3,"maxSettleQty":0.0,"maxSettleAmount":0.0,"curSettleQty":0.0,"curSettleAmount":0.0,"leftSettleQty":33,"leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null}
"payload3_1": {"settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":2.3,"maxSettleQty":33,"maxSettleAmount":75.9,"curSettleQty":33,"curSettleAmount":75.89999999999999,"leftSettleQty":33,"leftSettleAmount":75.9,"hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":10,"barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null}
"payload3_1_1_1": {"pid":"%s","settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":"%s","maxSettleQty":"%s","maxSettleAmount":"%s","curSettleQty":"%s","curSettleAmount":"%s","leftSettleQty":"%s","leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null,"viewId":"%s"}
"payload3_1_1_2": {"pid":"%s","settleMonth":"%s","hosGoodsId":"%s","batchCode":"%s","distrDetailId":"%s","distrId":"%s","distrOrderNo":"%s","settlePrice":"%s","maxSettleQty":"%s","maxSettleAmount":"%s","curSettleQty":"%s","curSettleAmount":"%s","leftSettleQty":"%s","leftSettleAmount":"%s","hosId":"%s","provId":"%s","branchId":"%s","balanceDetId":"%s","purMode":"%s","barCode":"%s","batchId":null,"price":null,"maxQty":null,"settleQty":null,"id":null,"hosVersion":null,"jsonData":null,"viewId":"%s"}
"payload3_2": {"hosName":"邹城市人民医院(test)","invoiceQty":33,"invoiceAmount":"75.9000","invoiceNumber":"1","invoiceCode":"1","invoiceNum":1,"remarks":"","invoiceTagList":[],"attachmentList":[],"hosId":"h0347","provId":null,"hosVersion":"3"}
"payload3_2_2_2": {"hosName":"%s","invoiceQty":"%s","invoiceAmount":"%s","invoiceNumber":"test","invoiceCode":"test","invoiceNum":1,"remarks":"","invoiceDate":"%sT08:23:22.467Z","invoiceTagList":[],"attachmentList":[],"hosId":"%s","hosVersion":"%s"}
......
......@@ -56,7 +56,7 @@
<tr width="600">
<td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>1分2秒</td>
<td class='details-col-elapsed'>1分28</td>
<td class="details-col-elapsed">100.0%</td>
</tr>
</table>
......@@ -72,9 +72,9 @@
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_a9流程_中心库入库结算_负结算/log.html' target='_blank'>a_a9流程_中心库入库结算_负结算</a></td>
<td class="details-col-elapsed"><a href='../log/a_b0流程_中心库入库结算_负结算/log.html' target='_blank'>a_b0流程_中心库入库结算_负结算</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">61.873</td>
<td class="details-col-elapsed">87.982</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
......
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