Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-platform
Commits
d3e86448
Commit
d3e86448
authored
Oct 13, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:新增仓位-商品无货品时不请求接口
parent
82464089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
PositionSetting.tsx
src/pages/repositories/components/PositionSetting.tsx
+11
-6
No files found.
src/pages/repositories/components/PositionSetting.tsx
View file @
d3e86448
...
...
@@ -226,12 +226,17 @@ const PositionSetting:React.FC<PositionSettingProps> = (props) => {
addonAfter
:
<
div
style=
{
{
marginLeft
:
4
}
}
>
{
selectResult
.
unitName
}
</
div
>
}
})
// 查询到的货品id
const
{
data
}
=
await
PublicApi
.
getProductGoodsGetGoods
({
id
:
goodsId
})
// 设置货品名称
addSchemaAction
.
setFieldValue
(
'itemNo'
,
data
?.
name
||
''
)
// 商品有可能没有货品, 没有货品时不请求
if
(
goodsId
)
{
// 查询到的货品id
const
{
data
}
=
await
PublicApi
.
getProductGoodsGetGoods
({
id
:
goodsId
})
// 设置货品名称
addSchemaAction
.
setFieldValue
(
'itemNo'
,
data
?.
name
||
''
)
}
}
const
fetchMemberList
=
async
(
params
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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