Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
bffc2082
Commit
bffc2082
authored
Oct 21, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路由跳转,商品询价, 询价报价,确认询价报价
parent
82fbfd61
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
179 additions
and
76 deletions
+179
-76
confirmInquiryQuote.ts
config/routes/tranactionRoute/confirmInquiryQuote.ts
+32
-3
goodsOffer.ts
config/routes/tranactionRoute/goodsOffer.ts
+6
-6
inquiryQuote.ts
config/routes/tranactionRoute/inquiryQuote.ts
+6
-6
menu.ts
src/locales/zh-CN/menu.ts
+17
-3
reviewList.tsx
...transaction/confirmInquiryQuote/components/reviewList.tsx
+3
-15
index.tsx
...ransaction/confirmInquiryQuote/pendingReviewOne/index.tsx
+18
-0
index.tsx
...ransaction/confirmInquiryQuote/pendingReviewTwo/index.tsx
+18
-0
index.tsx
...s/transaction/confirmInquiryQuote/pendingSubmit/index.tsx
+2
-2
index.tsx
...saction/confirmInquiryQuote/pendingSubmitReview/index.tsx
+2
-2
index.tsx
...ages/transaction/confirmInquiryQuote/quoteOrder/index.tsx
+2
-2
index.tsx
src/pages/transaction/goodsOffer/addEnquiryOrder/index.tsx
+2
-2
reviewList.tsx
src/pages/transaction/goodsOffer/components/reviewList.tsx
+3
-8
index.tsx
src/pages/transaction/goodsOffer/enquiryOrder/index.tsx
+1
-1
index.tsx
src/pages/transaction/goodsOffer/pendingReviewOne/index.tsx
+10
-1
index.tsx
src/pages/transaction/goodsOffer/pendingReviewTwo/index.tsx
+11
-1
index.tsx
src/pages/transaction/goodsOffer/pendingSubmit/index.tsx
+1
-1
index.tsx
src/pages/transaction/inquiryQuote/addInquiryOrder/index.tsx
+3
-3
reviewList.tsx
src/pages/transaction/inquiryQuote/components/reviewList.tsx
+3
-15
index.tsx
src/pages/transaction/inquiryQuote/enquiryOrder/index.tsx
+1
-1
index.tsx
...pages/transaction/inquiryQuote/pendingReviewOne/index.tsx
+17
-0
index.tsx
...pages/transaction/inquiryQuote/pendingReviewTwo/index.tsx
+17
-0
index.tsx
src/pages/transaction/inquiryQuote/pendingSubmit/index.tsx
+2
-2
index.tsx
src/pages/transaction/inquiryQuote/quoteOrder/index.tsx
+2
-2
No files found.
config/routes/tranactionRoute/confirmInquiryQuote.ts
View file @
bffc2082
...
...
@@ -14,28 +14,49 @@ export default [
name
:
'quoteOrder'
,
component
:
'@/pages/transaction/confirmInquiryQuote/quoteOrder'
},
// 报价单查询详情
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/quoteOrder/details'
,
name
:
'quoteOrderDetails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/confirmInquiryQuote/components/details'
},
// 待提交审核报价单
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/pendingSubmitReview'
,
name
:
'pendingSubmitReview'
,
component
:
'@/pages/transaction/confirmInquiryQuote/pendingSubmitReview'
},
// 待提交审核报价单详情
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/pendingSubmitReview/details'
,
name
:
'pendingSubmitReviewDetails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/confirmInquiryQuote/components/details'
},
// 待审核询价单(一级)
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewOne'
,
name
:
'pendingReviewOne'
,
component
:
'@/pages/transaction/confirmInquiryQuote/pendingReviewOne'
},
// 待审核询价单(一级)详情
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewOne/details'
,
name
:
'pendingReviewOneDetails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/confirmInquiryQuote/components/details'
},
// 待审核询价单(二级)
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/pendingReviewTwo'
,
name
:
'pendingReviewTwo'
,
component
:
'@/pages/transaction/confirmInquiryQuote/pendingReviewTwo'
},
// 详情
//
待审核询价单(二级)
详情
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details'
,
name
:
'
d
etails'
,
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/
pendingReviewTwo
/details'
,
name
:
'
pendingReviewTwoD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/confirmInquiryQuote/components/details'
},
...
...
@@ -45,6 +66,13 @@ export default [
name
:
'pendingSubmit'
,
component
:
'@/pages/transaction/confirmInquiryQuote/pendingSubmit'
},
// 待提交报价单详情
{
path
:
'/memberCenter/tranactionAbility/confirmInquiryQuote/pendingSubmit/details'
,
name
:
'pendingSubmitDetails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/confirmInquiryQuote/components/details'
},
]
},
]
\ No newline at end of file
config/routes/tranactionRoute/goodsOffer.ts
View file @
bffc2082
...
...
@@ -17,7 +17,7 @@ export default [
// 询价单查询详情
{
path
:
'/memberCenter/tranactionAbility/goodsOffer/enquiryOrder/details'
,
name
:
'
d
etails'
,
name
:
'
quoteOrderD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/goodsOffer/components/details'
},
...
...
@@ -37,14 +37,14 @@ export default [
// 编辑报价单
{
path
:
'/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/edit'
,
name
:
'
add
'
,
name
:
'
edit
'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/goodsOffer/addEnquiryOrder/add'
},
// 待新增询价单详情
{
path
:
'/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/details'
,
name
:
'
d
etails'
,
name
:
'
addEnquiryOrderD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/goodsOffer/components/details'
},
...
...
@@ -57,7 +57,7 @@ export default [
// 待审核询价单(一级)详情
{
path
:
'/memberCenter/tranactionAbility/goodsOffer/pendingReviewOne/details'
,
name
:
'
d
etails'
,
name
:
'
pendingReviewOneD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/goodsOffer/components/details'
},
...
...
@@ -70,7 +70,7 @@ export default [
// 待审核询价单(二级)详情
{
path
:
'/memberCenter/tranactionAbility/goodsOffer/pendingReviewTwo/details'
,
name
:
'
d
etails'
,
name
:
'
pendingReviewTwoD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/goodsOffer/components/details'
},
...
...
@@ -83,7 +83,7 @@ export default [
// 待提交询价单详情
{
path
:
'/memberCenter/tranactionAbility/goodsOffer/pendingSubmit/details'
,
name
:
'
d
etails'
,
name
:
'
pendingSubmitD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/goodsOffer/components/details'
}
...
...
config/routes/tranactionRoute/inquiryQuote.ts
View file @
bffc2082
...
...
@@ -17,7 +17,7 @@ export default [
// 询价单查询详情
{
path
:
'/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/details'
,
name
:
'
details
'
,
name
:
'
enquiryOrder
'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/inquiryQuote/components/details'
},
...
...
@@ -30,7 +30,7 @@ export default [
// 报价单查询详情
{
path
:
'/memberCenter/tranactionAbility/inquiryQuote/quoteOrder/details'
,
name
:
'
d
etails'
,
name
:
'
quoteOrderD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/inquiryQuote/components/details'
},
...
...
@@ -50,7 +50,7 @@ export default [
// 新建报价单编辑
{
path
:
'/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/edit'
,
name
:
'
add
'
,
name
:
'
edit
'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/inquiryQuote/addInquiryOrder/add'
},
...
...
@@ -70,7 +70,7 @@ export default [
// 待审核报价单(一级)详情
{
path
:
'/memberCenter/tranactionAbility/inquiryQuote/pendingReviewOne/details'
,
name
:
'
d
etails'
,
name
:
'
pendingReviewOneD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/inquiryQuote/components/details'
},
...
...
@@ -83,7 +83,7 @@ export default [
// 待审核报价单(二级)详情
{
path
:
'/memberCenter/tranactionAbility/inquiryQuote/pendingReviewTwo/details'
,
name
:
'
d
etails'
,
name
:
'
pendingReviewTwoD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/inquiryQuote/components/details'
},
...
...
@@ -96,7 +96,7 @@ export default [
// 待提交报价单详情
{
path
:
'/memberCenter/tranactionAbility/inquiryQuote/pendingSubmit/details'
,
name
:
'
d
etails'
,
name
:
'
pendingSubmitD
etails'
,
hideInMenu
:
true
,
component
:
'@/pages/transaction/inquiryQuote/components/details'
},
...
...
src/locales/zh-CN/menu.ts
View file @
bffc2082
...
...
@@ -139,34 +139,48 @@ export default {
// 确认询价报价
'menu.tranactionAbility.confirmInquiryQuote'
:
'确认询价报价'
,
'menu.tranactionAbility.confirmInquiryQuote.quoteOrder'
:
'报价单查询'
,
'menu.tranactionAbility.confirmInquiryQuote.
details'
:
'新建报价单
'
,
'menu.tranactionAbility.confirmInquiryQuote.
quoteOrderDetails'
:
'报价单查询详情
'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingSubmitReview'
:
'待提交审核报价单'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingSubmitReviewDetails'
:
'待提交审核报价单详情'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingReviewOne'
:
'待审核报价单(一级)'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingReviewOneDetails'
:
'待审核报价单(一级)详情'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingReviewTwo'
:
'待审核报价单(二级)'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingReviewTwoDetails'
:
'待审核报价单(二级)详情'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingSubmit'
:
'待确认报价单'
,
'menu.tranactionAbility.confirmInquiryQuote.pendingSubmitDetails'
:
'待确认报价单详情'
,
// 商品询价
'menu.tranactionAbility.goodsOffer'
:
'商品询价'
,
'menu.tranactionAbility.goodsOffer.enquiryOrder'
:
'询价单查询'
,
'menu.tranactionAbility.goodsOffer.enquiryOrderDetails'
:
'询价单查询详情'
,
'menu.tranactionAbility.goodsOffer.addEnquiryOrder'
:
'待新增询价单'
,
'menu.tranactionAbility.goodsOffer.add'
:
'新建询价单'
,
'menu.tranactionAbility.goodsOffer.edit'
:
'编辑询价单'
,
'menu.tranactionAbility.goodsOffer.detail'
:
'查看询价单'
,
'menu.tranactionAbility.goodsOffer.details'
:
'新建询价单'
,
'menu.tranactionAbility.goodsOffer.addEnquiryOrderDetails'
:
'待新增询价详情'
,
'menu.tranactionAbility.goodsOffer.pendingReviewOne'
:
'待审核询价单(一级)'
,
'menu.tranactionAbility.goodsOffer.pendingReviewOneDetails'
:
'待审核询价单(一级)详情'
,
'menu.tranactionAbility.goodsOffer.pendingReviewTwo'
:
'待审核询价单(二级)'
,
'menu.tranactionAbility.goodsOffer.pendingReviewTwoDetails'
:
'待审核询价单(二级)详情'
,
'menu.tranactionAbility.goodsOffer.pendingSubmit'
:
'待提交询价单'
,
'menu.tranactionAbility.goodsOffer.pendingSubmitDetails'
:
'待提交询价单详情'
,
// 询价报价
'menu.tranactionAbility.inquiryQuote'
:
'询价报价'
,
'menu.tranactionAbility.inquiryQuote.enquiryOrder'
:
'询价单查询'
,
'menu.tranactionAbility.inquiryQuote.enquiryOrderDetails'
:
'询价单查询详情'
,
'menu.tranactionAbility.inquiryQuote.quoteOrder'
:
'报价单查询'
,
'menu.tranactionAbility.inquiryQuote.quoteOrderDetails'
:
'报价单查询详情'
,
'menu.tranactionAbility.inquiryQuote.addInquiryOrder'
:
'待新增报价单'
,
'menu.tranactionAbility.inquiryQuote.add'
:
'新建报价单'
,
'menu.tranactionAbility.inquiryQuote.edit'
:
'编辑报价单'
,
'menu.tranactionAbility.inquiryQuote.details'
:
'新建报价单'
,
'menu.tranactionAbility.inquiryQuote.addInquiryOrderDetails'
:
'待新增报价单详情'
,
'menu.tranactionAbility.inquiryQuote.pendingReviewOne'
:
'待审核报价单(一级)'
,
'menu.tranactionAbility.inquiryQuote.pendingReviewOneDetails'
:
'待审核报价单(一级)详情'
,
'menu.tranactionAbility.inquiryQuote.pendingReviewTwo'
:
'待审核报价单(二级)'
,
'menu.tranactionAbility.inquiryQuote.pendingReviewTwoDetails'
:
'待审核报价单(二级)详情'
,
'menu.tranactionAbility.inquiryQuote.pendingSubmit'
:
'待提交报价单'
,
'menu.tranactionAbility.inquiryQuote.pendingSubmitDetails'
:
'待提交报价单详情'
,
//进销存
'menu.tranactionAbility.stockSellStorage'
:
'进销存'
,
...
...
src/pages/transaction/confirmInquiryQuote/components/reviewList.tsx
View file @
bffc2082
...
...
@@ -25,11 +25,12 @@ export interface parmas {
batchAction
?:
Function
,
reloadRef
?:
any
,
type
?:
number
,
column
?:
any
}
const
ReviewList
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
ref
=
useRef
<
any
>
({});
const
{
fetchData
,
selectAll
,
batchAction
,
reloadRef
,
type
}
=
props
;
const
{
fetchData
,
selectAll
,
batchAction
,
reloadRef
,
type
,
column
}
=
props
;
const
[
selectRow
,
setSelectRow
]
=
useState
([])
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
id
,
setId
]
=
useState
<
number
>
();
...
...
@@ -50,20 +51,7 @@ const ReviewList: React.FC<parmas> = (props) => {
})
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'报价单号'
,
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/components/details?id=${record.id}&page_type=${type}&view=2`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/components/details?id=${record.id}&page_type=${type}&view=1`
}
>
{
text
}
</
EyePreview
>
},
...
column
,
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/confirmInquiryQuote/pendingReviewOne/index.tsx
View file @
bffc2082
...
...
@@ -3,6 +3,8 @@ import { message } from 'antd';
import
ReviewList
from
'../components/reviewList'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
PendingReviewOne
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
selectRow
,
setSelectRow
]
=
useState
<
Array
<
number
>>
([]);
...
...
@@ -65,6 +67,21 @@ const PendingReviewOne: React.FC<{}> = () => {
message
.
error
(
'请选择要操作的询价单!'
)
}
}
const
column
:
ColumnType
<
any
>
[]
=
[{
title
:
'报价单号'
,
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
>
},
{
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
>
}]
return
(
<
ReviewList
reloadRef=
{
ref
}
...
...
@@ -72,6 +89,7 @@ const PendingReviewOne: React.FC<{}> = () => {
selectAll=
{
selectAll
}
batchAction=
{
batchAction
}
type=
{
2
}
column=
{
column
}
/>
)
}
...
...
src/pages/transaction/confirmInquiryQuote/pendingReviewTwo/index.tsx
View file @
bffc2082
...
...
@@ -3,6 +3,8 @@ import { message } from 'antd';
import
ReviewList
from
'../components/reviewList'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
PendingReviewTwo
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
selectRow
,
setSelectRow
]
=
useState
<
Array
<
number
>>
([]);
...
...
@@ -65,6 +67,21 @@ const PendingReviewTwo: React.FC<{}> = () => {
message
.
error
(
'请选择要操作的询价单!'
)
}
}
const
column
:
ColumnType
<
any
>
[]
=
[{
title
:
'报价单号'
,
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
>
},
{
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
>
}]
return
(
<
ReviewList
reloadRef=
{
ref
}
...
...
@@ -72,6 +89,7 @@ const PendingReviewTwo: React.FC<{}> = () => {
selectAll=
{
selectAll
}
batchAction=
{
batchAction
}
type=
{
3
}
column=
{
column
}
/>
)
}
...
...
src/pages/transaction/confirmInquiryQuote/pendingSubmit/index.tsx
View file @
bffc2082
...
...
@@ -30,13 +30,13 @@ const PendingSubmit: React.FC<{}> = () => {
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details?id=${record.id}&page_type=1&view=2`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
pendingSubmit
/details?id=${record.id}&page_type=1&view=2`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details?id=${record.id}&page_type=1&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
pendingSubmit
/details?id=${record.id}&page_type=1&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/confirmInquiryQuote/pendingSubmitReview/index.tsx
View file @
bffc2082
...
...
@@ -29,13 +29,13 @@ const PendingSubmitReview: React.FC<{}> = () => {
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details?id=${record.id}&page_type=5&view=2`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
pendingSubmitReview
/details?id=${record.id}&page_type=5&view=2`
}
>
{
text
}
</
EyePreview
>
},{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details?id=${record.id}&page_type=5&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
pendingSubmitReview
/details?id=${record.id}&page_type=5&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'报价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/confirmInquiryQuote/quoteOrder/index.tsx
View file @
bffc2082
...
...
@@ -23,13 +23,13 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details?id=${record.id}&page_type=4&view=2`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
quoteOrder
/details?id=${record.id}&page_type=4&view=2`
}
>
{
text
}
</
EyePreview
>
},{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
components
/details?id=${record.id}&page_type=4&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/confirmInquiryQuote/
quoteOrder
/details?id=${record.id}&page_type=4&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'报价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/index.tsx
View file @
bffc2082
...
...
@@ -28,7 +28,7 @@ const AddEnquiryOrder: React.FC<{}> = () => {
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/goodsOffer/
components
/details?id=${record.id}&page_type=6&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/goodsOffer/
addEnquiryOrder
/details?id=${record.id}&page_type=6&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
...
...
@@ -89,7 +89,7 @@ const AddEnquiryOrder: React.FC<{}> = () => {
return
(
<>
<
Button
type=
'link'
disabled=
{
record
.
interiorState
!==
1
}
>
提交审核
</
Button
>
<
Button
type=
"link"
disabled=
{
record
.
interiorState
!==
4
&&
record
.
externalState
!==
1
}
><
Link
to=
{
`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/
add
?id=${record.id}`
}
>
编辑
</
Link
></
Button
>
<
Button
type=
"link"
disabled=
{
record
.
interiorState
!==
4
&&
record
.
externalState
!==
1
}
><
Link
to=
{
`/memberCenter/tranactionAbility/goodsOffer/addEnquiryOrder/
edit
?id=${record.id}`
}
>
编辑
</
Link
></
Button
>
<
Popconfirm
title=
"确定要删除吗?"
okText=
"是"
...
...
src/pages/transaction/goodsOffer/components/reviewList.tsx
View file @
bffc2082
...
...
@@ -23,11 +23,12 @@ export interface parmas {
batchAction
?:
Function
,
reloadRef
?:
any
,
type
?:
number
,
column
?:
any
}
const
ReviewList
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
ref
=
useRef
<
any
>
({});
const
{
fetchData
,
selectAll
,
batchAction
,
reloadRef
,
type
}
=
props
;
const
{
fetchData
,
selectAll
,
batchAction
,
reloadRef
,
type
,
column
}
=
props
;
const
[
selectRow
,
setSelectRow
]
=
useState
([])
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
id
,
setId
]
=
useState
<
number
>
();
...
...
@@ -48,13 +49,7 @@ const ReviewList: React.FC<parmas> = (props) => {
})
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/goodsOffer/components/details?id=${record.id}&page_type=${type}&view=1`
}
>
{
text
}
</
EyePreview
>
},
column
,
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/goodsOffer/enquiryOrder/index.tsx
View file @
bffc2082
...
...
@@ -23,7 +23,7 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/goodsOffer/
components
/details?id=${record.id}&page_type=4&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/goodsOffer/
enquiryOrder
/details?id=${record.id}&page_type=4&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/goodsOffer/pendingReviewOne/index.tsx
View file @
bffc2082
...
...
@@ -3,6 +3,7 @@ import { message } from 'antd';
import
ReviewList
from
'../components/reviewList'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
PendingReviewOne
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
selectRow
,
setSelectRow
]
=
useState
<
Array
<
number
>>
([]);
...
...
@@ -42,7 +43,7 @@ const PendingReviewOne: React.FC<{}> = () => {
const
fetchData
=
(
params
?:
any
)
=>
{
console
.
log
(
params
)
//可以直接打印参数
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getOrderInquiryToAuditList
({
...
params
}).
then
(
res
=>
{
PublicApi
.
getOrderInquiryToAuditList
({
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
// setTimeout(() => {
...
...
@@ -65,6 +66,13 @@ const PendingReviewOne: React.FC<{}> = () => {
message
.
error
(
'请选择要操作的询价单!'
)
}
}
const
column
=
{
title
:
'询价单号'
,
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
>
}
return
(
<
ReviewList
reloadRef=
{
ref
}
...
...
@@ -72,6 +80,7 @@ const PendingReviewOne: React.FC<{}> = () => {
selectAll=
{
selectAll
}
batchAction=
{
batchAction
}
type=
{
2
}
column=
{
column
}
/>
)
}
...
...
src/pages/transaction/goodsOffer/pendingReviewTwo/index.tsx
View file @
bffc2082
...
...
@@ -3,6 +3,7 @@ import { message } from 'antd';
import
ReviewList
from
'../components/reviewList'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
PendingReviewTwo
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
selectRow
,
setSelectRow
]
=
useState
<
Array
<
number
>>
([]);
...
...
@@ -12,7 +13,7 @@ const PendingReviewTwo: React.FC<{}> = () => {
setSelectRow
(
values
);
console
.
log
(
values
,
'我是多选的id'
)
}
//
列表数据
//列表数据
// const data = { // 模拟的数据
// totalCount: 6,
// data: [{
...
...
@@ -65,6 +66,14 @@ const PendingReviewTwo: React.FC<{}> = () => {
message
.
error
(
'请选择要操作的询价单!'
)
}
}
const
column
=
{
title
:
'询价单号'
,
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
>
}
return
(
<
ReviewList
reloadRef=
{
ref
}
...
...
@@ -72,6 +81,7 @@ const PendingReviewTwo: React.FC<{}> = () => {
selectAll=
{
selectAll
}
batchAction=
{
batchAction
}
type=
{
3
}
column=
{
column
}
/>
)
}
...
...
src/pages/transaction/goodsOffer/pendingSubmit/index.tsx
View file @
bffc2082
...
...
@@ -30,7 +30,7 @@ const PendingSubmit: React.FC<{}> = () => {
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/goodsOffer/
components
/details?id=${record.id}&page_type=1&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/goodsOffer/
pendingSubmit
/details?id=${record.id}&page_type=1&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/index.tsx
View file @
bffc2082
...
...
@@ -27,13 +27,13 @@ const AddInquiryOrder: React.FC<{}> = () => {
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=6&view=2`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
addInquiryOrder
/details?id=${record.id}&page_type=6&view=2`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=6&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
addInquiryOrder
/details?id=${record.id}&page_type=6&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
@@ -78,7 +78,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
return
(
<>
<
Button
type=
'link'
>
提交审核
</
Button
>
<
Button
type=
"link"
><
Link
to=
{
`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/
add
?id=${record.id}`
}
>
编辑
</
Link
></
Button
>
<
Button
type=
"link"
><
Link
to=
{
`/memberCenter/tranactionAbility/inquiryQuote/addInquiryOrder/
edit
?id=${record.id}`
}
>
编辑
</
Link
></
Button
>
<
Popconfirm
destroyTooltipOnHide
title=
"确定要删除吗?"
...
...
src/pages/transaction/inquiryQuote/components/reviewList.tsx
View file @
bffc2082
...
...
@@ -23,11 +23,12 @@ export interface parmas {
batchAction
?:
Function
,
reloadRef
?:
any
,
type
?:
number
,
column
?:
any
}
const
ReviewList
:
React
.
FC
<
parmas
>
=
(
props
)
=>
{
const
ref
=
useRef
<
any
>
({});
const
{
fetchData
,
selectAll
,
batchAction
,
reloadRef
,
type
}
=
props
;
const
{
fetchData
,
selectAll
,
batchAction
,
reloadRef
,
type
,
column
}
=
props
;
const
[
selectRow
,
setSelectRow
]
=
useState
([])
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
id
,
setId
]
=
useState
<
number
>
();
...
...
@@ -48,20 +49,7 @@ const ReviewList: React.FC<parmas> = (props) => {
})
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'报价单号'
,
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/components/details?id=${record.id}&page_type=${type}&view=2`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/components/details?id=${record.id}&page_type=${type}&view=1`
}
>
{
text
}
</
EyePreview
>
},
...
column
,
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/inquiryQuote/enquiryOrder/index.tsx
View file @
bffc2082
...
...
@@ -23,7 +23,7 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=4&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
enquiryOrder
/details?id=${record.id}&page_type=4&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/inquiryQuote/pendingReviewOne/index.tsx
View file @
bffc2082
...
...
@@ -3,6 +3,8 @@ import { message } from 'antd';
import
ReviewList
from
'../components/reviewList'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
PendingReviewOne
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
selectRow
,
setSelectRow
]
=
useState
<
Array
<
number
>>
([]);
...
...
@@ -65,6 +67,20 @@ const PendingReviewOne: React.FC<{}> = () => {
message
.
error
(
'请选择要操作的询价单!'
)
}
}
const
column
:
ColumnType
<
any
>
[]
=
[{
title
:
'报价单号'
,
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
>
},
{
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
>
}]
return
(
<
ReviewList
reloadRef=
{
ref
}
...
...
@@ -72,6 +88,7 @@ const PendingReviewOne: React.FC<{}> = () => {
selectAll=
{
selectAll
}
batchAction=
{
batchAction
}
type=
{
2
}
column=
{
column
}
/>
)
}
...
...
src/pages/transaction/inquiryQuote/pendingReviewTwo/index.tsx
View file @
bffc2082
...
...
@@ -3,6 +3,8 @@ import { message } from 'antd';
import
ReviewList
from
'../components/reviewList'
;
import
{
timeRange
}
from
'@/utils/index'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
PendingReviewTwo
:
React
.
FC
<
{}
>
=
()
=>
{
const
[
selectRow
,
setSelectRow
]
=
useState
<
Array
<
number
>>
([]);
...
...
@@ -65,6 +67,20 @@ const PendingReviewTwo: React.FC<{}> = () => {
message
.
error
(
'请选择要操作的询价单!'
)
}
}
const
column
:
ColumnType
<
any
>
[]
=
[{
title
:
'报价单号'
,
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
>
},
{
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
>
}]
return
(
<
ReviewList
reloadRef=
{
ref
}
...
...
@@ -72,6 +88,7 @@ const PendingReviewTwo: React.FC<{}> = () => {
selectAll=
{
selectAll
}
batchAction=
{
batchAction
}
type=
{
3
}
column=
{
column
}
/>
)
}
...
...
src/pages/transaction/inquiryQuote/pendingSubmit/index.tsx
View file @
bffc2082
...
...
@@ -29,13 +29,13 @@ const PendingSubmit: React.FC<{}> = () => {
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=1&view=2`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
pendingSubmit
/details?id=${record.id}&page_type=1&view=2`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=1&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
pendingSubmit
/details?id=${record.id}&page_type=1&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
src/pages/transaction/inquiryQuote/quoteOrder/index.tsx
View file @
bffc2082
...
...
@@ -23,13 +23,13 @@ const EnquiryOrder: React.FC<{}> = (props) => {
key
:
'quotationNo'
,
dataIndex
:
'quotationNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=5&view=2`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
quoteOrder
/details?id=${record.id}&page_type=5&view=2`
}
>
{
text
}
</
EyePreview
>
},{
title
:
'询价单号'
,
key
:
'inquiryListNo'
,
dataIndex
:
'inquiryListNo'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
EyePreview
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
components
/details?id=${record.id}&page_type=5&view=1`
}
>
{
text
}
</
EyePreview
>
url=
{
`/memberCenter/tranactionAbility/inquiryQuote/
quoteOrder
/details?id=${record.id}&page_type=5&view=1`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
'询价单摘要'
,
key
:
'details'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment