Commit 879849b4 authored by 武广's avatar 武广

feat: 添加审核描述

parent 8b54f485
......@@ -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
......
......@@ -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>
);
};
......
......@@ -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,
......
......@@ -190,10 +190,10 @@ export function column() {
<div>
<p>{row.state >= 5 ? '审核通过' : _}</p>
<div>
{row.updateStateDesc ? (
<span onClick={() => onShowAudit(row)} className={styles.stateAuditTxt}>
{row.updateState ? (
<Button onClick={() => onShowAudit(row)} type="link">
{row.updateStateDesc}
</span>
</Button>
) : (
'--'
)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment