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 |  276 +++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 216 insertions(+), 60 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index c473c3e..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
@@ -1339,6 +1362,10 @@
         $ref: '#/definitions/model.Possibility'
       process:
         type: string
+      products:
+        items:
+          $ref: '#/definitions/model.Product'
+        type: array
       projected_amount:
         type: number
       province:
@@ -1369,8 +1396,12 @@
         type: integer
       solutions:
         type: string
+      status:
+        allOf:
+        - $ref: '#/definitions/model.Status'
+        description: 鐘舵��
       status_id:
-        $ref: '#/definitions/model.Status'
+        type: integer
       threats:
         type: string
       whether_established:
@@ -1427,6 +1458,8 @@
         type: integer
       creatorName:
         type: string
+      deliverType:
+        type: integer
       deliveryDate:
         type: string
       id:
@@ -1447,6 +1480,10 @@
         items:
           $ref: '#/definitions/model.Product'
         type: array
+      quotation:
+        $ref: '#/definitions/model.Quotation'
+      quotationId:
+        type: integer
       remark:
         type: string
       saleChance:
@@ -1457,6 +1494,10 @@
         type: integer
       signTime:
         type: string
+      source:
+        type: string
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
       updateTime:
         type: string
       wechatOrderStatus:
@@ -1523,8 +1564,6 @@
         allOf:
         - $ref: '#/definitions/model.RefundType'
         description: 閫�娆炬柟寮�
-      Source:
-        $ref: '#/definitions/model.SalesReturn'
       amountTotal:
         description: 浠风◣鍚堣
         type: number
@@ -1569,6 +1608,8 @@
       refundTypeId:
         description: 閫�娆炬柟寮廔D
         type: integer
+      salesReturn:
+        $ref: '#/definitions/model.SalesReturn'
       sourceId:
         description: 婧愬崟id
         type: integer
@@ -1986,6 +2027,9 @@
         type: integer
       severity:
         $ref: '#/definitions/model.Severity'
+      severityId:
+        description: 涓ラ噸绋嬪害id
+        type: integer
       solution:
         description: 瑙e喅鏂规硶
         type: string
@@ -2158,6 +2202,23 @@
       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:
     properties:
       name:
@@ -2208,8 +2269,6 @@
       client_type_id:
         description: 瀹㈡埛绫诲瀷ID
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -2356,8 +2415,6 @@
     properties:
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -2372,6 +2429,9 @@
         type: string
       quotation_id:
         type: integer
+      sendTime:
+        description: 鍙戣揣鏃堕棿
+        type: string
       status_id:
         type: integer
     type: object
@@ -2462,6 +2522,8 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
+      codeStandID:
+        type: string
       courierCompanyId:
         description: 鐗╂祦鍏徃
         type: integer
@@ -2480,6 +2542,9 @@
       invoiceTypeId:
         description: 鍙戠エ绫诲瀷id
         type: integer
+      number:
+        description: 鍙戠エ缂栧彿
+        type: string
       principalId:
         description: 閿�鍞礋璐d汉id
         type: integer
@@ -2534,8 +2599,6 @@
     properties:
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -2614,8 +2677,6 @@
     properties:
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -2769,8 +2830,6 @@
         type: integer
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -2806,6 +2865,10 @@
         type: integer
       process:
         type: string
+      products:
+        items:
+          $ref: '#/definitions/model.Product'
+        type: array
       projected_amount:
         type: number
       province_id:
@@ -2853,13 +2916,14 @@
         type: string
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
       conditions:
         type: string
+      deliverType:
+        description: 浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣
+        type: integer
       deliveryDate:
         type: string
       logisticCompany:
@@ -2878,6 +2942,8 @@
         items:
           $ref: '#/definitions/model.Product'
         type: array
+      quotationId:
+        type: integer
       remark:
         type: string
       saleChanceId:
@@ -2886,6 +2952,10 @@
         type: integer
       signTime:
         type: string
+      source:
+        type: string
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
       wechatOrderStatusId:
         type: integer
     type: object
