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
f1781315
Commit
f1781315
authored
Nov 04, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理快捷修改价格和商品品牌等问题
parent
bed0d75a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
addGoods.tsx
src/pages/commodity/goods/addGoods.tsx
+1
-1
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+0
-0
fastModifyPrice.tsx
src/pages/commodity/products/fastModifyPrice.tsx
+16
-2
index.tsx
src/pages/trademark/index.tsx
+6
-2
No files found.
src/pages/commodity/goods/addGoods.tsx
View file @
f1781315
...
...
@@ -8,7 +8,7 @@ import {
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
styles
from
'./index.less'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetProductCustomerGetCustomerCategoryTreeResponse
}
from
'@/services'
;
import
{
GetProductCustomerGetCustomerCategoryTreeResponse
}
from
'@/services
/ProductApi
'
;
import
{
validatorByte
}
from
'@/utils/regExp'
;
const
{
Option
}
=
Select
;
...
...
src/pages/commodity/products/addProducts.tsx
View file @
f1781315
src/pages/commodity/products/fastModifyPrice.tsx
View file @
f1781315
...
...
@@ -80,12 +80,12 @@ const FastModifyPrice: React.FC<{}> = () => {
</
EyePreview
>
},
{
title
:
'品类'
,
title
:
'
商品
品类'
,
dataIndex
:
'customerCategoryName'
,
key
:
'customerCategoryName'
,
},
{
title
:
'品牌'
,
title
:
'
商品
品牌'
,
dataIndex
:
'brandName'
,
key
:
'brandName'
,
},
...
...
@@ -95,6 +95,19 @@ const FastModifyPrice: React.FC<{}> = () => {
key
:
'unitName'
,
},
{
title
:
'商品定价'
,
dataIndex
:
'priceType'
,
key
:
'priceType'
,
render
:
(
t
,
r
)
=>
{
if
(
t
===
1
)
return
'现货价格'
if
(
t
===
2
)
return
'价格需要询价'
if
(
t
===
3
)
return
'积分兑换商品'
}
},
{
title
:
'价格'
,
dataIndex
:
'min'
,
key
:
'min'
,
...
...
@@ -366,6 +379,7 @@ const FastModifyPrice: React.FC<{}> = () => {
<
Col
span=
{
24
}
style=
{
{
display
:
'flex'
,
justifyContent
:
'flex-end'
}
}
>
<
Col
span=
{
4
}
>
<
Select
value=
{
filterParams
.
priceType
}
onChange=
{
(
v
)
=>
setFilterParams
({
...
filterParams
,
priceType
:
+
v
})
}
style=
{
{
width
:
'100%'
}
}
placeholder=
"商品定价"
>
<
Option
value=
{
0
}
>
所有
</
Option
>
<
Option
value=
{
1
}
>
现货价格
</
Option
>
{
/* <Option value={2}>价格需要询价</Option> */
}
<
Option
value=
{
3
}
>
积分兑换商品
</
Option
>
...
...
src/pages/trademark/index.tsx
View file @
f1781315
...
...
@@ -100,9 +100,11 @@ const Trademark: React.FC<{}> = () => {
<
Button
type=
'link'
onClick=
{
()
=>
handleApplyCheck
(
record
)
}
>
提交审核
</
Button
>
<
Dropdown
overlay=
{
<
Menu
>
<
Menu
.
Item
>
{
record
.
isEnable
&&
<
Menu
.
Item
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/edit?id=${record.id}`
)
}
>
修改
</
Button
>
</
Menu
.
Item
>
}
<
Menu
.
Item
>
<
Button
onClick=
{
()
=>
handelDelete
(
record
)
}
type=
'link'
>
删除
</
Button
>
</
Menu
.
Item
>
...
...
@@ -114,7 +116,9 @@ const Trademark: React.FC<{}> = () => {
</
Dropdown
>
</>
:
<>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/add?id=${record.id}`
)
}
>
修改
</
Button
>
{
record
.
isEnable
&&
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/commodityAbility/trademark/add?id=${record.id}`
)
}
>
修改
</
Button
>
}
<
Button
onClick=
{
()
=>
handelDelete
(
record
)
}
type=
'link'
>
删除
</
Button
>
</>
}
...
...
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