zhangqian
2024-06-21 9c7551a7a752c07db11b0fd23bfba8da1ad062e0
docs/swagger.yaml
@@ -572,6 +572,9 @@
      cost:
        description: 成本
        type: number
      createBy:
        description: 创建人
        type: string
      currencyName:
        description: 币种名称
        type: string
@@ -850,8 +853,6 @@
        allOf:
        - $ref: '#/definitions/constvar.BaseOperationType'
        description: 基础作业类型
      checkedAt:
        type: string
      checkedBy:
        type: string
      comment:
@@ -878,6 +879,9 @@
        type: array
      id:
        type: integer
      isInternalOutput:
        description: 是否调拨产生的出库
        type: boolean
      location:
        allOf:
        - $ref: '#/definitions/models.Location'
@@ -959,6 +963,9 @@
        type: number
      auxiliaryUnit:
        type: string
      cost:
        description: 成本单价
        type: number
      createTime:
        type: string
      fromLocation:
@@ -970,8 +977,9 @@
        type: integer
      id:
        type: integer
      note:
        type: string
      isInternalOutput:
        description: 是否调拨产生的出库
        type: boolean
      operationId:
        description: 操作id
        type: integer
@@ -982,6 +990,11 @@
      productId:
        description: 产品id
        type: string
      remark:
        type: string
      salePrice:
        description: 销售单价
        type: number
      toLocation:
        allOf:
        - $ref: '#/definitions/models.Location'
@@ -1145,6 +1158,31 @@
        type: string
      warehouseLocation:
        description: 库存位置
        type: string
    type: object
  request.AddAttribute:
    properties:
      dataType:
        description: 值类型(1字符串 2 int 3 下拉框 )
        type: integer
      entityType:
        description: 给谁用的 1 物料(产品)
        type: integer
      name:
        description: 属性名称
        type: string
      selectValues:
        items:
          type: string
        type: array
    type: object
  request.AddAttributeValue:
    properties:
      attributeId:
        type: integer
      entityId:
        type: string
      value:
        type: string
    type: object
  request.AddCompany:
@@ -1376,6 +1414,19 @@
    required:
    - code
    type: object
  request.AttributeList:
    properties:
      entityType:
        type: integer
      keyword:
        type: string
      page:
        description: 页码
        type: integer
      pageSize:
        description: 每页大小
        type: integer
    type: object
  request.DoMonthStats:
    properties:
      token:
@@ -1593,6 +1644,9 @@
      auxiliaryUnit:
        description: 辅助单位
        type: string
      cost:
        description: 成本单价
        type: number
      fromLocationId:
        description: |-
          Unit        string          `json:"unit" gorm:"type:varchar(31);comment:单位"`                    //单位
@@ -1601,6 +1655,11 @@
      productId:
        description: 产品id
        type: string
      remark:
        type: string
      salePrice:
        description: 销售单价
        type: number
      toLocationId:
        description: 目标位置id
        type: integer
@@ -1682,6 +1741,35 @@
      isDefault:
        type: boolean
      name:
        type: string
    type: object
  request.UpdateAttribute:
    properties:
      dataType:
        description: 值类型(1字符串 2 int 3 下拉框 )
        type: integer
      entityType:
        description: 给谁用的 1 物料(产品)
        type: integer
      id:
        type: integer
      name:
        description: 属性名称
        type: string
      selectValues:
        items:
          type: string
        type: array
    type: object
  request.UpdateAttributeValue:
    properties:
      attributeId:
        type: integer
      entityId:
        type: string
      id:
        type: integer
      value:
        type: string
    type: object
  request.UpdateCompany:
@@ -2128,6 +2216,163 @@
      summary: 上传附件
      tags:
      - 附件管理
  /api-wms/v1/attribute/attribute:
    post:
      parameters:
      - description: 属性值和对象信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AttributeList'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/attribute/delete/{id}:
    delete:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 属性id
        in: path
        name: id
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 删除属性
      tags:
      - 属性
  /api-wms/v1/attribute/primary/{id}:
    get:
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 查询属性值和对象 通过主键ID查询
      tags:
      - 属性值和对象
  /api-wms/v1/attribute/updateAttribute/{id}:
    put:
      parameters:
      - description: 属性信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateAttribute'
      - description: 属性id
        in: path
        name: id
        required: true
        type: string
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 编辑属性
      tags:
      - 属性
  /api-wms/v1/attributeValue/add:
    post:
      parameters:
      - description: 属性值和对象信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddAttributeValue'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 添加属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/delete/{id}:
    delete:
      parameters:
      - description: id
        in: path
        name: id
        required: true
        type: string
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 删除属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/list:
    post:
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 查询属性值和对象 分页条件筛选Value like '%v%' 模糊查询
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/primary/{id}:
    get:
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 查询属性值和对象 通过主键ID查询
      tags:
      - 属性值和对象
  /api-wms/v1/attributeValue/update:
    post:
      parameters:
      - description: 属性值和对象信息
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateAttributeValue'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 更新属性值和对象
      tags:
      - 属性值和对象
  /api-wms/v1/code/getAutoCode:
    post:
      parameters:
@@ -3506,6 +3751,18 @@
      summary: 获取登录用户信息
      tags:
      - 产品
  /api-wms/v1/product/inputProduct:
    post:
      produces:
      - application/xlsx
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/util.Response'
      summary: 导入物料
      tags:
      - 物料管理
  /api-wms/v1/product/listDisuse:
    post:
      parameters: