+
Proposal Document
Required
@@ -354,147 +356,8 @@ export function DealerProposalSubmissionModal({
- {/* Cost Breakup Section */}
-
-
-
-
Cost Breakup
- Required
-
-
-
-
- {costItems.map((item) => (
-
-
-
- handleCostItemChange(item.id, 'description', e.target.value)
- }
- />
-
-
-
- handleCostItemChange(item.id, 'amount', e.target.value)
- }
- />
-
-
-
- ))}
-
-
-
-
-
- Estimated Budget
-
-
- ₹{totalBudget.toLocaleString('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
-
-
-
-
-
- {/* Timeline for Closure Section */}
-
-
-
Timeline for Closure
- Required
-
-
-
-
-
-
- {timelineMode === 'date' ? (
-
-
- setExpectedCompletionDate(e.target.value)}
- onClick={(e) => {
- // Open calendar picker when clicking anywhere on the input
- if (e.currentTarget.showPicker) {
- e.currentTarget.showPicker();
- }
- }}
- className="h-9 lg:h-10 w-full max-w-[280px] text-left pr-10 cursor-pointer"
- />
-
- ) : (
-
-
- setNumberOfDays(e.target.value)}
- className="h-9 lg:h-10 w-full"
- />
-
- )}
-
-
-
{/* Other Supporting Documents Section */}
-
+
Other Supporting Documents
Optional
@@ -603,6 +466,150 @@ export function DealerProposalSubmissionModal({
)}
+
+
+ {/* Right Column - Planning & Budget */}
+
+ {/* Cost Breakup Section */}
+
+
+
+
Cost Breakup
+ Required
+
+
+
+
+ {costItems.map((item) => (
+
+
+
+ handleCostItemChange(item.id, 'description', e.target.value)
+ }
+ className="w-full"
+ />
+
+
+
+ handleCostItemChange(item.id, 'amount', e.target.value)
+ }
+ className="w-full"
+ />
+
+
+
+ ))}
+
+
+
+
+
+ Estimated Budget
+
+
+ ₹{totalBudget.toLocaleString('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
+
+
+
+
+
+ {/* Timeline for Closure Section */}
+
+
+
Timeline for Closure
+ Required
+
+
+
+
+
+
+ {timelineMode === 'date' ? (
+
+
+ setExpectedCompletionDate(e.target.value)}
+ onClick={(e) => {
+ // Open calendar picker when clicking anywhere on the input
+ if (e.currentTarget.showPicker) {
+ e.currentTarget.showPicker();
+ }
+ }}
+ className="h-9 lg:h-10 w-full text-left pr-10 cursor-pointer"
+ />
+
+ ) : (
+
+
+ setNumberOfDays(e.target.value)}
+ className="h-9 lg:h-10 w-full"
+ />
+
+ )}
+
+
{/* Dealer Comments Section */}
@@ -614,10 +621,13 @@ export function DealerProposalSubmissionModal({
placeholder="Provide detailed comments about this claim request, including any special considerations, execution details, or additional information..."
value={dealerComments}
onChange={(e) => setDealerComments(e.target.value)}
- className="min-h-[80px] lg:min-h-[100px] text-sm"
+ className="min-h-[80px] lg:min-h-[100px] text-sm w-full"
/>
{dealerComments.length} characters
+
+
+ {/* Full Width Sections */}
{/* Warning Message */}
{!isFormValid && (
diff --git a/src/dealer-claim/components/request-detail/modals/InitiatorProposalApprovalModal.tsx b/src/dealer-claim/components/request-detail/modals/InitiatorProposalApprovalModal.tsx
index eba027e..931d2c3 100644
--- a/src/dealer-claim/components/request-detail/modals/InitiatorProposalApprovalModal.tsx
+++ b/src/dealer-claim/components/request-detail/modals/InitiatorProposalApprovalModal.tsx
@@ -20,7 +20,7 @@ import {
CheckCircle,
XCircle,
FileText,
- DollarSign,
+ IndianRupee,
Calendar,
MessageSquare,
Download,
@@ -290,9 +290,11 @@ export function InitiatorProposalApprovalModal({
-
+
+ {/* Left Column - Documents */}
+
{/* Proposal Document Section */}
-
+
@@ -300,19 +302,21 @@ export function InitiatorProposalApprovalModal({
{proposalData?.proposalDocument ? (
-
-
-
-
-
{proposalData.proposalDocument.name}
+
+
+
+
+
+ {proposalData.proposalDocument.name}
+
{proposalData?.submittedAt && (
-
+
Submitted on {formatDate(proposalData.submittedAt)}
)}
-
+
{proposalData.proposalDocument.id && (
<>
{canPreviewDocument(proposalData.proposalDocument) && (
@@ -356,80 +360,9 @@ export function InitiatorProposalApprovalModal({
)}
- {/* Cost Breakup Section */}
-
-
-
-
- Cost Breakup
-
-
- {(() => {
- // Ensure costBreakup is an array
- const costBreakup = proposalData?.costBreakup
- ? (Array.isArray(proposalData.costBreakup)
- ? proposalData.costBreakup
- : (typeof proposalData.costBreakup === 'string'
- ? JSON.parse(proposalData.costBreakup)
- : []))
- : [];
-
- return costBreakup && Array.isArray(costBreakup) && costBreakup.length > 0 ? (
- <>
-
-
-
-
Item Description
-
Amount
-
-
-
- {costBreakup.map((item: any, index: number) => (
-
-
{item?.description || 'N/A'}
-
- ₹{(Number(item?.amount) || 0).toLocaleString('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
-
-
- ))}
-
-
-
-
-
-
- Total Estimated Budget
-
-
- ₹{totalBudget.toLocaleString('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
-
-
-
- >
- ) : (
-
No cost breakdown available
- );
- })()}
-
-
- {/* Timeline Section */}
-
-
-
-
- Expected Completion Date
-
-
-
-
- {proposalData?.expectedCompletionDate ? formatDate(proposalData.expectedCompletionDate) : 'Not specified'}
-
-
-
-
{/* Other Supporting Documents */}
{proposalData?.otherDocuments && proposalData.otherDocuments.length > 0 && (
-
+
@@ -443,14 +376,16 @@ export function InitiatorProposalApprovalModal({
{proposalData.otherDocuments.map((doc, index) => (
-
-
-
{doc.name}
+
{doc.id && (
-
+
{canPreviewDocument(doc) && (
)}
+
- {/* Dealer Comments */}
-
+ {/* Right Column - Planning & Details */}
+
+ {/* Cost Breakup Section */}
+
-
- Dealer Comments
+
+ Cost Breakup
-
-
- {proposalData?.dealerComments || 'No comments provided'}
+ {(() => {
+ // Ensure costBreakup is an array
+ const costBreakup = proposalData?.costBreakup
+ ? (Array.isArray(proposalData.costBreakup)
+ ? proposalData.costBreakup
+ : (typeof proposalData.costBreakup === 'string'
+ ? JSON.parse(proposalData.costBreakup)
+ : []))
+ : [];
+
+ return costBreakup && Array.isArray(costBreakup) && costBreakup.length > 0 ? (
+ <>
+
+
+
+
Item Description
+
Amount
+
+
+
+ {costBreakup.map((item: any, index: number) => (
+
+
{item?.description || 'N/A'}
+
+ ₹{(Number(item?.amount) || 0).toLocaleString('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
+
+
+ ))}
+
+
+
+
+
+
+ Total Estimated Budget
+
+
+ ₹{totalBudget.toLocaleString('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}
+
+
+
+ >
+ ) : (
+
No cost breakdown available
+ );
+ })()}
+
+
+ {/* Timeline Section */}
+
+
+
+
+ Expected Completion Date
+
+
+
+
+ {proposalData?.expectedCompletionDate ? formatDate(proposalData.expectedCompletionDate) : 'Not specified'}
+
- {/* Decision Section */}
-
-
Your Decision & Comments
-