Commit 32ada220 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增采购计划审核脚本

parent 7a18c7d3
# -*- encoding=utf8 -*-
from common.fileUtls import FileUtils
from common.timeUtils import timeUtils
__author__ = "xiaohesheng"
......@@ -42,11 +43,22 @@ def test1():
# date1=timeUtils().get_time_hms(2)
# date2=timeUtils().get_time_add(-1)
# print(date1,date2)
# # 请求体
info = FileUtils().r_info8(module, "产品信息",'message1')
print('info',info)
list_a = info['list_a']
print('list_a',list_a)
goodsMfrsName="aa"
for i in list_a:
goodsMfrsName=i['goodsMfrsName']
goodsName=i['goodsName']
provName=i['provName']
break
hospitalId = commonFuc().get_business_data(module, "hospitalId")
branchId = commonFuc().get_business_data(module, "branchId")
request_body = commonFuc().get_business_data(module, "payload_5",hospitalId,branchId)
# # 请求体
request_body = commonFuc().get_business_data(module, "payload_5",hospitalId,branchId,goodsMfrsName,goodsName,provName)
# 发送请求
result = commonFuc().http_post(url, request_body, headers)
print('result', result)
......
......@@ -35,7 +35,7 @@ json_headers2: {
"payload_2": '{"purPlanDetail":[{"hosGoodsId":"h034700001859","pkgDefId":"26d93e6fecd24b6fa4bde8aeacfbf153","pkgDefName":"盒","pkgDefQty":1,"planPkgQty":888}],"hosId":"h0347","branchId":"h0347-2011","mgrCorpName":"邹城市人民医院(test)","deptName":"","deptId":"d69a68df361a4289b2262e4ef75b55a5","recOrgId":"d69a68df361a4289b2262e4ef75b55a5","recOrgName":"","areaCode":"areah03470414","areaName":"A库区","recUser":"UID-050151","recPhone":"xhs1009","recAddr":"A","remark":"","sourceType":"","createType":"SG","checkLcTaskQty":false}'
"payload_3": {"pageNum": 1,"pageSize": 50,"queryObject": {"orderNo": "","hosId": "h0347","startTime": null,"endTime": null}}
"payload_4": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":200}
"payload_5": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"国药器械光谷分公司","goodsName":"00001743","purModes":["10"],"provName":"国药器械光谷分公司","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_5": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"%s","goodsName":"%s","purModes":["10"],"provName":"%s","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_6": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"","purModes":["%s"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_7": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"国药器械光谷分公司","goodsName":"","purModes":["10"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
"payload_8": {"queryObject":{"hosId":"%s","branchId":"%s","goodsMfrsName":"","goodsName":"%s","purModes":["10"],"provName":"","tbStatus":1,"purchaseFlag":1},"pageNum":1,"pageSize":50}
......
......@@ -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'>0分0</td>
<td class='details-col-elapsed'>0分1</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_a1_手工采购计划_添加产品页面_列表查询_查询全部/log.html' target='_blank'>a_a1_手工采购计划_添加产品页面_列表查询_查询全部</a></td>
<td class="details-col-elapsed"><a href='../log/a_a2_手工采购计划_添加产品页面_列表查询_条件查询_精确查询/log.html' target='_blank'>a_a2_手工采购计划_添加产品页面_列表查询_条件查询_精确查询</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.857</td>
<td class="details-col-elapsed">1.682</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