Commit 1745105a authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 8823ea73
......@@ -392,6 +392,7 @@ def main():
# 调用审批结算单
approval_center(OBH_ID)
invoice(2,OBH_ID)
print('流程五结束')
except Exception as e:
print('脚本出现异常,请检查脚本或者数据')
print("发生异常:", str(e))
......
......@@ -236,5 +236,6 @@ def main():
approval_center(OBh_ID)
invoice(2,OBh_ID)#type=2 传递结算单号,外网查询开票
commonFuc().check_text_exist_result_text('succees', 'succees')
print('流程六结束')
except:
commonFuc().check_text_exist_result_text('error', '1')
......@@ -234,5 +234,6 @@ def main():
approval_center(OBh_ID)
invoice(3,OBh_ID)#type=2 传递结算单号,外网查询开票
commonFuc().check_text_exist_result_text('succees', 'succees')
print('流程七结束')
except:
commonFuc().check_text_exist_result_text('error', 'succees')
......@@ -343,5 +343,6 @@ def main():
updateUserLoginDefaultRange(get_listUserMgrRangePage(1)) # 设置登录账号默认权限是中心库
out_return_gt() # 跟台退货出库_中心库处理
commonFuc().check_text_exist_result_text('succees', 'succees')
print('流程八结束')
except:
commonFuc().check_text_exist_result_text('error', '1')
......@@ -429,5 +429,6 @@ def main():
second_dept_one_key_in()
second_dept_one_key_in()
commonFuc().check_text_exist_result_text('succees', 'succees')
print('流程九结束')
except:
commonFuc().check_text_exist_result_text('error', '1')
条码信息:
list_a:
- &id001
id: UT240705000215
snCode: UT240705000215
ssccCode: '010839000187046528'
pkgCodeSee: 010112345678901210333112407051725011121UT240705000215
hosGoodsId: h034700004462
hosGoodsCode: '00004462'
goodsCode: '00004462'
goodsName: 一次性注射器_低值C2g9i
id: UT240705000313
snCode: UT240705000313
ssccCode: '010839000187066328'
pkgCodeSee: 0101123456789012104444112407051725011121UT240705000313
hosGoodsId: h034700004463
hosGoodsCode: '00004463'
goodsCode: '00004463'
goodsName: 新型冠状病毒检测试剂a7oLM
goodsSpec: G-31891
goodsMfrsName: 德国歌德公司 Geuder AG
unit:
purMode: 10
batchCode: '333'
purMode: 60
batchCode: '4444'
productDate: '2024-07-05'
expdtDate: '2025-01-11'
pkgDefName: '100'
......@@ -26,13 +26,13 @@
unitName: 100支/100
shelfCode: areah03472634-2-01-01
shelfNo: 自动化测试-2-01-01
pkgDefId: db284f5e13594188b4aa09a5832293ec
extInfo: '{"pkgDefId": "db284f5e13594188b4aa09a5832293ec", "pkgDefQty": 100, "purBillId":
"CG2024070520620", "pkgDefName": "100", "distrBillId": "PSh0347202407050026",
"inStockTime": "2024-07-05 10:21:08", "distrDetailId": "03839280", "certificateCode":
pkgDefId: fdfa9805e01946bba3c5b8bd487a6dc7
extInfo: '{"pkgDefId": "fdfa9805e01946bba3c5b8bd487a6dc7", "pkgDefQty": 100, "purBillId":
"CG2024070520622", "pkgDefName": "100", "distrBillId": "PSh0347202407050028",
"inStockTime": "2024-07-05 10:20:42", "distrDetailId": "03839282", "certificateCode":
""}'
bottleId:
pkgType: '16'
pkgType: '66'
miDjmc: ''
miCode: ''
transferRatio: 1.0
......@@ -46,8 +46,8 @@
made: 德国
price:
barName: 100支/100
purModeText: 低值耗材
codeType: 16
purModeText: 检验试剂
codeType: 66
list_b:
- *id001
list_c:
......
......@@ -40,8 +40,8 @@
purModeText: 检验试剂
goodsGeneralName: 检测试剂
provName: 国药集团公司GxzLS
noRecPkgQty: 0
noRecQty: 0
noRecPkgQty: 1.0
noRecQty: 100.0
autoUnpack: 0
consumeQty:
consumePkgQty:
......
......@@ -2,8 +2,8 @@
list_a:
- &id001
- id: 2aeb6b71864042b8aece41d819c70542
lastModified: '2024-07-05 10:40:39'
version: 1
lastModified: '2024-07-05 10:54:30'
version: 2
createTime: '2024-07-05 10:13:37'
createUser: h0347_UID-051395
lastModifiedUser: h0347_UID-051395
......
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