jiangshuai
2023-09-27 7edecfcf0f48ba6d6177486a57399a558c4c79e7
docs/swagger.yaml
@@ -4,8 +4,12 @@
    - 1
    - 2
    - 3
    - 4
    - 5
    type: integer
    x-enum-comments:
      BaseOperationTypeAdjust: 库存盘点
      BaseOperationTypeDisuse: 报废
      BaseOperationTypeIncoming: 收货
      BaseOperationTypeInternal: 内部调拨
      BaseOperationTypeOutgoing: 交货
@@ -13,6 +17,8 @@
    - BaseOperationTypeIncoming
    - BaseOperationTypeOutgoing
    - BaseOperationTypeInternal
    - BaseOperationTypeDisuse
    - BaseOperationTypeAdjust
  constvar.CostingMethod:
    enum:
    - 1
@@ -78,9 +84,11 @@
    - 6
    - 7
    - 8
    - 9
    type: integer
    x-enum-comments:
      LocationTypeCustomer: 客户位置
      LocationTypeDisuse: 报废位置
      LocationTypeInternal: 内部位置
      LocationTypeInventoryLoss: 库存损失
      LocationTypeProduction: 生产
@@ -96,6 +104,7 @@
    - LocationTypeProduction
    - LocationTypeTransit
    - LocationTypeDisuse
    - LocationTypeAdjust
  constvar.MaterialMode:
    enum:
    - 原材料
@@ -257,7 +266,7 @@
        type: string
      parentId:
        description: 上级id
        type: string
        type: integer
      recentlyCount:
        description: 最近盘点
        type: string
@@ -422,6 +431,10 @@
    type: object
  models.Operation:
    properties:
      baseOperationType:
        allOf:
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      comment:
        type: string
      companyID:
@@ -619,6 +632,37 @@
      toLocationId:
        type: integer
    type: object
  request.AddLocationProduct:
    properties:
      areaId:
        description: 区域id
        type: integer
      locationId:
        description: 位置id
        type: integer
      productCategoryId:
        description: 产品种类id
        type: integer
      productId:
        description: 产品id
        type: string
    type: object
  request.AddLocationProductAmount:
    properties:
      adjustAmount:
        description: 差值
        type: number
      decimal:
        description: 库存数量
        type: number
      difference_amount:
        description: 计数数量
        type: number
      locationId:
        type: integer
      productId:
        type: string
    type: object
  request.AddOperation:
    properties:
      comment:
@@ -808,6 +852,15 @@
      sourceNumber:
        type: string
    type: object
  request.PageInfo:
    properties:
      page:
        description: 页码
        type: integer
      pageSize:
        description: 每页大小
        type: integer
    type: object
  request.QueryDisuseList:
    properties:
      number:
@@ -860,14 +913,14 @@
  request.UpdateDisuse:
    properties:
      amount:
        description: ProductName    string                   `json:"productName"`
        type: number
      baseOperationType:
        $ref: '#/definitions/constvar.BaseOperationType'
      fromLocationId:
        type: integer
      id:
        type: integer
      number:
        description: Unit           string                   `json:"unit"`
        type: string
      operationDate:
        type: string
@@ -880,8 +933,29 @@
      toLocationId:
        type: integer
    type: object
  request.UpdateLocationProduct:
    properties:
      areaId:
        description: 区域id
        type: integer
      id:
        type: integer
      locationId:
        description: 位置id
        type: integer
      productCategoryId:
        description: 产品种类id
        type: integer
      productId:
        description: 产品id
        type: string
    type: object
  request.UpdateOperation:
    properties:
      baseOperationType:
        allOf:
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      comment:
        description: 备注
        type: string
@@ -1279,6 +1353,119 @@
      summary: 修改位置
      tags:
      - 位置
  /api-wms/v1/locationProduct/add:
    post:
      parameters:
      - description: 新增上架规则
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddLocationProduct'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加上架规则
      tags:
      - 上架规则
  /api-wms/v1/locationProduct/delete/{id}:
    delete:
      parameters:
      - description: id
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 删除上架规则
      tags:
      - 上架规则
  /api-wms/v1/locationProduct/list:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.PageInfo'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 上架规则列表
      tags:
      - 上架规则
  /api-wms/v1/locationProduct/update:
    post:
      parameters:
      - description: 修改参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateLocationProduct'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 修改上架规则
      tags:
      - 上架规则
  /api-wms/v1/locationProductamount/add:
    post:
      parameters:
      - description: 入库/出库信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddLocationProductAmount'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加库存盘点信息
      tags:
      - 库存盘点
  /api-wms/v1/locationProductamount/list:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.PageInfo'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 库存盘点列表
      tags:
      - 库存盘点
  /api-wms/v1/operation/finish/{id}:
    put:
      parameters: