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
6381d3c2
Commit
6381d3c2
authored
May 16, 2024
by
xiao-hesheng
Browse files
流程九脚本编写
parent
3641ce91
Changes
2
Hide whitespace changes
Inline
Side-by-side
air_case/public1/public1/public1.py
View file @
6381d3c2
...
...
@@ -521,7 +521,19 @@ def get_udi(type=1):
commonFuc
().
get_business_data
(
module
,
"X-APP-CODE"
))
# # 请求体
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload17"
,
get_branch_id
())
if
type
==
1
:
hosGoodsId
=
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message2'
)[
'hosGoodsId'
]
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload17"
,
GoodsId
,
get_branch_id
())
elif
type
==
2
:
hosGoodsId
=
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message1'
)[
'hosGoodsId'
]
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload17"
,
get_branch_id
())
elif
type
==
3
:
hosGoodsId
=
FileUtils
().
r_info8
(
"b5_spd3_core_business_flow"
,
"产品审核信息"
,
'message3'
)[
'hosGoodsId'
]
GoodsId
=
hosGoodsId
.
replace
(
get_hosid
(),
''
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload17"
,
get_branch_id
())
print
(
'request_body'
,
request_body
)
# # # # 发送请求
...
...
@@ -855,9 +867,6 @@ def invoice(type=1, OBh_ID='OBhxxxxxxxxxxxxxxx'):
VI_id2
=
commonFuc
().
analysis_json
(
'id'
,
data1
[
i
])
if
VI_id2
==
VI_id
:
break
else
:
print
(
'内网发票提交列表中发票单号未找到'
)
print
(
'VI_id2'
,
VI_id2
)
# ==============发票提交,下一步归档
url
=
commonFuc
().
get_api_add_port_url
()
+
commonFuc
().
get_business_data
(
module
,
...
...
data/b5_spd3_core_business_flow/data
View file @
6381d3c2
...
...
@@ -81,7 +81,8 @@ json_headers2: {
"payload14": {"billList":[{"id":"%s","version":3}],"tbStatus":"30","hosId":"%s"}
"payload15": {"pageNum":1,"pageSize":50,"queryObject":{"invoiceNumber":"","invoiceDate1":"","invoiceDate2":"","checkDate1":"","checkDate2":"","tbStatus":"30","hosId":"%s"},"hosId":"%s"}
"payload16": {"invoiceBillIdList":["%s"],"payChannelEnum":"YGPT","hosId":"%s"}
"payload17": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["","","","","",""],"goodsName":"","branchId":"%s","purModes":["10"],"ssccCode":"","deptId":"","deptQuery":false,"bottleId":"","billModes":null,"provId":"","goodsSpec":"","batchCode":"","mfrCode":""}}
"payload17": {"pageNum":1,"pageSize":50,"queryObject":{"areacodelist":["","","","","",""],"goodsName":"%s","branchId":"%s","purModes":[],"ssccCode":"","deptId":"","deptQuery":false,"bottleId":"","billModes":null,"provId":"","goodsSpec":"","batchCode":"","mfrCode":""}}
"payload18": {"areaCode":"%s","code":"%s","pickType":"TH","stockId":"%s"}
"payload19": {"areaCode":"%s","reasonKind":"1","remark":"","barCodeList":[{"id":"%s","lastModified":null,"version":null,"createTime":"%s","createUser":null,"lastModifiedUser":null,"snCode":"%s","hosId":"%s","branchId":null,"stockId":"%s","areaCode":"%s","areaName":"%s","shelfCode":"%s","codeType":"%s","tagType":"%s","hosGoodsId":"%s","mdmGoodsCode":"%s","goodsCode":"%s","goodsDi":"%s","barName":"%s","batchCode":"%s","expdtDate":"%s","productDate":"%s","mfrCode":null,"mfrCodeSee":null,"pkgCode":"%s","pkgCodeSee":"%s","ssccCode":"%s","extInfo":null,"outId":null,"tbStatus":"%s","ext":{"distrDetailId":"%s","distrBillId":"%s","certificateCode":"","purBillId":"%s","pkgDefQty":"%s","pkgDefId":"%s","pkgDefName":"%s"},"sourceDetailId":null,"purMode":"%s","purModes":null,"price":null,"pid":null,"goodsMfrsName":"%s","mfrsName":null,"goodsSpec":"%s","unit":"%s","goodsName":"%s","pkgDefId":"%s","pkgDefQty":"%s","purDetailId":null,"pkgDefName":"%s","printNum":"%s","deptId":null,"deptName":null,"billId":null,"taskId":null,"made":"%s","provId":"%s","provName":"%s","subProvId":"%s","subProvName":"%s","provHosGoodsId":null,"sourceType":null,"taskDate":null,"sourceOrderNo":null,"taskType":null,"detailId":null,"branchGoodsPkgDefList":null,"unitName":null,"areaCodeList":null,"diType":null,"mdmGoodsSpecCode":null,"hosGoodsCode":"%s","supplyId":null,"inSettlement":null,"spdGoodsCode":null,"codeKind":null,"brand":null,"miCode":null,"transferRatio":1,"miDjmc":null,"tbStatusList":null,"purModeText":null,"stockName":null,"tbStatusText":null,"pkgType":null,"bottleId":null,"pkgStatus":null,"qty":null,"packUnit":null,"minSaleQty":null,"rfidFlag":null,"mfrCodeFlag":null,"scanStatus":null,"scanId":null,"multiChargeFlag":null,"useFrequency":null,"chargeUnit":null,"lockStatus":null,"subSendFlag":"%s","onlyKey":"%s2fa9d44bf3b443f184ea457066259ee13332024-11-02100p1e171p1e171"}],"areaName":"%s","hosId":"%s","branchId":"%s","deptId":"%s","deptName":"%s","stockId":"%s","pickType":"TH"}
"payload20": {"pageNum":1,"pageSize":50,"orderBy":"pick.priority desc, pick.create_time desc","queryObject":{"billMode":"","pickerName":"","orderNo":"","sourceId":"","targetDeptName":"","priorityList":[],"branchId":"%s","hosId":"%s","deptId":"%s","tbStatus":30,"permission":true}}
...
...
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