liujiandao
2024-03-12 94d30c9562b42d7cd38cbf3469400b752f219939
model/purchase/response/purchase.go
@@ -13,7 +13,7 @@
type PurchaseProducts struct {
   PurchaseId       int             `json:"purchaseId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:采购类型id"` // 采购id
   ProductId        int             `json:"productId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:供应商id"`     // 产品id
   ProductId        int             `json:"productId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:产品id"`      // 产品id
   Amount           decimal.Decimal `json:"amount" form:"amount" gorm:"type:decimal(12,2);not null;default 0;comment:采购数量"`       // 采购数量
   Price            decimal.Decimal `json:"price" form:"price" gorm:"type:decimal(12,2);not null;default 0.00;comment:采购单价"`      // 采购单价
   Total            decimal.Decimal `json:"total" form:"total" gorm:"type:decimal(12,2);not null;default 0.00;comment:采购总价"`      // 采购总价
@@ -51,19 +51,19 @@
}
type OperationInfo struct {
   ProductId      string          `json:"productId"`
   ProductName    string          `json:"productName"`
   Specifications string          `json:"specifications"` //规格
   ModelNumber    string          `json:"modelNumber"`    //型号
   Amount         decimal.Decimal `json:"amount"`         //采购数
   SendAmount     int64           `json:"sendAmount"`     //发货数
   OverAmount     int64           `json:"overAmount"`     //入库数
   Unit           string          `json:"unit"`           //单位
   Price          decimal.Decimal `json:"price"`          //单价
   Total          decimal.Decimal `json:"total"`          //总价
   Number         string          `json:"number"`         //入库单号
   WarehouseName  string          `json:"warehouseName"`  //仓库名
   OverTime       string          `json:"overTime"`       //入库时间
   Status         int64           `json:"status"`
   Principal      string          `json:"principal"` //负责人
   Number          string          `json:"number"`          //产品编码
   Name            string          `json:"name"`            //产品名称
   Specifications  string          `json:"specifications"`  //规格
   ModelNumber     string          `json:"modelNumber"`     //型号
   Amount          decimal.Decimal `json:"amount"`          //采购数
   SendAmount      int64           `json:"sendAmount"`      //发货数
   OverAmount      int64           `json:"overAmount"`      //入库数
   Unit            string          `json:"unit"`            //单位
   PurchasePrice   decimal.Decimal `json:"purchasePrice"`   //单价
   Total           decimal.Decimal `json:"total"`           //总价
   OperationNumber string          `json:"operationNumber"` //入库单号
   WarehouseName   string          `json:"warehouseName"`   //仓库名
   OverTime        string          `json:"overTime"`        //入库时间
   Status          int64           `json:"status"`
   Principal       string          `json:"principal"` //负责人
}