Commit eb1c4aa8 authored by Bill's avatar Bill

fix: 修改详情页标题

parent 3658db78
......@@ -12,7 +12,8 @@ import { getAuth } from '@/utils/auth';
interface Iprops {};
const { StaticsDataList } = Layout
const url = '/memberCenter/procurementAbility/purchaseInquiry/inquiry';
const consumerUrl = '/memberCenter/procurementAbility/purchaseInquiry/inquiry';
const providerUrl = '/memberCenter/procurementAbility/offter/offter'
const KEY_TITLE = {
purchaseInquiryList: '采购询价 ',
......@@ -41,7 +42,6 @@ const PurchaseCenter: React.FC<Iprops> = () => {
if (!inViewPort || (!hasPurchaseAuth)) {
return;
}
// console.log((!isBusiness.includes(auth.memberType)), isConsumer !== auth.memberRoleType)
async function findCurrMemberPurchase() {
const { data, code } = await PublicApi.getTemplateWebMemberPurchaseWebFindCurrMemberPurchase();
if (code === 1000) {
......@@ -51,6 +51,8 @@ const PurchaseCenter: React.FC<Iprops> = () => {
findCurrMemberPurchase()
}, [inViewPort, hasPurchaseAuth])
const purchaseCenterUrl = useMemo(() => isConsumer === auth.memberRoleType ? consumerUrl : providerUrl ,[auth])
return (
<Layout
viewRef={ref}
......@@ -58,10 +60,10 @@ const PurchaseCenter: React.FC<Iprops> = () => {
tips="提供在线采购询价、在线报价、在线招投标、在线竞价、制订采购计划、创建采购门户等功能"
extra={
<Authorize
url={url}
url={purchaseCenterUrl}
>
<div>
<Link to={url}>进入采购中心</Link>
<Link to={purchaseCenterUrl}>进入采购中心</Link>
</div>
</Authorize>
}
......
......@@ -101,7 +101,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={false}>
<AnchorPage
title={initialValue?.subject}
title={`事件主题:${initialValue?.subject}`}
anchors={headers}
extra={
<Button type="primary" onClick={onSubmitRes}>处理结果信息</Button>
......
......@@ -24,7 +24,7 @@ const EvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
// extra={headExtra && headExtra(detailInfo, returnAddress, exchangeAddress)}
>
......
......@@ -83,7 +83,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.name}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
extra={
(
......
......@@ -36,7 +36,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
extra={
<Button loading={submitLoading} type="primary" onClick={onSubmitRes} icon={<CheckCircleOutlined />}>单据审核</Button>
......
......@@ -44,7 +44,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
extra={
<Button type="primary" onClick={() => toggle(true)} icon={<CheckCircleOutlined />}>单据审核</Button>
......
......@@ -44,7 +44,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
extra={
<Button type="primary" onClick={() => toggle(true)} icon={<CheckCircleOutlined />}>单据审核</Button>
......
......@@ -154,7 +154,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
extra={
(
......
......@@ -99,7 +99,7 @@ const InspectionDetail: React.FC<Iprops> = (props: Iprops) => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考察主题: ${initialValue?.subject}`}
anchors={anchorHeader}
>
<div style={{ margin: `${theme["@margin-md"]} 0` }}>
......
......@@ -20,7 +20,7 @@ const EvaluateDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`考评单号: ${initialValue?.appraisalNo}`}
anchors={anchorHeader}
// extra={headExtra && headExtra(detailInfo, returnAddress, exchangeAddress)}
>
......
......@@ -85,7 +85,7 @@ const rectificationAddDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`整改单号: ${initialValue?.rectifyNo}`}
anchors={headers}
extra={
initialValue?.currentOuterStep === 2 && (
......
......@@ -20,7 +20,7 @@ const TobeEvaluateDetail = () => {
return (
<Spin spinning={false}>
<AnchorPage
title={initialValue?.subject}
title={`事件主题:${initialValue?.subject}`}
anchors={headers}
>
<CustomizeColumn id="detail" data={basicInfo} title="投诉建议信息" column={3} />
......
......@@ -53,7 +53,7 @@ const rectificationAddDetail = () => {
return (
<Spin spinning={loading}>
<AnchorPage
title={initialValue?.subject}
title={`整改单号: ${initialValue?.rectifyNo}`}
anchors={headers}
>
<AuditProcess
......
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