liujiandao
2024-03-30 69f0410081da54e6cea8a04a07fd0119a8edc623
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
@@ -497,7 +506,7 @@
        description: 签约日期
        type: string
      sourceOrder:
        description: 来源单据
        description: 来源单据 ,销售明细编码
        type: string
      status:
        allOf:
@@ -530,6 +539,42 @@
        allOf:
        - $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:
@@ -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:
@@ -696,6 +754,33 @@
        - $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:
      id:
@@ -711,6 +796,24 @@
      sort:
        description: 排序
        type: integer
    type: object
  purchaserequest.SaveQualityInspectionInfo:
    properties:
      ids:
        items:
          type: integer
        type: array
      purchaseId:
        type: integer
      status:
        type: integer
    type: object
  purchaserequest.SubmitPurchase:
    properties:
      id:
        type: integer
      status:
        $ref: '#/definitions/purchase.OrderStatus'
    type: object
  purchaserequest.UpdatePurchase:
    properties:
@@ -785,14 +888,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
@@ -811,26 +908,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:
@@ -841,6 +934,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:
@@ -1878,6 +2004,11 @@
      - in: query
        name: unit
        type: string
      - description: token
        in: header
        name: Authorization
        required: true
        type: string
      produces:
      - application/json
      responses:
@@ -2014,6 +2145,29 @@
      summary: 预览Contract
      tags:
      - Contract
  /purchase/allProductInWarehouse:
    post:
      consumes:
      - application/json
      parameters:
      - description: 参数
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/purchaserequest.PurchaseProductConfirmInfo'
      produces:
      - application/json
      responses:
        "200":
          description: 获取确认信息
          schema:
            $ref: '#/definitions/response.Response'
      security:
      - ApiKeyAuth: []
      summary: 全部合格入库
      tags:
      - Purchase
  /purchase/getOperationInfo/{id}:
    get:
      consumes:
@@ -2037,6 +2191,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 +2271,34 @@
      security:
      - ApiKeyAuth: []
      summary: 获取仓库列表
      tags:
      - Purchase
  /purchase/newSubmit:
    post:
      consumes:
      - application/json
      parameters:
      - description: 参数
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/purchaserequest.SubmitPurchase'
      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,16 +2546,77 @@
      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/savePurchaseQualityInspectionInfo:
    post:
      consumes:
      - application/json
      parameters:
      - description: 参数
        in: body
        name: data
        required: true
        schema:
          $ref: '#/definitions/purchaserequest.SaveQualityInspectionInfo'
      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/submit:
    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: