Commit 46b88d96 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

新增带量采购目录脚本

parent 586e9806
...@@ -58,6 +58,14 @@ def add_select_dept(): ...@@ -58,6 +58,14 @@ def add_select_dept():
titlename=('dept2_id','dept2_name') titlename=('dept2_id','dept2_name')
#将二级科室id写入文件中 #将二级科室id写入文件中
FileUtils().w_info4(info,module,'科室信息',titlename) FileUtils().w_info4(info,module,'科室信息',titlename)
#将一级科室id写入文件中
deptid1 = commonFuc().analysis_json('id', data[0])
ename1 = commonFuc().analysis_json('ename', data[0])
print('deptid1', deptid1, ename1)
info = (deptid1, ename1)
titlename = ('dept1_id', 'dept1_name')
# 将一级科室id写入文件中
FileUtils().w_info8(info, module, '一级科室信息', titlename,'message4')
else: else:
commonFuc().check_text_exist('500', result) commonFuc().check_text_exist('500', result)
add_select_dept() add_select_dept()
......
...@@ -42,8 +42,13 @@ def branch_goods_select(): ...@@ -42,8 +42,13 @@ def branch_goods_select():
commonFuc().get_business_data(module, "X-APP-CODE")) commonFuc().get_business_data(module, "X-APP-CODE"))
#获取院区id #获取院区id
branch_id = FileUtils().r_info(module, '院区新增')["branch_id"] branch_id = FileUtils().r_info(module, '院区新增')["branch_id"]
#从文件中读取一级库id
info = FileUtils().r_info8(module, "一级科室信息", 'message4')
# print('info', info)
dept1_id = info['dept1_id']
print('dept1_id',dept1_id)
# #请求体 # #请求体
request_body=commonFuc().get_business_data(module, "payload38",branch_id) request_body=commonFuc().get_business_data(module, "payload38",branch_id,dept1_id)
print(request_body) print(request_body)
# # # 发送请求 # # # 发送请求
result = commonFuc().http_post(url,request_body,headers) result = commonFuc().http_post(url,request_body,headers)
......
...@@ -317,7 +317,7 @@ json_headers2: { ...@@ -317,7 +317,7 @@ json_headers2: {
"payload35": {"hosGoodsIds": ["%s"],"hosId": "h0347","branchId": "%s"} "payload35": {"hosGoodsIds": ["%s"],"hosId": "h0347","branchId": "%s"}
"payload36": {"hosId": "h0347","branchId": "h0347-621"} "payload36": {"hosId": "h0347","branchId": "h0347-621"}
"payload37": {"hosId": "h0347","branchId": "%s"} "payload37": {"hosId": "h0347","branchId": "%s"}
"payload38": {"pageNum": 1,"pageSize": 50,"queryObject": {"branchId": "%s","hosId": "h0347","goodsName": "","purModes": [10,60],"notPkg": false,"goodsSpec": ""}} "payload38": {"pageNum": 1,"pageSize": 50,"queryObject": {"branchId": "%s","hosId": "h0347","goodsName": "","purModes": [10,60],"notPkg": false,"goodsSpec": "","deptId":"%s"}}
"payload39": {"pageNum": 1,"pageSize": 50,"queryObject": {"branchId":"%s","hosId": "h0347", "goodsName": "", "purModes": [ 10,60],"notPkg": true,"goodsSpec": ""}} "payload39": {"pageNum": 1,"pageSize": 50,"queryObject": {"branchId":"%s","hosId": "h0347", "goodsName": "", "purModes": [ 10,60],"notPkg": true,"goodsSpec": ""}}
"payload40": {"hosId": "h0347","branchId": "%s","branchGoodsId": "%s"} "payload40": {"hosId": "h0347","branchId": "%s","branchGoodsId": "%s"}
"payload41": {"levelName": "包1","qty": "444","pkgLowQty": "0","pkgUperQty": "0","diType": "gs1","effFlag": 1,"hosId": "h0347","branchGoodsId": "%s","branchId": "%s","hosGoodsId": "%s"} "payload41": {"levelName": "包1","qty": "444","pkgLowQty": "0","pkgUperQty": "0","diType": "gs1","effFlag": 1,"hosId": "h0347","branchGoodsId": "%s","branchId": "%s","hosGoodsId": "%s"}
......
...@@ -55,9 +55,9 @@ ...@@ -55,9 +55,9 @@
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0分2秒</td> <td class='details-col-elapsed'>0分2秒</td>
<td class="details-col-elapsed">0.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/q7科室管理_科室产品分配_请领模板维护_移除产品/log.html' target='_blank'>q7科室管理_科室产品分配_请领模板维护_移除产品</a></td> <td class="details-col-elapsed"><a href='../log/f0_院区单元包设置_查询产品信息/log.html' target='_blank'>f0_院区单元包设置_查询产品信息</a></td>
<td class="fail">失败</td> <td class="success">成功</td>
<td class="details-col-elapsed">2.586</td> <td class="details-col-elapsed">2.032</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </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