zhangqian
2023-08-29 0d86d93cff554f54f83927d4f8bf03ed8c847883
docs/swagger.yaml
@@ -702,8 +702,14 @@
      created_at:
        description: 创建时间
        type: string
      creator:
        description: 制单人
        type: string
      deliveryDate:
        description: 交付日期
        type: string
      handledBy:
        description: 经办人
        type: string
      id:
        description: 主键ID
@@ -714,6 +720,9 @@
      number:
        description: 采购编号
        type: string
      orderType:
        description: 单据类型
        type: string
      phone:
        description: 联系人电话
        type: string
@@ -722,6 +731,9 @@
      purchaseTypeId:
        description: 采购类型id
        type: integer
      quantity:
        description: 采购数量
        type: number
      remark:
        description: 备注
        type: string
@@ -737,6 +749,9 @@
      supplierId:
        description: 供应商id
        type: integer
      warehouse:
        description: 收货仓库
        type: string
    type: object
  purchase.PurchaseProducts:
    properties:
@@ -752,6 +767,8 @@
      price:
        description: 采购单价
        type: number
      product:
        $ref: '#/definitions/test.Product'
      productId:
        description: 产品id
        type: integer
@@ -767,6 +784,9 @@
    type: object
  purchase.PurchaseType:
    properties:
      created_at:
        description: 创建时间
        type: string
      id:
        description: 主键ID
        type: integer
@@ -1162,11 +1182,47 @@
          $ref: '#/definitions/request.CasbinInfo'
        type: array
    type: object
  response.PurchaseProducts:
    properties:
      amount:
        description: 采购数量
        type: number
      deliveryTime:
        type: integer
      modelNumber:
        type: string
      name:
        type: string
      number:
        type: string
      price:
        description: 采购单价
        type: number
      productId:
        description: 产品id
        type: integer
      productType:
        type: string
      purchaseId:
        description: 采购id
        type: integer
      purchasePrice:
        type: number
      shippingDuration:
        type: integer
      specifications:
        type: string
      total:
        description: 采购总价
        type: number
      unit:
        type: string
    type: object
  response.PurchaseResponse:
    properties:
      productList:
        items:
          $ref: '#/definitions/purchase.PurchaseProducts'
          $ref: '#/definitions/response.PurchaseProducts'
        type: array
      purchase:
        $ref: '#/definitions/purchase.Purchase'
@@ -4508,7 +4564,7 @@
      consumes:
      - application/json
      parameters:
      - description: 采购单用户名, 采购单手机号码
      - description: 采购单,采购单产品
        in: body
        name: data
        required: true