liujiandao
2024-04-09 6dec2342316aecf4084c8f4efb43f33fbb72892f
docs/swagger.yaml
@@ -184,6 +184,29 @@
    - MaterialModeConsumables
    - MaterialModeOther
    - MaterialModeVirtual
  constvar.OperationSource:
    enum:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    type: integer
    x-enum-comments:
      OperationSourceOutsourcing: 委外入库
      OperationSourceOutsourcingApply: 委外领料
      OperationSourceProduction: 生产入库
      OperationSourceProductionApply: 生产领料
      OperationSourcePurchase: 采购入库
      OperationSourceSaleDelivery: 销售发货
    x-enum-varnames:
    - OperationSourcePurchase
    - OperationSourceProduction
    - OperationSourceOutsourcing
    - OperationSourceProductionApply
    - OperationSourceOutsourcingApply
    - OperationSourceSaleDelivery
  constvar.OperationStatus:
    enum:
    - 1
@@ -394,6 +417,13 @@
          gorm:"foreignKey:CompanyId"`                       //公司
      updateTime:
        type: string
      warehouse:
        allOf:
        - $ref: '#/definitions/models.Warehouse'
        description: 仓库
      warehouseId:
        description: 仓库ID
        type: integer
    type: object
  models.LogisticCompany:
    properties:
@@ -653,6 +683,10 @@
          ToLocationID      int                      `json:"toLocationId"    gorm:"type:int;not null;comment:目标位置id"`         //目标位置id
          ToLocation        Location                 `json:"toLocation"      gorm:"foreignKey:ToLocationID;references:Id"`    //目标位置
        type: string
      operationSource:
        allOf:
        - $ref: '#/definitions/constvar.OperationSource'
        description: 操作来源
      operationTypeId:
        description: 作业类型id
        type: integer
@@ -664,6 +698,8 @@
      receiverName:
        type: string
      receiverPhone:
        type: string
      salesDetailsNumber:
        type: string
      source:
        type: string
@@ -825,8 +861,6 @@
        type: boolean
      code:
        description: 仓库编码
        maxLength: 5
        minLength: 1
        type: string
      company:
        $ref: '#/definitions/models.Company'
@@ -843,7 +877,7 @@
        description: 入向运输
        type: integer
      locationId:
        description: 位置id
        description: 默认位置id
        type: integer
      name:
        description: 仓库名称
@@ -869,8 +903,6 @@
      warehouseLocation:
        description: 库存位置
        type: string
    required:
    - code
    type: object
  request.AddCompany:
    properties:
@@ -1331,6 +1363,20 @@
        description: 每页大小
        type: integer
      productId:
        type: string
    type: object
  request.SaveUnitDict:
    properties:
      data:
        items:
          $ref: '#/definitions/request.UnitDict'
        type: array
    type: object
  request.UnitDict:
    properties:
      isDefault:
        type: boolean
      name:
        type: string
    type: object
  request.UpdateCompany:
@@ -2981,6 +3027,25 @@
      summary: 产品历史出入库信息
      tags:
      - 产品
  /api-wms/v1/product/saveUnitDict:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.SaveUnitDict'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 更新计量单位字典
      tags:
      - 数据字典
  /api-wms/v1/product/updateDisuse:
    post:
      parameters: