Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
deb89830
Commit
deb89830
authored
Mar 14, 2022
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 商品库修改
parent
3d9a1eea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
9 deletions
+35
-9
env.config.js
config/env.config.js
+6
-6
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+22
-1
index.jsx
src/pages/GoodsManage/index.jsx
+1
-1
staticdata.js
src/pages/GoodsManage/staticdata.js
+6
-1
No files found.
config/env.config.js
View file @
deb89830
...
...
@@ -2,14 +2,14 @@ const isProduction = process.env.NODE_ENV === 'production';
const
isPre
=
process
.
env
.
PRE_ENV
===
'
pre
'
;
const
envAPi
=
{
api
:
'
//backstms-
test
2.liangkebang.net
'
,
kdspOpApi
:
'
https://kdsp-operation-
test
2.liangkebang.net
'
,
kdspApi
:
'
https://sc-op-api-
test
2.liangkebang.net
'
,
goodsApi
:
'
https://sc-op-api-
test
2.liangkebang.net
'
,
api
:
'
//backstms-
gyl
2.liangkebang.net
'
,
kdspOpApi
:
'
https://kdsp-operation-
gyl
2.liangkebang.net
'
,
kdspApi
:
'
https://sc-op-api-
gyl
2.liangkebang.net
'
,
goodsApi
:
'
https://sc-op-api-
gyl
2.liangkebang.net
'
,
// goodsApi: '//192.168.28.107:7000',
prologueDomain
:
'
https://mall-
test
2.liangkebang.net
'
,
prologueDomain
:
'
https://mall-
gyl
2.liangkebang.net
'
,
qiniuHost
:
'
https://appsync.lkbang.net
'
,
opapiHost
:
'
https://opapi-
test
2.liangkebang.net
'
,
opapiHost
:
'
https://opapi-
gyl
2.liangkebang.net
'
,
};
const
prodApi
=
{
...
...
src/pages/GoodsManage/createModal/index.jsx
View file @
deb89830
...
...
@@ -459,7 +459,7 @@ class goodsManage extends Component {
if
(
isFirstSame
)
first
.
pop
();
if
(
isSecondSame
)
second
.
pop
();
let
colorKeys
=
isEdit
?
initData
.
firstSpecList
.
concat
(
first
||
this
.
state
.
initForm
.
first
||
[])
?
initData
?.
firstSpecList
?
.
concat
(
first
||
this
.
state
.
initForm
.
first
||
[])
:
first
||
this
.
state
.
initForm
.
first
||
[];
if
(
isEdit
&&
!
Object
.
keys
(
this
.
state
.
initForm
).
length
&&
!
this
.
state
.
isCancel
)
{
...
...
@@ -614,6 +614,27 @@ class goodsManage extends Component {
</
div
>
)
}
</
Col
>
<
Col
span=
{
24
}
>
<
FormItem
label=
"商品卖点"
labelCol=
{
{
span
:
2
}
}
>
{
getFieldDecorator
(
'
name
'
,
{
initialValue
:
initData
.
name
,
})(
<
Input
style=
{
{
width
:
690
}
}
maxLength=
"50"
placeholder=
"好的卖点信息有利于提高商品转化,限50字"
allowClear
/>,
)
}
</
FormItem
>
</
Col
>
<
Col
span=
{
24
}
>
<
FormItem
label=
"商品服务"
labelCol=
{
{
span
:
2
}
}
>
{
getFieldDecorator
(
'
name
'
,
{
initialValue
:
initData
.
name
,
})(<
Checkbox
>
七天无理由退货
</
Checkbox
>)
}
</
FormItem
>
</
Col
>
</
Row
>
</
Card
>
<
Card
className=
{
styles
.
card
}
bordered=
{
false
}
>
...
...
src/pages/GoodsManage/index.jsx
View file @
deb89830
...
...
@@ -27,7 +27,7 @@ class goodsManage extends Component {
priceInfo
:
{},
logVisible
:
false
,
previewVisible
:
false
,
createVisible
:
fals
e
,
// 新增or编辑普通商品modal
createVisible
:
tru
e
,
// 新增or编辑普通商品modal
selectedRowKeys
:
[],
updateStockVisible
:
false
,
initData
:
{},
...
...
src/pages/GoodsManage/staticdata.js
View file @
deb89830
...
...
@@ -129,7 +129,12 @@ export function column() {
dataIndex
:
'
stateDesc
'
,
width
:
200
,
align
:
'
center
'
,
render
:
(
_
,
row
)
=>
<
span
>
{
row
.
state
>=
5
?
'
审核通过
'
:
_
}
<
/span>
,
render
:
(
_
,
row
)
=>
(
<
div
>
<
p
>
{
row
.
state
>=
5
?
'
审核通过
'
:
_
}
<
/p
>
<
p
>
信息变更待审核
<
/p
>
<
/div
>
),
},
{
title
:
'
操作
'
,
...
...
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