From 9ce98e004eea6b876026079868bc9c757d748a65 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 24 Feb 2025 13:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/shipment/customs.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/erp/shipment/customs.go b/erp/shipment/customs.go index 8bf467f..9950472 100644 --- a/erp/shipment/customs.go +++ b/erp/shipment/customs.go @@ -133,3 +133,23 @@ func (c *customs) Customs(ctx context.Context, customsId int64) (reply bean2.Rep err = xClient.Call(ctx, "Customs", customsId, &reply) return } + +type ArgsCustomsEdit struct { + CustomsId int64 // 报关单id + ArgsCustomsData +} +type ArgsCustomsData struct { + InvoiceDate *time.Time // 发票日期 + ContractDate *time.Time // 合同日期 +} + +// Edit @TITLE 编辑 +func (c *customs) Edit(ctx context.Context, args ArgsCustomsEdit) (err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + reply := 0 + err = xClient.Call(ctx, "Edit", args, &reply) + return +}