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
38c2d6b9
Commit
38c2d6b9
authored
Sep 14, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
e1cfef19
27b4f3d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
166 additions
and
106 deletions
+166
-106
index.tsx
src/pages/classAndProperty/class/index.tsx
+3
-0
addPropertyValue.tsx
...pages/classAndProperty/propertyValue/addPropertyValue.tsx
+8
-3
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+4
-0
fastModifyPrice.tsx
src/pages/commodity/products/fastModifyPrice.tsx
+16
-8
viewProducts.tsx
src/pages/commodity/products/viewProducts.tsx
+135
-95
No files found.
src/pages/classAndProperty/class/index.tsx
View file @
38c2d6b9
...
...
@@ -115,6 +115,9 @@ const ClassProperty: React.FC<{}> = () => {
}
const
handlePlateformSelect
=
(
key
,
node
)
=>
{
if
(
node
.
children
&&
node
.
children
.
length
>
0
)
{
return
;
}
setPlateformSelectNode
({
id
:
key
*
1
,
name
:
node
.
_title
})
}
...
...
src/pages/classAndProperty/propertyValue/addPropertyValue.tsx
View file @
38c2d6b9
...
...
@@ -139,9 +139,14 @@ const AddPropertyValue: React.FC<{}> = () => {
}
const
handlePlateformSelect
=
(
key
,
node
)
=>
{
let
arr
=
key
.
split
(
'_'
)
setSelectKey
(
arr
[
arr
.
length
-
1
]
*
1
)
setSelectRow
(
node
)
if
(
node
.
children
&&
node
.
children
.
length
>
0
)
{
return
;
}
if
(
key
){
let
arr
=
key
.
split
(
'_'
)
setSelectKey
(
arr
[
arr
.
length
-
1
]
*
1
)
setSelectRow
(
node
)
}
}
const
onCommodityAreaChange
=
(
value
:
any
,
selected
:
any
)
=>
{
...
...
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
38c2d6b9
...
...
@@ -592,6 +592,10 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
}
rules=
{
[
{
required
:
true
,
message
:
'请输入最小起订数'
},
{
pattern
:
/^
\d
+
(\.\d
{1,3}
)?
$/
,
message
:
'最小起订数小数点后仅限三位'
,
}
...
...
src/pages/commodity/products/fastModifyPrice.tsx
View file @
38c2d6b9
...
...
@@ -99,16 +99,24 @@ const FastModifyPrice: React.FC<{}> = () => {
dataIndex
:
'min'
,
key
:
'min'
,
render
:
(
text
:
any
,
reocrd
:
any
)
=>
{
if
(
reocrd
.
priceType
===
1
)
return
<>
¥
{
reocrd
.
min
}
~ ¥
{
reocrd
.
max
}
</>
if
(
reocrd
.
priceType
===
3
)
return
<>
{
reocrd
.
min
}
~
{
reocrd
.
max
}
</>
if
(
reocrd
.
priceType
===
1
){
if
(
reocrd
.
min
===
reocrd
.
min
)
return
<>
¥
{
reocrd
.
min
}
</>
else
return
<>
¥
{
reocrd
.
min
}
~ ¥
{
reocrd
.
max
}
</>
}
if
(
reocrd
.
priceType
===
3
){
if
(
reocrd
.
min
===
reocrd
.
min
)
return
<>
{
reocrd
.
min
}
</>
else
return
<>
{
reocrd
.
min
}
~
{
reocrd
.
max
}
</>
}
if
(
reocrd
.
priceType
===
2
)
return
null
}
},
{
title
:
'审核时间'
,
title
:
'
申请
审核时间'
,
dataIndex
:
'applyTime'
,
key
:
'applyTime'
,
render
:
(
text
:
any
,
record
:
any
)
=>
text
&&
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
...
...
@@ -124,9 +132,9 @@ const FastModifyPrice: React.FC<{}> = () => {
else
if
(
record
.
status
===
2
)
component
=
(<><
span
className=
"commonStatusModify"
></
span
>
待审核
</>)
else
if
(
record
.
status
===
3
)
component
=
(<><
span
className=
"commonStatusValid"
></
span
>
审核通过
</>)
else
if
(
record
.
status
===
4
)
component
=
(<><
span
className=
"commonStatusInvalid"
></
span
>
审核不通过
</>)
else
if
(
record
.
status
===
4
)
component
=
(<><
span
className=
"commonStatusValid"
></
span
>
审核通过
</>)
else
if
(
record
.
status
===
5
)
component
=
(<
span
style=
{
{
color
:
'#00B37A'
,
padding
:
'2px 5px'
,
background
:
'rgba(235,247,242,1)'
,
borderRadius
:
'4px'
}
}
>
已上架
</
span
>)
else
if
(
record
.
status
===
6
)
...
...
@@ -358,7 +366,7 @@ const FastModifyPrice: React.FC<{}> = () => {
<
Col
span=
{
4
}
>
<
Select
value=
{
filterParams
.
priceType
}
onChange=
{
(
v
)
=>
setFilterParams
({
...
filterParams
,
priceType
:
+
v
})
}
style=
{
{
width
:
'100%'
}
}
placeholder=
"商品定价"
>
<
Option
value=
{
1
}
>
现货价格
</
Option
>
<
Option
value=
{
2
}
>
价格需要询价
</
Option
>
{
/* <Option value={2}>价格需要询价</Option> */
}
<
Option
value=
{
3
}
>
积分兑换商品
</
Option
>
</
Select
>
</
Col
>
...
...
src/pages/commodity/products/viewProducts.tsx
View file @
38c2d6b9
This diff is collapsed.
Click to expand it.
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