diff --git a/src/components/assistant/DoormileAI/AIMessage.jsx b/src/components/assistant/DoormileAI/AIMessage.jsx index a619585..5559eb3 100644 --- a/src/components/assistant/DoormileAI/AIMessage.jsx +++ b/src/components/assistant/DoormileAI/AIMessage.jsx @@ -6,6 +6,7 @@ import { LuChevronDown } from 'react-icons/lu'; import { HStack } from '@astryxdesign/core/HStack'; import { VStack } from '@astryxdesign/core/VStack'; import { Text } from '@astryxdesign/core/Text'; +import { IconButton } from '@astryxdesign/core/IconButton'; import { Button } from '@/components/ui/button'; import { ChatToolCalls } from '@astryxdesign/core/Chat'; diff --git a/src/pages/doormile/orders/MultipleOrders.jsx b/src/pages/doormile/orders/MultipleOrders.jsx index 9595789..ac16cf9 100644 --- a/src/pages/doormile/orders/MultipleOrders.jsx +++ b/src/pages/doormile/orders/MultipleOrders.jsx @@ -852,27 +852,27 @@ export default function MultipleOrders() { ) : previewMode === 'preview' ? ( /* Raw spreadsheet preview table */ - + - - - - - - + + + + + + - + {users.map((row, idx) => ( - - - - + + + - - + + ))} @@ -880,29 +880,29 @@ export default function MultipleOrders() { ) : ( /* Interactive Drop List table */
#CustomerPhoneAddressCityQty#CustomerPhoneAddressCityQty
{idx + 1}{row.firstname || '—'}{row.contactno || '—'} + {idx + 1}{row.firstname || '—'}{row.contactno || '—'} {row.address || '—'} {row.city || '—'}{row.quantity || 1}{row.city || '—'}{row.quantity || 1}
- + - - - - - - - - + + + + + + + + - + {dropCust.map((row, idx) => { const needsAddress = row.latitude == null || row.longitude == null || !row.address; return ( - - + - - - - - -
#CustomerAddressQtyCash (₹)KmCharge#CustomerAddressQtyCash (₹)KmCharge
{idx + 1} -
{row.firstname || '—'}
-
{row.contactno || '—'}
+
{idx + 1} +
{row.firstname || '—'}
+
{row.contactno || '—'}
+ {needsAddress ? ( handleUpdateDropField(row._rowkey, 'address', val)} onPlaceSelected={(place) => handleRowPlaceSelected(row._rowkey, place)} - inputClassName="!h-7 text-xs border-amber-300 bg-amber-50/30" + inputClassName="!h-8 text-xs border-amber-300 bg-amber-50/40 text-slate-900 font-medium" /> ) : ( -
+
{row.address}
)}
+ handleUpdateDropField(row._rowkey, 'quantity', Number(e.target.value) || 1) } - className="w-12 h-7 text-center font-mono text-xs border border-slate-200 rounded focus:outline-none focus:border-black" + className="w-14 h-8 text-center font-bold text-slate-900 bg-white border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-black/10 focus:border-black shadow-2xs" /> + handleUpdateDropField(row._rowkey, 'collectionamt', Number(e.target.value) || 0) } - className="w-20 h-7 text-center font-mono text-xs border border-slate-200 rounded focus:outline-none focus:border-black" + className="w-20 h-8 text-center font-bold text-slate-900 bg-white border border-slate-300 rounded-md focus:outline-none focus:ring-2 focus:ring-black/10 focus:border-black shadow-2xs" /> - {row.distance ? `${row.distance}` : '—'} + + {row.distance ? `${row.distance} km` : '—'} + ₹{Number(row.totalcharge || 0).toFixed(2)} +