zhangqian
2024-04-19 cdb38521ea1f662b53bafb87412c38dfd0d5e11d
docs/swagger.yaml
@@ -393,6 +393,179 @@
        description: 栈名
        type: string
    type: object
  constvar.MiniDictType:
    enum:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 7
    type: integer
    x-enum-comments:
      EarlyWarningDay: 预警天数
      InspectionWayType: 质检方式类型
      MiniDictTypeBomVersionType: Bom版本类型
      MiniDictTypePlcBrand: PLC品牌
      OutsourcingSupplierCreditGrade: 信用等级
      OutsourcingSupplierRange: 供货范围
      OutsourcingSupplierType: 委外供应商类型
    x-enum-varnames:
    - MiniDictTypePlcBrand
    - MiniDictTypeBomVersionType
    - EarlyWarningDay
    - InspectionWayType
    - OutsourcingSupplierType
    - OutsourcingSupplierCreditGrade
    - OutsourcingSupplierRange
  constvar.RecordStatus:
    enum:
    - 0
    - 1
    - 2
    type: integer
    x-enum-comments:
      RecordStatusActive: 启用
      RecordStatusCreate: 新建
      RecordStatusInactive: 停用
    x-enum-varnames:
    - RecordStatusCreate
    - RecordStatusActive
    - RecordStatusInactive
  contextx.Response:
    properties:
      code:
        type: integer
      data: {}
      msg:
        type: string
    type: object
  gorm.DeletedAt:
    properties:
      time:
        type: string
      valid:
        description: Valid is true if Time is not NULL
        type: boolean
    type: object
  model.MiniDict:
    properties:
      createdAt:
        type: string
      id:
        type: integer
      isDefault:
        type: boolean
      name:
        type: string
      type:
        $ref: '#/definitions/constvar.MiniDictType'
      updatedAt:
        type: string
      value:
        type: string
    type: object
  models.OutsourcingEnterprise:
    properties:
      address:
        description: 地址
        type: string
      contact:
        description: 联系人
        type: string
      createdAt:
        type: string
      creditGrade:
        description: 信用等级
        type: string
      deletedAt:
        $ref: '#/definitions/gorm.DeletedAt'
      enterpriseType:
        description: 企业类型
        type: string
      id:
        type: integer
      name:
        description: 委外企业编号名称
        type: string
      number:
        description: 委外企业编号
        type: string
      organizationCode:
        description: 组织机构代码
        type: string
      status:
        allOf:
        - $ref: '#/definitions/constvar.RecordStatus'
        description: 状态 0 新建 1 启用 2停用
      supplyCapacity:
        description: 供货能力
        type: string
      supplyRange:
        description: 供货范围
        type: string
      tel:
        description: 联系方式
        type: string
      updatedAt:
        type: string
    type: object
  outsourcingrequest.OutsourcingEnterprise:
    properties:
      address:
        description: 地址
        type: string
      contact:
        description: 联系人
        type: string
      creditGrade:
        description: 信用等级
        type: string
      enterpriseType:
        description: 企业类型
        type: string
      id:
        type: integer
      name:
        description: 委外供应商编号名称
        type: string
      number:
        description: 委外供应商编号
        type: string
      organizationCode:
        description: 组织机构代码
        type: string
      status:
        allOf:
        - $ref: '#/definitions/constvar.RecordStatus'
        description: 状态 0 新建 1 启用 2停用
      supplyCapacity:
        description: 供货能力
        type: string
      supplyRange:
        description: 供货范围
        type: string
      tel:
        description: 联系方式
        type: string
    required:
    - enterpriseType
    - name
    - number
    type: object
  outsourcingrequest.OutsourcingEnterpriseOverview:
    properties:
      close:
        description: 停用数量
        type: integer
      open:
        description: 启用数量
        type: integer
      total:
        description: 总量
        type: integer
    type: object
  purchase.OrderStatus:
    enum:
    - 1
@@ -506,7 +679,7 @@
        description: 签约日期
        type: string
      sourceOrder:
        description: 来源单据
        description: 来源单据 ,销售明细编码
        type: string
      status:
        allOf:
@@ -808,6 +981,13 @@
      status:
        type: integer
    type: object
  purchaserequest.SubmitPurchase:
    properties:
      id:
        type: integer
      status:
        $ref: '#/definitions/purchase.OrderStatus'
    type: object
  purchaserequest.UpdatePurchase:
    properties:
      productList:
@@ -881,14 +1061,8 @@
          $ref: '#/definitions/test.SupplierType'
        type: array
    type: object
  response.OperationInfo:
  response.InWarehouseInfo:
    properties:
      amount:
        description: 采购数
        type: number
      modelNumber:
        description: 型号
        type: string
      name:
        description: 产品名称
        type: string
