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
0c5e70ea
Commit
0c5e70ea
authored
Apr 09, 2024
by
xiao-hesheng
Browse files
新增期初录入脚本
parent
52ec8365
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b4_herp3_InitStock/a_a7_期初录入_低值_生成.air/a_a7_期初录入_低值_生成.py
View file @
0c5e70ea
...
...
@@ -176,8 +176,10 @@ def test1():
purMode
=
'purMode'
unitName
=
'unitName'
batchVORepeatKey
=
'batchVORepeatKey'
inSettlement
=
'inSettlement'
for
i
in
list_a2
:
initStockBatchVOS
=
i
[
'initStockBatchVOS'
]
inSettlement
=
i
[
'inSettlement'
]
break
for
i
in
initStockBatchVOS
:
initStockBatchVOS_id
=
i
[
'id'
]
...
...
@@ -193,7 +195,7 @@ def test1():
unitName
=
i
[
'unitName'
]
batchVORepeatKey
=
i
[
'batchVORepeatKey'
]
break
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload_9"
,
id
,
orderNo
,
hosGoodsId
,
hosGoodsCode
,
provId
,
subProvId
,
initStockBatchVOS_id
,
lastModified
,
version
,
createTime
,
createUser
,
lastModifiedUser
,
pid
,
detailId
,
batchCode
,
productDate
,
expdtDate
,
stockQty
,
pkgDefId
,
pkgDefName
,
pkgDefQty
,
unit
,
purMode
,
unitName
,
batchVORepeatKey
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload_9"
,
id
,
orderNo
,
hosGoodsId
,
hosGoodsCode
,
provId
,
subProvId
,
inSettlement
,
initStockBatchVOS_id
,
lastModified
,
version
,
createTime
,
createUser
,
lastModifiedUser
,
pid
,
detailId
,
batchCode
,
productDate
,
expdtDate
,
stockQty
,
pkgDefId
,
pkgDefName
,
pkgDefQty
,
unit
,
purMode
,
unitName
,
batchVORepeatKey
)
print
(
'request_body'
,
request_body
)
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
...
...
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