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>
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@ export default function OrderListPage() {
|
||||
const items = (o.items as Array<Record<string, unknown>>) || [];
|
||||
const item = items[0];
|
||||
const isReship = isReshipOrder(o);
|
||||
const isProxy = String(o.orderType) === 'PROXY' || o.isProxyOrder === true;
|
||||
const isPendingPay = String(o.status) === 'PENDING_PAY';
|
||||
return (
|
||||
<div key={String(o.id)} className="card">
|
||||
@@ -63,9 +64,19 @@ export default function OrderListPage() {
|
||||
补发单
|
||||
</span>
|
||||
)}
|
||||
{isProxy && (
|
||||
<span className="tag-reship" style={{ marginLeft: 8 }}>
|
||||
代下单
|
||||
</span>
|
||||
)}
|
||||
</span>
|
||||
<span className="status-tag">{orderStatusLabel(o)}</span>
|
||||
</div>
|
||||
{isProxy && o.proxyPartnerName ? (
|
||||
<div className="label-md text-muted" style={{ marginBottom: 8 }}>
|
||||
由合伙人 {String(o.proxyPartnerName)} 代下
|
||||
</div>
|
||||
) : null}
|
||||
{item && (
|
||||
<div className="card-row">
|
||||
<AppImage
|
||||
|
||||
Reference in New Issue
Block a user