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
b97987d1
Commit
b97987d1
authored
Mar 10, 2022
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化渠道商品上下架
parent
bf1f102a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
directChannel.tsx
src/pages/commodity/products/directChannel.tsx
+0
-0
index.tsx
src/pages/commodity/products/index.tsx
+1
-5
No files found.
src/pages/commodity/products/directChannel.tsx
View file @
b97987d1
This diff is collapsed.
Click to expand it.
src/pages/commodity/products/index.tsx
View file @
b97987d1
import
React
,
{
useState
,
useEffect
,
useRef
,
useMemo
}
from
'react'
import
{
history
,
useIntl
}
from
'umi'
import
{
Button
,
Form
,
Card
,
Modal
,
Result
,
Progress
,
Select
,
Tooltip
,
Checkbox
,
Row
,
Col
,
Dropdown
,
Menu
,
Space
,
message
,
Badge
,
Radio
}
from
'antd'
import
{
Button
,
Form
,
Card
,
Modal
,
Result
,
Progress
,
Select
,
Row
,
Col
,
Dropdown
,
Menu
,
Space
,
message
,
Badge
,
Radio
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PlusOutlined
,
FileExcelOutlined
,
QuestionCircleOutlined
,
DownOutlined
,
DeleteOutlined
,
ExclamationCircleOutlined
,
...
...
@@ -45,7 +44,6 @@ const formActions = createFormActions();
const
Products
:
React
.
FC
<
{}
>
=
()
=>
{
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({})
const
judgeShopRef
=
useRef
<
boolean
>
(
true
)
const
[
upForm
]
=
Form
.
useForm
()
const
[
importModal
,
setImportModal
]
=
useState
(
false
)
const
[
deleteBatchModal
,
setDeleteBatchModal
]
=
useState
(
false
)
...
...
@@ -490,7 +488,6 @@ const Products: React.FC<{}> = () => {
const
executePutaway
=
(
params
)
=>
{
const
fn
=
isBatch
?
postProductCommodityPublishCommodityBatch
:
postProductCommodityPublishCommodity
const
shopId
=
shopIdRef
.
current
console
.
log
(
shopId
,
'shopId'
)
// @ts-ignore
fn
(
isBatch
?
{
storeId
:
shopId
[
'id'
],
storeName
:
shopId
[
'name'
],
storeLogo
:
shopId
[
'logo'
],
shopList
:
params
.
shopList
,
idList
:
RowCtl
.
selectedRowKeys
}
:
{
storeId
:
shopId
?.
id
||
null
,
storeName
:
shopId
?.
name
||
null
,
storeLogo
:
shopId
?.
logo
||
null
,
...
params
}).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
...
...
@@ -503,7 +500,6 @@ const Products: React.FC<{}> = () => {
const
handleUp
=
(
values
)
=>
{
const
upShops
=
shopsOption
.
filter
(
item
=>
values
[
item
.
shopId
])
console
.
log
(
values
,
'vvv'
,
upShops
)
setIsDisabledOKbtn
(
true
)
let
params
=
{
id
:
currentOptionId
,
...
...
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