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

优化脚本

parent b2e23ed4
......@@ -51,7 +51,7 @@ def select1():
commonFuc().check_text_exist(code,result)
data1 = commonFuc().analysis_json('data', data)
id2=commonFuc().analysis_json('id',data1[0])
print(id2)
print(id1,id2)
return id1,id2
else:
commonFuc().check_text_exist('error', result)
......
......@@ -46,9 +46,15 @@ def select1():
code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result)
total=commonFuc().analysis_json('total',data)
goodsName=commonFuc().analysis_json('goodsName',data)
goodsCode=commonFuc().analysis_json('goodsCode',data)
if code==0:
commonFuc().check_text_exist(code,result)
commonFuc().check_text_exist('手术衣', result)
commonFuc().check_text_exist('00001977', result)
else:
commonFuc().check_text_exist('error', result)
# check_dict=commonFuc().get_business_data(module,'checkDict4')
# commonFuc().check_result(check_dict,result)
select1()
......@@ -60,7 +60,7 @@ json_headers2: {
"settlement": 1,
"batchCode": "222",
"productDate": "2023-12-01",
"expdtDate": "2023-12-30",
"expdtDate": "2024-12-30",
"distrPkgQty": 1,
"disabledFlag": 0,
"distrQty": 33,
......@@ -103,3 +103,5 @@ checkDict1: {'code': 1100000, 'msg': '暂时没有定义异码,中文描述为:
ApplyBillMainServiceImpl:644', 'data': None}
checkDict2: {'code': 0, 'msg': None, 'tag': None, 'data': {'pageNum': 1, 'pageSize': 50, 'total': 0, 'data': [], 'totalInfo': None}}
checkDict3: {'code': 0, 'msg': None, 'tag': None, 'data': True}
checkDict4: {"code":0,"msg":null,"tag":null,"data":{"id":"PSh0347202401080021","lastModified":null,"version":0,"createTime":null,"createUser":"GYQX-SPD:user-19669","lastModifiedUser":"GYQX-SPD:user-19669","orderNo":null,"billMode":"16","recType":null,"hosId":"h0347","hosName":null,"branchId":"h0347-2011","sourceId":"Ch034720240108000063","sourceType":null,"purBillId":"Ch034720240108000063","provId":null,"provName":null,"subSendFlag":10,"exeProvId":null,"exeProvName":null,"settlement":null,"purDeptId":null,"purDeptName":null,"recOrgId":null,"recOrgName":null,"recUser":null,"recPhone":null,"recAddr":null,"billRelationJson":null,"extInfo":null,"barcodeFlag":null,"pkgFlag":null,"remark":null,"taskId":null,"convertFlag":null,"convertTime":null,"convertUserName":null,"tbStatus":null,"createUserName":"浙江高仰医疗","delFlag":null,"lastAuditor":null,"lastAuditTime":null,"hosVersion":0,"branchName":null,"sumQty":null,"sumPkgQty":null,"sumAmount":null,"sourceVersion":2,"planOrderNo":null,"purOrderNo":null,"purBillDate":null,"relationProvId":null,"oldId":null,"detailList":[{"id":"03834092","lastModified":null,"version":0,"createTime":null,"createUser":"GYQX-SPD:user-19669","lastModifiedUser":"GYQX-SPD:user-19669","pid":"PSh0347202401080019","sourceId":"Ch034720240108000063","sourceDetailId":"c85a7350d2ab416cb8962d0941cf92c5","purDetailId":"c85a7350d2ab416cb8962d0941cf92c5","hosGoodsId":"h034700001977","mdmGoodsCode":"11658092","goodsCode":"00001977","goodsName":"手术衣","goodsGg":"SSY-001","purMode":10,"mfrsId":"p10d95","mfrsName":"浙江高仰医疗科技有限公司","made":"中国","unit":"件","purPrice":2.3000,"batchCode":"222","expdtDate":"2024-02-09","productDate":"2024-01-01","pkgDefId":"56b010aba2e04f978e3038c0f53d910c","pkgDefName":" 包","pkgDefQty":33.00,"supplyId":"5cdc1801063348d0880251016e59c4e9","subProvId":"p10d95","subProvName":"浙江高仰医疗科技有限公司","subPrice":2.0000,"distrPrice":2.3000,"distrPkgQty":1,"distrQty":33,"settlement":1,"certificateCode":"械注1698145277","productCertCode":null,"detailRelationJson":"{\"planBillId\":\"Ph034720240108008473\",\"planDetailId\":\"4d2c896317824f139f4165ff5307971b\",\"purDetailId\":\"c85a7350d2ab416cb8962d0941cf92c5\",\"purBillId\":\"Ch034720240108000063\",\"distrDetailId\":\"03834092\",\"distrBillId\":\"PSh0347202401080019\"}","extInfo":"{\"goodsGg\":\"SSY-001\",\"goodsCode\":\"00001977\",\"purMode\":10,\"goodsName\":\"手术衣\",\"ygptCode\":\"\",\"transCond\":\"\",\"storageCond\":\"\",\"erpCode\":\"11658092\",\"ybDefId\":\"\"}","tbStatus":null,"delFlag":0,"amount":null,"unitName":"33件/ 包","ext":{"ygptCode":"","transCond":"","storageCond":"","erpCode":"11658092"},"barcodeList":[{"id":"US240108000000004","lastModified":null,"version":0,"createTime":null,"createUser":"GYQX-SPD:user-19669","lastModifiedUser":"GYQX-SPD:user-19669","snCode":"US240108000000004","hosId":"h0347","branchId":"h0347-2011","stockId":null,"areaCode":null,"areaName":null,"shelfCode":null,"codeType":16,"tagType":null,"hosGoodsId":"h034700001977","mdmGoodsCode":"11658092","goodsCode":"00001977","goodsDi":"20110000019770","barName":"33件/ 包","batchCode":"222","expdtDate":"2024-02-09","productDate":"2024-01-01","mfrCode":null,"mfrCodeSee":null,"pkgCode":"012011000001977010222\u001D112401011724020921US240108000000004","pkgCodeSee":"012011000001977010222\u001D112401011724020921US240108000000004","ssccCode":"010839000067853420","extInfo":"{\"distrDetailId\":\"03834092\",\"distrBillId\":\"PSh0347202401080019\",\"certificateCode\":\"械注1698145277\",\"purBillId\":\"CG202401089869\",\"pkgDefQty\":33,\"pkgDefId\":\"56b010aba2e04f978e3038c0f53d910c\",\"pkgDefName\":\" 包\"}","outId":"PSh0347202401080019","tbStatus":0,"hosVersion":0,"ext":null,"detailId":null,"distrOrderNo38c":null,"provId":null,"erpCode":null,"goodsName":null,"brand":null,"icdCode":null,"provName":null,"mfrsName":null,"goodsGg":null,"certificateCode":null,"diType":null,"printNum":null,"unit":null,"barCodeMng":null,"pkgDefQty":null,"pkgDefName":null,"distrBarcodeId":"PSh0347202401080019US240108000000004","code21Flag":null,"num":null,"spd2DbName":null,"prepCodeId":null,"uniqueCode":null,"barcodeType":null,"sourceData":null,"hasSerialNo":null,"serialNo":null,"scanQty":null,"di":null,"supplyProvHosGoodsVO":null}],"rowIdx":1,"barCodeMng":"2","rfidFlag":null,"ybDefId":null,"logicId":null,"goodsDi":null,"diType":"gs1","diUse":"20110000019770","branchId":"h0347-2011","erpCode":null,"provGoodsId":null,"replPkgQty":800}],"operationPkg":null,"applyOperationOrderNo":null,"operationOrderNo":null,"patientInHosId":null,"operName":null,"operDate":null,"operDoctor":null,"patientName":null,"operationPriority":null}}
......@@ -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分10秒</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/g8_4批量导入_导入一个产品_中心库出库结算/log.html' target='_blank'>g8_4批量导入_导入一个产品_中心库出库结算</a></td>
<td class="details-col-elapsed"><a href='../log/a3订单配送提交_3_0医院/log.html' target='_blank'>a3订单配送提交_3_0医院</a></td>
<td class="success">成功</td>
<td class="details-col-elapsed">0.831</td>
<td class="details-col-elapsed">9.917</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