Commit 742138aa authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 24fc14ce
...@@ -198,7 +198,9 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放) ...@@ -198,7 +198,9 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放)
# # # # 发送请求 # # # # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('result', result)
code = commonFuc().analysis_json('code', result)
if code == 1010:
commonFuc().check_text_exist_result_text('error', 'succees')
elif type == 3: elif type == 3:
print('试剂产品扫码发放') print('试剂产品扫码发放')
module = "b5_spd3_core_business_flow" module = "b5_spd3_core_business_flow"
...@@ -362,6 +364,9 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放) ...@@ -362,6 +364,9 @@ def center_Stock_unpack(type): # 扫码发放(高值不能扫码发放)
# # # # 发送请求 # # # # 发送请求
result = commonFuc().http_post(url, request_body, headers) result = commonFuc().http_post(url, request_body, headers)
print('result', result) print('result', result)
code=commonFuc().analysis_json('code',result)
if code==1010:
commonFuc().check_text_exist_result_text('error', 'succees')
def main(): def main():
try: try:
......
...@@ -643,7 +643,8 @@ json_headers2: { ...@@ -643,7 +643,8 @@ json_headers2: {
"remark": null, "remark": null,
"hosBatchId": null, "hosBatchId": null,
"settleFlag": null, "settleFlag": null,
"inStockTime": null "inStockTime": null,
"verifyFlag":null
} }
], ],
"pickType": "CB", "pickType": "CB",
......
条码信息: 条码信息:
list_a: list_a:
- &id001 - &id001
- id: UT240705000316 id: UT240705000318
lastModified: snCode: UT240705000318
version: ssccCode: '010839000187066823'
createTime: '2024-07-05 10:19:12' pkgCodeSee: 0101123456789012104444112407051725011121UT240705000318
createUser: hosGoodsId: h034700004463
lastModifiedUser: hosGoodsCode: '00004463'
snCode: UT240705000316 goodsCode: '00004463'
hosId: h0347 goodsName: 新型冠状病毒检测试剂a7oLM
branchId: goodsSpec: G-31891
stockId: 9b3e40528eff4ed1bf4ee12b587e00d0 goodsMfrsName: 德国歌德公司 Geuder AG
areaCode: areah03472634 unit:
areaName: 自动化测试 purMode: 60
shelfCode: areah03472634-2-01-01 batchCode: '4444'
codeType: 66 productDate: '2024-07-05'
tagType: 0 expdtDate: '2025-01-11'
hosGoodsId: h034700004463 pkgDefName: '100'
mdmGoodsCode: '11661416' pkgDefQty: 100.0
goodsCode: '00004463' stockId: 9b3e40528eff4ed1bf4ee12b587e00d0
goodsDi: '01123456789012' stockName: 东土城路院区)Gl$!中心库房
barName: 100支/100 areaName: 自动化测试
batchCode: '4444' areaCode: areah03472634
expdtDate: '2025-01-11' lockStatus: 0
productDate: '2024-07-05' unitName: 100支/100
mfrCode: shelfCode: areah03472634-2-01-01
mfrCodeSee: shelfNo: 自动化测试-2-01-01
pkgCode: "0101123456789012104444\x1D112407051725011121UT240705000316" pkgDefId: fdfa9805e01946bba3c5b8bd487a6dc7
pkgCodeSee: 0101123456789012104444112407051725011121UT240705000316 extInfo: '{"pkgDefId": "fdfa9805e01946bba3c5b8bd487a6dc7", "pkgDefQty": 100, "purBillId":
ssccCode: '010839000187066625' "CG2024070520622", "pkgDefName": "100", "distrBillId": "PSh0347202407050028",
extInfo: "inStockTime": "2024-07-05 10:20:42", "distrDetailId": "03839282", "certificateCode":
outId: ""}'
tbStatus: 20 bottleId:
goodsCodeDi: pkgType: '66'
barcodeId: miDjmc: ''
ext: miCode: ''
pkgDefId: fdfa9805e01946bba3c5b8bd487a6dc7 transferRatio: 1.0
pkgDefQty: 100 qty: 1
purBillId: CG2024070520622 shelfKind: 0
pkgDefName: '100' shelfKindName: 普通货位
distrBillId: PSh0347202407050028 provName: 国药集团公司GxzLS
inStockTime: '2024-07-05 10:20:42' provId: p1e31d
distrDetailId: '03839282' inStockDate:
certificateCode: '' mfrCode:
sourceDetailId: made: 德国
purMode: 60 price:
purModes: barName: 100支/100
price: purModeText: 检验试剂
pid: codeType: 66
goodsMfrsName: 德国歌德公司 Geuder AG
mfrsName:
goodsSpec: G-31891
unit:
goodsName: 新型冠状病毒检测试剂a7oLM
pkgDefId: fdfa9805e01946bba3c5b8bd487a6dc7
pkgDefQty: 100
defaultPkgDefQty:
defaultQty:
defaultSurplusQty:
defaultPkgDefId:
purDetailId:
pkgDefName: '100'
printNum: 0
deptId:
deptName:
billId:
taskId:
made: 德国
provId: p1e31d
provName: 国药集团公司GxzLS
subProvId: p1e31d
subProvName: 国药集团公司GxzLS
provHosGoodsId:
sourceType:
taskDate:
sourceOrderNo:
taskType:
detailId:
branchGoodsPkgDefList:
unitName:
areaCodeList:
diType:
mdmGoodsSpecCode:
hosGoodsCode: '00004463'
supplyId:
inSettlement:
spdGoodsCode:
codeKind:
brand:
miCode:
transferRatio: 1.0
miDjmc:
tbStatusList:
purModeText:
stockName:
tbStatusText:
pkgType:
bottleId:
pkgStatus:
qty:
packUnit:
minSaleQty:
rfidFlag:
mfrCodeFlag:
scanStatus:
scanId:
multiChargeFlag:
useFrequency:
chargeUnit:
lockStatus:
remark:
hosBatchId:
settleFlag:
inStockTime:
verifyFlag:
subSendFlag: 10
list_b: list_b:
- *id001 - *id001
list_c: list_c:
......
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