@@ -2893,8 +2963,6 @@
     properties:
       city_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -2976,8 +3044,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -3053,8 +3119,6 @@
       client_type_id:
         description: 瀹㈡埛绫诲瀷ID
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -3123,8 +3187,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -3170,8 +3232,6 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -3226,7 +3286,7 @@
       serviceTypeId:
         description: 鏈嶅姟鏂瑰紡id
         type: integer
-      severity:
+      severityId:
         description: 涓ラ噸绋嬪害id
         type: integer
       solution:
@@ -3281,8 +3341,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -3538,8 +3596,6 @@
         type: integer
       client_status_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         type: string
       contact_id:
@@ -3741,7 +3797,7 @@
       keywordType:
         $ref: '#/definitions/constvar.SalesDetailsKeywordType'
       number:
-        description: 閿�鍞瓙鍗曞彿
+        description: 閿�鍞槑缁嗗崟鍙�
         type: string
       page:
         description: 椤电爜
@@ -3958,13 +4014,14 @@
         type: string
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
       conditions:
         type: string
+      deliverType:
+        description: 浜や粯绫诲瀷:1.涓�娆″彂璐�,2.澶氭鍙戣揣
+        type: integer
       deliveryDate:
         type: string
       logisticCompany:
@@ -3983,6 +4040,8 @@
         items:
           $ref: '#/definitions/model.Product'
         type: array
+      quotationId:
+        type: integer
       remark:
         type: string
       saleChanceId:
@@ -3991,6 +4050,10 @@
         type: integer
       signTime:
         type: string
+      source:
+        type: string
+      status:
+        $ref: '#/definitions/constvar.SalesDetailsStatus'
       wechatOrderStatusId:
         type: integer
     type: object
@@ -4001,8 +4064,6 @@
         type: integer
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -4038,8 +4099,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -4175,8 +4234,6 @@
       client_type_id:
         description: 瀹㈡埛绫诲瀷ID
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -4379,8 +4436,6 @@
     properties:
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -4397,6 +4452,9 @@
         type: string
       quotation_id:
         type: integer
+      sendTime:
+        description: 鍙戣揣鏃堕棿
+        type: string
       status_id:
         type: integer
     type: object
@@ -4550,6 +4608,8 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
+      codeStandID:
+        type: string
       courierCompanyId:
         description: 鐗╂祦鍏徃
         type: integer
@@ -4570,6 +4630,9 @@
       invoiceTypeId:
         description: 鍙戠エ绫诲瀷id
         type: integer
+      number:
+        description: 鍙戠エ缂栧彿
+        type: string
       principalId:
         description: 閿�鍞礋璐d汉id
         type: integer
@@ -4649,8 +4712,6 @@
     properties:
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -4770,8 +4831,6 @@
     properties:
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5008,8 +5067,6 @@
         type: integer
       client_id:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5047,6 +5104,10 @@
         type: integer
       process:
         type: string
+      products:
+        items:
+          $ref: '#/definitions/model.Product'
+        type: array
       projected_amount:
         type: number
       province_id:
@@ -5119,12 +5180,17 @@
       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:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5293,8 +5359,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5384,8 +5448,6 @@
       client_type_id:
         description: 瀹㈡埛绫诲瀷ID
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5454,8 +5516,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5503,8 +5563,6 @@
       clientId:
         description: 瀹㈡埛id
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -5561,7 +5619,7 @@
       serviceTypeId:
         description: 鏈嶅姟鏂瑰紡id
         type: integer
-      severity:
+      severityId:
         description: 涓ラ噸绋嬪害id
         type: integer
       solution:
@@ -5640,8 +5698,6 @@
     properties:
       clientId:
         type: integer
-      codeRule:
-        $ref: '#/definitions/code.CodeStandard'
       codeStandID:
         description: 缂栫爜id
         type: string
@@ -7013,6 +7069,25 @@
       summary: 鏇存柊瀹㈡埛绫诲瀷
       tags:
       - ClientType
+  /api/code/getAutoCode:
+    post:
+      parameters:
+      - description: 鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/code.CodeStandard'
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            $ref: '#/definitions/response.ListResponse'
+      summary: 鑾峰彇鑷姩缂栫爜
+      tags:
+      - 缂栫爜
   /api/code/getCodeList:
     get:
       parameters:
@@ -9282,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:
@@ -10518,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:
@@ -10553,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:
@@ -10598,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