This commit is contained in:
2024-10-11 11:12:44 +08:00
parent 8219a1dd58
commit 8343d54dba
8 changed files with 132 additions and 56 deletions

View File

@@ -3,6 +3,7 @@ package shipment
import (
"context"
"git.kumo.work/shama/service/client"
bean2 "git.kumo.work/shama/service/erp/bean"
"git.kumo.work/shama/service/lib/bean"
"time"
)
@@ -81,10 +82,21 @@ func (c *customs) Products(ctx context.Context, customsId int64) (reply []SalePr
return
}
// Gifts @TITLE 获取赠品
func (c *customs) Gifts(ctx context.Context, customsId int64) (reply []GiftItem, err error) {
xClient, err := client.GetClient(c)
if err != nil {
return
}
err = xClient.Call(ctx, "Gifts", customsId, &reply)
return
}
type ArgsCustomsGen struct {
ShipmentId int64 // 订舱id
CustomsNo string // 报关单号
ShipmentSaleProductIds []int64 // 订舱产品id
ShipmentGiftIds []int64 // 订舱赠品id
StaffId int64 // 操作员工
}
@@ -109,3 +121,13 @@ func (c *customs) Cancel(ctx context.Context, customsId int64) (err error) {
err = xClient.Call(ctx, "Cancel", customsId, &reply)
return
}
// Customs @TITLE 报关信息
func (c *customs) Customs(ctx context.Context, customsId int64) (reply bean2.ReplyCustoms, err error) {
xClient, err := client.GetClient(c)
if err != nil {
return
}
err = xClient.Call(ctx, "Customs", customsId, &reply)
return
}