https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend
This commit is contained in:
@ -121,7 +121,6 @@ async def generate_dewar_qrcode(dewar_id: int, db: Session = Depends(get_db)):
|
|||||||
|
|
||||||
return {"message": "QR Code generated", "qrcode": dewar.unique_id}
|
return {"message": "QR Code generated", "qrcode": dewar.unique_id}
|
||||||
|
|
||||||
|
|
||||||
def generate_label(dewar):
|
def generate_label(dewar):
|
||||||
buffer = BytesIO()
|
buffer = BytesIO()
|
||||||
# Set page orientation to landscape
|
# Set page orientation to landscape
|
||||||
|
@ -390,11 +390,12 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
|
|||||||
setChangesMade(true);
|
setChangesMade(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleGenerateQRCode = () => {
|
const handleGenerateQRCode = async () => {
|
||||||
if (!dewar) return;
|
if (!dewar) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const newQrCodeValue = dewar.unique_id; // Using unique_id directly for QR code value
|
const response = await DewarsService.generateDewarQrcodeDewarsDewarIdGenerateQrcodePost(dewar.id);
|
||||||
|
const newQrCodeValue = response.unique_id;
|
||||||
setQrCodeValue(newQrCodeValue);
|
setQrCodeValue(newQrCodeValue);
|
||||||
setIsQRCodeGenerated(true);
|
setIsQRCodeGenerated(true);
|
||||||
setFeedbackMessage("QR Code generated successfully");
|
setFeedbackMessage("QR Code generated successfully");
|
||||||
@ -406,6 +407,7 @@ const DewarDetails: React.FC<DewarDetailsProps> = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const handleDownloadLabel = async () => {
|
const handleDownloadLabel = async () => {
|
||||||
if (!dewar) return;
|
if (!dewar) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user