commit
This commit is contained in:
@@ -195,9 +195,9 @@ const Emd = () => {
|
||||
const auctionIdToFind = String(SelectedAuction.auctionId);
|
||||
const matchedObject = res.data.find((item: any) =>
|
||||
item.auctionIds
|
||||
.split(',')
|
||||
.map((id: any) => id.trim())
|
||||
.includes(auctionIdToFind)
|
||||
?.split(',')
|
||||
?.map((id: any) => id.trim())
|
||||
?.includes(auctionIdToFind)
|
||||
);
|
||||
setAllBoolean((prev: any) => ({ ...prev, selectTemplate: matchedObject, technicalDocModalVisible: true }))
|
||||
}
|
||||
|
||||
@@ -56,6 +56,7 @@ const EnvelopeCExcelPreview = (tenderData: any) => {
|
||||
Authentication: `Bearer ${token.token}`,
|
||||
},
|
||||
});
|
||||
console.log("excel response",response)
|
||||
|
||||
const base64 = arrayBufferToBase64(response.data);
|
||||
const workbook = XLSX.read(base64, { type: 'base64' });
|
||||
|
||||
@@ -17,12 +17,12 @@ const LiveTenderTile: React.FC<LiveTenderTileProps> = ({
|
||||
tenderDispatchDate,
|
||||
tenderOfWork,
|
||||
purchaseEnd,
|
||||
tenderFees,
|
||||
tenderFees,
|
||||
tenderNumber,
|
||||
onDetailsPress
|
||||
}) => {
|
||||
const navigation: any = useNavigation();
|
||||
const purchaseEnded = moment().isAfter(moment(purchaseEnd, 'DD-MM-YYYY HH:mm:ss'));
|
||||
const purchaseEnded = !moment().isAfter(moment(purchaseEnd, 'DD-MM-YYYY HH:mm:ss'));
|
||||
|
||||
const contractorIds = typeof data?.contractorId === 'string'
|
||||
? data.contractorId.split(',').map((id:any) => id.trim())
|
||||
|
||||
@@ -52,6 +52,7 @@ const ProceedToPurTender = () => {
|
||||
mutate(body, {
|
||||
onSuccess: (res) => {
|
||||
console.log(res, '---------------------purchsase response');
|
||||
|
||||
Alert.alert('Offline Purchase Successful!', `Order No: ${orderNo}`);
|
||||
navigation.goBack()
|
||||
},
|
||||
|
||||
@@ -38,6 +38,8 @@ const Screens = {
|
||||
Signup,
|
||||
Registration,
|
||||
Partnership,
|
||||
LiveTenderDetail
|
||||
LiveTenderDetail,
|
||||
|
||||
|
||||
}
|
||||
export default Screens
|
||||
Reference in New Issue
Block a user