From be1ba847f5a1ac8827092491ec664a7beabd6ab9 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 15 Jan 2026 11:39:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(shipment):=20=E6=B7=BB=E5=8A=A0=E8=AE=A2?= =?UTF-8?q?=E8=88=B1=E5=8D=95=E8=B4=B9=E7=94=A8=E7=BC=96=E8=BE=91=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 ArgsShipmentEditCost 结构体定义费用字段 - 实现 EditCost 方法用于编辑国内运费、国外运费和佣金 - 集成客户端调用逻辑处理费用更新请求 --- erp/shipment.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/erp/shipment.go b/erp/shipment.go index 2666abc..b6cf0d6 100644 --- a/erp/shipment.go +++ b/erp/shipment.go @@ -233,6 +233,24 @@ func (s *shipment) Edit(ctx context.Context, args ArgsShipmentEdit) (err error) return } +type ArgsShipmentEditCost struct { + ShipmentId int64 // 订舱单id + DomesticShippingCost decimal.Decimal // 国内运费 + ForeignShippingCost decimal.Decimal // 国外运费 + ForeignCommission decimal.Decimal // 国外佣金 +} + +// EditCost @TITLE 编辑费用 +func (s *shipment) EditCost(ctx context.Context, args ArgsShipmentEditCost) (err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "EditCost", args, &reply) + return +} + // Customs @TITLE 报关信息 func (s *shipment) Customs(ctx context.Context, shipmentId int64) (reply bean2.ReplyCustoms, err error) { xClient, err := client.GetClient(s)