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
909cdb62
Commit
909cdb62
authored
Feb 13, 2025
by
shida.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 供货价
parent
87caf0b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
323 additions
and
321 deletions
+323
-321
index.jsx
src/pages/PopGoodsManage/SearchForm/index.jsx
+2
-2
FormPriceOrStock.jsx
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
+8
-2
config.js
src/pages/ServiceGoods/config.js
+313
-317
No files found.
src/pages/PopGoodsManage/SearchForm/index.jsx
View file @
909cdb62
...
...
@@ -202,7 +202,7 @@ class goodsManage extends Component {
))
}
</
Select
>
</
FormItem
>
<
FormItem
label=
"供货价区间"
>
{
/*
<FormItem label="供货价区间">
<FormItem name="supplyPriceMin" className={styles.iptNumRight} noStyle>
<InputNumber placeholder="请输入" min={0} max={999999999} style={iptNumWidth} />
</FormItem>
...
...
@@ -218,7 +218,7 @@ class goodsManage extends Component {
onChange={this.valueMin}
/>
</FormItem>
</
FormItem
>
</FormItem>
*/
}
<
FormItem
name=
"thirdSkuNo"
label=
"第三方SKU编码"
>
<
Input
placeholder=
"请输入第三方SKU编码"
allowClear
style=
{
selectW
}
/>
</
FormItem
>
...
...
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
View file @
909cdb62
...
...
@@ -12,7 +12,7 @@ import React, {
memo
,
}
from
'
react
'
;
// import { unstable_batchedUpdates } from 'react-dom';
import
{
formItemLayout
,
StaticColumns
}
from
'
../config
'
;
import
{
formItemLayout
,
StaticColumns
,
StaticColumnsPop
}
from
'
../config
'
;
import
EditFormTable
from
'
./EditFormTable
'
;
import
FormPackage
from
'
./FormPackage
'
;
import
{
...
...
@@ -316,7 +316,13 @@ const FormPriceOrStock = forwardRef((props, ref) => {
inputType
:
'
text
'
,
});
}
const
dynamicColumns
=
[...
columsData
,
...
StaticColumns
(
customer
)];
// isGoodsManage用来判断是否是popGoodsManage页面,这个页面是用来应付审计团队的,没有实际功能,这里删掉了供货价字段,正常业务逻辑不用考虑这个字段,这就用第一个数据就好了
const
isGoodsManage
=
window
.
location
.
pathname
.
indexOf
(
'
popGoodsManage
'
)
<
0
;
const
dynamicColumns
=
[
...
columsData
,
...(
isGoodsManage
?
StaticColumns
(
customer
)
:
StaticColumnsPop
(
customer
)),
];
setDefaultColumns
(
dynamicColumns
);
};
...
...
src/pages/ServiceGoods/config.js
View file @
909cdb62
...
...
@@ -159,323 +159,319 @@ export const WeeksList = [
value
:
7
,
},
];
// isGoodsManage用来判断是否是popGoodsManage页面,这个页面是用来应付审计团队的,没有实际功能,这里删掉了供货价字段,正常业务逻辑不用考虑这个字段,这就用第一个数据就好了
const
isGoodsManage
=
window
.
location
.
pathname
.
indexOf
(
'
popGoodsManage
'
)
<
0
;
export
const
StaticColumns
=
customer
=>
isGoodsManage
?
[
{
title
:
'
供货价
'
,
dataIndex
:
'
supplyPrice
'
,
editable
:
true
,
batchRole
:
[
1
,
2
,
3
,
4
],
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
佣金费率
'
,
dataIndex
:
'
commissionRate
'
,
editable
:
true
,
role
:
[
4
],
roleRules
:
{
required
:
false
},
roleProps
:
{
min
:
0
,
},
// batchProps: {
// min: 0,
// },
},
{
title
:
'
市场价
'
,
dataIndex
:
'
marketPrice
'
,
editable
:
true
,
batchRole
:
[
1
,
2
,
3
,
4
],
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
销售价
'
,
dataIndex
:
'
salePrice
'
,
editable
:
true
,
batchRole
:
[
4
],
role
:
[
4
],
roleRules
:
{
required
:
true
},
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
`重量(
${
customer
.
isGold
?
'
g
'
:
'
kg
'
}
)`
,
dataIndex
:
'
weight
'
,
editable
:
true
,
batchRole
:
[
1
],
batchProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
role
:
[
1
],
roleRules
:
{
required
:
true
},
roleProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
库存
'
,
dataIndex
:
'
productStock
'
,
editable
:
true
,
role
:
[
1
,
2
,
4
],
batchRole
:
[
1
,
2
,
4
],
batchProps
:
{
precision
:
0
,
step
:
1
,
min
:
0
,
},
roleProps
:
{
min
:
0
,
step
:
1
,
precision
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
record
=>
{
if
(
record
.
stock
===
null
)
return
false
;
return
customer
.
isEdit
&&
customer
.
isNormal
;
},
},
{
title
:
'
库存预警
'
,
dataIndex
:
'
productStockWarning
'
,
editable
:
true
,
batchRole
:
[
1
],
role
:
[
1
,
4
],
roleProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
batchProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
商品自编码
'
,
dataIndex
:
'
thirdSkuNo
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
京东链接
'
,
dataIndex
:
'
skuLink
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
sku名称
'
,
dataIndex
:
'
name
'
,
editable
:
true
,
role
:
customer
.
isEdit
&&
customer
.
isJDGoods
?
[
1
,
2
]
:
[],
inputType
:
'
btnText
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
操作
'
,
editable
:
true
,
dataIndex
:
'
option
'
,
role
:
[
1
,
2
],
inputType
:
'
option
'
,
roleProps
:
{
isJDGoods
:
customer
.
isJDGoods
,
disabled
:
customer
.
isDisabled
,
min
:
0
,
},
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
]
:
[
// 这部分是用来应付审计团队的,没有实际功能,这里删掉了供货价字段,正常业务逻辑不用考虑这里
{
title
:
'
佣金费率
'
,
dataIndex
:
'
commissionRate
'
,
editable
:
true
,
role
:
[
4
],
roleRules
:
{
required
:
false
},
roleProps
:
{
min
:
0
,
},
// batchProps: {
// min: 0,
// },
},
{
title
:
'
市场价
'
,
dataIndex
:
'
marketPrice
'
,
editable
:
true
,
batchRole
:
[
1
,
2
,
3
,
4
],
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
销售价
'
,
dataIndex
:
'
salePrice
'
,
editable
:
true
,
batchRole
:
[
4
],
role
:
[
4
],
roleRules
:
{
required
:
true
},
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
`重量(
${
customer
.
isGold
?
'
g
'
:
'
kg
'
}
)`
,
dataIndex
:
'
weight
'
,
editable
:
true
,
batchRole
:
[
1
],
batchProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
role
:
[
1
],
roleRules
:
{
required
:
true
},
roleProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
库存
'
,
dataIndex
:
'
productStock
'
,
editable
:
true
,
role
:
[
1
,
2
,
4
],
batchRole
:
[
1
,
2
,
4
],
batchProps
:
{
precision
:
0
,
step
:
1
,
min
:
0
,
},
roleProps
:
{
min
:
0
,
step
:
1
,
precision
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
record
=>
{
if
(
record
.
stock
===
null
)
return
false
;
return
customer
.
isEdit
&&
customer
.
isNormal
;
},
},
{
title
:
'
库存预警
'
,
dataIndex
:
'
productStockWarning
'
,
editable
:
true
,
batchRole
:
[
1
],
role
:
[
1
,
4
],
roleProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
batchProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
商品自编码
'
,
dataIndex
:
'
thirdSkuNo
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
京东链接
'
,
dataIndex
:
'
skuLink
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
sku名称
'
,
dataIndex
:
'
name
'
,
editable
:
true
,
role
:
customer
.
isEdit
&&
customer
.
isJDGoods
?
[
1
,
2
]
:
[],
inputType
:
'
btnText
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
操作
'
,
editable
:
true
,
dataIndex
:
'
option
'
,
role
:
[
1
,
2
],
inputType
:
'
option
'
,
roleProps
:
{
isJDGoods
:
customer
.
isJDGoods
,
disabled
:
customer
.
isDisabled
,
min
:
0
,
},
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
];
export
const
StaticColumns
=
customer
=>
[
{
title
:
'
供货价
'
,
dataIndex
:
'
supplyPrice
'
,
editable
:
true
,
batchRole
:
[
1
,
2
,
3
,
4
],
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
佣金费率
'
,
dataIndex
:
'
commissionRate
'
,
editable
:
true
,
role
:
[
4
],
roleRules
:
{
required
:
false
},
roleProps
:
{
min
:
0
,
},
// batchProps: {
// min: 0,
// },
},
{
title
:
'
市场价
'
,
dataIndex
:
'
marketPrice
'
,
editable
:
true
,
batchRole
:
[
1
,
2
,
3
,
4
],
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
销售价
'
,
dataIndex
:
'
salePrice
'
,
editable
:
true
,
batchRole
:
[
4
],
role
:
[
4
],
roleRules
:
{
required
:
true
},
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
`重量(
${
customer
.
isGold
?
'
g
'
:
'
kg
'
}
)`
,
dataIndex
:
'
weight
'
,
editable
:
true
,
batchRole
:
[
1
],
batchProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
role
:
[
1
],
roleRules
:
{
required
:
true
},
roleProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
库存
'
,
dataIndex
:
'
productStock
'
,
editable
:
true
,
role
:
[
1
,
2
,
4
],
batchRole
:
[
1
,
2
,
4
],
batchProps
:
{
precision
:
0
,
step
:
1
,
min
:
0
,
},
roleProps
:
{
min
:
0
,
step
:
1
,
precision
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
record
=>
{
if
(
record
.
stock
===
null
)
return
false
;
return
customer
.
isEdit
&&
customer
.
isNormal
;
},
},
{
title
:
'
库存预警
'
,
dataIndex
:
'
productStockWarning
'
,
editable
:
true
,
batchRole
:
[
1
],
role
:
[
1
,
4
],
roleProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
batchProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
商品自编码
'
,
dataIndex
:
'
thirdSkuNo
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
京东链接
'
,
dataIndex
:
'
skuLink
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
sku名称
'
,
dataIndex
:
'
name
'
,
editable
:
true
,
role
:
customer
.
isEdit
&&
customer
.
isJDGoods
?
[
1
,
2
]
:
[],
inputType
:
'
btnText
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
操作
'
,
editable
:
true
,
dataIndex
:
'
option
'
,
role
:
[
1
,
2
],
inputType
:
'
option
'
,
roleProps
:
{
isJDGoods
:
customer
.
isJDGoods
,
disabled
:
customer
.
isDisabled
,
min
:
0
,
},
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
];
// 这部分是用来应付审计团队的,没有实际功能,这里删掉了供货价字段,正常业务逻辑不用考虑这里
export
const
StaticColumnsPop
=
customer
=>
[
{
title
:
'
佣金费率
'
,
dataIndex
:
'
commissionRate
'
,
editable
:
true
,
role
:
[
4
],
roleRules
:
{
required
:
false
},
roleProps
:
{
min
:
0
,
},
// batchProps: {
// min: 0,
// },
},
{
title
:
'
市场价
'
,
dataIndex
:
'
marketPrice
'
,
editable
:
true
,
batchRole
:
[
1
,
2
,
3
,
4
],
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
销售价
'
,
dataIndex
:
'
salePrice
'
,
editable
:
true
,
batchRole
:
[
4
],
role
:
[
4
],
roleRules
:
{
required
:
true
},
roleProps
:
{
precision
:
2
,
min
:
0
,
},
batchProps
:
{
precision
:
2
,
min
:
0
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
`重量(
${
customer
.
isGold
?
'
g
'
:
'
kg
'
}
)`
,
dataIndex
:
'
weight
'
,
editable
:
true
,
batchRole
:
[
1
],
batchProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
role
:
[
1
],
roleRules
:
{
required
:
true
},
roleProps
:
{
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
库存
'
,
dataIndex
:
'
productStock
'
,
editable
:
true
,
role
:
[
1
,
2
,
4
],
batchRole
:
[
1
,
2
,
4
],
batchProps
:
{
precision
:
0
,
step
:
1
,
min
:
0
,
},
roleProps
:
{
min
:
0
,
step
:
1
,
precision
:
0
,
},
roleRules
:
{
required
:
true
},
disabeldRender
:
record
=>
{
if
(
record
.
stock
===
null
)
return
false
;
return
customer
.
isEdit
&&
customer
.
isNormal
;
},
},
{
title
:
'
库存预警
'
,
dataIndex
:
'
productStockWarning
'
,
editable
:
true
,
batchRole
:
[
1
],
role
:
[
1
,
4
],
roleProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
batchProps
:
{
min
:
0
,
precision
:
0
,
maxLength
:
5
,
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
商品自编码
'
,
dataIndex
:
'
thirdSkuNo
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
true
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
京东链接
'
,
dataIndex
:
'
skuLink
'
,
editable
:
true
,
role
:
[
1
,
2
],
inputType
:
'
input
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
sku名称
'
,
dataIndex
:
'
name
'
,
editable
:
true
,
role
:
customer
.
isEdit
&&
customer
.
isJDGoods
?
[
1
,
2
]
:
[],
inputType
:
'
btnText
'
,
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
{
title
:
'
操作
'
,
editable
:
true
,
dataIndex
:
'
option
'
,
role
:
[
1
,
2
],
inputType
:
'
option
'
,
roleProps
:
{
isJDGoods
:
customer
.
isJDGoods
,
disabled
:
customer
.
isDisabled
,
min
:
0
,
},
roleRules
:
{
required
:
false
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
];
export
const
ENUM_REPERTORY
=
[{
label
:
'
单规格
'
,
value
:
'
1
'
},
{
label
:
'
多规格
'
,
value
:
'
2
'
}];
export
const
ENUM_SET_REPERTORY
=
[{
label
:
'
清零
'
,
value
:
'
0
'
},
{
label
:
'
最大
'
,
value
:
'
1
'
}];
export
const
ENUM_WEEK
=
[
...
...
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