From d1957b922877f0d9571c04f9173444d0861d17c6 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 7 Mar 2025 13:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A2=E8=88=B1=E5=8D=95?= =?UTF-8?q?=E5=85=8B=E9=9A=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/shipment.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/erp/shipment.go b/erp/shipment.go index 3f2a59d..bdcb56d 100644 --- a/erp/shipment.go +++ b/erp/shipment.go @@ -242,3 +242,19 @@ func (s *shipment) Cancel(ctx context.Context, shipmentId int64) (err error) { err = xClient.Call(ctx, "Cancel", shipmentId, &reply) return } + +type ArgsShipmentClone struct { + StaffId int64 // 员工id + ShipmentId int64 // shipmentId + InvoiceSerial string // 出运发票号 +} + +// Clone @TITLE 克隆 +func (s *shipment) Clone(ctx context.Context, args ArgsShipmentClone) (reply int64, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + err = xClient.Call(ctx, "Clone", args, &reply) + return +}