From 4d3abcd13f7c86edfdb04bc90cfcd3def94d6553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E7=8F=91?= Date: Sat, 9 Aug 2025 19:08:22 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=BF=90=E5=8D=95=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Logistics/List/index.tsx | 38 ++++++++++++++++++++---------- src/servers/api/logistics.ts | 14 +++++++++++ 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/src/pages/Logistics/List/index.tsx b/src/pages/Logistics/List/index.tsx index de05cd2..a3ba5da 100644 --- a/src/pages/Logistics/List/index.tsx +++ b/src/pages/Logistics/List/index.tsx @@ -1,4 +1,6 @@ -import { logisticscontrollerGetlist, logisticscontrollerGetShipmentLabel } from '@/servers/api/logistics'; +import { logisticscontrollerGetlist, logisticscontrollerGetShipmentLabel, + logisticscontrollerDeleteShipment + } from '@/servers/api/logistics'; import { stockcontrollerGetallstockpoints } from '@/servers/api/stock'; import { formatShipmentState } from '@/utils/format'; import { printPDF } from '@/utils/util'; @@ -9,7 +11,7 @@ import { ProColumns, ProTable, } from '@ant-design/pro-components'; -import { App, Button } from 'antd'; +import { App, Button, Divider } from 'antd'; import { useRef, useState } from 'react'; const ListPage: React.FC = () => { @@ -77,16 +79,28 @@ const ListPage: React.FC = () => { hideInSearch: true, render(_, record) { return ( - + <> + + + + ); }, }, diff --git a/src/servers/api/logistics.ts b/src/servers/api/logistics.ts index a84f55e..b31782d 100644 --- a/src/servers/api/logistics.ts +++ b/src/servers/api/logistics.ts @@ -48,6 +48,20 @@ export async function logisticscontrollerGetShipmentLabel( } }); } +/** 此处后端没有提供注释 DEL /logistics/deleteShipment/${param0} */ +export async function logisticscontrollerDeleteShipment( + shipmentId: number +) { + return request(`/logistics/deleteShipment/${shipmentId}`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + } + }); +} + + + /** 此处后端没有提供注释 POST /logistics/createShippingAddress */ export async function logisticscontrollerCreateshippingaddress(