
Replaced usage of "ContactPerson" with "Contact" for consistency across the codebase. Updated related component props, state variables, API calls, and database queries to align with the new model. Also enhanced backend functionality with stricter validations and added support for handling active pgroups in contact management.
251 lines
7.8 KiB
JSON
251 lines
7.8 KiB
JSON
{
|
|
"shipments": [
|
|
{
|
|
"shipment_id": "SHP001",
|
|
"shipment_name": "BioLab_Shipment_001",
|
|
"number_of_dewars": 2,
|
|
"shipment_status": "In Transit",
|
|
"shipment_date": "2024-01-15",
|
|
"contact": [
|
|
{ "name": "Alice Johnson", "id": "alice" }
|
|
],
|
|
"dewars": [
|
|
{
|
|
"id": "SHP001-Dewar-1",
|
|
"dewar_name": "Dewar_001",
|
|
"tracking_number": "TRACK123456",
|
|
"number_of_pucks": 4,
|
|
"number_of_samples": 24,
|
|
"return_address": [
|
|
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
|
],
|
|
"contact": [
|
|
{ "name": "Alice Johnson", "id": "alice" }
|
|
],
|
|
"status": "in preparation",
|
|
"ready_date": "",
|
|
"shipping_date": "",
|
|
"arrival_date": "",
|
|
"shippingStatus": "not shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": "https://example.com/qrcode/dewar_001"
|
|
},
|
|
{
|
|
"id": "SHP001-Dewar-2",
|
|
"dewar_name": "Dewar_002",
|
|
"tracking_number": "TRACK654321",
|
|
"number_of_pucks": 3,
|
|
"number_of_samples": 18,
|
|
"return_address": [
|
|
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
|
],
|
|
"contact": [
|
|
{ "name": "Alice Johnson", "id": "alice" }
|
|
],
|
|
"status": "in preparation",
|
|
"ready_date": "",
|
|
"shipping_date": "",
|
|
"arrival_date": "",
|
|
"shippingStatus": "not shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": "https://example.com/qrcode/dewar_002"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"shipment_id": "SHP002",
|
|
"shipment_name": "BioLab_Shipment_002",
|
|
"number_of_dewars": 3,
|
|
"shipment_status": "In Transit",
|
|
"shipment_date": "2024-02-20",
|
|
"contact": [
|
|
{ "name": "Bob Smith", "id": "bob" }
|
|
],
|
|
"dewars": [
|
|
{
|
|
"id": "SHP002-Dewar-3",
|
|
"dewar_name": "Dewar_003",
|
|
"tracking_number": "TRACK987654",
|
|
"number_of_pucks": 5,
|
|
"number_of_samples": 30,
|
|
"contact": [
|
|
{ "name": "Bob Smith", "id": "bob" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
|
],
|
|
"status": "ready for shipping",
|
|
"ready_date": "2024-02-20",
|
|
"shipping_date": "",
|
|
"arrival_date": "",
|
|
"shippingStatus": "shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": ""
|
|
},
|
|
{
|
|
"id": "SHP002-Dewar-4",
|
|
"dewar_name": "Dewar_004",
|
|
"tracking_number": "TRACK876543",
|
|
"number_of_pucks": 6,
|
|
"number_of_samples": 36,
|
|
"contact": [
|
|
{ "name": "Bob Smith", "id": "bob" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
|
],
|
|
"status": "ready for shipping",
|
|
"ready_date": "2024-02-20",
|
|
"shipping_date": "2024-02-21",
|
|
"arrival_date": "",
|
|
"shippingStatus": "shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": "https://example.com/qrcode/dewar_004"
|
|
},
|
|
{
|
|
"id": "SHP002-Dewar-5",
|
|
"dewar_name": "Dewar_005",
|
|
"tracking_number": "TRACK765432",
|
|
"number_of_pucks": 4,
|
|
"number_of_samples": 24,
|
|
"contact": [
|
|
{ "name": "Bob Smith", "id": "bob" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
|
],
|
|
"status": "ready for shipping",
|
|
"ready_date": "2024-02-21",
|
|
"shipping_date": "2024-02-22",
|
|
"arrival_date": "",
|
|
"shippingStatus": "shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": "https://example.com/qrcode/dewar_005"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"shipment_id": "SHP003",
|
|
"shipment_name": "BioLab_Shipment_003",
|
|
"number_of_dewars": 5,
|
|
"shipment_status": "Pending",
|
|
"shipment_date": "2024-03-10",
|
|
"contact": [
|
|
{ "name": "Charlie Brown", "id": "charlie" }
|
|
],
|
|
"dewars": [
|
|
{
|
|
"id": "SHP003-Dewar-6",
|
|
"dewar_name": "Dewar_006",
|
|
"tracking_number": "TRACK112233",
|
|
"number_of_pucks": 7,
|
|
"number_of_samples": 42,
|
|
"contact": [
|
|
{ "name": "Charlie Brown", "id": "charlie" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "789 Maple St, Thistown, USA", "id": "address3" }
|
|
],
|
|
"status": "in preparation",
|
|
"ready_date": "",
|
|
"shipping_date": "",
|
|
"arrival_date": "",
|
|
"shippingStatus": "not shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": ""
|
|
},
|
|
{
|
|
"id": "SHP003-Dewar-7",
|
|
"dewar_name": "Dewar_007",
|
|
"tracking_number": "TRACK223344",
|
|
"number_of_pucks": 5,
|
|
"number_of_samples": 30,
|
|
"contact": [
|
|
{ "name": "Charlie Brown", "id": "charlie" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "789 Maple St, Thistown, USA", "id": "address3" }
|
|
],
|
|
"status": "ready for shipping",
|
|
"ready_date": "2024-03-12",
|
|
"shipping_date": "",
|
|
"arrival_date": "",
|
|
"shippingStatus": "not shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": "https://example.com/qrcode/dewar_007"
|
|
},
|
|
{
|
|
"id": "SHP003-Dewar-8",
|
|
"dewar_name": "Dewar_008",
|
|
"tracking_number": "TRACK334455",
|
|
"number_of_pucks": 8,
|
|
"number_of_samples": 48,
|
|
"contact": [
|
|
{ "name": "Charlie Brown", "id": "charlie" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "789 Maple St, Thistown, USA", "id": "address3" }
|
|
],
|
|
"status": "in preparation",
|
|
"ready_date": "",
|
|
"shipping_date": "",
|
|
"arrival_date": "",
|
|
"shippingStatus": "not shipped",
|
|
"arrivalStatus": "not arrived",
|
|
"returned": "",
|
|
"qrcode": ""
|
|
},
|
|
{
|
|
"id": "SHP003-Dewar-9",
|
|
"dewar_name": "Dewar_009",
|
|
"tracking_number": "TRACK445566",
|
|
"number_of_pucks": 6,
|
|
"number_of_samples": 36,
|
|
"contact": [
|
|
{ "name": "Charlie Brown", "id": "charlie" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "789 Maple St, Thistown, USA", "id": "address3" }
|
|
],
|
|
"status": "ready for shipping",
|
|
"ready_date": "2024-03-12",
|
|
"shipping_date": "2024-03-13",
|
|
"arrival_date": "2024-03-17",
|
|
"shippingStatus": "shipped",
|
|
"arrivalStatus": "arrived",
|
|
"returned": "returned",
|
|
"qrcode": "https://example.com/qrcode/dewar_009"
|
|
},
|
|
{
|
|
"id": "SHP003-Dewar-10",
|
|
"dewar_name": "Dewar_010",
|
|
"tracking_number": "TRACK556677",
|
|
"number_of_pucks": 4,
|
|
"number_of_samples": 24,
|
|
"contact": [
|
|
{ "name": "Charlie Brown", "id": "charlie" }
|
|
],
|
|
"return_address": [
|
|
{ "address": "456 Elm St, Othertown, USA", "id": "address2" }
|
|
],
|
|
"status": "ready for shipping",
|
|
"ready_date": "2024-03-12",
|
|
"shipping_date": "2024-03-13",
|
|
"arrival_date": "2024-03-17",
|
|
"shippingStatus": "shipped",
|
|
"arrivalStatus": "arrived",
|
|
"returned": "returned",
|
|
"qrcode": "https://example.com/qrcode/dewar_010"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|