From b3a318b7f707ca49fa9127881bbe709654eaa761 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期三, 27 九月 2023 17:27:51 +0800
Subject: [PATCH] 报表功能开发

---
 docs/swagger.yaml |  284 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 281 insertions(+), 3 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 81acff3..d0c176d 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -4,8 +4,12 @@
     - 1
     - 2
     - 3
+    - 4
+    - 5
     type: integer
     x-enum-comments:
+      BaseOperationTypeAdjust: 搴撳瓨鐩樼偣
+      BaseOperationTypeDisuse: 鎶ュ簾
       BaseOperationTypeIncoming: 鏀惰揣
       BaseOperationTypeInternal: 鍐呴儴璋冩嫧
       BaseOperationTypeOutgoing: 浜よ揣
@@ -13,6 +17,8 @@
     - BaseOperationTypeIncoming
     - BaseOperationTypeOutgoing
     - BaseOperationTypeInternal
+    - BaseOperationTypeDisuse
+    - BaseOperationTypeAdjust
   constvar.CostingMethod:
     enum:
     - 1
@@ -257,7 +263,7 @@
         type: string
       parentId:
         description: 涓婄骇id
-        type: string
+        type: integer
       recentlyCount:
         description: 鏈�杩戠洏鐐�
         type: string
@@ -422,6 +428,10 @@
     type: object
   models.Operation:
     properties:
+      baseOperationType:
+        allOf:
+        - $ref: '#/definitions/constvar.BaseOperationType'
+        description: 鍩虹浣滀笟绫诲瀷
       comment:
         type: string
       companyID:
@@ -619,6 +629,21 @@
       toLocationId:
         type: integer
     type: object
+  request.AddLocationProduct:
+    properties:
+      areaId:
+        description: 鍖哄煙id
+        type: integer
+      locationId:
+        description: 浣嶇疆id
+        type: integer
+      productCategoryId:
+        description: 浜у搧绉嶇被id
+        type: integer
+      productId:
+        description: 浜у搧id
+        type: string
+    type: object
   request.AddOperation:
     properties:
       comment:
@@ -754,6 +779,41 @@
     required:
     - code
     type: object
+  request.GetInventoryForms:
+    properties:
+      categoryIds:
+        description: 浜у搧绫诲瀷id
+        items:
+          type: integer
+        type: array
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+      warehouseCode:
+        description: 浠撳簱缂╁啓
+        type: string
+    type: object
+  request.GetInventoryHistory:
+    properties:
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+      produceId:
+        description: 浜у搧id
+        type: string
+      productName:
+        description: 浜у搧鍚嶇О
+        type: string
+      unit:
+        description: 鍗曚綅
+        type: string
+    type: object
   request.GetProductList:
     properties:
       categoryId:
@@ -808,6 +868,15 @@
       sourceNumber:
         type: string
     type: object
+  request.PageInfo:
+    properties:
+      page:
+        description: 椤电爜
+        type: integer
+      pageSize:
+        description: 姣忛〉澶у皬
+        type: integer
+    type: object
   request.QueryDisuseList:
     properties:
       number:
@@ -860,14 +929,14 @@
   request.UpdateDisuse:
     properties:
       amount:
-        description: ProductName    string                   `json:"productName"`
         type: number
+      baseOperationType:
+        $ref: '#/definitions/constvar.BaseOperationType'
       fromLocationId:
         type: integer
       id:
         type: integer
       number:
-        description: Unit           string                   `json:"unit"`
         type: string
       operationDate:
         type: string
@@ -880,8 +949,29 @@
       toLocationId:
         type: integer
     type: object
+  request.UpdateLocationProduct:
+    properties:
+      areaId:
+        description: 鍖哄煙id
+        type: integer
+      id:
+        type: integer
+      locationId:
+        description: 浣嶇疆id
+        type: integer
+      productCategoryId:
+        description: 浜у搧绉嶇被id
+        type: integer
+      productId:
+        description: 浜у搧id
+        type: string
+    type: object
   request.UpdateOperation:
     properties:
