Commit 46551319 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:

parent dbc188ee
......@@ -106,7 +106,7 @@ const Products: React.FC<{}> = () => {
}
},
{
title: '审核时间',
title: '申请审核时间',
dataIndex: 'applyTime',
key: 'applyTime',
render: (text:any, record:any)=>text && moment(text).format('YYYY-MM-DD HH:mm:ss'),
......
......@@ -120,7 +120,7 @@ const Products: React.FC<{}> = () => {
}
},
{
title: '审核时间',
title: '申请审核时间',
dataIndex: 'applyTime',
key: 'applyTime',
render: (text:any, record:any)=>text && moment(text).format('YYYY-MM-DD HH:mm:ss'),
......
......@@ -70,11 +70,11 @@ const CheckBrand: React.FC<{}> = () => {
render: (text:any, record:any) => {
let component: ReactNode = null
if(record.operation === 1)
component = (<>新增</>)
component = (<>提价审核</>)
else if(record.operation === 2)
component = (<>修改</>)
component = (<>修改品牌</>)
else if(record.operation === 3)
component = (<>审核</>)
component = (<>审核品牌</>)
return component
}
},
......@@ -242,18 +242,20 @@ const CheckBrand: React.FC<{}> = () => {
<Radio value={3}>审核不通过</Radio>
</Radio.Group>
</Form.Item>
<Form.Item
name="checkRemark"
label={checkStatus===4?'审核通过原因':'审核不通过原因'}
rules={[
{
required: checkStatus===4?false:true,
message: '请填写原因'
}
]}
>
<TextArea rows={3} maxLength={60} placeholder="请填写原因" />
</Form.Item>
{
checkStatus===3 && <Form.Item
name="checkRemark"
label='审核不通过原因'
rules={[
{
required: true,
message: '请填写原因'
}
]}
>
<TextArea rows={3} maxLength={60} placeholder="请填写原因" />
</Form.Item>
}
</Form>
</Modal>
</PageHeaderWrapper>
......
......@@ -112,7 +112,7 @@ const Trademark: React.FC<{}> = () => {
type: 'string',
enum: [
{ label: '全部', value: 0 },
{ label: '待提交审核', value: 1 },
// { label: '待提交审核', value: 1 },
{ label: '待审核', value: 2 },
{ label: '审核不通过', value: 3 },
{ label: '审核通过', value: 4 }
......
......@@ -79,11 +79,11 @@ const viewBrand: React.FC<{}> = () => {
render: (text:any, record:any) => {
let component: ReactNode = null
if(record.operation === 1)
component = (<>新增</>)
component = (<>提交审核</>)
else if(record.operation === 2)
component = (<>修改</>)
component = (<>修改品牌</>)
else if(record.operation === 3)
component = (<>审核</>)
component = (<>审核品牌</>)
return component
}
},
......
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