@@ -907,26 +1081,22 @@
      principal:
        description: 负责人
        type: string
      purchasePrice:
        description: 单价
        type: number
      sendAmount:
        description: 发货数
        type: integer
      specifications:
        description: 规格
        type: string
      status:
        type: integer
      total:
        description: 总价
        type: number
      unit:
        description: 单位
        type: string
      warehouseName:
        description: 仓库名
        type: string
    type: object
  response.OperationInfo:
    properties:
      inWarehouseInfos:
        items:
          $ref: '#/definitions/response.InWarehouseInfo'
        type: array
      productInfos:
        items:
          $ref: '#/definitions/response.ProductInfo'
        type: array
    type: object
  response.PageResult:
    properties:
@@ -937,6 +1107,39 @@
        type: integer
      total:
        type: integer
    type: object
  response.ProductInfo:
    properties:
      amount:
        description: 采购数
        type: number
      modelNumber:
        description: 型号
        type: string
      name:
        description: 产品名称
        type: string
      number:
        description: 产品编码
        type: string
      overAmount:
        description: 入库数
        type: integer
      purchasePrice:
        description: 单价
        type: number
      sendAmount:
        description: 收货数
        type: integer
      specifications:
        description: 规格
        type: string
      total:
        description: 总价
        type: number
      unit:
        description: 单位
        type: string
    type: object
  response.PurchaseProducts:
    properties:
@@ -1140,6 +1343,51 @@
        type: string
      updated_at:
        type: string
    type: object
  utils.Response:
    properties:
      code:
        type: integer
      data: {}
      msg:
        type: string
    type: object
  utils.ResponseList:
    properties:
      code:
        type: integer
      data: {}
      msg:
        type: string
      page:
        type: integer
      pageSize:
        type: integer
      total:
        type: integer
    type: object
  v1.GetMiniDictList:
    properties:
      type:
        $ref: '#/definitions/constvar.MiniDictType'
    type: object
  v1.MiniDict:
    properties:
      isDefault:
        type: boolean
      name:
        type: string
      value:
        type: string
    type: object
  v1.SaveMiniDict:
    properties:
      list:
        items:
          $ref: '#/definitions/v1.MiniDict'
        type: array
      type:
        $ref: '#/definitions/constvar.MiniDictType'
    type: object
info:
  contact: {}
@@ -1389,6 +1637,61 @@
      summary: 更新Contract
      tags:
      - Contract
  /dict/getMiniDictList:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/v1.GetMiniDictList'
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/model.MiniDict'
                  type: array
              type: object
      summary: 获取迷你字典列表
      tags:
      - 数据字典
  /dict/saveMiniDict:
    post:
      parameters:
      - description: 参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/v1.SaveMiniDict'
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/utils.Response'
      summary: 更新迷你字典
      tags:
      - 数据字典
  /downloadContract:
    get:
      consumes:
@@ -1828,6 +2131,129 @@
      summary: 更新Member
      tags:
      - Member
  /outsourcing/enterprise/add:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.OutsourcingEnterprise'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 企业新增
      tags:
      - 委外企业管理
  /outsourcing/enterprise/list:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - in: query
        name: keyword
        type: string
      - description: 页码
        in: query
        name: page
        type: integer
      - description: 每页大小
        in: query
        name: pageSize
        type: integer
      - description: 状态 0 新建 1 启用 2停用
        enum:
        - 0
        - 1
        - 2
        in: query
        name: status
        type: integer
        x-enum-comments:
          RecordStatusActive: 启用
          RecordStatusCreate: 新建
          RecordStatusInactive: 停用
        x-enum-varnames:
        - RecordStatusCreate
        - RecordStatusActive
        - RecordStatusInactive
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/models.OutsourcingEnterprise'
                  type: array
              type: object
      summary: 企业列表
      tags:
      - 委外企业管理
  /outsourcing/enterprise/overview:
    get:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            allOf:
            - $ref: '#/definitions/utils.ResponseList'
            - properties:
                data:
                  $ref: '#/definitions/outsourcingrequest.OutsourcingEnterpriseOverview'
              type: object
      summary: 企业统计
      tags:
      - 委外企业管理
  /outsourcing/enterprise/update:
    post:
      parameters:
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/outsourcingrequest.OutsourcingEnterprise'
      produces:
      - application/json
      responses:
        "200":
          description: 成功
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 企业修改
      tags:
      - 委外企业管理
  /p/createProduct:
    post:
      consumes:
@@ -1973,6 +2399,11 @@
        type: string
      - in: query
        name: unit
        type: string
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
@@ -2238,16 +2669,17 @@
      summary: 获取仓库列表
      tags:
      - Purchase
  /purchase/newSubmit/{id}:
    get:
  /purchase/newSubmit:
    post:
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
      - description: 参数
        in: body
        name: data
        required: true
        type: integer
        schema:
          $ref: '#/definitions/purchaserequest.SubmitPurchase'
      produces:
      - application/json
      responses:
@@ -2575,11 +3007,12 @@
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
      - description: 参数
        in: body
        name: data
        required: true
        type: integer
        schema:
          $ref: '#/definitions/purchaserequest.SubmitPurchase'
      produces:
      - application/json
      responses: