feat(partner): complete proxy order with dual SMS and pickup
CI / verify (pull_request) Has been cancelled
CI / verify (pull_request) Has been cancelled
Add partner/customer SMS confirm, address auto-receive or on-site pickup, proxy placer fields, PARTNER_PROXY user source, and C-end badge. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -37,6 +37,8 @@ type Order = {
|
||||
id: string;
|
||||
orderNo: string;
|
||||
orderType?: string;
|
||||
isProxyOrder?: boolean;
|
||||
proxyPartnerName?: string | null;
|
||||
status: string;
|
||||
originOrderId?: string | null;
|
||||
remark?: string | null;
|
||||
@@ -138,6 +140,7 @@ export default function OrderDetailPage() {
|
||||
const [trackNodes, setTrackNodes] = useState<TrackNode[]>([]);
|
||||
|
||||
const isReship = order?.orderType === 'RESHIPMENT';
|
||||
const isProxy = order?.orderType === 'PROXY' || order?.isProxyOrder === true;
|
||||
|
||||
async function loadTrack() {
|
||||
if (!id) return;
|
||||
@@ -240,6 +243,11 @@ export default function OrderDetailPage() {
|
||||
<h2>{banner.title}</h2>
|
||||
</div>
|
||||
<p>{banner.subtitle}</p>
|
||||
{isProxy && order?.proxyPartnerName ? (
|
||||
<p className="label-md text-muted" style={{ marginTop: 8 }}>
|
||||
代下单 · 由合伙人 {order.proxyPartnerName} 代下
|
||||
</p>
|
||||
) : null}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user