This commit is contained in:
2024-09-20 14:51:43 +08:00
parent aafd4150c3
commit 57d59b3fbe
9 changed files with 274 additions and 34 deletions

View File

@@ -16,6 +16,7 @@ type SaleProductItem struct {
Sort int64 `json:"sort"`
Po string `json:"po"`
Serial string `json:"serial"`
ImgFilePaths []string `json:"imgFilePaths"`
CustomSerial string `json:"customSerial"`
PackageDescription string `json:"packageDescription"`
PackageEngDescription string `json:"packageEngDescription"`
@@ -86,7 +87,6 @@ type ArgsSaleProductAdd struct {
}
type SaleProductAdd struct {
SaleProductId int64 // 销售商品id
Sort int64 // 排序
CustomSerial string // 客户货号
PackageEngDescription string // 包装英文描述
Name string // 中文品名
@@ -109,6 +109,10 @@ type SaleProductAdd struct {
GrossWeight *decimal.Decimal // 毛重
NetGrossVolume int64 // 净毛体计算类型 1=内盒 2=外箱
CustomsBrand string // 品牌
DomesticSupply string // 货源地
FactoryName string // 工厂名称
HsSerial int64 // 是否商检 1=商检 2=未商检
Texture string // 材质
EpmNo string // EPM NO
TaxExemption string // 免征税
ItemNumber string // 项号
@@ -133,26 +137,49 @@ func (s *saleProduct) Add(ctx context.Context, args ArgsSaleProductAdd) (err err
}
type ArgsSaleProductEdit struct {
ShipmentSaleProductId int64
Product SaleProductEdit
ShipmentId int64 // 订舱单id
Products []SaleProductEdit
}
type SaleProductEdit struct {
SaleProductId int64 // 销售商品id
ShipmentCount int64 // 出运数量
NetGrossVolume int64 // 净毛体计算类型 1=内盒 2=外箱
EpmNo string // EPM NO
TaxExemption string // 免征税
ItemNumber string // 项号
Remark1 string // 备注1
Remark2 string // 备注2
Remark3 string // 备注3
Remark4 string // 备注4
Remark5 string // 备注5
Remark6 string // 备注6
ContainerNumber string // 箱号
SealNumber string // 封号
Sort int64 // 排序
BlEngName string // 提单英文名
ShipmentSaleProductId int64 // 出舱单商品id
Sort int64 // 排序
CustomSerial string // 客户货号
PackageEngDescription string // 包装英文描述
Name string // 中文品名
EngName string // 英文品名
CustomsSerial string // 海关编码
CustomsName string // 中文报关名称
CustomsMeasureUnit string // 报关单位
CustomsInvoiceUnit string // 开票单位
CustomsDetail string // 申报要素
BlEngName string // 提单英文名
InnerNum *int64 // 内盒入数
BoxNumUnit string // 箱数单位
OuterNum *int64 // 装箱单数
ShipmentCount int64 // 出运数量
ShipmentCountUnit string // 数量单位
Length *decimal.Decimal // 长
Width *decimal.Decimal // 宽
Height *decimal.Decimal // 高
NetWeight *decimal.Decimal // 净重
GrossWeight *decimal.Decimal // 毛重
NetGrossVolume int64 // 净毛体计算类型 1=内盒 2=外箱
CustomsBrand string // 品牌
DomesticSupply string // 货源地
FactoryName string // 工厂名称
HsSerial int64 // 是否商检 1=商检 2=未商检
Texture string // 材质
EpmNo string // EPM NO
TaxExemption string // 免征税
ItemNumber string // 项号
Remark1 string // 备注1
Remark2 string // 备注2
Remark3 string // 备注3
Remark4 string // 备注4
Remark5 string // 备注5
Remark6 string // 备注6
ContainerNumber string // 箱号
SealNumber string // 封号
}
// Edit @TITLE 编辑