From bb367dcd1619afc9b496d9dcd7c2401364601187 Mon Sep 17 00:00:00 2001 From: sian <2958422596@qq.com> Date: Mon, 12 Jun 2023 11:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/data/order.go | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/supply/data/order.go b/supply/data/order.go index 330aba4..d93a284 100644 --- a/supply/data/order.go +++ b/supply/data/order.go @@ -98,3 +98,54 @@ func (o *order) CancelOrderLists(ctx context.Context, args ArgsCancelOrderLists) err = xClient.Call(ctx, "CancelOrderLists", args, &result) return } + +type ArgsStockOutOrderList struct { + StartStockOutAt string + EndStockOutAt string + Page bean.Page +} + +type ReplyStockOutOrderList struct { + Lists []StockOutOrderItem `json:"lists"` + Total int64 `json:"total"` +} + +type StockOutOrderItem struct { + SourceName string `json:"sourceName"` // 供应渠道 + SourceSonName string `json:"sourceSonName"` // 供应商 + CustomerName string `json:"customerName"` // 客户名 + OrderSn string `json:"orderSn"` // 原始订单号 + OrderSubSn string `json:"orderSubSn"` // 订单号 + SupplierOrderSn string `json:"supplierOrderSn"` // 供应商订单号 + OrderStatus uint `json:"orderStatus"` // 订单状态 + LadingBillAt int64 `json:"ladingBillAt"` // 支付时间 + StockOutAt int64 `json:"stockOutAt"` // 发货时间 + FinishAt int64 `json:"finishAt"` // 确认收货时间 + SkuName string `json:"skuName"` // 商品名称 + SkuUpcCode string `json:"skuUpcCode"` // 商品条码 + Specification string `json:"specification"` // 规格 + Quality uint `json:"quality"` // 数量 + ProduceSupplyPrice decimal.Decimal `json:"produceSupplyPrice"` // 采购单价 + ProduceTotalPrice decimal.Decimal `json:"produceTotalPrice"` // 采购总金额 + ProduceFreightFee decimal.Decimal `json:"ProduceFreightFee"` // 采购应付运费 + ProducePrice decimal.Decimal `json:"producePrice"` // 采购合计金额 + SaleSupplyPrice decimal.Decimal `json:"saleSupplyPrice"` // 销售单价 + SaleTotalPrice decimal.Decimal `json:"saleTotalPrice"` // 销售总金额 + SaleFreightFee decimal.Decimal `json:"saleFreightFee"` // 销售应收运费 + SalePrice decimal.Decimal `json:"salePrice"` // 销售合计金额 + Unit string `json:"unit"` // 单位 + Tax string `json:"tax"` // 税率 + ReceiverName string `json:"receiverName"` // 收件人 + ReceiverPhone string `json:"receiverPhone"` // 收件人手机号 + ReceiverAddress string `json:"receiverAddress"` // 收件人地址 +} + +// StockOutOrderList @Title 发货订单统计 +func (o *order) StockOutOrderList(ctx context.Context, args ArgsStockOutOrderList) (result ReplyStockOutOrderList, err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + err = xClient.Call(ctx, "StockOutOrderList", args, &result) + return +}