liujiandao
2024-03-22 0fd3231799d9185af352dcbc4f8e14df5e0f0233
docs/swagger.yaml
@@ -400,19 +400,28 @@
    - 3
    - 4
    - 5
    - 6
    - 7
    - 8
    type: integer
    x-enum-comments:
      OrderStatusCanceled: 已取消
      OrderStatusCompleted: 已完成
      OrderStatusConfirmed: 待确认
      OrderStatusPartReceive: 部分收货
      OrderStatusReceived: 待入库
      OrderStatusStored: 已入库
      OrderStatusWaitQuality: 待质检
      OrderStatusWaitReceive: 待收货
    x-enum-varnames:
    - OrderStatusConfirmed
    - OrderStatusReceived
    - OrderStatusStored
    - OrderStatusCompleted
    - OrderStatusCanceled
    - OrderStatusWaitReceive
    - OrderStatusPartReceive
    - OrderStatusWaitQuality
  purchase.PriceAdjustmentType:
    enum:
    - 1
@@ -531,6 +540,42 @@
        - $ref: '#/definitions/purchase.WholeDiscountType'
        description: 整单折扣类型
    type: object
  purchase.PurchaseProductConfirm:
    properties:
      amount:
        type: number
      created_at:
        type: string
      id:
        description: 主键ID
        example: "0"
        type: string
      notReceiveAmount:
        type: number
      nowReceiveAmount:
        description: 本次收货数量
        type: number
      overReceiveAmount:
        type: number
      principal:
        type: string
      productId:
        type: string
      productName:
        type: string
      purchaseNumber:
        type: string
      specs:
        type: string
      surplusReceiveAmount:
        type: number
      type:
        type: string
      unit:
        type: string
      updated_at:
        type: string
    type: object
  purchase.PurchaseProducts:
    properties:
      amount:
@@ -618,6 +663,19 @@
      purchase:
        $ref: '#/definitions/purchaserequest.Purchase'
    type: object
  purchaserequest.GetQualityInspectionInfo:
    properties:
      purchaseNumber:
        type: string
      status:
        items:
          type: integer
        type: array
      times:
        items:
          type: string
        type: array
    type: object
  purchaserequest.Purchase:
    properties:
      contact:
@@ -695,6 +753,33 @@
        allOf:
        - $ref: '#/definitions/purchase.WholeDiscountType'
        description: 整单折扣类型
    type: object
  purchaserequest.PurchaseProductConfirmInfo:
    properties:
      amount:
        type: number
      notReceiveAmount:
        type: number
      nowReceiveAmount:
        type: number
      overReceiveAmount:
        type: number
      principal:
        type: string
      productId:
        type: string
      productName:
        type: string
      purchaseNumber:
        type: string
      specs:
        type: string
      surplusReceiveAmount:
        type: number
      type:
        type: string
      unit:
        type: string
    type: object
  purchaserequest.PurchaseType:
    properties:
@@ -2037,6 +2122,65 @@
      summary: 获取操作信息
      tags:
      - Purchase
  /purchase/getPurchaseProductConfirmInfo/{number}:
    get:
      consumes:
      - application/json
      parameters:
      - description: 采购单编码
        in: path
        name: number
        required: true
        type: string
      produces:
      - application/json
      responses:
        "200":
          description: 获取确认信息
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/purchase.PurchaseProductConfirm'
                  type: array
              type: object
      security:
      - ApiKeyAuth: []
      summary: 获取确认信息
      tags:
      - Purchase
  /purchase/getPurchaseQualityInspectionInfo:
    post:
      consumes:
      - application/json
      parameters:
      - description: 参数
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/purchaserequest.GetQualityInspectionInfo'
      produces:
      - application/json
      responses:
        "200":
          description: 获取确认信息
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                data:
                  items:
                    $ref: '#/definitions/purchase.PurchaseProductConfirm'
                  type: array
              type: object
      security:
      - ApiKeyAuth: []
      summary: 获取采购质检信息信息
      tags:
      - Purchase
  /purchase/getWarehouseInfo:
    get:
      consumes:
@@ -2058,6 +2202,33 @@
      security:
      - ApiKeyAuth: []
      summary: 获取仓库列表
      tags:
      - Purchase
  /purchase/newSubmit/{id}:
    get:
      consumes:
      - application/json
      parameters:
      - description: 采购单ID
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: 新版提交
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 新版提交
      tags:
      - Purchase
  /purchase/purchase:
@@ -2305,6 +2476,36 @@
      summary: 分页获取质检单列表
      tags:
      - QualityInspect
  /purchase/savePurchaseProductConfirm:
    post:
      consumes:
      - application/json
      parameters:
      - description: list
        in: body
        name: data
        required: true
        schema:
          items:
            $ref: '#/definitions/purchaserequest.PurchaseProductConfirmInfo'
          type: array
      produces:
      - application/json
      responses:
        "200":
          description: 确认收货
          schema:
            allOf:
            - $ref: '#/definitions/response.Response'
            - properties:
                msg:
                  type: string
              type: object
      security:
      - ApiKeyAuth: []
      summary: 确认收货
      tags:
      - Purchase
  /purchase/submit:
    post:
      consumes: