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
bbd18290
Commit
bbd18290
authored
Sep 18, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:渠道商品选会员过滤,修改商品价格类型禁用
parent
1ee1a908
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
19 deletions
+26
-19
selectChannel.tsx
...pages/commodity/products/addChannelItem/selectChannel.tsx
+2
-1
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+15
-9
selectGoodsForm.tsx
...es/commodity/products/addProductsItem/selectGoodsForm.tsx
+1
-1
index.tsx
src/pages/commodity/products/index.tsx
+4
-4
channelSchema.tsx
src/pages/commodity/products/schema/channelSchema.tsx
+4
-4
No files found.
src/pages/commodity/products/addChannelItem/selectChannel.tsx
View file @
bbd18290
...
...
@@ -168,6 +168,7 @@ const SelectChannel:React.FC<IProps> = (props) => {
// 获取渠道会员
const
fetchMemberData
=
(
params
:
any
)
=>
{
params
.
roleId
=
selectedOption
.
value
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberManageLowerChannelPageByname
(
params
).
then
(
res
=>
{
const
{
data
}
=
res
...
...
@@ -240,7 +241,7 @@ const SelectChannel:React.FC<IProps> = (props) => {
name=
"add-channel-merchant"
labelAlign=
"left"
colon=
{
false
}
initialValues=
{
{
ch
annel
MemberRoleId
:
memberRoleList
[
0
].
roleId
}
}
initialValues=
{
{
ch
ild
MemberRoleId
:
memberRoleList
[
0
].
roleId
}
}
>
{
/* <Form.Item name="channelMemberRoleId">
<Radio.Group buttonStyle="solid" defaultValue={1} className={styles.customizeRadio}>
...
...
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
bbd18290
...
...
@@ -558,7 +558,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
label=
{
<
span
>
单位
<
Tooltip
title=
"
这是一段描述?
"
>
<
Tooltip
title=
"
例如平方英尺、千克、米、升等,请设置为与货品管理中对应的货品相同单位
"
>
<
QuestionCircleOutlined
/>
</
Tooltip
>
</
span
>
...
...
@@ -598,7 +598,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
label=
{
<
span
>
最小起订
<
Tooltip
title=
"
这是一段描述?
"
>
<
Tooltip
title=
"
您设置了最小起订后,采购下单时最小购买数量为最小起订设置的值
"
>
<
QuestionCircleOutlined
/>
</
Tooltip
>
</
span
>
...
...
@@ -621,7 +621,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
label=
{
<
span
>
产品定价
<
Tooltip
title=
"
这是一段描述?
"
>
<
Tooltip
title=
"
现货价格:表示是现货销售的价格,价格明码标价,采购时按照标价下单,价格需要询价:表示价格未设定,需要询价报价后再下单采购
"
>
<
QuestionCircleOutlined
/>
</
Tooltip
>
</
span
>
...
...
@@ -632,18 +632,24 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
}]
}
// initialValue={planPrice}
>
<
Radio
.
Group
onChange=
{
handlePlanPriceChange
}
>
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
</
Radio
.
Group
>
{
history
.
location
.
query
?.
id
?
<
Radio
.
Group
onChange=
{
handlePlanPriceChange
}
disabled=
{
!
productInfoByEdit
.
isUpdateAttribute
}
>
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
</
Radio
.
Group
>
:
<
Radio
.
Group
onChange=
{
handlePlanPriceChange
}
>
<
Radio
value=
{
1
}
>
现货价格
</
Radio
>
<
Radio
value=
{
2
}
>
价格需要询价
</
Radio
>
<
Radio
value=
{
3
}
>
积分兑换商品
</
Radio
>
</
Radio
.
Group
>
}
</
Form
.
Item
>
<
Form
.
Item
name=
"isMemberPrice"
label=
{
<
span
>
会员折扣
<
Tooltip
title=
"
这是一段描述?
"
>
<
Tooltip
title=
"
是否允许会员使用会员折扣价购买当前商品
"
>
<
QuestionCircleOutlined
/>
</
Tooltip
>
</
span
>
...
...
src/pages/commodity/products/addProductsItem/selectGoodsForm.tsx
View file @
bbd18290
...
...
@@ -128,7 +128,7 @@ const SelectGoodsForm: React.FC<Iprops> = (props) => {
return
(<>
{
selectCategoryId
&&
selectBrandId
?
<>
selectCategoryId
?
<>
<
Form
{
...
layout
}
form=
{
selectGoodsForm
}
...
...
src/pages/commodity/products/index.tsx
View file @
bbd18290
...
...
@@ -40,8 +40,8 @@ interface paramItem {
code
:
string
;
priceType
?:
number
;
priceTypeList
:
number
[];
min
:
number
;
max
:
number
;
min
:
any
;
max
:
any
;
brandId
:
number
;
customerCategoryId
:
number
;
status
?:
number
;
...
...
@@ -732,7 +732,7 @@ const Products: React.FC<{}> = () => {
style=
{
{
width
:
'40%'
,
textAlign
:
'center'
}
}
min=
{
0
}
placeholder=
"最低价格"
onChange=
{
(
e
)
=>
setFilterParams
({...
filterParams
,
min
:
+
e
})
}
onChange=
{
(
e
)
=>
setFilterParams
({...
filterParams
,
min
:
e
})
}
/>
<
Input
style=
{
{
...
...
@@ -755,7 +755,7 @@ const Products: React.FC<{}> = () => {
}
}
min=
{
0
}
placeholder=
"最高价格"
onChange=
{
(
e
)
=>
setFilterParams
({...
filterParams
,
max
:
+
e
})
}
onChange=
{
(
e
)
=>
setFilterParams
({...
filterParams
,
max
:
e
})
}
/>
</
Input
.
Group
>
</
Col
>
...
...
src/pages/commodity/products/schema/channelSchema.tsx
View file @
bbd18290
...
...
@@ -133,10 +133,10 @@ export const channelSchema: ISchema = {
label
:
'现货价格'
,
value
:
1
,
},
{
label
:
'价格需要询价'
,
value
:
2
,
},
//
{
//
label: '价格需要询价',
//
value: 2,
//
},
{
label
:
'积分兑换商品'
,
value
:
3
,
...
...
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