Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-spd
Commits
33d54201
Commit
33d54201
authored
Nov 01, 2023
by
xiao-hesheng
Browse files
添加单元包设置脚本
parent
867a7cdc
Changes
11
Hide whitespace changes
Inline
Side-by-side
air_case/a2_herp3_bs/f1_院区单元包设置_查询产品信息_未维护单元包.air/f1_院区单元包设置_查询产品信息_未维护单元包.py
View file @
33d54201
...
...
@@ -53,6 +53,10 @@ def branch_goods_select():
total
=
commonFuc
().
analysis_json
(
'total'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
if
total
>=
0
:
commonFuc
().
check_text_exist
(
0
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
branchGoodsId
=
commonFuc
().
analysis_json
(
'branchGoodsId'
,
data
)
hosGoodsId
=
commonFuc
().
analysis_json
(
'hosGoodsId'
,
data
)
return
branchGoodsId
,
hosGoodsId
else
:
commonFuc
().
check_text_exist
(
500
,
result
)
branch_goods_select
()
air_case/a2_herp3_bs/f2_院区单元包设置_查询未维护单元包产品的单元包信息.air/f2_院区单元包设置_查询未维护单元包产品的单元包信息.py
0 → 100644
View file @
33d54201
# -*- encoding=utf8 -*-
import
sys
from
airtest.core.helper
import
using
from
common.db.sql.sql_del_branch_info
import
delByBranchId
from
common.db.sql.sql_del_kind_goodsinfo
import
delKindGoodsinfo
from
common.db.sql.sql_del_notices_info
import
delByNoticeName
from
common.fileUtls
import
FileUtils
from
common.timeUtils
import
timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,f2_院区单元包设置_查询单元包信息,id2263,id2263-52,sit,on
内网:f2_院区单元包设置_查询单元包信息
"""
from
common.common_func
import
commonFuc
from
air_case.a1_herp3_login.登录内网系统.登录内网系统
import
login_system
module
=
"a2_herp3_bs"
def
branch_branchGoodsPkgDef_select
():
"""
场景:f2_院区单元包设置_查询单元包信息
用例名称:f2_院区单元包设置_查询单元包信息
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
# # print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#f2_院区单元包设置_查询单元包信息
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"branchGoodsPkgDef_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
#获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
#获取branchGoodsId
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f1_院区单元包设置_查询产品信息_未维护单元包.air'
)
using
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f1_院区单元包设置_查询产品信息_未维护单元包.air'
)
from
f1_院区单元包设置_查询产品信息_未维护单元包
import
branch_goods_select
branchGoodsId
,
hosGoodsId
=
branch_goods_select
()
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload40"
,
branch_id
,
branchGoodsId
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict15'
)
commonFuc
().
check_result
(
checkDict
,
result
)
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# if total>=0:
# commonFuc().check_text_exist(0, result)
# data=commonFuc().analysis_json('data',commonFuc().analysis_json('data',result))
# branchGoodsId=commonFuc().analysis_json('branchGoodsId',data)
# return branchGoodsId
# else:
# commonFuc().check_text_exist(500, result)
branch_branchGoodsPkgDef_select
()
air_case/a2_herp3_bs/f3_院区单元包设置_新增单元包.air/f3_院区单元包设置_新增单元包.py
0 → 100644
View file @
33d54201
# -*- encoding=utf8 -*-
import
sys
from
airtest.core.helper
import
using
from
common.db.sql.sql_del_branch_info
import
delByBranchId
from
common.db.sql.sql_del_kind_goodsinfo
import
delKindGoodsinfo
from
common.db.sql.sql_del_notices_info
import
delByNoticeName
from
common.fileUtls
import
FileUtils
from
common.timeUtils
import
timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,f3_院区单元包设置_新增单元包,id2263,id2263-53,sit,on
内网:f3_院区单元包设置_新增单元包
"""
from
common.common_func
import
commonFuc
from
air_case.a1_herp3_login.登录内网系统.登录内网系统
import
login_system
module
=
"a2_herp3_bs"
def
branch_branchGoodsPkgDef_add
():
"""
场景:f3_院区单元包设置_新增单元包
用例名称:f3_院区单元包设置_新增单元包
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
# # print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#f3_院区单元包设置_新增单元包
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"branchGoodsPkgDef_insert_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
#获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
#获取branchGoodsId
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f1_院区单元包设置_查询产品信息_未维护单元包.air'
)
using
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f1_院区单元包设置_查询产品信息_未维护单元包.air'
)
from
f1_院区单元包设置_查询产品信息_未维护单元包
import
branch_goods_select
branchGoodsId
,
hosGoodsId
=
branch_goods_select
()
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload41"
,
branchGoodsId
,
branch_id
,
hosGoodsId
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict10'
)
commonFuc
().
check_result
(
checkDict
,
result
)
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# if total>=0:
# commonFuc().check_text_exist(0, result)
# data=commonFuc().analysis_json('data',commonFuc().analysis_json('data',result))
# branchGoodsId=commonFuc().analysis_json('branchGoodsId',data)
# return branchGoodsId
# else:
# commonFuc().check_text_exist(500, result)
#将已经维护了的单元包的branchGoodsId和hosGoodsId写入文件
info
=
(
branchGoodsId
,
hosGoodsId
)
titlename
=
(
'branchGoodsId'
,
'hosGoodsId'
)
# 将单元包信息写入文件中
FileUtils
().
w_info4
(
info
,
module
,
'单元包信息'
,
titlename
)
branch_branchGoodsPkgDef_add
()
air_case/a2_herp3_bs/f4_院区单元包设置_新增后查询单元包信息.air/f4_院区单元包设置_新增后查询单元包信息.py
0 → 100644
View file @
33d54201
# -*- encoding=utf8 -*-
import
sys
from
airtest.core.helper
import
using
from
common.db.sql.sql_del_branch_info
import
delByBranchId
from
common.db.sql.sql_del_kind_goodsinfo
import
delKindGoodsinfo
from
common.db.sql.sql_del_notices_info
import
delByNoticeName
from
common.fileUtls
import
FileUtils
from
common.timeUtils
import
timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,f4_院区单元包设置_新增后查询单元包信息,id2263,id2263-54,sit,on
内网:f4_院区单元包设置_新增后查询单元包信息
"""
from
common.common_func
import
commonFuc
from
air_case.a1_herp3_login.登录内网系统.登录内网系统
import
login_system
module
=
"a2_herp3_bs"
def
branch_branchGoodsPkgDef_select
():
"""
场景:f4_院区单元包设置_新增后查询单元包信息
用例名称:f4_院区单元包设置_新增后查询单元包信息
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
# # print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#f4_院区单元包设置_新增后查询单元包信息
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"branchGoodsPkgDef_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
#获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
#获取branchGoodsId
# pro_path = commonFuc().get_pro_path()
# sys.path.append(pro_path + r'\\air_case\\a2_herp3_bs\\f1_院区单元包设置_查询产品信息_未维护单元包.air')
# using(pro_path + r'\\air_case\\a2_herp3_bs\\f1_院区单元包设置_查询产品信息_未维护单元包.air')
# from f1_院区单元包设置_查询产品信息_未维护单元包 import branch_goods_select
# branchGoodsId,hosGoodsId = branch_goods_select()
#获取单元包信息
branchGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"branchGoodsId"
]
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload42"
,
branch_id
,
branchGoodsId
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
# checkDict=commonFuc().get_business_data(module,'checkDict10')
# commonFuc().check_result(checkDict,result)
unitPackageid
=
commonFuc
().
analysis_json
(
'id'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
commonFuc
().
check_text_exist
(
444.0
,
result
)
# if total>=0:
# commonFuc().check_text_exist(0, result)
# data=commonFuc().analysis_json('data',commonFuc().analysis_json('data',result))
# branchGoodsId=commonFuc().analysis_json('branchGoodsId',data)
# return branchGoodsId
# else:
# commonFuc().check_text_exist(500, result)
return
unitPackageid
branch_branchGoodsPkgDef_select
()
air_case/a2_herp3_bs/f5_院区单元包设置_新增单元包信息_已存在的包名.air/f5_院区单元包设置_新增单元包信息_已存在的包名.py
0 → 100644
View file @
33d54201
# -*- encoding=utf8 -*-
import
sys
from
airtest.core.helper
import
using
from
common.db.sql.sql_del_branch_info
import
delByBranchId
from
common.db.sql.sql_del_kind_goodsinfo
import
delKindGoodsinfo
from
common.db.sql.sql_del_notices_info
import
delByNoticeName
from
common.fileUtls
import
FileUtils
from
common.timeUtils
import
timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,f5_院区单元包设置_新增单元包信息_已存在的包名,id2263,id2263-55,sit,on
内网:f5_院区单元包设置_新增单元包信息_已存在的包名
"""
from
common.common_func
import
commonFuc
from
air_case.a1_herp3_login.登录内网系统.登录内网系统
import
login_system
module
=
"a2_herp3_bs"
def
branch_branchGoodsPkgDef_add
():
"""
场景:f5_院区单元包设置_新增单元包信息_已存在的包名
用例名称:f5_院区单元包设置_新增单元包信息_已存在的包名
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
# # print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#f5_院区单元包设置_新增单元包信息_已存在的包名
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"branchGoodsPkgDef_insert_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
#获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
#获取branchGoodsId
# 获取单元包信息
branchGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"branchGoodsId"
]
hosGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"hosGoodsId"
]
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload41"
,
branchGoodsId
,
branch_id
,
hosGoodsId
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict16'
)
commonFuc
().
check_result
(
checkDict
,
result
)
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# if total>=0:
# commonFuc().check_text_exist(0, result)
# data=commonFuc().analysis_json('data',commonFuc().analysis_json('data',result))
# branchGoodsId=commonFuc().analysis_json('branchGoodsId',data)
# return branchGoodsId
# else:
# commonFuc().check_text_exist(500, result)
branch_branchGoodsPkgDef_add
()
air_case/a2_herp3_bs/f6_院区单元包设置_编辑单元包信息.air/f6_院区单元包设置_编辑单元包信息.py
0 → 100644
View file @
33d54201
# -*- encoding=utf8 -*-
import
sys
from
airtest.core.helper
import
using
from
common.db.sql.sql_del_branch_info
import
delByBranchId
from
common.db.sql.sql_del_kind_goodsinfo
import
delKindGoodsinfo
from
common.db.sql.sql_del_notices_info
import
delByNoticeName
from
common.fileUtls
import
FileUtils
from
common.timeUtils
import
timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,f6_院区单元包设置_编辑单元包信息,id2263,id2263-56,sit,on
内网:f6_院区单元包设置_编辑单元包信息
"""
from
common.common_func
import
commonFuc
from
air_case.a1_herp3_login.登录内网系统.登录内网系统
import
login_system
module
=
"a2_herp3_bs"
def
branch_branchGoodsPkgDef_edit
():
"""
场景:f6_院区单元包设置_编辑单元包信息
用例名称:f6_院区单元包设置_编辑单元包信息
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
# # print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#f6_院区单元包设置_编辑单元包信息
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"branchGoodsPkgDef_update_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
#获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
#获取branchGoodsId
# 获取单元包信息
branchGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"branchGoodsId"
]
hosGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"hosGoodsId"
]
#获取单元包id
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f4_院区单元包设置_新增后查询单元包信息.air'
)
using
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f4_院区单元包设置_新增后查询单元包信息.air'
)
from
f4_院区单元包设置_新增后查询单元包信息
import
branch_branchGoodsPkgDef_select
unitPackageid
=
branch_branchGoodsPkgDef_select
()
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
unitPackageid
,
hosGoodsId
,
branchGoodsId
,
branch_id
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict10'
)
commonFuc
().
check_result
(
checkDict
,
result
)
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# if total>=0:
# commonFuc().check_text_exist(0, result)
# data=commonFuc().analysis_json('data',commonFuc().analysis_json('data',result))
# branchGoodsId=commonFuc().analysis_json('branchGoodsId',data)
# return branchGoodsId
# else:
# commonFuc().check_text_exist(500, result)
branch_branchGoodsPkgDef_edit
()
air_case/a2_herp3_bs/f7_院区单元包设置_编辑单元包信息_异常保存.air/f7_院区单元包设置_编辑单元包信息_异常保存.py
0 → 100644
View file @
33d54201
# -*- encoding=utf8 -*-
import
sys
from
airtest.core.helper
import
using
from
common.db.sql.sql_del_branch_info
import
delByBranchId
from
common.db.sql.sql_del_kind_goodsinfo
import
delKindGoodsinfo
from
common.db.sql.sql_del_notices_info
import
delByNoticeName
from
common.fileUtls
import
FileUtils
from
common.timeUtils
import
timeUtils
__author__
=
"xiaohesheng"
"""
case_tag:api,herp-web,f7_院区单元包设置_编辑单元包信息_异常保存,id2263,id2263-57,sit,on
内网:f7_院区单元包设置_编辑单元包信息_异常保存
"""
from
common.common_func
import
commonFuc
from
air_case.a1_herp3_login.登录内网系统.登录内网系统
import
login_system
module
=
"a2_herp3_bs"
def
branch_branchGoodsPkgDef_edit
():
"""
场景:f7_院区单元包设置_编辑单元包信息_异常保存
用例名称:f7_院区单元包设置_编辑单元包信息_异常保存
输入:无
输出:"rtn_msg": {"code": 0, "msg": null, "data": 1}
"""
#内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
# # print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
#f7_院区单元包设置_编辑单元包信息_异常保存
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"branchGoodsPkgDef_update_url"
)
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
#获取院区id
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
#获取branchGoodsId
# 获取单元包信息
branchGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"branchGoodsId"
]
hosGoodsId
=
FileUtils
().
r_info
(
module
,
'单元包信息'
)[
"hosGoodsId"
]
#获取单元包id
pro_path
=
commonFuc
().
get_pro_path
()
sys
.
path
.
append
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f4_院区单元包设置_新增后查询单元包信息.air'
)
using
(
pro_path
+
r
'\\air_case\\a2_herp3_bs\\f4_院区单元包设置_新增后查询单元包信息.air'
)
from
f4_院区单元包设置_新增后查询单元包信息
import
branch_branchGoodsPkgDef_select
unitPackageid
=
branch_branchGoodsPkgDef_select
()
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload44"
,
unitPackageid
,
hosGoodsId
,
branchGoodsId
,
branch_id
)
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
#断言
checkDict
=
commonFuc
().
get_business_data
(
module
,
'checkDict10'
)
commonFuc
().
check_result
(
checkDict
,
result
)
# total=commonFuc().analysis_json('total',commonFuc().analysis_json('data',result))
# if total>=0:
# commonFuc().check_text_exist(0, result)
# data=commonFuc().analysis_json('data',commonFuc().analysis_json('data',result))
# branchGoodsId=commonFuc().analysis_json('branchGoodsId',data)
# return branchGoodsId
# else:
# commonFuc().check_text_exist(500, result)
branch_branchGoodsPkgDef_edit
()
common/fileUtls.py
View file @
33d54201
...
...
@@ -131,8 +131,10 @@ class FileUtils(object):
module
=
module
dict
=
{}
value
=
{}
value
[
titlename
[
0
]]
=
info
[
0
]
value
[
titlename
[
1
]]
=
info
[
1
]
for
i
in
range
(
len
(
titlename
)):
value
[
titlename
[
i
]]
=
info
[
i
]
# value[titlename[0]] = info[0]
# value[titlename[1]] = info[1]
key
=
keyname
dict
[
key
]
=
value
w_path
=
rootPath
+
os
.
sep
+
'data'
+
os
.
sep
+
module
...
...
data/a2_herp3_bs/data
View file @
33d54201
...
...
@@ -24,6 +24,9 @@
"importGoods_url": "/hospitaltest2api/herpService/basic/mcmsBranchGoodsInfo/importGoods"
"oneKeyImportGoods_url": "/hospitaltest2api/herpService/basic/mcmsBranchGoodsInfo/oneKeyImportGoods"
"mcmsBranchGoodsInfo_url": "/hospitaltest2api/herpService/basic/mcmsBranchGoodsInfo/page"
"branchGoodsPkgDef_url": "/hospitaltest2api/herpService/branchGoodsPkgDef/list"
"branchGoodsPkgDef_insert_url": "/hospitaltest2api/herpService/branchGoodsPkgDef/insert"
"branchGoodsPkgDef_update_url": "/hospitaltest2api/herpService/branchGoodsPkgDef/updateById"
"username": "xhs1009"
"password": "1qaz!QAZ"
"X-APP-CODE": "herp.pc"
...
...
@@ -203,8 +206,11 @@ json_headers2: {
"payload37": {"hosId": "h0347","branchId": "%s"}
"payload38": {"pageNum": 1,"pageSize": 50,"queryObject": {"branchId": "%s","hosId": "h0347","goodsName": "","purModes": [10,60],"notPkg": false,"goodsSpec": ""}}
"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"}
"payload42": {"hosId": "h0347",branchId": "%s", "branchGoodsId": "%s"}
"payload43": {"id": "%s","effFlag": 1,"pkgLowQty": "555","pkgUperQty": 555,"hosGoodsId": "%s","branchGoodsId": "%s","branchId": "%s"}
"payload44": {"id": "%s","effFlag": 1,"pkgLowQty": "555","pkgUperQty": 554,"hosGoodsId": "%s","branchGoodsId": "%s","branchId": "%s"}
checkDict: {"code": 0,'msg': None,'data': True}
...
...
@@ -281,4 +287,7 @@ checkDict12: {'code': 1100000, 'msg': '暂时没有定义异码,中文描述为:
pl:362', 'data': None}
checkDict13: {'code': 0, 'msg': None, 'tag': None, 'data': None}
checkDict14: {'code': 1100000, 'msg': '暂时没有定义异码,中文描述为:请先创建设备科及中心库!', 'tag': '/herpService:gyqx.spd.herp.basic.service.impl.BranchGoodsInfoServiceIm
pl:423', 'data': None}
\ No newline at end of file
pl:423', 'data': None}
checkDict15: {'code': 0, 'msg': None, 'tag': None, 'data': []}
checkDict16: {'code': 14030004, 'msg': '单元包含量重复,请修改后继续操作', 'tag': '/herpService:gyqx.spd.herp.basic.service.impl.BranchGoodsPkgDefServiceImpl:178', 'data':
None}
data/a2_herp3_bs/message
View file @
33d54201
...
...
@@ -4,3 +4,6 @@
科室信息:
dept2_id: 8f3aed0a165c486a92721cccb4298abc
dept2_name: 二级科室002
单元包信息:
branchGoodsId: h0347-265800001952
hosGoodsId: h034700001952
report/summary.html
View file @
33d54201
...
...
@@ -55,9 +55,9 @@
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0分
1
秒
</td>
<td
class=
"details-col-elapsed"
>
10
0.0%
</td>
<td
class=
'details-col-elapsed'
>
0
</td>
<td
class=
'details-col-elapsed'
>
0分
0
秒
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
</tr>
</table>
...
...
@@ -72,9 +72,9 @@
</tr>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/f
1
_院区单元包设置_
查询产品信息_未维护
单元包/log.html'
target=
'_blank'
>
f
1
_院区单元包设置_
查询产品信息_未维护
单元包
</a></td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"details-col-elapsed"
>
1.091
</td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/f
4
_院区单元包设置_
新增后查询
单元包
信息
/log.html'
target=
'_blank'
>
f
4
_院区单元包设置_
新增后查询
单元包
信息
</a></td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"details-col-elapsed"
>
0.302
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment