diff --git a/ipi-survey-platform/src/components/dashboard/SurveyStatus.jsx b/ipi-survey-platform/src/components/dashboard/SurveyStatus.jsx index c1622ff..d8bb5e3 100644 --- a/ipi-survey-platform/src/components/dashboard/SurveyStatus.jsx +++ b/ipi-survey-platform/src/components/dashboard/SurveyStatus.jsx @@ -119,7 +119,7 @@ export const SurveyStatus = () => { return { title: `${quarter} ${year} Survey`, - subtitle: 'Complete your quarterly Industrial Production Index (IPI) data submission', + subtitle: 'Complete your quarterly Index of Industrial Production (IIP) data submission', dueDate: formatDate(end_date), relativeDue: formatRelativeDays(end_date), estTime: '15–20 minutes', diff --git a/ipi-survey-platform/src/components/survey/EstablishmentInfo/EstablishmentInfo.jsx b/ipi-survey-platform/src/components/survey/EstablishmentInfo/EstablishmentInfo.jsx index 1fe541b..ffc3e39 100644 --- a/ipi-survey-platform/src/components/survey/EstablishmentInfo/EstablishmentInfo.jsx +++ b/ipi-survey-platform/src/components/survey/EstablishmentInfo/EstablishmentInfo.jsx @@ -1,4 +1,8 @@ -import React from 'react'; +import React, { useEffect, useState, useMemo } from 'react'; +import { useNavigate, useLocation } from 'react-router-dom'; +import { getEstablishmentProducts } from '../../../services/submissions/submissionService'; +import Table from '@/components/common/Table'; + const caretDownSrc = '/assets/images/CaretDown.svg'; const backVectorSrc = '/assets/images/BackVector.svg'; const mailIconSrc = '/assets/images/material-symbols_mail-outline.svg'; @@ -6,7 +10,6 @@ const phoneIconSrc = '/assets/images/line-md_phone.svg'; const calendarIcon = '/assets/images/Duedate.svg'; const clockIcon = '/assets/images/mingcute_time-line.svg'; const nextIcon = '/assets/images/mdi_page-next-outline.svg'; -import { useNavigate, useLocation } from 'react-router-dom'; const Field = ({ label, placeholder = '', type = 'text', value = '', onChange = () => {}, disabled = true }) => (
- You're completing the IPI Quarterly Survey for {surveyData.quarter} {surveyData.year}. This step shows establishment details already registered with us. Step 1 is read-only. To make corrections, update them in Profile → Edit Profile, then return to this survey. + You're completing the IIP Quarterly Survey for {surveyData.quarter} {surveyData.year}. This step shows establishment details already registered with us. Step 1 is read-only. To make corrections, update them in Profile → Edit Profile, then return to this survey.
- Need to update details? Go to{' '} - Profile → Edit Profile. Changes saved there will appear{' '} - - here - . -
*/} - {/*- Need to update details? Go to Profile →{' '} - - Edit Profile - - . Changes saved there will appear here. -
*/} -- Need to update details? Go to Profile →{' '} - - Edit Profile - - - . Changes saved there will appear here. -
-| + Product Name + | ++ HS Code + | ++ Unit + | ++ UOM + | +
|---|---|---|---|
| + {product['product.product_name'] || 'N/A'} + | ++ {product['product.hs_code'] || 'N/A'} + | ++ {product['product.unit.uom_short_name'] || 'N/A'} + | ++ {product['product.unit.uom'] || 'N/A'} + | +
+ Need to update details? Go to{' '} + Profile → Edit Profile. Changes saved there will appear{' '} + + here + . +
*/} + {/*+ Need to update details? Go to Profile →{' '} + + Edit Profile + + . Changes saved there will appear here. +
*/} ++ Need to update details? Go to Profile →{' '} + + Edit Profile + + + . Changes saved there will appear here. +
+