From 46b88d9602ee39becd72a67b9af7780bc799bc2d Mon Sep 17 00:00:00 2001 From: xiao-hesheng Date: Sun, 7 Apr 2024 08:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B8=A6=E9=87=8F=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E7=9B=AE=E5=BD=95=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...6\237\245\350\257\242\347\247\221\345\256\244ID.py" | 8 ++++++++ ...344\272\247\345\223\201\344\277\241\346\201\257.py" | 7 ++++++- data/b2_herp3_bs/data | 2 +- report/summary.html | 10 +++++----- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git "a/air_case/b2_herp3_bs/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.air/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.py" "b/air_case/b2_herp3_bs/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.air/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.py" index 6b544762..ddbe7749 100644 --- "a/air_case/b2_herp3_bs/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.air/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.py" +++ "b/air_case/b2_herp3_bs/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.air/c4_\346\226\260\345\242\236\347\247\221\345\256\244\345\220\216\346\237\245\350\257\242\347\247\221\345\256\244ID.py" @@ -58,6 +58,14 @@ def add_select_dept(): titlename=('dept2_id','dept2_name') #将二级科室id写入文件中 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: commonFuc().check_text_exist('500', result) add_select_dept() diff --git "a/air_case/b2_herp3_bs/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.air/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.py" "b/air_case/b2_herp3_bs/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.air/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.py" index 5a4f547e..08661b11 100644 --- "a/air_case/b2_herp3_bs/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.air/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.py" +++ "b/air_case/b2_herp3_bs/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.air/f0_\351\231\242\345\214\272\345\215\225\345\205\203\345\214\205\350\256\276\347\275\256_\346\237\245\350\257\242\344\272\247\345\223\201\344\277\241\346\201\257.py" @@ -42,8 +42,13 @@ def branch_goods_select(): commonFuc().get_business_data(module, "X-APP-CODE")) #获取院区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) # # # 发送请求 result = commonFuc().http_post(url,request_body,headers) diff --git a/data/b2_herp3_bs/data b/data/b2_herp3_bs/data index 362dba26..b7f3a84d 100644 --- a/data/b2_herp3_bs/data +++ b/data/b2_herp3_bs/data @@ -317,7 +317,7 @@ json_headers2: { "payload35": {"hosGoodsIds": ["%s"],"hosId": "h0347","branchId": "%s"} "payload36": {"hosId": "h0347","branchId": "h0347-621"} "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": ""}} "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"} diff --git a/report/summary.html b/report/summary.html index cd44e110..82ea2984 100644 --- a/report/summary.html +++ b/report/summary.html @@ -55,9 +55,9 @@ 1 - 0 + 1 0分2秒 - 0.0% + 100.0% @@ -72,9 +72,9 @@ - q7科室管理_科室产品分配_请领模板维护_移除产品 - 失败 - 2.586 + f0_院区单元包设置_查询产品信息 + 成功 + 2.032 xiaohesheng -- GitLab