|
|
@ -33,7 +33,7 @@ type ProductFamilyInventoryQuery_ProductFamilyStatistics struct { |
|
|
|
type ProductFamilyInventoryQuery_PackOrderSummary struct { |
|
|
|
InventoryQuantity float64 `json:"ProductFamilyInventoryQuery_InventoryQuantity"` // 库存数量
|
|
|
|
PackOrderId string `json:"ProductFamilyInventoryQuery_PackOrderId"` // 包装单号
|
|
|
|
PackStatus string `json:"ProductFamilyInventoryQuery_PackStatus"` // 包装状态
|
|
|
|
PackStatus int `json:"ProductFamilyInventoryQuery_PackStatus"` // 包装状态
|
|
|
|
PackTime *grmi.DateTime `json:"ProductFamilyInventoryQuery_PackTime"` // 包装时间
|
|
|
|
ShipOrderId string `json:"ProductFamilyInventoryQuery_ShipOrderId"` // 发运单号
|
|
|
|
ShipTime *grmi.DateTime `json:"ProductFamilyInventoryQuery_ShipTime"` // 发运时间
|
|
|
@ -58,18 +58,18 @@ type wrapper_PackOrder struct { |
|
|
|
ProductFamilyKey string `xorm:"-"` |
|
|
|
} |
|
|
|
|
|
|
|
func (packOrder *wrapper_PackOrder) PackStatus() string { |
|
|
|
func (packOrder *wrapper_PackOrder) PackStatus() int { |
|
|
|
|
|
|
|
if packOrder.PackOrderStatus.Status == 80 { |
|
|
|
if packOrder.PackOrderStatus.ShipStatus < 80 { |
|
|
|
return "在库" |
|
|
|
return 1 |
|
|
|
} else if packOrder.PackOrderStatus.ShipStatus == 80 { |
|
|
|
return "发运" |
|
|
|
return 2 |
|
|
|
} else { |
|
|
|
return "已发运" |
|
|
|
return 3 |
|
|
|
} |
|
|
|
} |
|
|
|
return "" |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
func (packOrder *wrapper_PackOrder) PackTime() *grmi.DateTime { |
|
|
|