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
1973b62c
Commit
1973b62c
authored
Apr 30, 2024
by
xiao-hesheng
Browse files
流程七脚本编写
parent
664a2eaf
Changes
6
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b1流程八_高值跟台业务流程.air/a_b1流程八_高值跟台业务流程.py
View file @
1973b62c
...
@@ -80,17 +80,18 @@ def operationApply(): # 高值跟台申请
...
@@ -80,17 +80,18 @@ def operationApply(): # 高值跟台申请
try
:
try
:
set_dept_lead
()
#设置科室负责人
set_dept_user
(
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
],
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
],
2
)
# 设置默认科室,切换到二级科室,使用科室管理功能
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
2
))
# set_dept_lead()#设置科室负责人
# get_stockAreaId_new(FileUtils().r_info8("b2_herp3_bs", "所有科室id", 'message6')['deptid2'],FileUtils().r_info8("b2_herp3_bs", "所有科室name", 'message6')['deptid2'],2)
# # 设置默认科室,切换到二级科室,使用科室管理功能
herpService_mcmsDeptGoodsInfo_getByProvIdPage
()
# updateUserLoginDefaultRange(get_listUserMgrRangePage(2))
operationApply
()
# herpService_mcmsDeptGoodsInfo_getByProvIdPage()
approval_center
()
# operationApply()
updateUserLoginDefaultRange
(
get_listUserMgrRangePage
(
1
))
# approval_center()
approval_center
()
# updateUserLoginDefaultRange(get_listUserMgrRangePage(1))
#内网查询手术通知单号
# approval_center()
orderno
=
Search_OrderNO
()
# #内网查询手术通知单号
# orderno=Search_OrderNO()
# height_value_order_dp(orderno)
# height_value_order_dp(orderno)
commonFuc
().
check_text_exist_result_text
(
'succeed'
,
'succeed'
)
commonFuc
().
check_text_exist_result_text
(
'succeed'
,
'succeed'
)
except
:
except
:
...
...
air_case/public1/public1/public1.py
View file @
1973b62c
...
@@ -7,6 +7,7 @@ from common.common_func import commonFuc
...
@@ -7,6 +7,7 @@ from common.common_func import commonFuc
from
common.fileUtls
import
FileUtils
from
common.fileUtls
import
FileUtils
import
json
import
json
import
time
import
time
from
common.timeUtils
import
timeUtils
# 添加[]
# 添加[]
from
common.timeUtils
import
timeUtils
from
common.timeUtils
import
timeUtils
...
@@ -297,15 +298,16 @@ def get_stockAreaId(dept_id, stockId): # 获取库区id,参数是部门id和仓
...
@@ -297,15 +298,16 @@ def get_stockAreaId(dept_id, stockId): # 获取库区id,参数是部门id和仓
# 获取token和projectCode
# 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
# print( token,projectCode,uxid,corpId,info)
# print( token,projectCode,uxid,corpId,info)
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockShelf_page_url"
)
# url=url+userid
print
(
url
)
# 获取请求头信息
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockShelf_page_url"
)
# url=url+userid
print
(
url
)
# 请求体
# 请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload62_4"
,
dept_id
,
stockId
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload62_4"
,
dept_id
,
stockId
)
print
(
'request_body查询库区id'
,
request_body
)
print
(
'request_body查询库区id'
,
request_body
)
...
@@ -375,44 +377,57 @@ def set_dept_user(dept_id, deptName, type=1):
...
@@ -375,44 +377,57 @@ def set_dept_user(dept_id, deptName, type=1):
# 获取token和projectCode
# 获取token和projectCode
token1
,
projectCode1
,
uxid1
,
corpId1
,
info1
=
login_system
(
username
,
password
).
get_token
()
token1
,
projectCode1
,
uxid1
,
corpId1
,
info1
=
login_system
(
username
,
password
).
get_token
()
# 登录获取用户id等信息,使用创建的用户登录============结束
# 登录获取用户id等信息,使用创建的用户登录============结束
# 内网登录
#
#
内网登录
username
=
commonFuc
().
get_business_data
(
module
,
"username"
)
#
username = commonFuc().get_business_data(module, "username")
## print('医院名称',username)
#
## print('医院名称',username)
password
=
commonFuc
().
get_business_data
(
module
,
"password"
)
#
password = commonFuc().get_business_data(module, "password")
# print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
#
#
print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# 获取token和projectCode
#
#
获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_system
(
username
,
password
).
get_token
()
#
token, projectCode, uxid, corpId, info = login_system(username, password).get_token()
# print( token,projectCode,uxid,corpId,info)
# print( token,projectCode,uxid,corpId,info)
# 查询库区是否已经存在人员,不需要重复添加========
# r_d2库房管理_库区设置_人员管理_添加人员
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockUser_insert_url"
)
print
(
'url库房管理_库区设置_人员管理_添加人员'
,
url
)
# 获取请求头信息
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
1
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockUser_page_url"
)
# # 请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload65_3"
,
dept_id
,
stockId
,
get_hosid
())
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload62_9_1_1"
,
dept_id
,
deptName
,
get_hosid
(),
stockAreaId
,
print
(
'查询库区是否已经存在人员'
,
request_body
)
username1
,
uxid1
,
username1
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'url库房管理_库区设置_人员管理_添加人员request_body'
,
request_body
)
userCode
=
commonFuc
().
analysis_json
(
'userCode'
,
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
)))
if
userCode
!=
username1
:
request_body_json
=
get_process_list
(
request_body
)
# 查询库区是否已经存在人员,不需要重复添加===============
# # # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body_json
,
headers
)
# r_d2库房管理_库区设置_人员管理_添加人员
print
(
'resultbbbbbbbbbbb'
,
result
)
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"basic_stockUser_insert_url"
)
# 断言
print
(
'url库房管理_库区设置_人员管理_添加人员'
,
url
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
# 获取请求头信息
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
data1
=
commonFuc
().
analysis_json
(
'data'
,
data
)
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token1
,
# print(type(data1))
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# pageSize = commonFuc().analysis_json('pageSize', data)
# print(pageSize, type(pageSize))
# # 请求体
if
code
==
0
and
data
==
1
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload62_9_1_1"
,
dept_id
,
deptName
,
get_hosid
(),
stockAreaId
,
commonFuc
().
check_text_exist
(
0
,
result
)
username1
,
uxid1
,
username1
)
print
(
'url库房管理_库区设置_人员管理_添加人员request_body'
,
request_body
)
request_body_json
=
get_process_list
(
request_body
)
# # # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body_json
,
headers
)
print
(
'resultbbbbbbbbbbb'
,
result
)
# 断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
data1
=
commonFuc
().
analysis_json
(
'data'
,
data
)
# print(type(data1))
# pageSize = commonFuc().analysis_json('pageSize', data)
# print(pageSize, type(pageSize))
if
code
==
0
and
data
==
1
:
commonFuc
().
check_text_exist
(
0
,
result
)
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
else
:
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
print
(
'库区已经存在人员,无需重复添加'
)
def
call_login
(
type
=
1
):
# type=1外网登录 2内网登录
def
call_login
(
type
=
1
):
# type=1外网登录 2内网登录
module
=
"b2_herp3_bs"
module
=
"b2_herp3_bs"
...
@@ -955,28 +970,28 @@ def SaveCacheBatch2(headers):
...
@@ -955,28 +970,28 @@ def SaveCacheBatch2(headers):
# settleMonth2 = i['settleMonth']
# settleMonth2 = i['settleMonth']
# hosGoodsId2 = i['hosGoodsId']
# hosGoodsId2 = i['hosGoodsId']
detailList2
=
commonFuc
().
analysis_json
(
'detailList'
,
list_a
)[
1
]
detailList2
=
commonFuc
().
analysis_json
(
'detailList'
,
list_a
)[
1
]
print
(
'detailList2'
,
detailList2
)
print
(
'detailList2'
,
detailList2
)
pid2
=
commonFuc
().
analysis_json
(
'pid'
,
detailList2
)
pid2
=
commonFuc
().
analysis_json
(
'pid'
,
detailList2
)
settleMonth2
=
commonFuc
().
analysis_json
(
'settleMonth'
,
detailList2
)
settleMonth2
=
commonFuc
().
analysis_json
(
'settleMonth'
,
detailList2
)
hosGoodsId2
=
commonFuc
().
analysis_json
(
'hosGoodsId'
,
detailList2
)
hosGoodsId2
=
commonFuc
().
analysis_json
(
'hosGoodsId'
,
detailList2
)
batchCode2
=
commonFuc
().
analysis_json
(
'batchCode'
,
detailList2
)
batchCode2
=
commonFuc
().
analysis_json
(
'batchCode'
,
detailList2
)
distrDetailId2
=
commonFuc
().
analysis_json
(
'distrDetailId'
,
detailList2
)
distrDetailId2
=
commonFuc
().
analysis_json
(
'distrDetailId'
,
detailList2
)
distrId2
=
commonFuc
().
analysis_json
(
'distrId'
,
detailList2
)
distrId2
=
commonFuc
().
analysis_json
(
'distrId'
,
detailList2
)
distrOrderNo2
=
commonFuc
().
analysis_json
(
'distrOrderNo'
,
detailList2
)
distrOrderNo2
=
commonFuc
().
analysis_json
(
'distrOrderNo'
,
detailList2
)
settlePrice2
=
commonFuc
().
analysis_json
(
'settlePrice'
,
detailList2
)
settlePrice2
=
commonFuc
().
analysis_json
(
'settlePrice'
,
detailList2
)
maxSettleQty2
=
commonFuc
().
analysis_json
(
'maxSettleQty'
,
detailList2
)
maxSettleQty2
=
commonFuc
().
analysis_json
(
'maxSettleQty'
,
detailList2
)
maxSettleAmount2
=
commonFuc
().
analysis_json
(
'maxSettleAmount'
,
detailList2
)
maxSettleAmount2
=
commonFuc
().
analysis_json
(
'maxSettleAmount'
,
detailList2
)
curSettleQty2
=
commonFuc
().
analysis_json
(
'curSettleQty'
,
detailList2
)
curSettleQty2
=
commonFuc
().
analysis_json
(
'curSettleQty'
,
detailList2
)
curSettleAmount2
=
commonFuc
().
analysis_json
(
'curSettleAmount'
,
detailList2
)
curSettleAmount2
=
commonFuc
().
analysis_json
(
'curSettleAmount'
,
detailList2
)
leftSettleQty2
=
commonFuc
().
analysis_json
(
'leftSettleQty'
,
detailList2
)
leftSettleQty2
=
commonFuc
().
analysis_json
(
'leftSettleQty'
,
detailList2
)
leftSettleAmount2
=
commonFuc
().
analysis_json
(
'leftSettleAmount'
,
detailList2
)
leftSettleAmount2
=
commonFuc
().
analysis_json
(
'leftSettleAmount'
,
detailList2
)
balanceDetId2
=
commonFuc
().
analysis_json
(
'balanceDetId'
,
detailList2
)
balanceDetId2
=
commonFuc
().
analysis_json
(
'balanceDetId'
,
detailList2
)
purMode2
=
commonFuc
().
analysis_json
(
'purMode'
,
detailList2
)
purMode2
=
commonFuc
().
analysis_json
(
'purMode'
,
detailList2
)
barCode2
=
commonFuc
().
analysis_json
(
'barCode'
,
detailList2
)
barCode2
=
commonFuc
().
analysis_json
(
'barCode'
,
detailList2
)
viewId2
=
commonFuc
().
analysis_json
(
'viewId'
,
detailList2
)
viewId2
=
commonFuc
().
analysis_json
(
'viewId'
,
detailList2
)
provId2
=
commonFuc
().
analysis_json
(
'provId'
,
detailList2
)
provId2
=
commonFuc
().
analysis_json
(
'provId'
,
detailList2
)
branchId2
=
commonFuc
().
analysis_json
(
'branchId'
,
detailList2
)
branchId2
=
commonFuc
().
analysis_json
(
'branchId'
,
detailList2
)
# hosId2 = j['hosId']
# hosId2 = j['hosId']
# provId2 = j['provId']
# provId2 = j['provId']
# branchId2 = j['branchId']
# branchId2 = j['branchId']
...
@@ -1252,7 +1267,7 @@ def herpService_mcmsDeptGoodsInfo_getByProvIdPage(): # 高值跟台获取产品
...
@@ -1252,7 +1267,7 @@ def herpService_mcmsDeptGoodsInfo_getByProvIdPage(): # 高值跟台获取产品
FileUtils
().
w_info8
(
info
,
module
,
'产品信息'
,
titlename
,
'message19'
)
FileUtils
().
w_info8
(
info
,
module
,
'产品信息'
,
titlename
,
'message19'
)
def
height_value_order_dp
(
orderno
,
type
=
2
):
# 高值跟台配送
def
height_value_order_dp
(
orderno
):
# 高值跟台配送
# # 登录获取用户id等信息,使用创建的用户登录===========开始
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"供货关系申请2"
,
'message'
)
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"供货关系申请2"
,
'message'
)
# print(info)
# print(info)
...
@@ -1264,12 +1279,12 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1264,12 +1279,12 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
print
(
'username,password'
,
username
,
password
)
print
(
'username,password'
,
username
,
password
)
# # print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# # print(username, password,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
# # 获取token和projectCode
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
_system
(
username
,
password
).
get_token
(
)
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
1
)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 登录获取用户id等信息,使用创建的用户登录============结束
# =========================查询待确认订单======================
# =========================查询待确认订单======================
module
=
"b5_spd3_core_business_flow"
module
=
"b5_spd3_core_business_flow"
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"
purchase
_page_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"
hdiFusion_operation
_page_url"
)
# 获取请求头信息
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
...
@@ -1278,18 +1293,14 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1278,18 +1293,14 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
hos_id
=
branch_id
[
0
:
5
]
hos_id
=
branch_id
[
0
:
5
]
exeProvId
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
exeProvId
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'供货关系申请2'
,
'message'
)[
"e_corpId"
]
if
type
==
1
:
orderNo1
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'采购计划单号'
,
'message7'
)[
"orderNo1"
]
orderNo1
=
orderno
print
(
orderNo1
)
elif
type
==
2
:
dateValue1
=
timeUtils
().
get_time_add
(
-
30
,
2
)
orderNo1
=
orderno
dateValue2
=
timeUtils
().
get_time_hms
(
30
,
2
)
print
(
orderNo1
)
elif
type
==
3
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload1_1_1"
,
dateValue1
,
dateValue2
,
orderNo1
,
exeProvId
,
orderNo1
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
'采购计划单号试剂'
,
'message12'
)[
"orderNo1"
]
hos_id
,
dateValue1
,
dateValue2
)
print
(
orderNo1
)
else
:
orderNo1
=
'orderNo1'
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload1_1_1"
,
orderNo1
,
hos_id
,
exeProvId
)
# print('request_body',request_body)
# print('request_body',request_body)
# 发送请求
# 发送请求
while
True
:
while
True
:
...
@@ -1345,11 +1356,10 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1345,11 +1356,10 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
# =========================查询待确认订单======================
# =========================查询待确认订单======================
# ==============================确认订单==================
# ==============================确认订单==================
module
=
"a6_mdm3_dp"
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"ensure_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"ensure_url"
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload2"
,
id1
,
uxid
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload2
6
"
,
id1
,
uxid
)
# print('request_body',request_body)
# print('request_body',request_body)
# 发送请求
# 发送请求
...
@@ -1363,29 +1373,15 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1363,29 +1373,15 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
else
:
else
:
commonFuc
().
check_text_exist
(
'error'
,
result
)
commonFuc
().
check_text_exist
(
'error'
,
result
)
# ==============================确认订单==================
# ==============================确认订单==================
# ==============================配送==================
# url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "purchase_page_url")
#
# request_body = commonFuc().get_business_data(module, "payload3_1_1",exeProvId,hos_id)
# # 发送请求
# result = commonFuc().http_post(url, request_body, headers)
# print('result', result)
# #断言
# code=commonFuc().analysis_json('code',result)
# data=commonFuc().analysis_json('data',result)
# total=commonFuc().analysis_json('total',data)
# data1 = commonFuc().analysis_json('data', data)
# id1=commonFuc().analysis_json('id', data1[0])
# print('id1',id1)
# ==================a3获取订单详细信息中的子表id_3_0医院
# ==================a3获取订单详细信息中的子表id_3_0医院
# a1订单配送列表数据查询_全部
# a1订单配送列表数据查询_全部
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"detail_id_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"detail_id_url"
)
url
=
url
+
id1
+
"/3"
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload4"
,
id1
)
#
request_body = commonFuc().get_business_data(module, "payload4", id1)
# print('request_body',request_body)
# print('request_body',request_body)
# 发送请求
# 发送请求
result
=
commonFuc
().
http_
pos
t
(
url
,
request_body
,
headers
)
result
=
commonFuc
().
http_
ge
t
(
url
,
headers
)
print
(
'resulta3获取订单详细信息中的子表id_3_0医院'
,
result
)
print
(
'resulta3获取订单详细信息中的子表id_3_0医院'
,
result
)
# 断言
# 断言
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
code
=
commonFuc
().
analysis_json
(
'code'
,
result
)
...
@@ -1411,7 +1407,6 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1411,7 +1407,6 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
# ==================a3获取订单详细信息中的子表id_3_0医院
# ==================a3获取订单详细信息中的子表id_3_0医院
# ==================订单配送========================
# ==================订单配送========================
module
=
"a6_mdm3_dp"
# a1订单配送列表数据查询_全部
# a1订单配送列表数据查询_全部
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submit_url"
)
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"submit_url"
)
# 获取请求头信息
# 获取请求头信息
...
@@ -1423,16 +1418,7 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1423,16 +1418,7 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
print
(
'info从message9文件中获取信息'
,
info
)
print
(
'info从message9文件中获取信息'
,
info
)
# print('info', info)
# print('info', info)
list_a
=
info
[
'list_a'
]
list_a
=
info
[
'list_a'
]
# print('list_a',list_a,type(list_a))
# list_a = ','.join(map(str, list_a))
# import json
# new_request_body = list_a.replace("'", '"')
# new_request_body1 = new_request_body.replace("None", 'null')
# print('new_request_body1',new_request_body1)
#
# list_a2 = json.loads(new_request_body1)
# print('list_a2', list_a2)
# print('list_a2', type(list_a2))
hosGoodsId
=
'hosGoodsId'
hosGoodsId
=
'hosGoodsId'
mdmGoodsCode
=
'mdmGoodsCode'
mdmGoodsCode
=
'mdmGoodsCode'
goodsCode
=
'goodsCode'
goodsCode
=
'goodsCode'
...
@@ -1451,18 +1437,11 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
...
@@ -1451,18 +1437,11 @@ def height_value_order_dp(orderno, type=2): # 高值跟台配送
# # #获取日期
# # #获取日期
productDate
=
timeUtils
().
get_time_hms
(
5
)
productDate
=
timeUtils
().
get_time_hms
(
5
)
expdtDate
=
timeUtils
().
get_time_add
(
190
,
2
)
expdtDate
=
timeUtils
().
get_time_add
(
190
,
2
)
if
type
==
1
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload9_2_1_1"
,
id1
,
id1
,
hosId
,
provId
,
billMode
,
createUser
,
username
,
createUser
,
id2
,
hosGoodsId
,
mdmGoodsCode
,
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload9_2_1_2"
,
id1
,
id1
,
hosId
,
provId
,
billMode
,
goodsCode
,
pkgDefId
,
productDate
,
expdtDate
,
erpCode
,
id2
)
elif
type
==
2
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload9_2_1_2"
,
id1
,
id1
,
hosId
,
provId
,
billMode
,
createUser
,
username
,
createUser
,
id2
,
hosGoodsId
,
mdmGoodsCode
,
createUser
,
username
,
createUser
,
id2
,
hosGoodsId
,
mdmGoodsCode
,
goodsCode
,
productDate
,
expdtDate
,
erpCode
,
id2
)
goodsCode
,
productDate
,
expdtDate
,
erpCode
,
id2
)
elif
type
==
3
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload9_2_1_3"
,
id1
,
id1
,
hosId
,
provId
,
billMode
,
createUser
,
username
,
createUser
,
id2
,
hosGoodsId
,
mdmGoodsCode
,
goodsCode
,
pkgDefId
,
productDate
,
expdtDate
,
erpCode
,
id2
)
print
(
'request_body'
,
request_body
)
print
(
'request_body'
,
request_body
)
# 发送请求
# 发送请求
...
...
data/a6_mdm3_dp/data
View file @
1973b62c
...
@@ -29,7 +29,6 @@ json_headers2: {
...
@@ -29,7 +29,6 @@ json_headers2: {
"payload1": {"pageNum":1,"pageSize":50,"orderBy":"last_modified desc, order_no desc","queryObject":{"dateValue":["",""],"hosId":"h0347","exeProvId":"p10d95","pageType":1,"tabIdx":"1","startDate":"","endDate":""}}
"payload1": {"pageNum":1,"pageSize":50,"orderBy":"last_modified desc, order_no desc","queryObject":{"dateValue":["",""],"hosId":"h0347","exeProvId":"p10d95","pageType":1,"tabIdx":"1","startDate":"","endDate":""}}
"payload1_1_1": {"pageNum":1,"pageSize":50,"orderBy":"last_modified desc, order_no desc","queryObject":{"dateValue":["",""],"orderNo":"%s",hosId":"%s","exeProvId":"%s","pageType":1,"tabIdx":"1","startDate":"","endDate":""}}
"payload1_1_1": {"pageNum":1,"pageSize":50,"orderBy":"last_modified desc, order_no desc","queryObject":{"dateValue":["",""],"orderNo":"%s",hosId":"%s","exeProvId":"%s","pageType":1,"tabIdx":"1","startDate":"","endDate":""}}
"payload1_1": {"pageNum":1,"pageSize":50,"orderBy":"last_modified desc, order_no desc","queryObject":{"dateValue":["",""],"hosId":"h0028","exeProvId":"p10d95","pageType":1,"tabIdx":"1","startDate":"","endDate":""}}
"payload1_1": {"pageNum":1,"pageSize":50,"orderBy":"last_modified desc, order_no desc","queryObject":{"dateValue":["",""],"hosId":"h0028","exeProvId":"p10d95","pageType":1,"tabIdx":"1","startDate":"","endDate":""}}
"payload2": {"id":"%s","version":0,"hosVersion":3,"userId":"%s","detailList":[]}
"payload2": {"id":"%s","version":0,"hosVersion":3,"userId":"%s","detailList":[]}
...
...
data/b2_herp3_bs/data
View file @
1973b62c
...
@@ -479,6 +479,7 @@ json_headers2: {
...
@@ -479,6 +479,7 @@ json_headers2: {
"payload65": '[{"id":"3a8395c5578745a6a7cf6b48ae166ce6","lastModified":"2024-01-22 09:09:29","version":0,"createTime":"2024-01-22 09:09:29","createUser":"UID-050151","lastModifiedUser":"UID-050151","businessType":0,"procType":0,"modelName":"默认审批流","judgeType":"111","rangeType":0,"rangeData":null,"modelJson":"[{\"no\":0,\"nodeName\":\"运营主管\",\"assigneeType\":2}]","nodeQty":1,"sortNo":0,"modelList":[{"no":0,"nodeName":"运营主管","assigneeType":2,"assignee":null}],"rangeDataFirst":null,"rangeDataSecond":null}]'
"payload65": '[{"id":"3a8395c5578745a6a7cf6b48ae166ce6","lastModified":"2024-01-22 09:09:29","version":0,"createTime":"2024-01-22 09:09:29","createUser":"UID-050151","lastModifiedUser":"UID-050151","businessType":0,"procType":0,"modelName":"默认审批流","judgeType":"111","rangeType":0,"rangeData":null,"modelJson":"[{\"no\":0,\"nodeName\":\"运营主管\",\"assigneeType\":2}]","nodeQty":1,"sortNo":0,"modelList":[{"no":0,"nodeName":"运营主管","assigneeType":2,"assignee":null}],"rangeDataFirst":null,"rangeDataSecond":null}]'
"payload65_1": '[{"id":"3a8395c5578745a6a7cf6b48ae166ce6","lastModified":"2024-03-07 08:44:05","version":0,"createTime":"2024-03-07 08:44:05","createUser":"h0347:UID-042066","lastModifiedUser":"h0347:UID-042066","businessType":0,"procType":0,"modelName":"默认审批流","judgeType":"111","rangeType":0,"rangeData":null,"modelJson":"[{\"no\":0,\"nodeName\":\"运营主管\",\"assigneeType\":2}]","nodeQty":1,"sortNo":0,"modelList":[{"no":0,"nodeName":"运营主管","assigneeType":2,"assignee":null}],"rangeDataFirst":null,"rangeDataSecond":null},{"businessType":0,"judgeType":"","modelList":[{"assigneeType":0,"nodeName":"test","assignee":"UID-048618"}],"modelName":"test","rangeDataFirst":999999,"rangeDataSecond":null,"rangeType":3}]'
"payload65_1": '[{"id":"3a8395c5578745a6a7cf6b48ae166ce6","lastModified":"2024-03-07 08:44:05","version":0,"createTime":"2024-03-07 08:44:05","createUser":"h0347:UID-042066","lastModifiedUser":"h0347:UID-042066","businessType":0,"procType":0,"modelName":"默认审批流","judgeType":"111","rangeType":0,"rangeData":null,"modelJson":"[{\"no\":0,\"nodeName\":\"运营主管\",\"assigneeType\":2}]","nodeQty":1,"sortNo":0,"modelList":[{"no":0,"nodeName":"运营主管","assigneeType":2,"assignee":null}],"rangeDataFirst":null,"rangeDataSecond":null},{"businessType":0,"judgeType":"","modelList":[{"assigneeType":0,"nodeName":"test","assignee":"UID-048618"}],"modelName":"test","rangeDataFirst":999999,"rangeDataSecond":null,"rangeType":3}]'
"payload65_2": '[{"id":"3a8395c5578745a6a7cf6b48ae166ce6","lastModified":"2024-03-07 09:32:20","version":0,"createTime":"2024-03-07 09:32:20","createUser":"h0347:UID-042066","lastModifiedUser":"h0347:UID-042066","businessType":0,"procType":0,"modelName":"默认审批流","judgeType":"111","rangeType":0,"rangeData":null,"modelJson":"[{\"no\":0,\"nodeName\":\"运营主管\",\"assigneeType\":2}]","nodeQty":1,"sortNo":0,"modelList":[{"no":0,"nodeName":"运营主管","assigneeType":2,"assignee":null}],"rangeDataFirst":null,"rangeDataSecond":null},{"businessType":0,"judgeType":"","modelList":[{"assigneeType":0,"nodeName":"zzzz","assignee":"UID-050151"}],"modelName":"zzzz","rangeDataFirst":2222,"rangeDataSecond":44444,"rangeType":2}]'
"payload65_2": '[{"id":"3a8395c5578745a6a7cf6b48ae166ce6","lastModified":"2024-03-07 09:32:20","version":0,"createTime":"2024-03-07 09:32:20","createUser":"h0347:UID-042066","lastModifiedUser":"h0347:UID-042066","businessType":0,"procType":0,"modelName":"默认审批流","judgeType":"111","rangeType":0,"rangeData":null,"modelJson":"[{\"no\":0,\"nodeName\":\"运营主管\",\"assigneeType\":2}]","nodeQty":1,"sortNo":0,"modelList":[{"no":0,"nodeName":"运营主管","assigneeType":2,"assignee":null}],"rangeDataFirst":null,"rangeDataSecond":null},{"businessType":0,"judgeType":"","modelList":[{"assigneeType":0,"nodeName":"zzzz","assignee":"UID-050151"}],"modelName":"zzzz","rangeDataFirst":2222,"rangeDataSecond":44444,"rangeType":2}]'
"payload65_3": {"queryObject":{"deptId":"%s","stockAreaId":"%s","hosId":"%s"},"pageNum":1,"pageSize":50}
checkDict: {"code": 0,'msg': None,'data': True}
checkDict: {"code": 0,'msg': None,'data': True}
...
...
data/b5_spd3_core_business_flow/data
View file @
1973b62c
...
@@ -18,11 +18,15 @@
...
@@ -18,11 +18,15 @@
"herpService_stock_hdiBarcode_scan_url": "/api/herpService/stock/hdiBarcode/scan/"
"herpService_stock_hdiBarcode_scan_url": "/api/herpService/stock/hdiBarcode/scan/"
"herpService_stock_review_pass_submit_url": "/api/herpService/stock/out/review/pass/submit"
"herpService_stock_review_pass_submit_url": "/api/herpService/stock/out/review/pass/submit"
"herpService_mcmsOutBalance_listVoPage_url": "/api/herpService/mcmsOutBalance/listVoPage"
"herpService_mcmsOutBalance_listVoPage_url": "/api/herpService/mcmsOutBalance/listVoPage"
"platformService_listUserMgrRangePage_url": "/api/
herpService/mcmsOutBalance/listVo
Page"
"platformService_listUserMgrRangePage_url": "/api/
platformService/userOnline/listUserMgrRange
Page"
"platformService_updateUserLoginDefaultRange_url": "/api/platformService/userOnline/updateUserLoginDefaultRange/"
"platformService_updateUserLoginDefaultRange_url": "/api/platformService/userOnline/updateUserLoginDefaultRange/"
"herpService_mcmsDeptGoodsInfo_getByProvIdPage_url": "/api/herpService/basic/mcmsDeptGoodsInfo/getByProvIdPage"
"herpService_mcmsDeptGoodsInfo_getByProvIdPage_url": "/api/herpService/basic/mcmsDeptGoodsInfo/getByProvIdPage"
"herpService_operationApply_listPage_url": "/api/herpService/operationApply/listPage"
"herpService_operationApply_listPage_url": "/api/herpService/operationApply/listPage"
"herpService_operationApply_submit_url": "/api/herpService/operationApply/submit"
"herpService_operationApply_submit_url": "/api/herpService/operationApply/submit"
"hdiFusion_operation_page_url": "/api/hdiFusion/bill/operation/page"
"ensure_url": "/api/hdiFusion/bill/operation/ensure"
"detail_id_url": "/api/hdiFusion/bill/operation/detail/"
"submit_url": "/api/hdiFusion/bill/distr/operation/submit"
"username": "xhs1009"
"username": "xhs1009"
...
@@ -63,4 +67,6 @@ json_headers2: {
...
@@ -63,4 +67,6 @@ json_headers2: {
"payload22": {"pageNum":1,"pageSize":50,"queryObject":{"orderNo":"","settleMonth":"","hosId":"%s"},"hosId":"%s"}
"payload22": {"pageNum":1,"pageSize":50,"queryObject":{"orderNo":"","settleMonth":"","hosId":"%s"},"hosId":"%s"}
"payload23": {"pageNum":1,"pageSize":50,"queryObject":{"userId":"%s","keyword":""}}
"payload23": {"pageNum":1,"pageSize":50,"queryObject":{"userId":"%s","keyword":""}}
"payload25": {"pageNum":1,"pageSize":50,"queryObject":{"subProvName":"","goodsName":"%s","goodsSpec":"","provId":"%s"}}
"payload25": {"pageNum":1,"pageSize":50,"queryObject":{"subProvName":"","goodsName":"%s","goodsSpec":"","provId":"%s"}}
"payload24": {"recAddressId":"%s","expireDate":"%s 14:03:47","remark":"自动化测试","patientInHosId":"123456","patientName":"张三","sex":1,"age":44,"operName":"血管扩张术","operDoctor":"李四","operDate":"%s 14:04:13","bedNum":"2","oprationHouse":"设备科一手术间","surDeptName":"","recAddress":"默认库区","provGoodsVOList":[{"id":null,"lastModified":null,"version":null,"createTime":null,"createUser":null,"lastModifiedUser":null,"hosId":null,"provId":"%s","subProvId":null,"clientType":null,"invitationCode":null,"contactWay":null,"contactUser":null,"tbStatus":null,"activeFlag":null,"auditor":null,"auditTime":null,"auditComment":null,"provCode":"%s","provName":"%s","subProvName":null,"goodsVOList":[{"hosGoodsId":"%s","hosGoodsCode":"%s","provId":"%s","subProvId":"%s","subProvName":"%s","goodsName":"%s","goodsSpec":"%s","goodsGeneralName":null,"goodsMfrsId":"%s","goodsMfrsName":"%s","unit":"%s","price":"%s","miCode":"","miDjmc":"","goodsNum":1}]}]}
"payload24": {"recAddressId":"%s","expireDate":"%s 14:03:47","remark":"自动化测试","patientInHosId":"123456","patientName":"张三","sex":1,"age":44,"operName":"血管扩张术","operDoctor":"李四","operDate":"%s 14:04:13","bedNum":"2","oprationHouse":"设备科一手术间","surDeptName":"","recAddress":"默认库区","provGoodsVOList":[{"id":null,"lastModified":null,"version":null,"createTime":null,"createUser":null,"lastModifiedUser":null,"hosId":null,"provId":"%s","subProvId":null,"clientType":null,"invitationCode":null,"contactWay":null,"contactUser":null,"tbStatus":null,"activeFlag":null,"auditor":null,"auditTime":null,"auditComment":null,"provCode":"%s","provName":"%s","subProvName":null,"goodsVOList":[{"hosGoodsId":"%s","hosGoodsCode":"%s","provId":"%s","subProvId":"%s","subProvName":"%s","goodsName":"%s","goodsSpec":"%s","goodsGeneralName":null,"goodsMfrsId":"%s","goodsMfrsName":"%s","unit":"%s","price":"%s","miCode":"","miDjmc":"","goodsNum":1}]}]}
\ No newline at end of file
"payload1_1_1": {"pageNum":1,"pageSize":50,"queryObject":{"dateValue":["%s 14:20:37","%s 14:20:37"],"orderNo":"%s","provId":"%s","pageType":2,"hosIdList":["%s"],"status":"10","startDate":"%s 00:00:00","endDate":"%s 23:59:59"}}
"payload26": {"id":"%s","version":0,"hosVersion":3,"userId":"%s"}
report/summary.html
View file @
1973b62c
...
@@ -55,9 +55,9 @@
...
@@ -55,9 +55,9 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
1
</td>
<td
class=
'details-col-elapsed'
>
0
</td>
<td
class=
'details-col-elapsed'
>
0分
22
秒
</td>
<td
class=
'details-col-elapsed'
>
0分
7
秒
</td>
<td
class=
"details-col-elapsed"
>
10
0.0%
</td>
<td
class=
"details-col-elapsed"
>
0.0%
</td>
</tr>
</tr>
</table>
</table>
...
@@ -73,8 +73,8 @@
...
@@ -73,8 +73,8 @@
<tr
width=
"600"
>
<tr
width=
"600"
>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_b1流程八_高值跟台业务流程/log.html'
target=
'_blank'
>
a_b1流程八_高值跟台业务流程
</a></td>
<td
class=
"details-col-elapsed"
><a
href=
'../log/a_b1流程八_高值跟台业务流程/log.html'
target=
'_blank'
>
a_b1流程八_高值跟台业务流程
</a></td>
<td
class=
"
success"
>
成功
</td>
<td
class=
"
fail"
>
失败
</td>
<td
class=
"details-col-elapsed"
>
22
.2
1
9
</td>
<td
class=
"details-col-elapsed"
>
7
.2
6
9
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
<td
class=
"details-col-elapsed"
>
xiaohesheng
</td>
</tr>
</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