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
shenshaokai
jinfa-platform
Commits
8c56bf1a
Commit
8c56bf1a
authored
Mar 10, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理新增编辑商品区域选择变为只选省级报错问题
parent
344c771f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+1
-1
batchPositionSetting.tsx
src/pages/repositories/components/batchPositionSetting.tsx
+0
-1
positionSetting.tsx
src/pages/repositories/components/positionSetting.tsx
+1
-2
No files found.
src/pages/commodity/products/addProducts.tsx
View file @
8c56bf1a
...
...
@@ -207,7 +207,7 @@ const AddProducts: React.FC<{}> = (props) => {
let
_temp
:
any
=
{}
let
pobj
=
areaOption
.
filter
(
_
=>
_
.
code
===
_itme
[
0
])[
0
]
let
cobj
=
pobj
.
areaResponses
.
filter
(
__
=>
__
.
code
===
_itme
[
1
])[
0
]
let
robj
=
cobj
.
areaResponses
?
cobj
.
areaResponses
.
filter
(
___
=>
___
.
code
===
_itme
[
2
])[
0
]
:
null
let
robj
=
cobj
?
.
areaResponses
?
cobj
.
areaResponses
.
filter
(
___
=>
___
.
code
===
_itme
[
2
])[
0
]
:
null
_temp
.
provinceCode
=
pobj
?.
code
||
null
_temp
.
provinceName
=
pobj
?.
name
||
null
_temp
.
cityCode
=
cobj
?.
code
||
null
...
...
src/pages/repositories/components/batchPositionSetting.tsx
View file @
8c56bf1a
...
...
@@ -145,7 +145,6 @@ const BatchPositionSetting: React.FC<BatchPositionSettingProps> = (props) => {
const
handleAddMemberBtn
=
()
=>
{
const
shopType
=
addSchemaAction
.
getFieldValue
(
'shopType'
);
const
itemNo
=
addSchemaAction
.
getFieldValue
(
'commodityList'
);
console
.
log
(
shopType
,
itemNo
,
'iii'
)
if
(
!
shopType
)
{
message
.
error
(
intl
.
formatMessage
({
id
:
'repositories.components.batchPositionSetting.error.1'
}));
return
;
...
...
src/pages/repositories/components/positionSetting.tsx
View file @
8c56bf1a
...
...
@@ -16,7 +16,7 @@ import SearchSelect from '@/components/NiceForm/components/SearchSelect'
import
Search
from
'@/components/NiceForm/components/Search'
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
import
Submit
from
'@/components/NiceForm/components/Submit'
import
{
MALL_TYPE
}
from
'@/constants'
;
import
{
MALL_TYPE
}
from
'@/constants'
import
{
fectchShopListsSource
}
from
'@/utils/type'
import
{
getMemberManagePageitems
,
postMemberManageAllPageByshoptype
}
from
'@/services/MemberV2Api'
import
{
getProductCommodityCommonGetCommodityListByStock
,
getProductFreightSpaceDetails
,
getProductFreightSpaceMamberList
,
getProductGoodsGetGoods
,
getProductSelectGetSelectBrand
,
getProductSelectGetSelectCustomerCategory
}
from
'@/services/ProductV2Api'
...
...
@@ -544,7 +544,6 @@ const PositionSetting: React.FC<PositionSettingProps> = (props) => {
}
}
})
// FormEffectHooks.
}
}
onSubmit=
{
handleSubmit
}
...
...
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