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
429b4681
Commit
429b4681
authored
Nov 02, 2023
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改竞价列表展示字段
parent
310ca730
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
61 deletions
+72
-61
SearchForm.jsx
...s/GoodsManage/SupplyPriceUpdate/components/SearchForm.jsx
+2
-55
index.jsx
src/pages/GoodsManage/SupplyPriceUpdate/index.jsx
+3
-2
staticdata.js
src/pages/GoodsManage/SupplyPriceUpdate/staticdata.js
+64
-4
style.less
src/pages/GoodsManage/SupplyPriceUpdate/style.less
+3
-0
No files found.
src/pages/GoodsManage/SupplyPriceUpdate/components/SearchForm.jsx
View file @
429b4681
import
{
Form
,
Button
,
Input
,
Select
,
notification
,
Cascader
,
InputNumber
,
Popover
,
Tag
,
}
from
'
antd
'
;
import
{
Form
,
Button
,
Input
,
Select
,
notification
,
Cascader
,
InputNumber
}
from
'
antd
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
SwapRightOutlined
}
from
'
@ant-design/icons
'
;
import
{
connect
}
from
'
dva
'
;
import
styles
from
'
../../style.less
'
;
import
{
stateList
}
from
'
../../staticdata
'
;
import
{
GOOD_MANAGE
}
from
'
@/../config/permission.config
'
;
const
FormItem
=
Form
.
Item
;
const
{
Option
}
=
Select
;
...
...
@@ -97,33 +86,9 @@ class goodsManage extends Component {
};
render
()
{
const
{
treeData
,
permissions
}
=
this
.
props
;
const
{
treeData
}
=
this
.
props
;
const
selectW
=
{
width
:
250
};
const
iptNumWidth
=
{
width
:
118
};
const
canEditable
=
permissions
[
GOOD_MANAGE
.
EDITABLE
];
const
content
=
(
<
div
>
<
Button
style=
{
{
border
:
'
none
'
}
}
onClick=
{
()
=>
this
.
setArea
(
1
,
'
distribution
'
)
}
>
全部商品配送区域设置
</
Button
>
<
br
/>
<
Button
style=
{
{
border
:
'
none
'
}
}
onClick=
{
()
=>
this
.
setArea
(
0
,
'
distribution
'
)
}
>
勾选商品配送区域设置
</
Button
>
<
br
/>
<
Button
style=
{
{
border
:
'
none
'
}
}
onClick=
{
()
=>
this
.
setArea
(
1
,
'
after
'
)
}
>
全部商品售后地址设置
</
Button
>
<
br
/>
<
Button
style=
{
{
border
:
'
none
'
}
}
onClick=
{
()
=>
this
.
setArea
(
0
,
'
after
'
)
}
>
勾选商品售后地址设置
</
Button
>
<
br
/>
<
Button
style=
{
{
border
:
'
none
'
}
}
onClick=
{
()
=>
this
.
checkEnableUpdateStock
()
}
>
勾选商品库存修改
</
Button
>
</
div
>
);
const
filterOption
=
(
input
,
op
)
=>
op
.
props
.
children
.
includes
(
input
);
return
(
...
...
@@ -202,24 +167,6 @@ class goodsManage extends Component {
<
Button
onClick=
{
()
=>
this
.
onReset
()
}
className=
{
styles
.
button
}
>
重置
</
Button
>
{
this
.
state
.
productType
!==
5
&&
(
<>
{
canEditable
?
(
<
FormItem
style=
{
{
float
:
'
right
'
}
}
>
<
Popover
content=
{
content
}
onVisibleChange=
{
this
.
handleVisibleChange
}
>
<
Button
type=
"primary"
className=
{
styles
.
button
}
>
批量设置
</
Button
>
</
Popover
>
{
this
.
props
.
selectNum
>
0
&&
(
<
Tag
color=
"green"
>
已选商品
{
this
.
props
.
selectNum
}
</
Tag
>
)
}
</
FormItem
>
)
:
(
''
)
}
</>
)
}
</
FormItem
>
</
Form
>
);
...
...
src/pages/GoodsManage/SupplyPriceUpdate/index.jsx
View file @
429b4681
...
...
@@ -19,7 +19,8 @@ import {
apiProductBiddingInfo
,
}
from
'
../service
'
;
import
LogModal
from
'
../LogModal
'
;
import
{
column
,
JDSHOPID
}
from
'
../staticdata
'
;
import
{
JDSHOPID
}
from
'
../staticdata
'
;
import
{
columnManage
}
from
'
./staticdata
'
;
import
SearchForm
from
'
./components/SearchForm
'
;
import
TempleatModal
from
'
../TempleatModal
'
;
import
ServiceGoods
from
'
../../ServiceGoods
'
;
...
...
@@ -425,7 +426,7 @@ class supplyPriceUpdate extends Component {
<
Table
dataSource=
{
tableData
?.
records
}
bordered
columns=
{
column
.
call
(
this
)
}
columns=
{
column
Manage
.
call
(
this
)
}
rowKey=
{
record
=>
record
.
skuId
}
pagination=
{
false
}
className=
{
styles
.
tabletop
}
...
...
src/pages/GoodsManage/SupplyPriceUpdate/staticdata.js
View file @
429b4681
import
React
from
'
react
'
;
import
{
Input
,
Form
,
InputNumber
}
from
'
antd
'
;
import
{
Input
,
Form
,
InputNumber
,
Button
}
from
'
antd
'
;
import
{
isIntegerNotMust
,
isCheckPriceTwoDecimal
}
from
'
@/utils/validator
'
;
import
styles
from
'
./style.less
'
;
...
...
@@ -17,7 +17,7 @@ export function column(specArr = []) {
label
=
""
key
=
"
supplyPrice
"
name
=
{[
'
data
'
,
index
,
'
supplyPrice
'
]}
initialValue
=
{
row
.
supplyPrice
}
initialValue
=
{
row
.
supplyPrice
||
0
}
rules
=
{[
{
required
:
true
,
message
:
'
请输入供货价!
'
},
{
validator
:
isCheckPriceTwoDecimal
},
...
...
@@ -61,10 +61,10 @@ export function column(specArr = []) {
label
=
""
key
=
"
stock
"
name
=
{[
'
data
'
,
index
,
'
stock
'
]}
initialValue
=
{
row
.
productStock
}
initialValue
=
{
row
.
productStock
||
0
}
rules
=
{[{
required
:
true
,
message
:
'
请输入库存!
'
},
{
validator
:
isIntegerNotMust
}]}
>
<
InputNumber
min
=
{
1
}
max
=
{
500
}
/
>
<
InputNumber
min
=
{
0
}
max
=
{
500
}
/
>
<
/Form.Item
>
<
/div
>
),
...
...
@@ -83,3 +83,63 @@ export function column(specArr = []) {
},
];
}
export
function
columnManage
()
{
return
[
{
title
:
'
SKU编码
'
,
dataIndex
:
'
skuId
'
,
width
:
160
,
align
:
'
center
'
,
},
{
title
:
'
SKU商品名称
'
,
align
:
'
center
'
,
dataIndex
:
'
skuName
'
,
},
{
title
:
'
供应商价格
'
,
dataIndex
:
'
marketPrice
'
,
width
:
160
,
align
:
'
center
'
,
sorter
:
(
a
,
b
)
=>
a
.
supplyPrice
-
b
.
supplyPrice
,
render
:
(
_
,
row
)
=>
(
<
div
className
=
{
styles
.
price
}
>
<
p
>
市场价:
{(
row
.
marketPrice
||
0
).
toFixed
(
2
)}
<
/p
>
<
/div
>
),
},
{
title
:
'
操作
'
,
dataIndex
:
'
action
'
,
width
:
150
,
align
:
'
center
'
,
render
:
(
_
,
row
)
=>
(
<
div
className
=
{
styles
.
actionBtn
}
>
{
this
.
canEditable
&&
(
row
.
state
===
4
||
(
row
.
state
>=
5
&&
row
.
updateState
!==
1
))
&&
(
<
Button
key
=
"
edit
"
type
=
"
primary
"
size
=
"
small
"
className
=
{
styles
.
button
}
onClick
=
{()
=>
{
this
.
serviceVisbleChange
(
row
);
}}
>
修改
<
/Button
>
)}
<
Button
key
=
"
viewP
"
type
=
"
primary
"
size
=
"
small
"
className
=
{
styles
.
button
}
onClick
=
{()
=>
this
.
audit
(
row
.
skuId
)}
>
预览
<
/Button
>
<
/div
>
),
},
];
}
src/pages/GoodsManage/SupplyPriceUpdate/style.less
View file @
429b4681
...
...
@@ -12,3 +12,6 @@
padding: 0;
overflow: hidden;
}
.button {
margin: 0 5px;
}
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