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
8e89a87c
Commit
8e89a87c
authored
Nov 10, 2023
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 列表添加供货价和库存展示
parent
19bfcc69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
UpdatePriceStock.jsx
...sManage/SupplyPriceUpdate/components/UpdatePriceStock.jsx
+2
-1
index.jsx
src/pages/GoodsManage/SupplyPriceUpdate/index.jsx
+2
-0
staticdata.js
src/pages/GoodsManage/SupplyPriceUpdate/staticdata.js
+1
-0
style.less
src/pages/GoodsManage/SupplyPriceUpdate/style.less
+7
-0
No files found.
src/pages/GoodsManage/SupplyPriceUpdate/components/UpdatePriceStock.jsx
View file @
8e89a87c
...
@@ -8,7 +8,7 @@ import { apiProductBiddingUpdate } from '../../service';
...
@@ -8,7 +8,7 @@ import { apiProductBiddingUpdate } from '../../service';
* 更新供货价
* 更新供货价
* * */
* * */
const
UpdatePriceStock
=
options
=>
{
const
UpdatePriceStock
=
options
=>
{
const
{
visible
,
skuData
,
productId
}
=
options
;
const
{
visible
,
skuData
,
productId
,
spuName
}
=
options
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
specArr
,
setSpecArr
]
=
useState
([]);
// 规格列
const
[
specArr
,
setSpecArr
]
=
useState
([]);
// 规格列
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
...
@@ -73,6 +73,7 @@ const UpdatePriceStock = options => {
...
@@ -73,6 +73,7 @@ const UpdatePriceStock = options => {
className=
{
styles
.
priceStockTable
}
className=
{
styles
.
priceStockTable
}
destroyOnClose
destroyOnClose
>
>
<
div
className=
{
styles
.
modalTitle
}
>
{
spuName
}
</
div
>
<
Form
form=
{
form
}
scrollToFirstError
component=
{
false
}
>
<
Form
form=
{
form
}
scrollToFirstError
component=
{
false
}
>
<
EditableContext
.
Provider
value=
{
form
}
>
<
EditableContext
.
Provider
value=
{
form
}
>
<
Table
<
Table
...
...
src/pages/GoodsManage/SupplyPriceUpdate/index.jsx
View file @
8e89a87c
...
@@ -35,6 +35,7 @@ class supplyPriceUpdate extends Component {
...
@@ -35,6 +35,7 @@ class supplyPriceUpdate extends Component {
visibleUpdatePrice
:
false
,
// 修改价格弹窗
visibleUpdatePrice
:
false
,
// 修改价格弹窗
skuPriceStockList
:
[],
// 修改价格弹窗数据
skuPriceStockList
:
[],
// 修改价格弹窗数据
spuId
:
''
,
spuId
:
''
,
spuName
:
''
,
};
};
currentLog
=
null
;
currentLog
=
null
;
...
@@ -250,6 +251,7 @@ class supplyPriceUpdate extends Component {
...
@@ -250,6 +251,7 @@ class supplyPriceUpdate extends Component {
}
}
}
}
skuData=
{
this
.
state
.
skuPriceStockList
}
skuData=
{
this
.
state
.
skuPriceStockList
}
productId=
{
this
.
state
.
spuId
}
productId=
{
this
.
state
.
spuId
}
spuName=
{
this
.
state
.
spuName
}
refresh=
{
this
.
handleSearch
}
refresh=
{
this
.
handleSearch
}
/>
/>
)
}
)
}
...
...
src/pages/GoodsManage/SupplyPriceUpdate/staticdata.js
View file @
8e89a87c
...
@@ -102,6 +102,7 @@ export function columnManage() {
...
@@ -102,6 +102,7 @@ export function columnManage() {
dataIndex
:
'
stock
'
,
dataIndex
:
'
stock
'
,
width
:
160
,
width
:
160
,
align
:
'
center
'
,
align
:
'
center
'
,
render
:
(
_
,
row
)
=>
<
div
>
{
row
.
stock
||
'
-
'
}
<
/div>
,
},
},
{
{
title
:
'
操作
'
,
title
:
'
操作
'
,
...
...
src/pages/GoodsManage/SupplyPriceUpdate/style.less
View file @
8e89a87c
.priceStockTable {
.priceStockTable {
:global(.ant-modal-body) {
padding: 0 15px !important;
}
:global(.ant-table-cell) {
:global(.ant-table-cell) {
padding: 5px 0 0 0 !important;
padding: 5px 0 0 0 !important;
line-height: 32px !important;
line-height: 32px !important;
vertical-align: top !important;
vertical-align: top !important;
}
}
}
}
.modalTitle {
height: 40px;
line-height: 40px;
}
.hidden {
.hidden {
width: 0;
width: 0;
height: 0;
height: 0;
...
...
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