Merge branch '20220413-zjl-公共服务平台' into 'master-20220527'

5.27 公共服务平台对接

See merge request eshop/fe_service_ebtp_frontend!88
This commit is contained in:
周建龙
2022-05-27 15:56:46 +08:00
13 changed files with 610 additions and 92 deletions

View File

@ -1,4 +1,5 @@
import { btnAuthority } from '@/utils/authority';
import { isEmpty } from '@/utils/CommonUtils';
import { checkObjectId } from '@/utils/DownloadUtils';
import SeleApprovalProcess from '@/utils/SeleApprovalProcess';
import { getApprProcessList } from '@/utils/SeleApprovalProcess/service';
@ -351,6 +352,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
</Button>
</Popconfirm>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
<Popconfirm
title="确定要删除吗?"
onConfirm={() => toDelete(record)}
@ -373,6 +375,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
<Button type="text" key="9" onClick={() => toApprovalFor(record)} hidden={!checkObjectId(record.id)}>
</Button>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
<Popconfirm
title="确定要删除吗?"
onConfirm={() => toDelete(record)}
@ -405,6 +408,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
</Button>
</Popconfirm>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
<Popconfirm
title="确定要删除吗?"
onConfirm={() => toDelete(record)}
@ -437,6 +441,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
</Button>
</Popconfirm>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
<Popconfirm
title="确定要删除吗?"
onConfirm={() => toDelete(record)}
@ -462,6 +467,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
<Button type="text" key="4" onClick={() => toTakeEffect(record)} hidden={btnAuthority(["ebtp-agency-project-manager", "ebtp-purchase"])}>
</Button>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
</>
) : record.status == 0 && record.sendMessageStatus == 6 ? ( //草稿-公告发布失败
<>
@ -484,6 +490,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
</Button>
</Popconfirm>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
<Popconfirm
title="确定要删除吗?"
onConfirm={() => toDelete(record)}
@ -506,6 +513,7 @@ const ExceptionHandling: React.FC<ExceptionHandlingProps> = (props) => {
<Button type="text" key="9" onClick={() => toApprovalFor(record)} hidden={!checkObjectId(record.id)}>
</Button>
<Button hidden={isEmpty(record.hasCtpsp) || !record.hasCtpsp} type="text" key="common" onClick={() => window.open('/PublicPlatform' + '?id=' + record.sendMessageId)}></Button>
</>
) : null,
},