fix
zhangqian
2023-08-29 35edc2fddbd90831ef7bf79043871c9d8d50003d
docs/swagger.yaml
@@ -694,6 +694,17 @@
    - OrderStatusReceived
    - OrderStatusStored
    - OrderStatusCompleted
  purchase.PriceAdjustmentType:
    enum:
    - 1
    - 2
    type: integer
    x-enum-comments:
      PriceAdjustmentTypeAdd: 增加
      PriceAdjustmentTypeSub: 减少
    x-enum-varnames:
    - PriceAdjustmentTypeAdd
    - PriceAdjustmentTypeSub
  purchase.Purchase:
    properties:
      contact:
@@ -720,12 +731,22 @@
      number:
        description: 采购编号
        type: string
      orderSource:
        description: 单据来源
        type: string
      orderType:
        description: 单据类型
        type: string
      phone:
        description: 联系人电话
        type: string
      priceAdjustment:
        description: 价格调整值
        type: number
      priceAdjustmentType:
        allOf:
        - $ref: '#/definitions/purchase.PriceAdjustmentType'
        description: 价格调整类型
      purchaseType:
        $ref: '#/definitions/purchase.PurchaseType'
      purchaseTypeId:
@@ -733,6 +754,9 @@
        type: integer
      quantity:
        description: 采购数量
        type: number
      realTotalPrice:
        description: 最终价格
        type: number
      remark:
        description: 备注
@@ -749,9 +773,19 @@
      supplierId:
        description: 供应商id
        type: integer
      totalPrice:
        description: 价税合计
        type: number
      warehouse:
        description: 收货仓库
        type: string
      wholeDiscount:
        description: 整单折扣值
        type: number
      wholeDiscountType:
        allOf:
        - $ref: '#/definitions/purchase.WholeDiscountType'
        description: 整单折扣类型
    type: object
  purchase.PurchaseProducts:
    properties:
@@ -767,8 +801,6 @@
      price:
        description: 采购单价
        type: number
      product:
        $ref: '#/definitions/test.Product'
      productId:
        description: 产品id
        type: integer
@@ -800,6 +832,17 @@
        description: 排序
        type: integer
    type: object
  purchase.WholeDiscountType:
    enum:
    - 1
    - 2
    type: integer
    x-enum-comments:
      WholeDiscountTypeDiscount: 直接降价
      WholeDiscountTypePercent: 百分比降价
    x-enum-varnames:
    - WholeDiscountTypePercent
    - WholeDiscountTypeDiscount
  purchaserequest.AddPurchase:
    properties:
      productList:
@@ -829,9 +872,22 @@
      phone:
        description: 联系人电话
        type: string
      priceAdjustment:
        description: 价格调整值
        type: number
      priceAdjustmentType:
        allOf:
        - $ref: '#/definitions/purchase.PriceAdjustmentType'
        description: 价格调整类型
      purchaseTypeId:
        description: 采购类型id
        type: integer
      quantity:
        description: 采购数量
        type: number
      realTotalPrice:
        description: 最终价格
        type: number
      remark:
        description: 备注
        type: string
@@ -845,6 +901,16 @@
      supplierId:
        description: 供应商id
        type: integer
      totalPrice:
        description: 价税合计
        type: number
      wholeDiscount:
        description: 整单折扣值
        type: number
      wholeDiscountType:
        allOf:
        - $ref: '#/definitions/purchase.WholeDiscountType'
        description: 整单折扣类型
    type: object
  purchaserequest.PurchaseType:
    properties: