jiangshuai
2023-09-21 1b874e0b21375fa2b3e51ee7967316bc2ad415e5
models/operation_type.go
@@ -18,6 +18,7 @@
      Company           Company                    `json:"company" gorm:"foreignKey:CompanyId"`                           //公司
      WarehouseId       int                        `json:"warehouseId" gorm:"type:int;not null;comment:仓库id"`             //仓库id
      Warehouse         Warehouse                  `json:"warehouse" gorm:"foreignKey:WarehouseId"`                       //仓库
      Prefix            string                     `json:"prefix" gorm:"type:varchar(255);comment:前缀"`                    //前缀
      DefaultLocationSrcId  int      `json:"defaultLocationSrcId"   gorm:"type:int;not null;comment:默认源位置id"`  //默认源位置id
      DefaultLocationSrc    Location `json:"defaultLocationSrc"     gorm:"foreignKey:DefaultLocationSrcId"`    //默认源位置
@@ -29,6 +30,7 @@
      ReservationDaysBefore         int                        `json:"reservationDaysBefore" gorm:"type:int;"`                         //收货前几天
      ReservationDaysBeforePriority int                        `json:"ReservationDaysBeforePriority" gorm:"type:int;"`                 //在优先级的前几天
      ShowOperations                bool                       `json:"showOperations" gorm:"column:show_operations;type:int"`          //显示作业详情
      EarlyOperations               bool                       `json:"earlyOperations" gorm:"type:int;comment:预填写作业详情"`                //预填写作业详情
      CreateBackorder               constvar.WhetherType       `json:"createBackorder" gorm:"column:create_backorder"`                 //创建欠单
      ReturnOperationTypeID         int                        `json:"returnOperationTypeID" gorm:"column:return_job_type_id"`         //退货类型ID
      ReturnOperationType           string                     `json:"returnOperationType" gorm:"-"`                                   //退货类型名称