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
黄庭坚
jinfa-platform
Commits
8fe78b9a
Commit
8fe78b9a
authored
May 24, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 在线竞价&采购竞价详情调整
parent
5368354a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
34 deletions
+5
-34
index.tsx
...es/transaction/purchaseAbility/onlineBid/detail/index.tsx
+4
-33
index.tsx
.../transaction/purchaseAbility/purchaseBid/detail/index.tsx
+1
-1
No files found.
src/pages/transaction/purchaseAbility/onlineBid/detail/index.tsx
View file @
8fe78b9a
...
...
@@ -15,7 +15,6 @@ import BidCommonLayout from '../../components/detail/components/bidCommonLayout'
import
TableCommonLayout
from
'../../components/detail/components/tableCommonLayout'
;
import
LowestQuotationRecordLayout
from
'../../components/detail/components/lowestQuotationRecordLayout'
;
import
BidProgressDrawer
from
'../../components/detail/components/bidProgressDrawer'
;
import
QuotationDetailsDrawer
from
'../../components/detail/components/quotationDetailsDrawer'
;
import
ThankModal
from
'./components/thank'
;
...
...
@@ -55,12 +54,10 @@ const SearchDetail = () => {
}
=
history
.
location
;
const
[
path
]
=
useState
(
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
1
]);
const
[
pathPci
]
=
useState
(
pathname
.
split
(
'/'
)[
pathname
.
split
(
'/'
).
length
-
2
]);
// 报价明细
const
[
quotationDetailsVisible
,
setQuotationDetailsVisible
]
=
useState
<
boolean
>
(
false
);
const
[
quotationDetailsId
,
setQuotationDetailsId
]
=
useState
<
number
>
();
// 竞价过程
const
[
progressVisible
,
setProgressVisible
]
=
useState
<
boolean
>
(
false
);
const
[
progressData
,
setProgressData
]
=
useState
<
any
>
([]);
// 详情数据
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
({});
// 流转数据数据
const
[
progressEffect
,
setProgressEffect
]
=
useState
<
any
>
([]);
...
...
@@ -74,8 +71,7 @@ const SearchDetail = () => {
const
[
signUpEffect
,
setSignUpEffect
]
=
useState
<
any
>
([]);
// 交易条件
const
[
conditionEffect
,
setConditionEffect
]
=
useState
<
any
>
([]);
// 授标结果
const
[
awardResult
,
setAwardResult
]
=
useState
<
any
>
({});
// 感谢函
const
[
thankVisAble
,
seTthankVisAble
]
=
useState
<
boolean
>
(
false
);
...
...
@@ -117,7 +113,7 @@ const SearchDetail = () => {
setResultEffect
([
{
col
:
[
{
label
:
'中标金额(含税)'
,
extra
:
priceFormat
(
data
?.
sumAwardPrice
)
,
type
:
'text'
},
{
label
:
'中标金额(含税)'
,
extra
:
data
?.
sumAwardPrice
?
priceFormat
(
data
?.
sumAwardPrice
)
:
'-'
,
type
:
'text'
},
{
label
:
'中标理由'
,
extra
:
'价格最低'
,
type
:
'text'
},
]
},
...
...
@@ -194,15 +190,6 @@ const SearchDetail = () => {
])
}
const
handleAwardResult
=
(
data
:
any
)
=>
{
setAwardResult
(
{
list
:
data
.
awardsFruits
||
[],
signUpIdea
:
data
.
signUpIdea
}
)
}
const
fetchDataSource
=
async
()
=>
{
const
params
=
{
id
,
...
...
@@ -222,9 +209,8 @@ const SearchDetail = () => {
handleRulesEffect
(
data
);
handleSignUpEffect
(
data
);
handleConditionEffect
(
data
);
// handleAwardResult(data)
handleResultEffect
(
data
);
if
(
data
.
externalState
===
99
9
&&
isPrize
!==
0
&&
isPrize
)
{
if
(
data
.
externalState
===
99
&&
isPrize
!=
1
&&
isPrize
)
{
seTthankVisAble
(
true
)
}
})
...
...
@@ -310,12 +296,6 @@ const SearchDetail = () => {
)
}
const
_openQuotationDetailsDrawer
=
(
id
:
number
)
=>
{
setQuotationDetailsId
(
id
);
setQuotationDetailsVisible
(
true
);
}
return
(
<
Context
.
Provider
value=
{
dataSource
}
>
...
...
@@ -343,15 +323,6 @@ const SearchDetail = () => {
visible=
{
progressVisible
}
onClose=
{
()
=>
{
setProgressVisible
(
false
)
}
}
/>
<
QuotationDetailsDrawer
fetch=
{
PublicApi
.
getPurchaseBiddingQuotedPriceDetaild
}
quotationDetailsId=
{
quotationDetailsId
}
number=
{
number
}
effects=
'id'
title=
"报价明细"
visible=
{
quotationDetailsVisible
}
onClose=
{
()
=>
setQuotationDetailsVisible
(
false
)
}
/>
<
ThankModal
visible=
{
thankVisAble
}
detail=
{
dataSource
}
...
...
src/pages/transaction/purchaseAbility/purchaseBid/detail/index.tsx
View file @
8fe78b9a
...
...
@@ -240,7 +240,7 @@ const SearchDetail = () => {
pageSize
:
'1'
}
const
_fetch
=
pathPci
===
'readySubmitExaminResult'
?
PublicApi
.
getPurchaseBiddingStaySubmitDetails
:
PublicApi
.
getPurchaseBiddingDetails
const
_fetch
=
pathPci
===
'readySubmitExamin
e
Result'
?
PublicApi
.
getPurchaseBiddingStaySubmitDetails
:
PublicApi
.
getPurchaseBiddingDetails
await
_fetch
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
...
...
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