Commit 84ffaafe authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

修改询价报价, 商品询价, 确定询价报价所有跳转路由

parent 559d819d
......@@ -45,7 +45,7 @@ export default [
path: '/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewOne/details',
name: 'pendingReviewOneDetails',
hideInMenu: true,
component: '@/pages/transaction/confirmInquiryQuote/components/details'
component: '@/pages/transaction/confirmInquiryQuote/pendingReviewOne/details'
},
// 待审核询价单(二级)
{
......@@ -58,7 +58,7 @@ export default [
path: '/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewTwo/details',
name: 'pendingReviewTwoDetails',
hideInMenu: true,
component: '@/pages/transaction/confirmInquiryQuote/components/details'
component: '@/pages/transaction/confirmInquiryQuote/pendingReviewTwo/details'
},
// 待提交报价单
{
......@@ -71,7 +71,7 @@ export default [
path: '/memberCenter/tranactionAbility/confirmInquiryQuote/pendingSubmit/details',
name: 'pendingSubmitDetails',
hideInMenu: true,
component: '@/pages/transaction/confirmInquiryQuote/components/details'
component: '@/pages/transaction/confirmInquiryQuote/pendingSubmit/details'
},
]
},
......
......@@ -19,7 +19,7 @@ export default [
path: '/memberCenter/tranactionAbility/goodsOffer/enquiryOrder/details',
name: 'enquiryOrderDetails',
hideInMenu: true,
component: '@/pages/transaction/goodsOffer/components/details'
component: '@/pages/transaction/goodsOffer/enquiryOrder/details'
},
// 待新增询价单
{
......@@ -46,7 +46,7 @@ export default [
path: '/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/details',
name: 'addEnquiryOrderDetails',
hideInMenu: true,
component: '@/pages/transaction/goodsOffer/components/details'
component: '@/pages/transaction/goodsOffer/addEnquiryOrder/details'
},
// 待审核询价单(一级)
{
......@@ -59,7 +59,7 @@ export default [
path: '/memberCenter/tranactionAbility/goodsOffer/pendingReviewOne/details',
name: 'pendingReviewOneDetails',
hideInMenu: true,
component: '@/pages/transaction/goodsOffer/components/details'
component: '@/pages/transaction/goodsOffer/pendingReviewOne/details'
},
// 待审核询价单(二级)
{
......@@ -72,7 +72,7 @@ export default [
path: '/memberCenter/tranactionAbility/goodsOffer/pendingReviewTwo/details',
name: 'pendingReviewTwoDetails',
hideInMenu: true,
component: '@/pages/transaction/goodsOffer/components/details'
component: '@/pages/transaction/goodsOffer/pendingReviewTwo/details'
},
// 待提交询价单
{
......@@ -85,7 +85,7 @@ export default [
path: '/memberCenter/tranactionAbility/goodsOffer/pendingSubmit/details',
name: 'pendingSubmitDetails',
hideInMenu: true,
component: '@/pages/transaction/goodsOffer/components/details'
component: '@/pages/transaction/goodsOffer/pendingSubmit/details'
}
]
}
......
......@@ -19,7 +19,7 @@ export default [
path: '/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/details',
name: 'enquiryOrder',
hideInMenu: true,
component: '@/pages/transaction/inquiryQuote/components/details'
component: '@/pages/transaction/inquiryQuote/enquiryOrder/details'
},
//报价单查询
{
......@@ -32,7 +32,7 @@ export default [
path: '/memberCenter/tranactionAbility/inquiryQuote/quoteOrder/details',
name: 'quoteOrderDetails',
hideInMenu: true,
component: '@/pages/transaction/inquiryQuote/components/details'
component: '@/pages/transaction/inquiryQuote/quoteOrder/details'
},
//待新增报价单
{
......@@ -59,7 +59,7 @@ export default [
path: '/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/details',
name: 'details',
hideInMenu: true,
component: '@/pages/transaction/inquiryQuote/components/details'
component: '@/pages/transaction/inquiryQuote/addInquiryOrder/details'
},
// 待审核报价单(一级)
{
......@@ -72,7 +72,7 @@ export default [
path: '/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details',
name: 'pendingReviewOneDetails',
hideInMenu: true,
component: '@/pages/transaction/inquiryQuote/components/details'
component: '@/pages/transaction/inquiryQuote/pendingReviewOne/details'
},
// 待审核报价单(二级)
{
......@@ -85,7 +85,7 @@ export default [
path: '/memberCenter/tranactionAbility/inquiryQuote/pendingReviewTwo/details',
name: 'pendingReviewTwoDetails',
hideInMenu: true,
component: '@/pages/transaction/inquiryQuote/components/details'
component: '@/pages/transaction/inquiryQuote/pendingReviewTwo/details'
},
// 待提交报价单
{
......@@ -98,7 +98,7 @@ export default [
path: '/memberCenter/tranactionAbility/inquiryQuote/pendingSubmit/details',
name: 'pendingSubmitDetails',
hideInMenu: true,
component: '@/pages/transaction/inquiryQuote/components/details'
component: '@/pages/transaction/inquiryQuote/pendingSubmit/details'
},
]
}
......
......@@ -24,11 +24,17 @@ export const HEADER_WRAPPER_TEXTS = {
'interiorState': '内部状态',
}
const Details: React.FC<{}> = () => {
export interface parmas {
page_type?: any,
id?: any,
view?: any
}
const Details: React.FC<parmas> = (props) => {
const [visible, setvisible] = useState(false)
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
const { id, page_type, view } = history.location.query;
const { id, page_type, view } = props;
const [headerWrapperData, setheaderWrapperData] = useState<Array<any>>([]);
// steps 切换
const [detailData, setDetailData] = useState<any>({
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewOneDetails: React.FC<{}> = () => {
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Datails
page_type={2}
id={id}
view={view}
/>
)
}
export default PendingReviewOneDetails
\ No newline at end of file
......@@ -73,13 +73,13 @@ const PendingReviewOne: React.FC<{}> = () => {
key: 'quotationNo',
dataIndex: 'quotationNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/confirmInquiryQuote/pendingSubmit/details?id=${record.id}&page_type=1&view=2`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewOne/details?id=${record.id}&view=2`}>{text}</EyePreview>
}, {
title: '询价单号',
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/confirmInquiryQuote/pendingSubmit/details?id=${record.id}&page_type=1&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewOne/details?id=${record.id}&view=1`}>{text}</EyePreview>
}]
return (
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewOneDetails: React.FC<{}> = () => {
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Datails
page_type={3}
id={id}
view={view}
/>
)
}
export default PendingReviewOneDetails
\ No newline at end of file
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewOneDetails: React.FC<{}> = () => {
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Datails
page_type={1}
id={id}
view={view}
/>
)
}
export default PendingReviewOneDetails
\ No newline at end of file
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewOneDetails: React.FC<{}> = () => {
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Datails
page_type={5}
id={id}
view={view}
/>
)
}
export default PendingReviewOneDetails
\ No newline at end of file
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewOneDetails: React.FC<{}> = () => {
//page_type: 1.待确认报价单,2.待审核报价单1级,3.待审核报价单2级,4.报价单查询,5.待提交审核报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Datails
page_type={4}
id={id}
view={view}
/>
)
}
export default PendingReviewOneDetails
\ No newline at end of file
......@@ -171,7 +171,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
const fetchGoodsList = (params) => {
return new Promise((resolve, reject) => {
PublicApi.getProductCommodityCommonGetCommodityListByBuyer({...params,priceTypeList: 1,memberId:memberList[0].memberId }).then(res => {
PublicApi.getProductCommodityCommonGetCommodityListByBuyer({...params,priceTypeList: 2,memberId:memberList[0].memberId }).then(res => {
if(res.code === 1000) {
resolve(res.data)
}
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const AddEnquiryOrderDatails:React.FC<{}> = () => {
//type: 1.待提交询价单,2.待审核询价单1级,3.待审核询价单2级,4.询价单查询,5.询价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id } = history.location.query;
return(
<Datails
page_type={6}
id={id}
view={1}
/>
)
}
export default AddEnquiryOrderDatails
......@@ -31,7 +31,7 @@ const AddEnquiryOrder: React.FC<{}> = () => {
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/details?id=${record.id}&page_type=6&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/details?id=${record.id}`}>{text}</EyePreview>
},
{
title: '询价单摘要',
......
......@@ -19,11 +19,17 @@ export const HEADER_WRAPPER_TEXTS = {
'interiorState': '内部状态',
}
const Details: React.FC<{}> = () => {
export interface parmas {
page_type?: any,
id?: any,
view?: any
}
const Details: React.FC<parmas> = (props) => {
const [visible, setvisible] = useState(false)
//type: 1.待提交询价单,2.待审核询价单1级,3.待审核询价单2级,4.询价单查询,5.询价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, page_type, view } = history.location.query;
const { id, page_type, view } = props;
const [headerWrapperData, setheaderWrapperData] = useState<Array<any>>([]);
// steps 切换
const [detailData, setDetailData] = useState<any>({
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const EnquiryOrderDatails:React.FC<{}> = () => {
//type: 1.待提交询价单,2.待审核询价单1级,3.待审核询价单2级,4.询价单查询,5.询价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id } = history.location.query;
return(
<Datails
page_type={4}
id={id}
view={1}
/>
)
}
export default EnquiryOrderDatails
......@@ -23,7 +23,7 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/goodsOffer/enquiryOrder/details?id=${record.id}&page_type=4&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/goodsOffer/enquiryOrder/details?id=${record.id}`}>{text}</EyePreview>
}, {
title: '询价单摘要',
key: 'details',
......@@ -63,29 +63,29 @@ const EnquiryOrder: React.FC<{}> = (props) => {
quoteOrderInternalState(text)
}];
//交易能力 询价报价 询价单查询
// const data = {
// totalCount: 1,
// data: [{
// id: 91,
// inquiryListNo: 'SD2015PPLJ',
// details: '阿珍爱上阿强',
// memberName: 'wutiaoren',
// memberId: 5,
// deliveryTime: '2020-10-14 15:37:00',
// quotationAsTime: '2020-10-13 15:37:00',
// voucherTime: '2020-10-13 15:37:00',
// externalState: 1,
// interiorState: 2
// }]
// }
const data = {
totalCount: 1,
data: [{
id: 91,
inquiryListNo: 'SD2015PPLJ',
details: '阿珍爱上阿强',
memberName: 'wutiaoren',
memberId: 5,
deliveryTime: '2020-10-14 15:37:00',
quotationAsTime: '2020-10-13 15:37:00',
voucherTime: '2020-10-13 15:37:00',
externalState: 1,
interiorState: 2
}]
}
const fetchData = (params?: any) => {
return new Promise((resolve, reject) => {
PublicApi.getOrderProductInquiryList({...params}).then(res => {
resolve(res.data)
})
// setTimeout(() => {
// resolve(data)
// }, 1000)
// PublicApi.getOrderProductInquiryList({...params}).then(res => {
// resolve(res.data)
// })
setTimeout(() => {
resolve(data)
}, 1000)
})
}
// 搜索
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewOneDatails:React.FC<{}> = () => {
//type: 1.待提交询价单,2.待审核询价单1级,3.待审核询价单2级,4.询价单查询,5.询价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id } = history.location.query;
return(
<Datails
page_type={2}
id={id}
view={1}
/>
)
}
export default PendingReviewOneDatails
......@@ -71,7 +71,7 @@ const PendingReviewOne: React.FC<{}> = () => {
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/goodsOffer/pendingReviewOne/details?id=${record.id}&page_type=2&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/goodsOffer/pendingReviewOne/details?id=${record.id}`}>{text}</EyePreview>
}
return (
<ReviewList
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingReviewTwoDatails:React.FC<{}> = () => {
//type: 1.待提交询价单,2.待审核询价单1级,3.待审核询价单2级,4.询价单查询,5.询价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id } = history.location.query;
return(
<Datails
page_type={3}
id={id}
view={1}
/>
)
}
export default PendingReviewTwoDatails
......@@ -72,7 +72,7 @@ const PendingReviewTwo: React.FC<{}> = () => {
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/goodsOffer/pendingReviewTwo/details?id=${record.id}&page_type=3&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/goodsOffer/pendingReviewTwo/details?id=${record.id}`}>{text}</EyePreview>
}
return (
<ReviewList
......
import React from 'react';
import { history } from 'umi';
import Datails from '../components/details';
import { PublicApi } from '@/services/api';
const PendingSubmitDatails:React.FC<{}> = () => {
//type: 1.待提交询价单,2.待审核询价单1级,3.待审核询价单2级,4.询价单查询,5.询价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id } = history.location.query;
return(
<Datails
page_type={1}
id={id}
view={1}
/>
)
}
export default PendingSubmitDatails
......@@ -30,7 +30,7 @@ const PendingSubmit: React.FC<{}> = () => {
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/goodsOffer/pendingSubmit/details?id=${record.id}&page_type=1&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/goodsOffer/pendingSubmit/details?id=${record.id}`}>{text}</EyePreview>
},
{
title: '询价单摘要',
......
import React from 'react';
import { history } from 'umi';
import Details from '../components/details';
const AddInquiryOrderDetails: React.FC<{}> = () => {
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Details
page_type={6}
id={id}
view={view}
/>
)
}
export default AddInquiryOrderDetails;
\ No newline at end of file
......@@ -30,13 +30,13 @@ const AddInquiryOrder: React.FC<{}> = () => {
key: 'quotationNo',
dataIndex: 'quotationNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/details?id=${record.id}&page_type=6&view=2`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/details?id=${record.id}&view=2`}>{text}</EyePreview>
}, {
title: '询价单号',
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/details?id=${record.id}&page_type=6&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/details?id=${record.id}&view=1`}>{text}</EyePreview>
}, {
title: '询价单摘要',
key: 'details',
......@@ -81,7 +81,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
return (
<>
<Button type='link' onClick={() => { setId(record.id); setvisible(true)}}>提交审核</Button>
<Button type="link"><Link to={`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/edit?id=${record.id}`}>编辑</Link></Button>
<Button type="link" disabled={record.externalState !==4 && record.interiorState !==1 && record.interiorState !==4}><Link to={`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/edit?id=${record.id}`}>编辑</Link></Button>
<Popconfirm
destroyTooltipOnHide
title="确定要删除吗?"
......@@ -196,7 +196,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
const handleModalOK = () => {
setvisible(false)
setTimeout(() => {
history.goBack()
ref.current.reload();
}, 1000)
}
......
......@@ -21,11 +21,17 @@ export const HEADER_WRAPPER_TEXTS = {
'interiorState': '内部状态',
}
const Details: React.FC<{}> = () => {
export interface parmas {
page_type?: any,
id?: any,
view?: any
}
const Details: React.FC<parmas> = (props) => {
const [visible, setvisible] = useState(false)
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, page_type, view } = history.location.query;
const { id, page_type, view } = props;
const [headerWrapperData, setheaderWrapperData] = useState<Array<any>>([]);
// steps 切换
const [detailData, setDetailData] = useState<any>({
......
import React from 'react';
import { history } from 'umi';
import Details from '../components/details';
const EnquiryOrderDetails: React.FC<{}> = () => {
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Details
page_type={4}
id={id}
view={view}
/>
)
}
export default EnquiryOrderDetails;
\ No newline at end of file
......@@ -24,7 +24,7 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/details?id=${record.id}&page_type=4&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/details?id=${record.id}&view=1`}>{text}</EyePreview>
}, {
title: '询价单摘要',
key: 'details',
......
import React from 'react';
import { history } from 'umi';
import Details from '../components/details';
const PendingReviewOneDetails: React.FC<{}> = () => {
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Details
page_type={2}
id={id}
view={view}
/>
)
}
export default PendingReviewOneDetails;
\ No newline at end of file
......@@ -72,14 +72,14 @@ const PendingReviewOne: React.FC<{}> = () => {
key: 'quotationNo',
dataIndex: 'quotationNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details?id=${record.id}&page_type=2&view=2`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details?id=${record.id}&view=2`}>{text}</EyePreview>
},
{
title: '询价单号',
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details?id=${record.id}&page_type=2&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details?id=${record.id}&view=1`}>{text}</EyePreview>
}]
return (
<ReviewList
......
import React from 'react';
import { history } from 'umi';
import Details from '../components/details';
const PendingReviewTwoDetails: React.FC<{}> = () => {
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Details
page_type={3}
id={id}
view={view}
/>
)
}
export default PendingReviewTwoDetails;
\ No newline at end of file
......@@ -72,14 +72,14 @@ const PendingReviewTwo: React.FC<{}> = () => {
key: 'quotationNo',
dataIndex: 'quotationNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details?id=${record.id}&page_type=2&view=2`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewTwo/details?id=${record.id}&view=2`}>{text}</EyePreview>
},
{
title: '询价单号',
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details?id=${record.id}&page_type=2&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingReviewTwo/details?id=${record.id}&view=1`}>{text}</EyePreview>
}]
return (
<ReviewList
......
import React from 'react';
import { history } from 'umi';
import Details from '../components/details';
const PendingSubmitDetails: React.FC<{}> = () => {
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Details
page_type={1}
id={id}
view={view}
/>
)
}
export default PendingSubmitDetails;
\ No newline at end of file
......@@ -29,13 +29,13 @@ const PendingSubmit: React.FC<{}> = () => {
key: 'quotationNo',
dataIndex: 'quotationNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingSubmit/details?id=${record.id}&page_type=1&view=2`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingSubmit/details?id=${record.id}&view=2`}>{text}</EyePreview>
}, {
title: '询价单号',
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingSubmit/details?id=${record.id}&page_type=1&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/inquiryQuote/pendingSubmit/details?id=${record.id}&view=1`}>{text}</EyePreview>
}, {
title: '询价单摘要',
key: 'details',
......
import React from 'react';
import { history } from 'umi';
import Details from '../components/details';
const QuoteOrderDetails: React.FC<{}> = () => {
//page_type: 1.待提交报价单,2.待审核报价单1级,3.待审核报价单2级,4.询价单查询,5.报价单查询,6.待新增报价单
//view: 1.询价单号,2.报价单号
const { id, view } = history.location.query;
return (
<Details
page_type={5}
id={id}
view={view}
/>
)
}
export default QuoteOrderDetails;
\ No newline at end of file
......@@ -23,13 +23,13 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key: 'quotationNo',
dataIndex: 'quotationNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/quoteOrder/details?id=${record.id}&page_type=5&view=2`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/confirmInquiryQuote/quoteOrder/details?id=${record.id}&view=2`}>{text}</EyePreview>
},{
title: '询价单号',
key: 'inquiryListNo',
dataIndex: 'inquiryListNo',
render: (text: any, record: any) => <EyePreview
url={`/memberCenter/tranactionAbility/inquiryQuote/quoteOrder/details?id=${record.id}&page_type=5&view=1`}>{text}</EyePreview>
url={`/memberCenter/tranactionAbility/confirmInquiryQuote/quoteOrder/details?id=${record.id}&view=1`}>{text}</EyePreview>
}, {
title: '询价单摘要',
key: 'details',
......
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