| | |
| | | |
| | | import ( |
| | | "github.com/shopspring/decimal" |
| | | "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 { |
| | | Number string `json:"number"` //单号 |
| | | Date string `json:"date"` //日期 |
| | | ProductName string `json:"productName"` //产品名称 |
| | | FromLocation string `json:"fromLocation"` //源位置 |
| | | ToLocation string `json:"toLocation"` //目标位置 |
| | | Amount decimal.Decimal `json:"amount"` //数量 |
| | | Unit string `json:"unit"` //单位 |
| | | ContactedName string `json:"contactedName"` //完成者 |
| | | Status string `json:"status"` //状态 |
| | | Number string `json:"number"` //单号 |
| | | Date string `json:"date"` //日期 |
| | | ProductName string `json:"productName"` //产品名称 |
| | | FromLocation string `json:"fromLocation"` //源位置 |
| | | ToLocation string `json:"toLocation"` //目标位置 |
| | | Amount decimal.Decimal `json:"amount"` //数量 |
| | | AmountMoreUnits []models.UnitItems `json:"amountMoreUnits" gorm:"-"` //数量多单位 |
| | | Unit string `json:"unit"` //单位 |
| | | ContactedName string `json:"contactedName"` //完成者 |
| | | Status string `json:"status"` //状态 |
| | | BaseOperationType constvar.BaseOperationType `json:"baseOperationType"` //基础作业类型 |
| | | Weight decimal.Decimal `json:"weight"` //重量 |
| | | ProductId string `json:"productId"` |
| | | FromLocationId int `json:"fromLocationId"` |
| | | ToLocationId int `json:"toLocationId"` |
| | | OperationId int `json:"operationId"` |
| | | OperationTypeName string `json:"operationTypeName"` //作业类型名称 |
| | | } |
| | | |
| | | type LocationForms struct { |
| | | ProduceId string `json:"produceId"` //产品id |
| | | LocationName string `json:"locationName"` //位置名称 |
| | | ProductName string `json:"productName"` //产品名称 |
| | | ProductTypeName string `json:"productTypeName"` //产品类别 |
| | | Amount decimal.Decimal `json:"amount"` //数量 |
| | | Unit string `json:"unit"` //单位 |
| | | Value decimal.Decimal `json:"value"` //总价值 |
| | | ProduceId string `json:"produceId"` //产品id |
| | | LocationId int `json:"locationId"` //位置id |
| | | LocationName string `json:"locationName"` //位置名称 |
| | | ProductName string `json:"productName"` //产品名称 |
| | | ProductTypeName string `json:"productTypeName"` //产品类别 |
| | | Amount decimal.Decimal `json:"amount"` //数量 |
| | | AmountMoreUnits []models.UnitItems `json:"amountMoreUnits"` //在库数量多单位 |
| | | Unit string `json:"unit"` //单位 |
| | | Value decimal.Decimal `json:"value"` //总价值 |
| | | } |