Commit 98a388f6 authored by leimo's avatar leimo

Merge branch 'v2-220418-fixPurchaseBid' into 'v2-220418'

V2 220418 fix purchase bid See merge request linkseeks-design/pro-platform!135
parents 79cbb9a0 1ed63c32
......@@ -28,7 +28,8 @@ export interface IProps {
fetch?: () => Promise<unknown>,
maxNumber?: number,
createMemberId?: any,
createMemberRoleId?: any
createMemberRoleId?: any,
hideAuditCancel?: boolean
}
const ModalOperate: React.FC<IProps> = (props: any) => {
......@@ -43,7 +44,8 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
fetch,
maxNumber,
createMemberId,
createMemberRoleId
createMemberRoleId,
hideAuditCancel
} = props;
const [confirmLoading, setConfirmLoading] = useState<boolean>(false);
......@@ -101,12 +103,10 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
const modalNode = () => {
switch (modalType) {
case 'audit':
let _enum = [{ label: intl.formatMessage({ id: 'detail.purchase.message86' }), value: 1 }]
!hideAuditCancel && _enum.push({ label: intl.formatMessage({ id: 'detail.purchase.message87' }), value: 0 })
return <Field
enum={
[
{ label: intl.formatMessage({ id: 'detail.purchase.message86' }), value: 1 },
{ label: intl.formatMessage({ id: 'detail.purchase.message87' }), value: 0 }
]}
enum={_enum}
name='state'
required
x-component="Radio"
......
......@@ -47,8 +47,7 @@ const ReadyBid = () => {
key: 'createMemberName',
dataIndex: 'createMemberName',
render: (text: any, record: any) => (
<EyePreview
url={`${ENTERPRISE_CENTER_URL}/shop/${record.createMemberId}_${record.createMemberRoleId}`}>{text}</EyePreview>
<EyePreview type='button' class>{text}</EyePreview>
)
}, {
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
......
......@@ -46,7 +46,7 @@ const ReadySignUp = () => {
key: 'createMemberName',
dataIndex: 'createMemberName',
render: (text: any, record: any) => (
<EyePreview url={`${ENTERPRISE_CENTER_URL}/shop/${record.createMemberId}_${record.createMemberRoleId}`}>{text}</EyePreview>
<EyePreview type='button' class>{text}</EyePreview>
)
}, {
title: intl.formatMessage({ id: 'table.purchase.biddingStartTime' }),
......
......@@ -634,6 +634,7 @@ const SearchDetail = () => {
onOk={() => history.goBack()}
createMemberId={createMemberId}
createMemberRoleId={createMemberRoleId}
hideAuditCancel={pathPci === 'readySubmit'}
/>
<ConfirmBidResultModal
title={intl.formatMessage({ id: 'detail.purchase.modalTitle11' })}
......
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