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
XieZhiXiong
jinfa-platform
Commits
1507d119
Commit
1507d119
authored
Feb 21, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改待比价 密封比价的问题 20685
parent
915a0a8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
index.tsx
...ity/components/detail/components/contrastLyout1/index.tsx
+7
-1
No files found.
src/pages/transaction/purchaseAbility/components/detail/components/contrastLyout1/index.tsx
View file @
1507d119
...
@@ -70,6 +70,11 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
...
@@ -70,6 +70,11 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
const
[
encrypt
,
setEncrypt
]
=
useState
<
number
>
(
0
);
const
[
encrypt
,
setEncrypt
]
=
useState
<
number
>
(
0
);
/** 当前数据的第0条 */
/** 当前数据的第0条 */
const
[
idx
,
setIdx
]
=
useState
<
number
>
(
0
);
const
[
idx
,
setIdx
]
=
useState
<
number
>
(
0
);
/** 供应商的报价是否已解密 */
const
[
decrypt
,
setDecrypt
]
=
useState
<
boolean
>
(
false
)
/** 报价轮次 */
/** 报价轮次 */
const
handleTurn
=
(
num
:
number
)
=>
{
const
handleTurn
=
(
num
:
number
)
=>
{
let
isTurn
:
Array
<
number
>
=
[];
let
isTurn
:
Array
<
number
>
=
[];
...
@@ -194,6 +199,7 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
...
@@ -194,6 +199,7 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
const
params
=
{
...
rowSource
};
const
params
=
{
...
rowSource
};
params
[
i
]
=
[...
data
]
params
[
i
]
=
[...
data
]
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
setDecrypt
(
true
)
setEncrypt
(
data
[
0
].
isDecrypt
);
setEncrypt
(
data
[
0
].
isDecrypt
);
setRowSource
(
params
);
setRowSource
(
params
);
/**
/**
...
@@ -265,7 +271,7 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
...
@@ -265,7 +271,7 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
!
isEmpty
(
context
))
{
if
(
!
isEmpty
(
context
)
&&
!
decrypt
)
{
let
priceContrast
=
(
context
.
priceContrast
===
1
?
PRICECONTRAST_TYPE
.
UNDECRYPTED
:
PRICECONTRAST_TYPE
.
UNENCRYPTED
);
let
priceContrast
=
(
context
.
priceContrast
===
1
?
PRICECONTRAST_TYPE
.
UNDECRYPTED
:
PRICECONTRAST_TYPE
.
UNENCRYPTED
);
setEncrypt
(
priceContrast
)
setEncrypt
(
priceContrast
)
}
}
...
...
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