commit
This commit is contained in:
Generated
+736
-9
File diff suppressed because it is too large
Load Diff
@@ -25,6 +25,7 @@
|
|||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-react": "^7.37.5",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-react-native": "^5.0.0",
|
"eslint-plugin-react-native": "^5.0.0",
|
||||||
|
"exceljs": "^4.4.0",
|
||||||
"formik": "^2.4.9",
|
"formik": "^2.4.9",
|
||||||
"lottie-react-native": "^7.3.4",
|
"lottie-react-native": "^7.3.4",
|
||||||
"lucide-react-native": "^0.562.0",
|
"lucide-react-native": "^0.562.0",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const TabButton = ({ route, isFocused, onPress }: any) => {
|
|||||||
Home: { outline: "Home", filled: "Home" },
|
Home: { outline: "Home", filled: "Home" },
|
||||||
Auction: { outline: "Gavel", filled: "Gavel" },
|
Auction: { outline: "Gavel", filled: "Gavel" },
|
||||||
Tender: { outline: "FileText", filled: "FileText" },
|
Tender: { outline: "FileText", filled: "FileText" },
|
||||||
// EditableExcel: { outline: "FileText", filled: "FileText" },
|
EditableExcel: { outline: "FileText", filled: "FileText" },
|
||||||
};
|
};
|
||||||
const IconName = LucideIcons[isFocused ? icons[route.name].filled : icons[route.name].outline];
|
const IconName = LucideIcons[isFocused ? icons[route.name].filled : icons[route.name].outline];
|
||||||
const scaleAnim = useRef(new Animated.Value(1)).current;
|
const scaleAnim = useRef(new Animated.Value(1)).current;
|
||||||
@@ -148,6 +148,7 @@ export default function BottomTab() {
|
|||||||
<Tab.Screen name="Home" component={Screens.Home} />
|
<Tab.Screen name="Home" component={Screens.Home} />
|
||||||
<Tab.Screen name={NavigationString.Auction} component={Screens.Auction} />
|
<Tab.Screen name={NavigationString.Auction} component={Screens.Auction} />
|
||||||
<Tab.Screen name={NavigationString.Tender} component={Screens.Tender} />
|
<Tab.Screen name={NavigationString.Tender} component={Screens.Tender} />
|
||||||
|
<Tab.Screen name={'EditableExcel'} component={EditableExcel} />
|
||||||
|
|
||||||
</Tab.Navigator>
|
</Tab.Navigator>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -195,9 +195,9 @@ const Emd = () => {
|
|||||||
const auctionIdToFind = String(SelectedAuction.auctionId);
|
const auctionIdToFind = String(SelectedAuction.auctionId);
|
||||||
const matchedObject = res.data.find((item: any) =>
|
const matchedObject = res.data.find((item: any) =>
|
||||||
item.auctionIds
|
item.auctionIds
|
||||||
.split(',')
|
?.split(',')
|
||||||
.map((id: any) => id.trim())
|
?.map((id: any) => id.trim())
|
||||||
.includes(auctionIdToFind)
|
?.includes(auctionIdToFind)
|
||||||
);
|
);
|
||||||
setAllBoolean((prev: any) => ({ ...prev, selectTemplate: matchedObject, technicalDocModalVisible: true }))
|
setAllBoolean((prev: any) => ({ ...prev, selectTemplate: matchedObject, technicalDocModalVisible: true }))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ const EnvelopeCExcelPreview = (tenderData: any) => {
|
|||||||
Authentication: `Bearer ${token.token}`,
|
Authentication: `Bearer ${token.token}`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
console.log("excel response",response)
|
||||||
|
|
||||||
const base64 = arrayBufferToBase64(response.data);
|
const base64 = arrayBufferToBase64(response.data);
|
||||||
const workbook = XLSX.read(base64, { type: 'base64' });
|
const workbook = XLSX.read(base64, { type: 'base64' });
|
||||||
|
|||||||
@@ -17,12 +17,12 @@ const LiveTenderTile: React.FC<LiveTenderTileProps> = ({
|
|||||||
tenderDispatchDate,
|
tenderDispatchDate,
|
||||||
tenderOfWork,
|
tenderOfWork,
|
||||||
purchaseEnd,
|
purchaseEnd,
|
||||||
tenderFees,
|
tenderFees,
|
||||||
tenderNumber,
|
tenderNumber,
|
||||||
onDetailsPress
|
onDetailsPress
|
||||||
}) => {
|
}) => {
|
||||||
const navigation: any = useNavigation();
|
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'
|
const contractorIds = typeof data?.contractorId === 'string'
|
||||||
? data.contractorId.split(',').map((id:any) => id.trim())
|
? data.contractorId.split(',').map((id:any) => id.trim())
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ const ProceedToPurTender = () => {
|
|||||||
mutate(body, {
|
mutate(body, {
|
||||||
onSuccess: (res) => {
|
onSuccess: (res) => {
|
||||||
console.log(res, '---------------------purchsase response');
|
console.log(res, '---------------------purchsase response');
|
||||||
|
|
||||||
Alert.alert('Offline Purchase Successful!', `Order No: ${orderNo}`);
|
Alert.alert('Offline Purchase Successful!', `Order No: ${orderNo}`);
|
||||||
navigation.goBack()
|
navigation.goBack()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ const Screens = {
|
|||||||
Signup,
|
Signup,
|
||||||
Registration,
|
Registration,
|
||||||
Partnership,
|
Partnership,
|
||||||
LiveTenderDetail
|
LiveTenderDetail,
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
export default Screens
|
export default Screens
|
||||||
Reference in New Issue
Block a user