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
3f738b18
Commit
3f738b18
authored
May 27, 2024
by
xiao-hesheng
Browse files
流程十脚本编写
parent
ea5a67d1
Changes
36
Hide whitespace changes
Inline
Side-by-side
air_case/b5_spd3_core_business_flow/a_b4流程十一请领业务流_二级库向二级库.air/a_b4流程十一请领业务流_二级库向二级库.py
0 → 100644
View file @
3f738b18
# -*- encoding=utf8 -*-
import
json
import
traceback
from
air_case.b1_herp3_login.登录内网系统.登录内网系统
import
login_system
from
air_case.public1.public1.public1
import
*
from
common.db.sql.sql_del_branch_info
import
delData
from
common.fileUtls
import
FileUtils
from
common.run_cmd_script
import
execute_command
from
common.timeUtils
import
timeUtils
from
airtest.core.api
import
using
__author__
=
"xiaohesheng"
"""
case_tag:api,spd_core1,a_b4流程十一请领业务流_二级库向二级库,id2302,id2302-14,sit,on
核心业务流:a_b4流程十一请领业务流_二级库向二级库
python runner_test.py tag id2302-14 debug mdm3
"""
def
SERACH_goods_id
(
GoodsId
):
module
=
'b5_spd3_core_business_flow'
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
username
=
info
[
'username1'
]
password
=
commonFuc
().
get_business_data
(
"b2_herp3_bs"
,
"password"
)
print
(
'username,password'
,
username
,
password
)
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
2
)
# 登录获取用户id等信息,使用创建的用户登录============结束\
# 获取请求头信息
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_mcmsBranchGoodsInfo_page_url"
)
dept1
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid1'
]
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId']
# GoodsId = hosGoodsId.replace(get_hosid(), '')
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload53"
,
GoodsId
,
get_hosid
(),
get_branch_id
(),
dept1
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
branchGoodsId
=
commonFuc
().
analysis_json
(
'id'
,
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
)))
return
branchGoodsId
def
goods_move
():
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
username
=
info
[
'username1'
]
password
=
commonFuc
().
get_business_data
(
"b2_herp3_bs"
,
"password"
)
print
(
'username,password'
,
username
,
password
)
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
2
)
# 登录获取用户id等信息,使用创建的用户登录============结束
module
=
"b2_herp3_bs"
# g0_请领出库渠道设置_转移产品到边仓
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"updateSettleType_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"
))
for
i
in
range
(
1
,
4
):
info
=
FileUtils
().
r_info8
(
'b5_spd3_core_business_flow'
,
"产品审核信息"
,
'message%s'
%
i
)
hosGoodsId
=
info
[
'hosGoodsId'
]
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
branchGoodsId
=
SERACH_goods_id
(
GoodsId
)
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload47"
,
branchGoodsId
,
hosGoodsId
,
get_branch_id
())
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'goods_move,result'
,
result
)
def
second_dept_Request
(
hosGoodsId
,
type
):
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
username
=
info
[
'username1'
]
password
=
commonFuc
().
get_business_data
(
"b2_herp3_bs"
,
"password"
)
print
(
'username,password'
,
username
,
password
)
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
2
)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 我要请领_手工请领_列表查询===========================
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_queryGoodsInfoPage_url"
)
print
(
'我要请领_手工请领_列表查询================='
,
url
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
# 高值
# hosGoodsId = FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId']
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
areaCode
=
get_stockAreaId_new
(
deptid2
,
deptname2
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload39"
,
GoodsId
,
get_hosid
(),
deptid2
,
areaCode
)
print
(
'我要请领_手工请领_列表查询'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'我要请领_手工请领_列表查询,result'
,
result
)
data1
=
commonFuc
().
analysis_json
(
'data'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
goodsName
=
commonFuc
().
analysis_json
(
'goodsName'
,
data1
)
goodsSpec
=
commonFuc
().
analysis_json
(
'goodsSpec'
,
data1
)
mdmGoodsCode
=
commonFuc
().
analysis_json
(
'mdmGoodsCode'
,
data1
)
goodsCode
=
commonFuc
().
analysis_json
(
'goodsCode'
,
data1
)
unit
=
commonFuc
().
analysis_json
(
'unit'
,
data1
)
purMode
=
commonFuc
().
analysis_json
(
'purMode'
,
data1
)
goodsMfrsName
=
commonFuc
().
analysis_json
(
'goodsMfrsName'
,
data1
)
unitName
=
commonFuc
().
analysis_json
(
'unitName'
,
data1
)
price
=
commonFuc
().
analysis_json
(
'price'
,
data1
)
deptId
=
commonFuc
().
analysis_json
(
'deptId'
,
data1
)
# areaCode=commonFuc().analysis_json('areaCode',data1)
areaName
=
'默认库区'
targetDeptId
=
commonFuc
().
analysis_json
(
'targetDeptId'
,
data1
)
targetDeptName
=
commonFuc
().
analysis_json
(
'targetDeptName'
,
data1
)
targetStockId
=
commonFuc
().
analysis_json
(
'targetStockId'
,
data1
)
targetStockName
=
commonFuc
().
analysis_json
(
'targetStockName'
,
data1
)
purModeText
=
commonFuc
().
analysis_json
(
'purModeText'
,
data1
)
goodsGeneralName
=
commonFuc
().
analysis_json
(
'goodsGeneralName'
,
data1
)
provName
=
commonFuc
().
analysis_json
(
'provName'
,
data1
)
pkgDefId
=
commonFuc
().
analysis_json
(
'pkgDefId'
,
data1
)
# 信息写入文件
list_a
=
[]
list_b
=
[]
list_c
=
[]
list_a
.
append
(
data1
)
list_b
.
append
(
data1
)
list_c
.
append
(
data1
)
# print('list_a', len(list_a), list_a)
info
=
(
list_a
,
list_b
,
list_c
)
titlename
=
(
'list_a'
,
'list_b'
,
'list_c'
)
FileUtils
().
w_info8
(
info
,
module
,
'二级库请领产品信息'
,
titlename
,
'message21'
)
# 我要请领_手工请领_列表查询===========================
# 添加到请领车=============================================
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_createBuyCar_url"
)
print
(
'添加到请领车================='
,
url
)
if
type
==
1
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload40"
,
hosGoodsId
,
goodsName
,
goodsSpec
,
mdmGoodsCode
,
goodsCode
,
unit
,
purMode
,
goodsMfrsName
,
pkgDefId
,
unitName
,
price
,
deptId
,
areaCode
,
areaName
,
targetDeptId
,
targetDeptName
,
targetStockId
,
targetStockName
,
purModeText
,
goodsGeneralName
,
provName
)
elif
type
==
2
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload41"
,
hosGoodsId
,
goodsName
,
goodsSpec
,
mdmGoodsCode
,
goodsCode
,
unit
,
purMode
,
goodsMfrsName
,
unitName
,
price
,
deptId
,
areaCode
,
areaName
,
targetDeptId
,
targetDeptName
,
targetStockId
,
targetStockName
,
purModeText
,
goodsGeneralName
,
provName
)
elif
type
==
3
:
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload42"
,
hosGoodsId
,
goodsName
,
goodsSpec
,
mdmGoodsCode
,
goodsCode
,
unit
,
purMode
,
goodsMfrsName
,
pkgDefId
,
unitName
,
price
,
deptId
,
areaCode
,
areaName
,
targetDeptId
,
targetDeptName
,
targetStockId
,
targetStockName
,
purModeText
,
goodsGeneralName
,
provName
)
request_body
=
get_process_list
(
request_body
)
print
(
'添加到请领车'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'添加到请领车,result'
,
result
)
# 添加到请领车=============================================
def
BuyCarSubmit
():
module
=
"b5_spd3_core_business_flow"
# # 登录获取用户id等信息,使用创建的用户登录===========开始
info
=
FileUtils
().
r_info8
(
'b2_herp3_bs'
,
"用户名信息"
,
'message3'
)
username
=
info
[
'username1'
]
password
=
commonFuc
().
get_business_data
(
"b2_herp3_bs"
,
"password"
)
print
(
'username,password'
,
username
,
password
)
# # 获取token和projectCode
token
,
projectCode
,
uxid
,
corpId
,
info
=
login
(
username
,
password
,
2
)
# 登录获取用户id等信息,使用创建的用户登录============结束
# 我要请领_手工请领_列表查询===========================
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# 请领车查询===============================================
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_queryBuyCarPage_url"
)
print
(
'请领车查询================='
,
url
)
deptid2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室id"
,
'message6'
)[
'deptid2'
]
deptname2
=
FileUtils
().
r_info8
(
"b2_herp3_bs"
,
"所有科室name"
,
'message6'
)[
'deptid2'
]
areaCode
=
get_stockAreaId_new
(
deptid2
,
deptname2
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload43"
,
areaCode
,
get_hosid
(),
deptid2
)
print
(
'请领车查询'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'请领车查询,result'
,
result
)
data
=
commonFuc
().
analysis_json
(
'data'
,
result
)
list_id
=
[]
for
i
in
data
:
id
=
commonFuc
().
analysis_json
(
'id'
,
i
)
list_id
.
append
(
id
)
# 请领车查询===============================================
# 请领车提交===============================================
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_validBuyCarSubmit_url"
)
print
(
'请领车提交================='
,
url
)
billExpdtDate
=
timeUtils
().
get_time_add
(
30
,
2
)
print
(
'billExpdtDate'
,
billExpdtDate
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload44"
,
billExpdtDate
,
get_branch_id
(),
list_id
[
0
],
list_id
[
1
],
list_id
[
2
])
print
(
'请领车提交'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'请领车提交,result'
,
result
)
# 请领车提交===============================================
# 创建领车交易=================================================
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"herpService_buy_createBuyBill_url"
)
print
(
'创建领车交易================='
,
url
)
billExpdtDate
=
timeUtils
().
get_time_add
(
30
,
2
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload44"
,
billExpdtDate
,
get_branch_id
(),
list_id
[
0
],
list_id
[
1
],
list_id
[
2
])
print
(
'创建领车交易'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'创建领车交易,result'
,
result
)
currentTaskList
=
commonFuc
().
analysis_json
(
'currentTaskList'
,
commonFuc
().
analysis_json
(
'data'
,
result
))
def
add_logic_stock
():
delData
().
Delete_yb_logic_stock
()
module
=
"b5_spd3_core_business_flow"
# 登录集中管控平台
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_platform
()
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# #添加云仓===============================================
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"platformService_basic_logic_save_url"
)
print
(
'添加云仓================='
,
url
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload54"
,
get_hosid
(),
get_branch_id
(),
get_branch_id
(),
uxid
,
uxid
,
get_in_userid
(),
get_hosid
(),
uxid
,
uxid
)
print
(
'添加云仓'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'添加云仓,result'
,
result
)
def
cloud_stock_opeartion
():
print
(
'云仓处理'
)
# 云仓登录
token
,
projectCode
,
uxid
,
corpId
,
info
=
login_logic_stock
()
module
=
"b5_spd3_core_business_flow"
headers
=
commonFuc
().
get_business_data
(
module
,
"json_headers2"
,
commonFuc
().
get_business_data
(
module
,
"json_contentType"
),
token
,
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# #云仓处理查看单据===============================================
url
=
commonFuc
().
get_api_url
()
+
commonFuc
().
get_business_data
(
module
,
"platformService_basic_logic_save_url"
)
print
(
'云仓处理查看单据================='
,
url
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload54"
,
get_hosid
(),
get_branch_id
(),
get_branch_id
(),
uxid
,
uxid
,
get_in_userid
(),
get_hosid
(),
uxid
,
uxid
)
print
(
'云仓处理查看单据'
,
'request_body'
,
request_body
)
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'云仓处理查看单据,result'
,
result
)
def
add_dept2
():
module
=
'b2_herp3_bs'
# 内网登录
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)
# c3_新增科室_特殊科室_二级库房
branch_id
=
FileUtils
().
r_info
(
module
,
'院区新增'
)[
"branch_id"
]
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
"dept_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"
))
# #请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload15_2"
,
get_branch_id
(),
get_hosid
())
print
(
request_body
)
# # # 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
print
(
'result'
,
result
)
try
:
add_dept2
()
# set_dept_lead() # 设置二级科室负责人
# # 科室必须同步到外网,集中管控平台创建边仓才能选择到用户,"deptType":"0"
# add_logic_stock()
#
# # 设置产品出库渠道为边仓
# goods_move()
# updateUserLoginDefaultRange(get_listUserMgrRangePage(2)) # 设置登录账号默认权限是二级库
#
# # # # 低值
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message2')['hosGoodsId'], 1)
# # # 高值
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message1')['hosGoodsId'], 2)
# # # 试剂
# second_dept_Request(FileUtils().r_info8("b5_spd3_core_business_flow", "产品审核信息", 'message3')['hosGoodsId'], 3)
# BuyCarSubmit() # 请领车提交
# for i in range(6): # 三个单据共审批6次
# approval_center()
commonFuc
().
check_text_exist_result_text
(
'succees'
,
'succees'
)
except
:
commonFuc
().
check_text_exist_result_text
(
'error'
,
'1'
)
data/a2_mdm3_ea/message
View file @
3f738b18
企业信息:
e_id: CR2024052
4
0038
cname: 国药集团公司
oJCHn
e_id: CR2024052
7
0038
cname: 国药集团公司
$U^K@
data/a3_mdm3_hs/message
View file @
3f738b18
医院信息:
h_id: 湖南省人民医院
#I4Ev
h_name: 湖南省人民医院
#I4Ev
h_id: 湖南省人民医院
N8UEp
h_name: 湖南省人民医院
N8UEp
data/a5_mdm3_pdm/message2
View file @
3f738b18
产品审核信息
:
MSPid
:
MSP24052
4
001
0
_1
MSPid
:
MSP24052
7
001
1
_1
hosId
:
h0347
hosGoodsId
:
h034700003
765
provGoodsid
:
provGood-99220
898
goodsAuditBillId
:
MSP24052
4
001
0
targetId
:
MSP24052
4
001
0
_1
hosGoodsId
:
h034700003
813
provGoodsid
:
provGood-99220
946
goodsAuditBillId
:
MSP24052
7
001
1
targetId
:
MSP24052
7
001
1
_1
data/a6_mdm3_si/message
View file @
3f738b18
...
...
@@ -2,10 +2,10 @@
list_a:
- &id001
settleMonth: '202406'
pid: OBh03472024052
2
0004
hosGoodsId: h034700003
6
81
goodsCode: '00003
6
81'
goodsName: 一次性注射器_低值
@s2rQ
pid: OBh03472024052
7
0004
hosGoodsId: h03470000381
0
goodsCode: '0000381
0
'
goodsName: 一次性注射器_低值
GAP0b
goodsGg: G-31891
mfrsName: 德国歌德公司 Geuder AG
unit: 支
...
...
@@ -16,16 +16,17 @@
cacheleftAmount: 19999.98
purMode: 10
waitInvoicingNum: 0.0
invoicingPrice: 99.9999
normalContractId:
normalContract: '1'
detailList:
- pid: OBh03472024052
2
0004
- pid: OBh03472024052
7
0004
settleMonth: '202406'
hosGoodsId: h034700003
6
81
hosGoodsId: h03470000381
0
batchCode: '333'
distrDetailId: '03837
536
'
distrId: PSh03472024052
2
0005
distrOrderNo: PSh03472024052
2
0005
distrDetailId: '03837
740
'
distrId: PSh03472024052
7
0005
distrOrderNo: PSh03472024052
7
0005
settlePrice: 99.9999
maxSettleQty: -100.0
maxSettleAmount: -9999.99
...
...
@@ -34,11 +35,11 @@
leftSettleQty: -100.0
leftSettleAmount: -9999.99
hosId: h0347
provId: p1e2
23
branchId: h0347-36
16
balanceDetId: OBh03472024052
2
0004-000001
provId: p1e2
4c
branchId: h0347-36
35
balanceDetId: OBh03472024052
7
0004-000001
purMode: 10
barCode: 0136
16
000003
6
810103331124052
2
17241
128
21UT24052
2
000202
barCode: 0136
35
000003810
0
103331124052
7
17241
203
21UT24052
7
000202
batchId:
price:
maxQty:
...
...
@@ -50,14 +51,14 @@
oneFcatName:
volumeFlag:
onlineKind:
viewId: 202406OBh03472024052
2
0004h034700003
6
81
- pid: OBh03472024052
2
0004
viewId: 202406OBh03472024052
7
0004h03470000381
0
- pid: OBh03472024052
7
0004
settleMonth: '202406'
hosGoodsId: h034700003
6
81
hosGoodsId: h03470000381
0
batchCode: '333'
distrDetailId: '03837
536
'
distrId: PSh03472024052
2
0005
distrOrderNo: PSh03472024052
2
0005
distrDetailId: '03837
740
'
distrId: PSh03472024052
7
0005
distrOrderNo: PSh03472024052
7
0005
settlePrice: 99.9999
maxSettleQty: 100.0
maxSettleAmount: 9999.99
...
...
@@ -66,11 +67,11 @@
leftSettleQty: 100.0
leftSettleAmount: 9999.99
hosId: h0347
provId: p1e2
23
branchId: h0347-36
16
balanceDetId: OBh03472024052
2
0004-000002
provId: p1e2
4c
branchId: h0347-36
35
balanceDetId: OBh03472024052
7
0004-000002
purMode: 10
barCode: 0136
16
000003
6
810103331124052
2
17241
1
2
8
21UT24052
2
0002
54
barCode: 0136
35
000003810
0
103331124052
7
172412
03
21UT24052
7
0002
33
batchId:
price:
maxQty:
...
...
@@ -82,10 +83,10 @@
oneFcatName:
volumeFlag:
onlineKind:
viewId: 202406OBh03472024052
2
0004h034700003
6
81
unique: 202406OBh03472024052
2
0004h034700003
6
81
viewId: 202406OBh03472024052
7
0004h03470000381
0
unique: 202406OBh03472024052
7
0004h03470000381
0
onlineKind: '10'
viewId: 202406OBh03472024052
2
0004h034700003
6
81
viewId: 202406OBh03472024052
7
0004h03470000381
0
list_b:
- *id001
list_c:
...
...
data/b2_herp3_bs/data
View file @
3f738b18
...
...
@@ -211,6 +211,8 @@ json_headers2: {
"payload13": {"pageNum": 1,"pageSize": 50,"orderBy": "code asc","queryObject": {"ename": "","branchId": "院区id", "branchId": "%s", "hosId": "医院id", "hosId": "h0347" }}
"payload14": {"branchId":"%s","cname":"","ename":"设备科001","erpCode":"001","address":"设备科001","contactWay":"13401003250","deptKind":1,"deptCate":1,"deptLevel":"1","flag":"1","hisDeptCodes":"","deptType":"1","packetType":"0","corpId":"h0347","corpKind":1}
"payload15": {"branchId":"%s","cname":"","ename":"二级检验科002","erpCode":"002","address":"二级检验科002","contactWay":"13401003250","deptKind":7,"deptCate":1,"deptLevel":"2","flag":"1","hisDeptCodes":"","deptType":"0","packetType":"0","corpId":"h0347","corpKind":1}
"payload15_2": {"branchId":"%s","cname":"","ename":"二级检验科005","erpCode":"005","address":"二级检验科005","contactWay":"13401003250","deptKind":7,"deptCate":1,"deptLevel":"2","flag":"1","hisDeptCodes":"","deptType":"0","packetType":"0","corpId":"%s","corpKind":1}
"payload16": {"branchId":"%s","pid":"%s","cname":"","ename":"三级检测组003","erpCode":"003","address":"三级检测组003","contactWay":"12401003250","deptKind":7,"deptCate":1,"deptLevel":"3","flag":"1","hisDeptCodes":"","deptType":"0","packetType":"0","corpId":"h0347","corpKind":1}
"payload17": {"branchId":"%s","pid":"%s","cname":"","ename":"科室004","erpCode":"004","address":"三级科室004","contactWay":"三级科室004","deptKind":5,"deptCate":1,"deptLevel":"4","flag":"1","hisDeptCodes":"","deptType":"0","packetType":"0","corpId":"h0347","corpKind":1}
...
...
data/b2_herp3_bs/message
View file @
3f738b18
院区新增:
branch_id: h0347-36
27
branch_name: 东土城路院区
WDUvl
branch_id: h0347-36
35
branch_name: 东土城路院区
PMue6
科室信息:
dept2_id:
1c14108179f54e28bce5b1df6b33fc57
dept2_id:
ebacb1842d234dfd9dbc59fc11bad8bf
dept2_name: 二级检验科002
data/b2_herp3_bs/message3
View file @
3f738b18
用户名信息
:
username1
:
自动化测试
3(GIe
username2
:
自动化测试
3(GIe
username1
:
自动化测试
uVgNZ
username2
:
自动化测试
uVgNZ
data/b2_herp3_bs/message4
View file @
3f738b18
一级科室信息
:
dept1_id
:
f3f1209531c84bddafbe05bd5d6585f0
dept1_id
:
e621323f605c477493861a11cf8ee8a8
dept1_name
:
设备科001
data/b2_herp3_bs/message5
View file @
3f738b18
部门和库区信息
:
dept1_id
:
f3f1209531c84bddafbe05bd5d6585f0
stockAreaId
:
ee2b9bb497544e5896ee916ba37449fb
dept1_id
:
e621323f605c477493861a11cf8ee8a8
stockAreaId
:
ddf2943da6f64fe9a5461563aed113bc
data/b2_herp3_bs/message6
View file @
3f738b18
所有科室id
:
deptid1
:
f3f1209531c84bddafbe05bd5d6585f0
deptid2
:
1c14108179f54e28bce5b1df6b33fc57
deptid3
:
f
97
2064d25184d298b82978d807c563d
deptid4
:
4226aff73a8d44ab973620a539cc33e9
deptid1
:
e621323f605c477493861a11cf8ee8a8
deptid2
:
ebacb1842d234dfd9dbc59fc11bad8bf
deptid3
:
97
dac712280c45a89bbe2ad3ae40280b
deptid4
:
05a182bdd747451882d4abec8fc7bc2f
所有科室name
:
deptid1
:
设备科001
deptid2
:
二级检验科002
...
...
data/b2_herp3_bs/message7
View file @
3f738b18
shelfinfo
:
shelfid
:
ee2b9bb497544e5896ee916ba37449fb
shelfCode
:
areah034720
53
shelfid
:
ddf2943da6f64fe9a5461563aed113bc
shelfCode
:
areah034720
94
areaName
:
自动化测试
data/b5_spd3_core_business_flow/message
View file @
3f738b18
供货关系申请2:
e_corpId: p1e2
3
c
e_corpId: p1e2
4
c
h_corpId: h0347
e_username: 国药集团公司
oJCHn
e_username: 国药集团公司
$U^K@
h_name: test001
data/b5_spd3_core_business_flow/message1
View file @
3f738b18
产品审核信息
:
MSPid
:
MSP24052
4
000
6
_1
MSPid
:
MSP24052
7
000
7
_1
hosId
:
h0347
hosGoodsId
:
h034700003
761
provGoodsid
:
provGood-99220
8
94
goodsAuditBillId
:
MSP24052
4
000
6
targetId
:
MSP24052
4
000
6
_1
hosGoodsId
:
h034700003
809
provGoodsid
:
provGood-9922094
2
goodsAuditBillId
:
MSP24052
7
000
7
targetId
:
MSP24052
7
000
7
_1
data/b5_spd3_core_business_flow/message10
View file @
3f738b18
低值配送单号
:
distrBillId1
:
PSh03472024052
4
00
33
distrBillId2
:
PSh03472024052
4
00
33
distrBillId1
:
PSh03472024052
7
00
11
distrBillId2
:
PSh03472024052
7
00
11
高值配送单号
:
distrBillId1
:
PSh03472024052
4
00
35
distrBillId2
:
PSh03472024052
4
00
35
distrBillId1
:
PSh03472024052
7
00
12
distrBillId2
:
PSh03472024052
7
00
12
试剂配送单号
:
distrBillId1
:
PSh0347202405240036
distrBillId2
:
PSh0347202405240036
distrBillId1
:
PSh0347202405270013
distrBillId2
:
PSh0347202405270013
高值跟台配送单号
:
distrBillId1
:
PSh0347202405270014
distrBillId2
:
PSh0347202405270014
data/b5_spd3_core_business_flow/message11
View file @
3f738b18
采购计划单号高值
:
orderNo1
:
PLAN2024052
423841
orderNo2
:
PLAN2024052
423841
orderNo1
:
PLAN2024052
724253
orderNo2
:
PLAN2024052
724253
data/b5_spd3_core_business_flow/message12
View file @
3f738b18
采购计划单号试剂
:
orderNo1
:
PLAN2024052
423842
orderNo2
:
PLAN2024052
423842
orderNo1
:
PLAN2024052
724254
orderNo2
:
PLAN2024052
724254
data/b5_spd3_core_business_flow/message13
View file @
3f738b18
...
...
@@ -3,34 +3,33 @@
-
&id001
-
id
:
hosId
:
h0347
branchId
:
h0347-36
27
branchId
:
h0347-36
35
deptId
:
taskType
:
1
sourceOrgId
:
p1e2
3
c
sourceOrgName
:
国药集团公司
oJCHn
sourceOrderNo
:
PSh03472024052
4
00
36
billMode
:
'
66
'
sourceOrgId
:
p1e2
4
c
sourceOrgName
:
国药集团公司
$U^K@
sourceOrderNo
:
PSh03472024052
7
00
14
billMode
:
'
25
'
stockKind
:
purMode
:
sourceId
:
PSh03472024052
4
00
36
sourceId
:
PSh03472024052
7
00
14
sourceDetailId
:
sourceType
:
PSD
sourceTypeName
:
配送单
sourceVersion
:
1
planOrderNo
:
PLAN2024052423842
purOrderNo
:
CG2024052416651
recOrgId
:
f3f1209531c84bddafbe05bd5d6585f0
recOrgName
:
设备科001
billRelationJson
:
'{"planBillId":"Ph034720240524020487","planOrderNo":"PLAN2024052423842","purOrderNo":"CG2024052416651","purBillId":"Ch034720240524000091","purBillDate":"2024-05-24
10
:
37:52","distrBillId":"PSh0347202405240036","distrOrderNo":"PSh0347202405240036"}'
taskDate
:
'2024-05-24 10:38:08'
planOrderNo
:
SSSQ202405270276
purOrderNo
:
SSTZ202405270252
recOrgId
:
ebacb1842d234dfd9dbc59fc11bad8bf
recOrgName
:
二级检验科002
billRelationJson
:
'{"operationApplyOrderNo":"SSSQ202405270276","operationNoticeBillId":"Nh034720240527000001","distrBillId":"PSh0347202405270014","operationNoticeOrderNo":"SSTZ202405270252","distrOrderNo":"PSh0347202405270014","operationApplyBillId":"Oh034720240527000001"}'
taskDate
:
'2024-05-27 07:25:51'
taskDateStart
:
taskDateEnd
:
billModeList
:
viewIdList
:
supplierFlag
:
false
tbStatus
:
20
remark
:
''
remark
:
list_b
:
-
*id001
list_c
:
...
...
data/b5_spd3_core_business_flow/message14
View file @
3f738b18
验收单详情信息
:
list_a
:
-
&id001
-
purMode
:
6
0
unitName
:
1
00支/100
hosGoodsId
:
h034700003
763
-
purMode
:
2
0
unitName
:
1
支
hosGoodsId
:
h034700003
809
mdmGoodsCode
:
spdGoodsCode
:
'11660
655
'
goodsCode
:
'00003
763
'
goodsName
:
新型冠状病毒检测试剂JO67D
spdGoodsCode
:
'11660
701
'
goodsCode
:
'00003
809
'
goodsName
:
高值牙钻机&K)tl
goodsGg
:
G-31891
mfrsId
:
mfrsName
:
德国歌德公司 Geuder AG
...
...
@@ -16,27 +16,27 @@
goodsDi
:
miCode
:
miDjmc
:
certificateCode
:
''
certificateCode
:
rfidFlag
:
0
pkgDefId
:
pkgDefName
:
'100'
pkgDefQty
:
1
00
.0
batchCode
:
'
4444
'
expdtDate
:
'2024-1
1-30
'
productDate
:
'2024-05-2
4
'
provName
:
国药集团公司
oJCHn
pkgDefName
:
pkgDefQty
:
1.0
batchCode
:
'
2222
'
expdtDate
:
'2024-1
2-03
'
productDate
:
'2024-05-2
7
'
provName
:
国药集团公司
$U^K@
provId
:
viewId
:
'03837
648
'
viewId
:
'03837
749
'
verifyFlag
:
0
hasSterilize
:
0
id
:
'03837
648
'
id
:
'03837
749
'
detailRelationJson
:
extInfo
:
'{"
goodsGg":"G-31891","goodsCode":"00003763","purMode":60,"goodsName":"新型冠状病毒检测试剂JO67D","
ygptCode":"","transCond":"","storageCond":"","erpCode":"
11660655","ybDefId":"
"}'
extInfo
:
'{"ygptCode":"","transCond":"","storageCond":"","erpCode":""}'
recTemperature
:
20
recHumidity
:
30
distrPrice
:
99.9999
distrPkgQty
:
1
00
.0
distrQty
:
1
0000
.0
distrPkgQty
:
1.0
distrQty
:
1.0
price
:
99.9999
checkQty
:
0.0
checkPkgQty
:
0
...
...
@@ -44,7 +44,7 @@
initQty
:
totalQty
:
rowNum
:
settlement
:
1
settlement
:
3
hdiBarcodeList
:
detailId
:
pkgCode
:
...
...
@@ -55,7 +55,7 @@
trustMrfsName
:
multiChargeFlag
:
0
useFrequency
:
1
codingType
:
codingType
:
0
list_b
:
-
*id001
list_c
:
...
...
data/b5_spd3_core_business_flow/message15
View file @
3f738b18
验收单号
:
CHECK_NO1
:
CHECKh03472024052
4
00
32
4
CHECK_NO2
:
CHECKh03472024052
4
00
32
4
CHECK_NO1
:
CHECKh03472024052
7
00
00
4
CHECK_NO2
:
CHECKh03472024052
7
00
00
4
Prev
1
2
Next
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