zhangqian
2024-06-12 ee8c1c18382dce5394677b1066385d7ef276c2f1
response/report_forms_response.go
@@ -4,19 +4,24 @@
   "github.com/shopspring/decimal"
   "time"
   "wms/constvar"
   "wms/models"
)
type InventoryForms struct {
   ProduceId       string          `json:"produceId"`       //产品id
   ProductName     string          `json:"productName"`     //产品名称
   ProductType     string          `json:"productType"`     //产品类型
   Cost            decimal.Decimal `json:"cost"`            //成本
   Value           decimal.Decimal `json:"value"`           //总价值
   Amount          decimal.Decimal `json:"amount"`          //在库数量
   AvailableNumber decimal.Decimal `json:"availableNumber"` //可用库存
   In              decimal.Decimal `json:"in"`              //入库
   Out             decimal.Decimal `json:"out"`             //出库
   Unit            string          `json:"unit"`            //单位
   ProduceId                string             `json:"produceId"`                //产品id
   ProductName              string             `json:"productName"`              //产品名称
   ProductType              string             `json:"productType"`              //产品类型
   Cost                     decimal.Decimal    `json:"cost"`                     //成本
   Value                    decimal.Decimal    `json:"value"`                    //总价值
   Amount                   decimal.Decimal    `json:"amount"`                   //在库数量
   AmountMoreUnits          []models.UnitItems `json:"amountMoreUnits"`          //在库数量多单位
   AvailableNumber          decimal.Decimal    `json:"availableNumber"`          //可用库存
   AvailableNumberMoreUnits []models.UnitItems `json:"availableNumberMoreUnits"` //可用库存多单位
   In                       decimal.Decimal    `json:"in"`                       //入库
   InMoreUnits              []models.UnitItems `json:"inMoreUnits"`              //入库多单位
   Out                      decimal.Decimal    `json:"out"`                      //出库
   OutMoreUnits             []models.UnitItems `json:"outMoreUnits"`             //出库多单位
   Unit                     string             `json:"unit"`                     //单位
}
type InventoryHistory struct {