From 5fcc7ecd27f44026b8d02e8b769860428e3fa7f0 Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Thu, 23 Jun 2022 16:19:08 +0800 Subject: [PATCH] =?UTF-8?q?6.23=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Opening/ProjectManager/Room/index.tsx | 3 ++- src/pages/ZTanPan/RoomConfig/View/Manager/Sing/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/Opening/ProjectManager/Room/index.tsx b/src/pages/Opening/ProjectManager/Room/index.tsx index a977fd0..925dd00 100644 --- a/src/pages/Opening/ProjectManager/Room/index.tsx +++ b/src/pages/Opening/ProjectManager/Room/index.tsx @@ -375,6 +375,7 @@ const Room: React.FC<{}> = () => { }); //拼data let haveCompleteT = false; + const isLocalSign_: boolean = res.data.suppliers.findIndex((item: any) => item.bidUserId == userId ? item.signTime != null : false) != -1; res.data.suppliers != undefined ? res.data.suppliers.map((item1: any, index: any) => { let oneGys = {}; signTimeT[item1.bidUserId] = item1.signTime == null ? true : false;//控制显示 确认报价按钮 @@ -389,7 +390,7 @@ const Room: React.FC<{}> = () => { oneGys["newPriceRemark"] = item1.newPriceRemark;//数据表id,补录报价用 oneGys["quoteDecryptStatus"] = item1.quoteDecryptStatus; oneGys["quoteId"] = item1.quoteId; - oneGys["isSignTime"] = juese === 'ebtp-supplier' ? item1.bidUserId == userId ? true : res.data.suppliers.findIndex((item: any) => item.bidUserId == userId ? item.signTime != null : false) != -1 : true; + oneGys["isSignTime"] = juese == "ebtp-supplier" ? item1.bidUserId == userId ? true : isLocalSign_ : true; if (item1.companyId == tenderId) { category.map((item2: any, index: any) => { oneGys[item2] = item1.dataMap[item2]; diff --git a/src/pages/ZTanPan/RoomConfig/View/Manager/Sing/index.tsx b/src/pages/ZTanPan/RoomConfig/View/Manager/Sing/index.tsx index 216056d..bc817d4 100644 --- a/src/pages/ZTanPan/RoomConfig/View/Manager/Sing/index.tsx +++ b/src/pages/ZTanPan/RoomConfig/View/Manager/Sing/index.tsx @@ -345,6 +345,7 @@ const Room: React.FC<{}> = () => { }); //拼data let haveCompleteT = false; + const isLocalSign_: boolean = res.data.suppliers.findIndex((item: any) => item.bidUserId == userId ? item.signTime != null : false) != -1; res.data.suppliers != undefined ? res.data.suppliers.map((item1: any, index: any) => { let oneGys = {}; signTimeT[item1.bidUserId] = item1.signTime == null ? true : false;//控制显示 确认报价按钮 @@ -359,7 +360,7 @@ const Room: React.FC<{}> = () => { oneGys["newPriceRemark"] = item1.newPriceRemark;//数据表id,补录报价用 oneGys["quoteDecryptStatus"] = item1.quoteDecryptStatus; oneGys["quoteId"] = item1.quoteId; - oneGys["isSignTime"] = juese === 'ebtp-supplier' ? item1.bidUserId == userId ? true : res.data.suppliers.findIndex((item: any) => item.bidUserId == userId ? item.signTime != null : false) != -1 : true; + oneGys["isSignTime"] = juese === 'ebtp-supplier' ? item1.bidUserId == userId ? true : isLocalSign_ : true; if (item1.companyId == tendererId) { category.map((item2: any, index: any) => { oneGys[item2] = item1.dataMap[item2];