+      baseOperationType:
+        allOf:
+        - $ref: '#/definitions/constvar.BaseOperationType'
+        description: 鍩虹浣滀笟绫诲瀷
       comment:
         description: 澶囨敞
         type: string
@@ -975,6 +1065,67 @@
       warehouseId:
         description: 浠撳簱id
         type: integer
+    type: object
+  response.InventoryForms:
+    properties:
+      amount:
+        description: 鍦ㄥ簱鏁伴噺
+        type: number
+      availableNumber:
+        description: 鍙敤搴撳瓨
+        type: number
+      cost:
+        description: 鎴愭湰
+        type: number
+      in:
+        description: 鍏ュ簱
+        type: number
+      out:
+        description: 鍑哄簱
+        type: number
+      produceId:
+        description: 浜у搧id
+        type: string
+      productName:
+        description: 浜у搧鍚嶇О
+        type: string
+      productType:
+        description: 浜у搧绫诲瀷
+        type: string
+      unit:
+        description: 鍗曚綅
+        type: string
+      value:
+        description: 鎬讳环鍊�
+        type: number
+    type: object
+  response.InventoryHistory:
+    properties:
+      amount:
+        description: 鏁伴噺
+        type: number
+      baseOperationType:
+        allOf:
+        - $ref: '#/definitions/constvar.BaseOperationType'
+        description: 鍩虹浣滀笟绫诲瀷
+      contactedName:
+        description: 瀹屾垚鑰�
+        type: string
+      date:
+        description: 鏃ユ湡
+        type: string
+      fromLocation:
+        description: 婧愪綅缃�
+        type: string
+      number:
+        description: 鍗曞彿
+        type: string
+      toLocation:
+        description: 鐩爣浣嶇疆
+        type: string
+      unit:
+        description: 鍗曚綅
+        type: string
     type: object
   util.Response:
     properties:
@@ -1174,6 +1325,58 @@
       summary: 缂栬緫鍏徃
       tags:
       - 鍏徃
+  /api-wms/v1/forms/getInventoryForms:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.GetInventoryForms'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/response.InventoryForms'
+                  type: array
+              type: object
+      summary: 鑾峰彇搴撳瓨鎶ヨ〃
+      tags:
+      - 鎶ヨ〃
+  /api-wms/v1/forms/getInventoryHistory:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.GetInventoryHistory'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/response.InventoryHistory'
+                  type: array
+              type: object
+      summary: 鑾峰彇搴撳瓨鍘嗗彶
+      tags:
+      - 鎶ヨ〃
   /api-wms/v1/location/addLocation:
     post:
       parameters:
@@ -1279,6 +1482,81 @@
       summary: 淇敼浣嶇疆
       tags:
       - 浣嶇疆
+  /api-wms/v1/locationProduct/add:
+    post:
+      parameters:
+      - description: 鏂板涓婃灦瑙勫垯
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.AddLocationProduct'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 娣诲姞涓婃灦瑙勫垯
+      tags:
+      - 涓婃灦瑙勫垯
+  /api-wms/v1/locationProduct/delete/{id}:
+    delete:
+      parameters:
+      - description: id
+        in: path
+        name: id
+        required: true
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 鍒犻櫎涓婃灦瑙勫垯
+      tags:
+      - 涓婃灦瑙勫垯
+  /api-wms/v1/locationProduct/list:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.PageInfo'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 搴撳瓨鐩樼偣鍒楄〃
+      tags:
+      - 搴撳瓨鐩樼偣
+  /api-wms/v1/locationProduct/update:
+    post:
+      parameters:
+      - description: 鍏ュ簱淇℃伅
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateLocationProduct'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            $ref: '#/definitions/util.Response'
+      summary: 淇敼涓婃灦瑙勫垯
+      tags:
+      - 涓婃灦瑙勫垯
   /api-wms/v1/operation/finish/{id}:
     put:
       parameters:

--
Gitblit v1.8.0