From 0fd3231799d9185af352dcbc4f8e14df5e0f0233 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 22 三月 2024 10:53:38 +0800
Subject: [PATCH] 采购单到货与质检信息操作

---
 docs/swagger.yaml |  201 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 201 insertions(+), 0 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index bdcf9a0..b8e9d72 100644
--- a/docs/swagger.yaml
+++ b/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: 閲囪喘鍗旾D
+        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:

--
Gitblit v1.8.0