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
a3eef545
Commit
a3eef545
authored
Sep 27, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商品添加“赠品”定价类型
parent
f3c00839
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+4
-2
index.tsx
src/pages/commodity/products/constant/index.tsx
+1
-0
productSchema.tsx
src/pages/commodity/products/schema/productSchema.tsx
+4
-0
No files found.
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
a3eef545
...
@@ -719,10 +719,12 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
...
@@ -719,10 +719,12 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
<
Radio
value=
{
4
}
>
赠品
</
Radio
>
</
Radio
.
Group
>
:
<
Radio
.
Group
onChange=
{
handlePlanPriceChange
}
>
</
Radio
.
Group
>
:
<
Radio
.
Group
onChange=
{
handlePlanPriceChange
}
>
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
<
Radio
value=
{
4
}
>
赠品
</
Radio
>
</
Radio
.
Group
>
</
Radio
.
Group
>
}
}
</
Form
.
Item
>
</
Form
.
Item
>
...
@@ -739,7 +741,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
...
@@ -739,7 +741,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
valuePropName=
"checked"
valuePropName=
"checked"
initialValue=
{
true
}
initialValue=
{
true
}
>
>
<
Checkbox
disabled=
{
planPrice
!==
1
}
>
允许使用会员折扣价购买
</
Checkbox
>
<
Checkbox
disabled=
{
(
planPrice
!==
1
)
&&
(
planPrice
!==
4
)
}
>
允许使用会员折扣价购买
</
Checkbox
>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
name=
"isTax"
name=
"isTax"
...
@@ -772,7 +774,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
...
@@ -772,7 +774,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
</
Form
>
</
Form
>
{
/* 批量设置按钮 */
}
{
/* 批量设置按钮 */
}
{
{
planPrice
!=
2
&&
productName
&&
<
Button
type=
"text"
style=
{
{
float
:
'right'
}
}
onClick=
{
clickBatchSetPrice
}
><
SettingOutlined
/>
{
planPrice
===
3
?
'批量设置积分'
:
'批量设置价格'
}
</
Button
>
planPrice
!=
=
2
&&
productName
&&
<
Button
type=
"text"
style=
{
{
float
:
'right'
}
}
onClick=
{
clickBatchSetPrice
}
><
SettingOutlined
/>
{
planPrice
===
3
?
'批量设置积分'
:
'批量设置价格'
}
</
Button
>
}
}
<
Table
<
Table
rowKey=
"索引"
rowKey=
"索引"
...
...
src/pages/commodity/products/constant/index.tsx
View file @
a3eef545
...
@@ -47,6 +47,7 @@ export const priceTypeLabel = [
...
@@ -47,6 +47,7 @@ export const priceTypeLabel = [
'现货价格'
,
'现货价格'
,
'价格需要询价'
,
'价格需要询价'
,
'积分兑换商品'
,
'积分兑换商品'
,
'赠品'
,
]
]
/** 商品物流类型 */
/** 商品物流类型 */
...
...
src/pages/commodity/products/schema/productSchema.tsx
View file @
a3eef545
...
@@ -58,6 +58,10 @@ export const productSchema: ISchema = {
...
@@ -58,6 +58,10 @@ export const productSchema: ISchema = {
{
{
label
:
'积分兑换商品'
,
label
:
'积分兑换商品'
,
value
:
3
,
value
:
3
,
},
{
label
:
'赠品'
,
value
:
4
,
}
}
],
],
'x-component-props'
:
{
'x-component-props'
:
{
...
...
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