liujiandao
2023-10-23 b9a62531fb93aba42d13e62fd1b03d8dba112fa6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package response
 
import (
    "github.com/shopspring/decimal"
)
 
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"`            //单位
}
 
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"`        //状态
}
 
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"`           //总价值
}