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];