Commit 6881751e authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 18efab2a
...@@ -64,11 +64,20 @@ def check_mcms_dept_buy(type=1): ...@@ -64,11 +64,20 @@ def check_mcms_dept_buy(type=1):
# print('actual_value2') # print('actual_value2')
# print( actual_value2) # print( actual_value2)
# prov_hos_goods_id = '8d6273b7bca84dd8aace12b9422d7fd6' # prov_hos_goods_id = '8d6273b7bca84dd8aace12b9422d7fd6'
expected_value2 = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check', expected_value2='expected_value2'
'check_mcms_dept_buy_car', id, get_hosid(), branch_id, deptid2, if type==1:
deptname2, areaCode, areaName, hos_goods_id, mdm_goods_code, expected_value2 = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
goodsCode,pur_mode, pkgDefId, pkgDefName 'check_mcms_dept_buy_car_low_value', id, get_hosid(), branch_id, deptid2,
, create_user, create_time, last_modified, last_modified_user) deptname2, areaCode, areaName, hos_goods_id, mdm_goods_code,
goodsCode,pur_mode, pkgDefId, pkgDefName
, create_user, create_time, last_modified, last_modified_user)
elif type==2:
expected_value2 = commonFuc().get_business_data('b6_spd3_core_business_flow_database_check',
'check_mcms_dept_buy_car_high_value', id, get_hosid(), branch_id,
deptid2,
deptname2, areaCode, areaName, hos_goods_id, mdm_goods_code,
goodsCode, pur_mode,
create_user, create_time, last_modified, last_modified_user)
# print('expected_value2', expected_value2) # print('expected_value2', expected_value2)
# expected_value2=get_process_list2(expected_value2) # expected_value2=get_process_list2(expected_value2)
actual_value2 = actual_value2.replace(" ", "") actual_value2 = actual_value2.replace(" ", "")
......
二级库请领产品信息: 二级库请领产品信息:
list_a: list_a:
- &id001 - &id001
- hosGoodsId: h034700004499 - hosGoodsId: h034700004500
purMode: 20 purMode: 10
grantRule: grantRule:
id: id:
goodsName: 高值牙钻机PFKHm goodsName: 一次性注射器_低值wExpg
goodsSpec: G-31891 goodsSpec: G-31891
mdmGoodsCode: '11661452' mdmGoodsCode: '11661453'
goodsCode: '00004499' goodsCode: '00004500'
unit: unit:
goodsMfrsName: 德国歌德公司 Geuder AG goodsMfrsName: 德国歌德公司 Geuder AG
miDjmc: '' miDjmc: ''
miCode: '' miCode: ''
pkgDefName: pkgDefName: '100'
pkgDefQty: 1.0 pkgDefQty: 100.0
pkgQty: pkgQty:
qty: 5.0 qty: 500.0
goodsImg: [] goodsImg: []
pkgDefId: pkgDefId: 34b26233759a4720920cc8328dd1f8d1
buyPkgQty: buyPkgQty:
unitName: 1 unitName: 100支/100
price: 99.9999 price: 99.9999
hosId: hosId:
branchId: branchId:
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
grantWay: 2 grantWay: 2
deptGoodsStatus: deptGoodsStatus:
codingType: 0 codingType: 0
purModeText: 值耗材 purModeText: 值耗材
goodsGeneralName: 牙钻机 goodsGeneralName: 一次性注射器
provName: 国药集团公司^n1@F provName: 国药集团公司^n1@F
noRecPkgQty: 15.0 noRecPkgQty: 15.0
noRecQty: 15.0 noRecQty: 1500.0
autoUnpack: autoUnpack: 0
consumeQty: consumeQty:
consumePkgQty: consumePkgQty:
list_b: list_b:
......
"check_mcms_dept_buy_car": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}' "check_mcms_dept_buy_car_low_value": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": "%s", "pkg_def_name": "%s", "pkg_def_qty": Decimal("100.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("100.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
\ No newline at end of file "check_mcms_dept_buy_car_high_value": '{"id": "%s", "hos_id": "%s", "branch_id": "%s", "dept_id": "%s", "dept_name": "%s", "area_code": "%s", "area_name": "%s", "hos_goods_id": "%s", "mdm_goods_code": "%s", "goods_code": "%s", "pur_mode": %s, "pkg_def_id": null, "pkg_def_name": null, "pkg_def_qty": Decimal("1.00"), "buy_pkg_qty": Decimal("1.00"), "buy_qty": Decimal("1.00"), "tb_status": 0, "create_user": "%s", "create_time": %s, "last_modified": %s, "last_modified_user": "%s", "version": 0, "coding_type": 0}'
\ No newline at end of file
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