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
linweijiong
jinfa-platform
Commits
2b7c938b
Commit
2b7c938b
authored
Oct 21, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(商品询价): 修复bug
parent
af110b65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
addForm.tsx
...ion/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
+1
-1
basicInfo.tsx
...ty/productInquiry/waitAddInquiry/components/basicInfo.tsx
+16
-7
No files found.
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
View file @
2b7c938b
...
...
@@ -94,7 +94,7 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
}
const
getMemberInfo
=
(
value
)
=>
{
form
.
setFieldsValue
({
"memberName"
:
value
.
name
});
form
.
setFieldsValue
({
"memberName"
:
value
.
name
,
"shopId"
:
undefined
});
setMenberInfo
(
value
)
setInquiryProduct
([])
form
.
setFieldsValue
({
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/components/basicInfo.tsx
View file @
2b7c938b
...
...
@@ -54,13 +54,6 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
}
]
useEffect
(()
=>
{
let
shopList
=
GlobalConfig
.
web
.
shopInfo
.
filter
(
v
=>
(
v
.
type
==
1
&&
v
.
environment
==
1
)).
map
(
v
=>
v
)
setStoreList
(
shopList
)
},
[])
const
handleFetchData
=
useCallback
((
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
getMemberManagePlatformProviderPage
({
...
params
}).
then
(
res
=>
{
...
...
@@ -78,8 +71,24 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
setVisible
(
flag
)
}
const
getShopListFn
=
(
memberId
:
number
,
roleId
:
number
)
=>
{
PublicApi
.
postManageWebShopWebAll
({
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
environment
:
1
,
hasMemberType
:
1
,
memberId
,
roleId
,
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
return
}
setStoreList
(
res
.
data
)
})
}
const
handleLogisticOnOk
=
(
selectRowKeys
:
string
[]
|
number
[],
selectRowRecord
:
any
)
=>
{
const
target
=
selectRowRecord
[
0
];
getShopListFn
(
target
.
memberId
,
target
.
roleId
);
getMemberInfo
(
target
)
setMember
(
target
)
toggle
(
false
)
...
...
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