From a0681130f2e16e2ce5bf14ca1b3cdf219502229f Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 09 十一月 2023 15:50:10 +0800
Subject: [PATCH] 销售明细状态更新修改2

---
 docs/swagger.yaml |  177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 172 insertions(+), 5 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 1e7b9cb..aa85bd5 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -187,6 +187,23 @@
     - SalesDetailsKeywordTypeSignTime
     - SalesDetailsKeywordTypePrincipal
     - SalesDetailsKeywordTypeProductName
+  constvar.SalesDetailsStatus:
+    enum:
+    - 1
+    - 2
+    - 3
+    - 4
+    type: integer
+    x-enum-comments:
+      OverCLose: 宸插叧闂�
+      OverOutbound: 鍑哄簱瀹屾垚
+      WaitConfirmed: 寰呯‘璁�
+      WaitOutbound: 寰呭嚭搴�
+    x-enum-varnames:
+    - WaitConfirmed
+    - WaitOutbound
+    - OverOutbound
+    - OverCLose
   constvar.SalesRefundKeywordType:
     enum:
     - 閿�鍞��璐у崟缂栧彿
@@ -762,6 +779,8 @@
         $ref: '#/definitions/model.Quotation'
       quotationId:
         type: integer
+      sendTime:
+        type: string
       serviceContractStatus:
         $ref: '#/definitions/model.ServiceContractStatus'
       statusId:
@@ -895,6 +914,8 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
+      codeStandID:
+        type: string
       courierCompany:
         $ref: '#/definitions/model.CourierCompany'
       courierCompanyId:
@@ -921,6 +942,8 @@
       invoiceTypeId:
         description: 鍙戠エ绫诲瀷id
         type: integer
+      number:
+        type: string
       principalId:
         description: 閿�鍞礋璐d汉id
         type: integer
@@ -1457,6 +1480,10 @@
         items:
           $ref: '#/definitions/model.Product'
         type: array
+      quotation:
+        $ref: '#/definitions/model.Quotation'
+      quotationId:
+        type: integer
       remark:
         type: string
       saleChance:
@@ -1467,6 +1494,10 @@
         type: integer
       signTime:
         type: string
+      source:
+        type: string
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
       updateTime:
         type: string
       wechatOrderStatus:
@@ -1533,8 +1564,6 @@
         allOf:
         - $ref: '#/definitions/model.RefundType'
         description: 閫�娆炬柟寮�
-      Source:
-        $ref: '#/definitions/model.SalesReturn'
       amountTotal:
         description: 浠风◣鍚堣
         type: number
@@ -1579,6 +1608,8 @@
       refundTypeId:
         description: 閫�娆炬柟寮廔D
         type: integer
+      salesReturn:
+        $ref: '#/definitions/model.SalesReturn'
       sourceId:
         description: 婧愬崟id
         type: integer
@@ -1996,6 +2027,9 @@
         type: integer
       severity:
         $ref: '#/definitions/model.Severity'
+      severityId:
+        description: 涓ラ噸绋嬪害id
+        type: integer
       solution:
         description: 瑙e喅鏂规硶
         type: string
@@ -2166,6 +2200,23 @@
         description: 鍨嬪彿
         type: string
       Unit:
+        type: string
+    type: object
+  product.WorkOrderInfo:
+    properties:
+      EndTime:
+        type: string
+      OrderId:
+        type: string
+      OrderStatus:
+        type: string
+      ProductName:
+        type: string
+      StartTime:
+        type: string
+      WorkOrderId:
+        type: string
+      WorkOrderStatus:
         type: string
     type: object
   request.AddAccountId:
@@ -2378,6 +2429,9 @@
         type: string
       quotation_id:
         type: integer
+      sendTime:
+        description: 鍙戣揣鏃堕棿
+        type: string
       status_id:
         type: integer
     type: object
@@ -2468,6 +2522,8 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
+      codeStandID:
+        type: string
       courierCompanyId:
         description: 鐗╂祦鍏徃
         type: integer
@@ -2486,6 +2542,9 @@
       invoiceTypeId:
         description: 鍙戠エ绫诲瀷id
         type: integer
+      number:
+        description: 鍙戠エ缂栧彿
+        type: string
       principalId:
         description: 閿�鍞礋璐d汉id
         type: integer
@@ -2883,6 +2942,8 @@
         items:
           $ref: '#/definitions/model.Product'
         type: array
+      quotationId:
+        type: integer
       remark:
         type: string
       saleChanceId:
