jiangshuai
2023-09-23 db425e3e5022111c8b776fa18f453ed04623deb2
docs/swagger.yaml
@@ -77,6 +77,7 @@
    - 5
    - 6
    - 7
    - 8
    type: integer
    x-enum-comments:
      LocationTypeCustomer: 客户位置
@@ -94,6 +95,7 @@
    - LocationTypeInventoryLoss
    - LocationTypeProduction
    - LocationTypeTransit
    - LocationTypeDisuse
  constvar.MaterialMode:
    enum:
    - 原材料
@@ -679,6 +681,23 @@
        description: 备注
        type: string
    type: object
  request.AddDisuse:
    properties:
      amount:
        type: number
      fromLocationId:
        type: integer
      productId:
        type: string
      productName:
        type: string
      sourceNumber:
        type: string
      toLocationId:
        type: integer
      unit:
        type: string
    type: object
  request.AddOperation:
    properties:
      comment:
@@ -870,6 +889,19 @@
      sourceNumber:
        type: string
    type: object
  request.QueryDisuseList:
    properties:
      number:
        type: string
      page:
        description: 页码
        type: integer
      pageSize:
        description: 每页大小
        type: integer
      sourceNumber:
        type: string
    type: object
  request.QueryOperationList:
    properties:
      page:
@@ -904,6 +936,31 @@
        type: integer
      remark:
        description: 备注
        type: string
    type: object
  request.UpdateDisuse:
    properties:
      amount:
        type: number
      fromLocationId:
        type: integer
      id:
        type: integer
      number:
        type: string
      operationDate:
        type: string
      productId:
        type: string
      productName:
        type: string
      sourceNumber:
        type: string
      status:
        $ref: '#/definitions/constvar.OperationStatus'
      toLocationId:
        type: integer
      unit:
        type: string
    type: object
  request.UpdateOperation:
@@ -1507,6 +1564,25 @@
      summary: 编辑作业类型
      tags:
      - 业务类型
  /api-wms/v1/product/addDisuse:
    post:
      parameters:
      - description: 入库/出库信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddDisuse'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加报废信息
      tags:
      - 产品
  /api-wms/v1/product/addProduct:
    post:
      parameters:
@@ -1581,6 +1657,24 @@
      summary: 删除产品类型
      tags:
      - 产品类型
  /api-wms/v1/product/finishDisuse/{id}:
    put:
      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/product/getProductCategoryDetails/{id}:
    get:
      parameters:
@@ -1679,6 +1773,25 @@
      summary: 获取产品列表
      tags:
      - 产品
  /api-wms/v1/product/listDisuse:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.QueryDisuseList'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 报废列表
      tags:
      - 产品
  /api-wms/v1/product/listOperaton:
    post:
      parameters:
@@ -1705,6 +1818,25 @@
      summary: 产品历史出入库信息
      tags:
      - 产品
  /api-wms/v1/product/updateDisuse:
    post:
      parameters:
      - description: 入库/出库信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateDisuse'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 修改报废信息
      tags:
      - 产品
  /api-wms/v1/product/updateProduct:
    post:
      parameters: