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
c8a9aafe
Commit
c8a9aafe
authored
Apr 09, 2024
by
xiao-hesheng
Browse files
新增期初录入脚本
parent
0c5e70ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
air_case/b4_herp3_InitStock/a_a7_期初录入_低值_生成.air/a_a7_期初录入_低值_生成.py
View file @
c8a9aafe
...
@@ -177,9 +177,11 @@ def test1():
...
@@ -177,9 +177,11 @@ def test1():
unitName
=
'unitName'
unitName
=
'unitName'
batchVORepeatKey
=
'batchVORepeatKey'
batchVORepeatKey
=
'batchVORepeatKey'
inSettlement
=
'inSettlement'
inSettlement
=
'inSettlement'
supplyId
=
'supplyId'
for
i
in
list_a2
:
for
i
in
list_a2
:
initStockBatchVOS
=
i
[
'initStockBatchVOS'
]
initStockBatchVOS
=
i
[
'initStockBatchVOS'
]
inSettlement
=
i
[
'inSettlement'
]
inSettlement
=
i
[
'inSettlement'
]
supplyId
=
i
[
'supplyId'
]
break
break
for
i
in
initStockBatchVOS
:
for
i
in
initStockBatchVOS
:
initStockBatchVOS_id
=
i
[
'id'
]
initStockBatchVOS_id
=
i
[
'id'
]
...
@@ -195,7 +197,7 @@ def test1():
...
@@ -195,7 +197,7 @@ def test1():
unitName
=
i
[
'unitName'
]
unitName
=
i
[
'unitName'
]
batchVORepeatKey
=
i
[
'batchVORepeatKey'
]
batchVORepeatKey
=
i
[
'batchVORepeatKey'
]
break
break
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
)
request_body
=
commonFuc
().
get_business_data
(
module
,
"payload_9"
,
id
,
orderNo
,
hosGoodsId
,
hosGoodsCode
,
provId
,
subProvId
,
inSettlement
,
supplyId
,
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
)
print
(
'request_body'
,
request_body
)
# 发送请求
# 发送请求
result
=
commonFuc
().
http_post
(
url
,
request_body
,
headers
)
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