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
879849b4
Commit
879849b4
authored
Oct 18, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加审核描述
parent
8b54f485
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
9 deletions
+30
-9
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+5
-2
infoAudit.jsx
src/pages/GoodsManage/createModal/infoAudit.jsx
+18
-4
service.js
src/pages/GoodsManage/service.js
+4
-0
staticdata.js
src/pages/GoodsManage/staticdata.js
+3
-3
No files found.
src/pages/GoodsManage/createModal/index.jsx
View file @
879849b4
...
...
@@ -837,8 +837,11 @@ class goodsManage extends Component {
<
Col
span=
{
12
}
key=
{
k
.
id
}
>
<
FormItem
label=
{
k
.
name
}
{
...
formItemAttr
}
key=
{
k
.
id
}
>
{
getFieldDecorator
(
`attributeApplyList[${i}]['attr${k.id}']`
,
{
initialValue
:
+
k
.
supportCustomValue
.
code
===
1
||
+
k
.
optionType
.
code
===
2
?
[]
:
''
,
// this.getInitAttrValue(k.id, k.supportCustomValue, k.optionType), //
initialValue
:
this
.
getInitAttrValue
(
k
.
id
,
k
.
supportCustomValue
,
k
.
optionType
,
),
// +k.supportCustomValue.code === 1 || +k.optionType.code === 2 ? [] : '',
validateTrigger
:
[
'
onChange
'
],
rules
:
+
k
.
required
.
code
===
1
...
...
src/pages/GoodsManage/createModal/infoAudit.jsx
View file @
879849b4
...
...
@@ -13,6 +13,18 @@ const InfoAudit = props => {
}
};
const
getContent
=
()
=>
{
const
obj
=
{
1
:
'
-
'
,
2
:
'
审核通过
'
,
3
:
`审核拒绝,
${
audit
.
rejectReason
}
`
,
};
if
(
audit
)
{
return
obj
[
audit
.
status
]
||
''
;
}
return
''
;
};
useEffect
(()
=>
{
if
(
props
.
visible
)
{
getRecord
();
...
...
@@ -24,9 +36,11 @@ const InfoAudit = props => {
title=
"商品信息变更审核"
visible=
{
props
.
visible
}
footer=
{
[
audit
.
status
===
3
&&
(
<
Button
key=
"back"
type=
"primary"
onClick=
{
()
=>
props
.
onEdit
()
}
>
再次编辑
</
Button
>,
</
Button
>
),
<
Button
key=
"close"
onClick=
{
()
=>
props
.
onCancel
()
}
>
关闭
</
Button
>,
...
...
@@ -34,7 +48,7 @@ const InfoAudit = props => {
>
<
p
>
审核状态:
{
audit
.
statusDesc
}
</
p
>
<
p
>
申请时间:
{
audit
.
createdAt
}
</
p
>
<
p
>
审核结果:
{
audit
.
rejectReason
}
</
p
>
<
p
>
审核结果:
{
getContent
()
}
</
p
>
</
Modal
>
);
};
...
...
src/pages/GoodsManage/service.js
View file @
879849b4
...
...
@@ -9,6 +9,10 @@ const headers = {
'
Content-Type
'
:
'
application/x-www-form-urlencoded
'
,
};
/**
* 商品列表
* yapi: http://yapi.quantgroups.com/project/389/interface/api/23814
*/
export
async
function
searchList
(
params
)
{
return
request
.
post
(
'
/product/api/merchant/page
'
,
{
prefix
:
goodsApi
,
...
...
src/pages/GoodsManage/staticdata.js
View file @
879849b4
...
...
@@ -190,10 +190,10 @@ export function column() {
<
div
>
<
p
>
{
row
.
state
>=
5
?
'
审核通过
'
:
_
}
<
/p
>
<
div
>
{
row
.
updateState
Desc
?
(
<
span
onClick
=
{()
=>
onShowAudit
(
row
)}
className
=
{
styles
.
stateAuditTxt
}
>
{
row
.
updateState
?
(
<
Button
onClick
=
{()
=>
onShowAudit
(
row
)}
type
=
"
link
"
>
{
row
.
updateStateDesc
}
<
/
spa
n
>
<
/
Butto
n
>
)
:
(
'
--
'
)}
...
...
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