@@ -2891,6 +2952,10 @@
         type: integer
       signTime:
         type: string
+      source:
+        type: string
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
       wechatOrderStatusId:
         type: integer
     type: object
@@ -3221,7 +3286,7 @@
       serviceTypeId:
         description: 鏈嶅姟鏂瑰紡id
         type: integer
-      severity:
+      severityId:
         description: 涓ラ噸绋嬪害id
         type: integer
       solution:
@@ -3732,7 +3797,7 @@
       keywordType:
         $ref: '#/definitions/constvar.SalesDetailsKeywordType'
       number:
-        description: 閿�鍞瓙鍗曞彿
+        description: 閿�鍞槑缁嗗崟鍙�
         type: string
       page:
         description: 椤电爜
@@ -3975,6 +4040,8 @@
         items:
           $ref: '#/definitions/model.Product'
         type: array
+      quotationId:
+        type: integer
       remark:
         type: string
       saleChanceId:
@@ -3983,6 +4050,10 @@
         type: integer
       signTime:
         type: string
+      source:
+        type: string
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
       wechatOrderStatusId:
         type: integer
     type: object
@@ -4381,6 +4452,9 @@
         type: string
       quotation_id:
         type: integer
+      sendTime:
+        description: 鍙戣揣鏃堕棿
+        type: string
       status_id:
         type: integer
     type: object
@@ -4534,6 +4608,8 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
+      codeStandID:
+        type: string
       courierCompanyId:
         description: 鐗╂祦鍏徃
         type: integer
@@ -4554,6 +4630,9 @@
       invoiceTypeId:
         description: 鍙戠エ绫诲瀷id
         type: integer
+      number:
+        description: 鍙戠エ缂栧彿
+        type: string
       principalId:
         description: 閿�鍞礋璐d汉id
         type: integer
@@ -5101,6 +5180,13 @@
       salesDetails:
         $ref: '#/definitions/request.SalesDetails'
     type: object
+  request.UpdateSalesDetailsStatus:
+    properties:
+      id:
+        type: integer
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
+    type: object
   request.UpdateSalesLeads:
     properties:
       city_id:
@@ -5533,7 +5619,7 @@
       serviceTypeId:
         description: 鏈嶅姟鏂瑰紡id
         type: integer
-      severity:
+      severityId:
         description: 涓ラ噸绋嬪害id
         type: integer
       solution:
@@ -9271,6 +9357,31 @@
       summary: 鏇存柊浼樺厛绾у埆
       tags:
       - 浼樺厛绾у埆绠$悊
+  /api/product/getProductOrderInfo/{number}:
+    get:
+      parameters:
+      - description: 鏄庣粏缂栫爜
+        in: path
+        name: number
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/contextx.Response'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/product.WorkOrderInfo'
+                  type: array
+              type: object
+      summary: 鑾峰彇浜у搧璁㈠崟淇℃伅
+      tags:
+      - 浜у搧
   /api/product/info:
     get:
       parameters:
@@ -10507,6 +10618,25 @@
       summary: 娣诲姞閿�鍞槑缁�
       tags:
       - SalesDetails
+  /api/salesDetails/createOperation:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.SalesDetails'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/response.ListResponse'
+      summary: 鍒涘缓浜у搧鍑哄簱淇℃伅
+      tags:
+      - SalesDetails
   /api/salesDetails/delete:
     delete:
       parameters:
@@ -10542,6 +10672,24 @@
           schema:
             $ref: '#/definitions/contextx.Response'
       summary: 鍒犻櫎閿�鍞槑缁�
+      tags:
+      - SalesDetails
+  /api/salesDetails/getProductInventoryInfo/{number}:
+    get:
+      parameters:
+      - description: 鏄庣粏缂栫爜
+        in: path
+        name: number
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/response.ListResponse'
+      summary: 鑾峰彇浜у搧搴撳瓨淇℃伅
       tags:
       - SalesDetails
   /api/salesDetails/list:
@@ -10587,6 +10735,25 @@
       summary: 鏇存柊閿�鍞槑缁�
       tags:
       - SalesDetails
+  /api/salesDetails/updateStatus:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.UpdateSalesDetailsStatus'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/contextx.Response'
+      summary: 鏇存柊閿�鍞槑缁嗙姸鎬�
+      tags:
+      - SalesDetails
   /api/salesLeads/add:
     post:
       parameters:

--
Gitblit v1.8.0