fix
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "/static/css/main.46cc12be.css",
|
||||
"main.js": "/static/js/main.c98c5007.js",
|
||||
"main.js": "/static/js/main.b35b44f5.js",
|
||||
"static/js/787.c4e7f8f9.chunk.js": "/static/js/787.c4e7f8f9.chunk.js",
|
||||
"static/media/landing.png": "/static/media/landing.d4c6072db7a67dff6a78.png",
|
||||
"index.html": "/index.html",
|
||||
"main.46cc12be.css.map": "/static/css/main.46cc12be.css.map",
|
||||
"main.c98c5007.js.map": "/static/js/main.c98c5007.js.map",
|
||||
"main.b35b44f5.js.map": "/static/js/main.b35b44f5.js.map",
|
||||
"787.c4e7f8f9.chunk.js.map": "/static/js/787.c4e7f8f9.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.46cc12be.css",
|
||||
"static/js/main.c98c5007.js"
|
||||
"static/js/main.b35b44f5.js"
|
||||
]
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.10/lodash.min.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"><link rel="manifest" href="/manifest.json"/><title>Worldshine Transportation</title><script defer="defer" src="/static/js/main.c98c5007.js"></script><link href="/static/css/main.46cc12be.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.10/lodash.min.js"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"><link rel="manifest" href="/manifest.json"/><title>Worldshine Transportation</title><script defer="defer" src="/static/js/main.b35b44f5.js"></script><link href="/static/css/main.46cc12be.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -39,20 +39,20 @@ const EditVehicleInspection = () => {
|
||||
}, []);
|
||||
|
||||
const handleSave = () => {
|
||||
if (!selectedFile) {
|
||||
window.alert('Please select a file to upload.');
|
||||
return;
|
||||
}
|
||||
if (!inspectionDate) {
|
||||
window.alert('Please select an inspection date.');
|
||||
return;
|
||||
}
|
||||
const formData = new FormData();
|
||||
formData.append('file', selectedFile);
|
||||
const fileType = isYearly ? 'yearlyInspection' : 'monthlyInspection';
|
||||
VehicleService.uploadVechileFile(formData, currentVehicle.id, currentVehicle.vehicle_number, fileType, inspectionDate).then(() => {
|
||||
if (selectedFile) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', selectedFile);
|
||||
const fileType = isYearly ? 'yearlyInspection' : 'monthlyInspection';
|
||||
VehicleService.uploadVechileFile(formData, currentVehicle.id, currentVehicle.vehicle_number, fileType, inspectionDate).then(() => {
|
||||
goBack();
|
||||
});
|
||||
} else {
|
||||
goBack();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const goBack = () => {
|
||||
|
||||
@@ -296,7 +296,6 @@ const ViewVehicle = () => {
|
||||
<table className="personnel-info-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th className="th-checkbox"><input type="checkbox" checked={checkSelectAllMonthly()} onClick={() => toggleSelectedAllItemsMonthly()}></input></th>
|
||||
<th className="th-index">No.</th>
|
||||
{columnsMonthly.map((column, index) => (
|
||||
<th className="sortable-header" key={index}>
|
||||
@@ -308,7 +307,6 @@ const ViewVehicle = () => {
|
||||
<tbody>
|
||||
{filteredMonthlyDocs.map((doc, index) => (
|
||||
<tr key={doc.url}>
|
||||
<td className="td-checkbox"><input type="checkbox" checked={selectedItemsMonthly.includes(doc?.url)} onClick={() => toggleItemMonthly(doc?.url)}/></td>
|
||||
<td className="td-index">{index + 1}</td>
|
||||
<td>
|
||||
<PencilSquare size={14} className="clickable me-2" onClick={() => navigate(`/vehicles/${currentVehicle?.id}/inspections/monthly/edit?fileName=${encodeURIComponent(doc?.name)}&date=${encodeURIComponent(doc?.inspectionDate || '')}`)} />
|
||||
@@ -330,7 +328,6 @@ const ViewVehicle = () => {
|
||||
<table className="personnel-info-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th className="th-checkbox"><input type="checkbox" checked={checkSelectAllYearly()} onClick={() => toggleSelectedAllItemsYearly()}></input></th>
|
||||
<th className="th-index">No.</th>
|
||||
{columnsYearly.map((column, index) => (
|
||||
<th className="sortable-header" key={index}>
|
||||
@@ -342,7 +339,6 @@ const ViewVehicle = () => {
|
||||
<tbody>
|
||||
{filteredYearlyDocs.map((doc, index) => (
|
||||
<tr key={doc.url}>
|
||||
<td className="td-checkbox"><input type="checkbox" checked={selectedItemsYearly.includes(doc?.url)} onClick={() => toggleItemYearly(doc?.url)}/></td>
|
||||
<td className="td-index">{index + 1}</td>
|
||||
<td>
|
||||
<PencilSquare size={14} className="clickable me-2" onClick={() => navigate(`/vehicles/${currentVehicle?.id}/inspections/yearly/edit?fileName=${encodeURIComponent(doc?.name)}&date=${encodeURIComponent(doc?.inspectionDate || '')}`)} />
|
||||
@@ -364,7 +360,6 @@ const ViewVehicle = () => {
|
||||
<table className="personnel-info-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th className="th-checkbox"><input type="checkbox" checked={checkSelectAllRepair()} onClick={() => toggleSelectedAllItemsRepair()}></input></th>
|
||||
<th className="th-index">No.</th>
|
||||
{columnsRepair.map((column, index) => (
|
||||
<th className="sortable-header" key={index}>
|
||||
@@ -376,7 +371,6 @@ const ViewVehicle = () => {
|
||||
<tbody>
|
||||
{filteredRepairs?.map((repair, index) => (
|
||||
<tr key={repair.id}>
|
||||
<td className="td-checkbox"><input type="checkbox" checked={selectedItemsRepair.includes(repair?.id)} onClick={() => toggleItemRepair(repair?.id)}/></td>
|
||||
<td className="td-index">{index + 1}</td>
|
||||
<td>
|
||||
<PencilSquare size={14} className="clickable me-2" onClick={() => navigate(`/vehicles/${currentVehicle?.id}/repairs/edit/${repair?.id}`)} />
|
||||
|
||||
Reference in New Issue
Block a user