feat(shipment): 添加报关价格和总价字段

- 在 saleProduct 结构中添加 CustomsPrice 和 CustomsAmount 字段
- 在 modify 和 shipment 文件中都进行了相应的更新- 新增字段用于记录报关单价和报关总价信息
This commit is contained in:
守护自己的云 2025-05-13 11:25:13 +08:00
parent c1e19a6a25
commit 81f9d4d416
2 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,8 @@ type SaleProductItem struct {
TotalCustomsGrossWeight decimal.Decimal `json:"totalCustomsGrossWeight"`
SalePrice decimal.Decimal `json:"salePrice"`
SaleAmount decimal.Decimal `json:"saleAmount"`
CustomsPrice decimal.Decimal `json:"customsPrice"`
CustomsAmount decimal.Decimal `json:"customsAmount"`
FactoryName string `json:"factoryName"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
Brand string `json:"brand"`
@ -202,6 +204,8 @@ type SaleProductEdit struct {
CustomsGrossWeight decimal.Decimal // 报关毛重
TotalCustomsGrossWeight decimal.Decimal // 报关总毛重
SalePrice decimal.Decimal // 销售单价
CustomsPrice decimal.Decimal // 报关单价
CustomsAmount decimal.Decimal // 报关总价
CustomsBrand string // 品牌
DomesticSupply string // 货源地
FactoryName string // 工厂名称

View File

@ -57,6 +57,8 @@ type SaleProductItem struct {
TotalCustomsGrossWeight decimal.Decimal `json:"totalCustomsGrossWeight"`
SalePrice decimal.Decimal `json:"salePrice"`
SaleAmount decimal.Decimal `json:"saleAmount"`
CustomsPrice decimal.Decimal `json:"customsPrice"`
CustomsAmount decimal.Decimal `json:"customsAmount"`
FactoryName string `json:"factoryName"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
Brand string `json:"brand"`
@ -207,6 +209,8 @@ type SaleProductEdit struct {
TotalCustomsGrossWeight decimal.Decimal // 报关总毛重
SalePrice decimal.Decimal // 销售单价
CustomsBrand string // 品牌
CustomsPrice decimal.Decimal // 报关价格
CustomsAmount decimal.Decimal // 报关总价
DomesticSupply string // 货源地
FactoryName string // 工厂名称
HsSerial int64 // 是否商检 1=商检 2=未商检