Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
H5
js-sku
Commits
4c9e71f2
Commit
4c9e71f2
authored
4 years ago
by
阿鑫
Browse files
Options
Download
Plain Diff
Merge branch 'hotfix/v1.0.0.2' into 'master'
sku简洁版(去掉成本价和sku检索码) See merge request
!2
parents
cff638fc
be9d2985
master
1 merge request
!2
sku简洁版(去掉成本价和sku检索码)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
.gitignore
package.json
+1
-1
package.json
src/index.js
+28
-3
src/index.js
with
30 additions
and
4 deletions
+30
-4
.gitignore
View file @
4c9e71f2
node_modules/
es/
lib/
.docz
This diff is collapsed.
Click to expand it.
package.json
View file @
4c9e71f2
{
"name"
:
"@yjtec/sku"
,
"version"
:
"0.0.
5
"
,
"version"
:
"0.0.
6
"
,
"description"
:
"js sku"
,
"main"
:
"lib/index.js"
,
"files"
:
[
...
...
This diff is collapsed.
Click to expand it.
src/index.js
View file @
4c9e71f2
...
...
@@ -131,6 +131,26 @@ class GoodsSpec extends Component{
key
:
'
sku
'
,
render
:(
v
,
r
)
=>
<
Input
value
=
{
v
}
onChange
=
{(
e
)
=>
this
.
handleSkuChange
(
e
,
r
)}
name
=
"
sku
"
/>
,
...
this
.
getMulEditProps
(
'
sku
'
)
}];
simpleColumns
=
[{
title
:
formatMessage
({
id
:
'
goods.spec.spec
'
}),
dataIndex
:
'
spec
'
,
key
:
'
spec
'
,
width
:
100
},{
title
:
formatMessage
({
id
:
'
goods.price.label
'
}),
dataIndex
:
'
price
'
,
key
:
'
price
'
,
width
:
120
,
render
:(
v
,
r
)
=>
<
Input
value
=
{
v
}
onChange
=
{(
e
)
=>
this
.
handleSkuChange
(
e
,
r
)}
name
=
"
price
"
/>
,
...
this
.
getMulEditProps
(
'
price
'
)
},{
title
:
formatMessage
({
id
:
'
goods.price_origin.label
'
}),
dataIndex
:
'
price_origin
'
,
width
:
120
,
key
:
'
price_origin
'
,
render
:(
v
,
r
)
=>
<
Input
value
=
{
v
}
onChange
=
{(
e
)
=>
this
.
handleSkuChange
(
e
,
r
)}
name
=
"
price_origin
"
/>
,
...
this
.
getMulEditProps
(
'
price_origin
'
)
}]
handleAddSpec
=
()
=>
{
const
{
specs
}
=
this
.
state
;
...
...
@@ -261,13 +281,18 @@ class GoodsSpec extends Component{
specs
,
sku
}
=
this
.
state
;
const
{
type
}
=
this
.
props
;
return
(
<
div
>
<
Button
onClick
=
{
this
.
handleAddSpec
}
type
=
"
circle
"
icon
=
"
plus
"
/>
{
this
.
renderSpec
()}
{
sku
.
length
>
0
&&
<
Table
pagination
=
{
false
}
rowKey
=
{
'
spec
'
}
dataSource
=
{
sku
}
columns
=
{
this
.
columns
}
/>
}
{
sku
.
length
>
0
&&
<
Table
pagination
=
{
false
}
rowKey
=
{
'
spec
'
}
dataSource
=
{
sku
}
columns
=
{
type
==
"
simple
"
?
this
.
simpleColumns
:
this
.
columns
}
/>
}
<
/div
>
)
}
...
...
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
Menu
Projects
Groups
Snippets
Help