From 46202d602e05ac6e5e7f363c3174203bdccec3f2 Mon Sep 17 00:00:00 2001 From: cll <931958862@qq.com> Date: Mon, 1 Sep 2025 14:41:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Logistics/List/index.tsx | 2 +- src/pages/Order/List/index.tsx | 2 +- src/servers/api/logistics.ts | 2 +- src/servers/api/typings.d.ts | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pages/Logistics/List/index.tsx b/src/pages/Logistics/List/index.tsx index c6bee4e..f67812c 100644 --- a/src/pages/Logistics/List/index.tsx +++ b/src/pages/Logistics/List/index.tsx @@ -120,7 +120,7 @@ const ListPage: React.FC = () => { disabled={isLoading} onClick={async () => { setIsLoading(true); - const res = await logisticscontrollerUpdateshipmentstate(record.id); + const res = await logisticscontrollerUpdateshipmentstate({shipmentId:record.id}); console.log('res', res); setIsLoading(false); diff --git a/src/pages/Order/List/index.tsx b/src/pages/Order/List/index.tsx index 32266af..581d64b 100644 --- a/src/pages/Order/List/index.tsx +++ b/src/pages/Order/List/index.tsx @@ -1907,7 +1907,7 @@ const SalesChange: React.FC<{ }} onFinish={async (formData: any) => { const { sales } = formData; - const res = await ordercontrollerUpdateorderitems(id, sales); + const res = await ordercontrollerUpdateorderitems({orderId:id}, sales); if (!res.success) { message.error(`更新货物信息失败: ${res.message}`); return false; diff --git a/src/servers/api/logistics.ts b/src/servers/api/logistics.ts index 471d338..666d5e6 100644 --- a/src/servers/api/logistics.ts +++ b/src/servers/api/logistics.ts @@ -250,7 +250,7 @@ export async function logisticscontrollerUpdateshipmentstate( params: API.logisticscontrollerUpdateshipmentstateParams, options?: { [key: string]: any }, ) { - const { id: param0, ...queryParams } = params; + const { shipmentId: param0, ...queryParams } = params; return request(`/logistics/updateState/${param0}`, { method: 'POST', params: { ...queryParams }, diff --git a/src/servers/api/typings.d.ts b/src/servers/api/typings.d.ts index 1c044ea..e5987fd 100644 --- a/src/servers/api/typings.d.ts +++ b/src/servers/api/typings.d.ts @@ -196,6 +196,10 @@ declare namespace API { shipmentId: number; }; + type logisticscontrollerUpdateshipmentstateParams = { + shipmentId: number; + }; + type logisticscontrollerUpdateshippingaddressParams = { id: number; };