Commit 1507d119 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改待比价 密封比价的问题 20685

parent 915a0a8c
...@@ -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)
} }
......
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