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/docs.go | 416 ++++++++++++++++++++++++++++++++++++++++++++++------------
1 files changed, 328 insertions(+), 88 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index bbd6e7c..294962d 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1199,6 +1199,36 @@
}
}
},
+ "/api/code/getAutoCode": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "缂栫爜"
+ ],
+ "summary": "鑾峰彇鑷姩缂栫爜",
+ "parameters": [
+ {
+ "description": "鍙傛暟",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/code.CodeStandard"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/response.ListResponse"
+ }
+ }
+ }
+ }
+ },
"/api/code/getCodeList": {
"get": {
"produces": [
@@ -4887,6 +4917,49 @@
}
}
},
+ "/api/product/getProductOrderInfo/{number}": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "浜у搧"
+ ],
+ "summary": "鑾峰彇浜у搧璁㈠崟淇℃伅",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "鏄庣粏缂栫爜",
+ "name": "number",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/contextx.Response"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/product.WorkOrderInfo"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
"/api/product/info": {
"get": {
"produces": [
@@ -6889,6 +6962,36 @@
}
}
},
+ "/api/salesDetails/createOperation": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "SalesDetails"
+ ],
+ "summary": "鍒涘缓浜у搧鍑哄簱淇℃伅",
+ "parameters": [
+ {
+ "description": "鏌ヨ鍙傛暟",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.SalesDetails"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/response.ListResponse"
+ }
+ }
+ }
+ }
+ },
"/api/salesDetails/delete": {
"delete": {
"produces": [
@@ -6942,6 +7045,34 @@
"description": "OK",
"schema": {
"$ref": "#/definitions/contextx.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api/salesDetails/getProductInventoryInfo/{number}": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "SalesDetails"
+ ],
+ "summary": "鑾峰彇浜у搧搴撳瓨淇℃伅",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "鏄庣粏缂栫爜",
+ "name": "number",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/response.ListResponse"
}
}
}
@@ -7006,6 +7137,36 @@
"required": true,
"schema": {
"$ref": "#/definitions/request.UpdateSalesDetails"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "OK",
+ "schema": {
+ "$ref": "#/definitions/contextx.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api/salesDetails/updateStatus": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "SalesDetails"
+ ],
+ "summary": "鏇存柊閿�鍞槑缁嗙姸鎬�",
+ "parameters": [
+ {
+ "description": "鏌ヨ鍙傛暟",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.UpdateSalesDetailsStatus"
}
}
],
@@ -10331,6 +10492,27 @@
"SalesDetailsKeywordTypeProductName"
]
},
+ "constvar.SalesDetailsStatus": {
+ "type": "integer",
+ "enum": [
+ 1,
+ 2,
+ 3,
+ 4
+ ],
+ "x-enum-comments": {
+ "OverCLose": "宸插叧闂�",
+ "OverOutbound": "鍑哄簱瀹屾垚",
+ "WaitConfirmed": "寰呯‘璁�",
+ "WaitOutbound": "寰呭嚭搴�"
+ },
+ "x-enum-varnames": [
+ "WaitConfirmed",
+ "WaitOutbound",
+ "OverOutbound",
+ "OverCLose"
+ ]
+ },
"constvar.SalesRefundKeywordType": {
"type": "string",
"enum": [
@@ -11120,6 +11302,9 @@
"quotationId": {
"type": "integer"
},
+ "sendTime": {
+ "type": "string"
+ },
"serviceContractStatus": {
"$ref": "#/definitions/model.ServiceContractStatus"
},
@@ -11321,6 +11506,9 @@
"description": "瀹㈡埛id",
"type": "integer"
},
+ "codeStandID": {
+ "type": "string"
+ },
"courierCompany": {
"$ref": "#/definitions/model.CourierCompany"
},
@@ -11356,6 +11544,9 @@
"invoiceTypeId": {
"description": "鍙戠エ绫诲瀷id",
"type": "integer"
+ },
+ "number": {
+ "type": "string"
},
"principalId": {
"description": "閿�鍞礋璐d汉id",
@@ -11997,6 +12188,12 @@
"process": {
"type": "string"
},
+ "products": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Product"
+ }
+ },
"projected_amount": {
"type": "number"
},
@@ -12042,8 +12239,16 @@
"solutions": {
"type": "string"
},
+ "status": {
+ "description": "鐘舵��",
+ "allOf": [
+ {
+ "$ref": "#/definitions/model.Status"
+ }
+ ]
+ },
"status_id": {
- "$ref": "#/definitions/model.Status"
+ "type": "integer"
},
"threats": {
"type": "string"
@@ -12128,6 +12333,9 @@
"creatorName": {
"type": "string"
},
+ "deliverType": {
+ "type": "integer"
+ },
"deliveryDate": {
"type": "string"
},
@@ -12158,6 +12366,12 @@
"$ref": "#/definitions/model.Product"
}
},
+ "quotation": {
+ "$ref": "#/definitions/model.Quotation"
+ },
+ "quotationId": {
+ "type": "integer"
+ },
"remark": {
"type": "string"
},
@@ -12172,6 +12386,12 @@
},
"signTime": {
"type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/definitions/constvar.SalesDetailsStatus"
},
"updateTime": {
"type": "string"
@@ -12275,9 +12495,6 @@
}
]
},
- "Source": {
- "$ref": "#/definitions/model.SalesReturn"
- },
"amountTotal": {
"description": "浠风◣鍚堣",
"type": "number"
@@ -12341,6 +12558,9 @@
"refundTypeId": {
"description": "閫�娆炬柟寮廔D",
"type": "integer"
+ },
+ "salesReturn": {
+ "$ref": "#/definitions/model.SalesReturn"
},
"sourceId": {
"description": "婧愬崟id",
@@ -12960,6 +13180,10 @@
"severity": {
"$ref": "#/definitions/model.Severity"
},
+ "severityId": {
+ "description": "涓ラ噸绋嬪害id",
+ "type": "integer"
+ },
"solution": {
"description": "瑙e喅鏂规硶",
"type": "string"
@@ -13216,6 +13440,32 @@
}
}
},
+ "product.WorkOrderInfo": {
+ "type": "object",
+ "properties": {
+ "EndTime": {
+ "type": "string"
+ },
+ "OrderId": {
+ "type": "string"
+ },
+ "OrderStatus": {
+ "type": "string"
+ },
+ "ProductName": {
+ "type": "string"
+ },
+ "StartTime": {
+ "type": "string"
+ },
+ "WorkOrderId": {
+ "type": "string"
+ },
+ "WorkOrderStatus": {
+ "type": "string"
+ }
+ }
+ },
"request.AddAccountId": {
"type": "object",
"required": [
@@ -13289,9 +13539,6 @@
"client_type_id": {
"description": "瀹㈡埛绫诲瀷ID",
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -13497,9 +13744,6 @@
"client_id": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -13519,6 +13763,10 @@
},
"quotation_id": {
"type": "integer"
+ },
+ "sendTime": {
+ "description": "鍙戣揣鏃堕棿",
+ "type": "string"
},
"status_id": {
"type": "integer"
@@ -13660,6 +13908,9 @@
"description": "瀹㈡埛id",
"type": "integer"
},
+ "codeStandID": {
+ "type": "string"
+ },
"courierCompanyId": {
"description": "鐗╂祦鍏徃",
"type": "integer"
@@ -13683,6 +13934,10 @@
"invoiceTypeId": {
"description": "鍙戠エ绫诲瀷id",
"type": "integer"
+ },
+ "number": {
+ "description": "鍙戠エ缂栧彿",
+ "type": "string"
},
"principalId": {
"description": "閿�鍞礋璐d汉id",
@@ -13766,9 +14021,6 @@
"properties": {
"client_id": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -13889,9 +14141,6 @@
"properties": {
"client_id": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -14127,9 +14376,6 @@
"client_id": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -14181,6 +14427,12 @@
},
"process": {
"type": "string"
+ },
+ "products": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Product"
+ }
},
"projected_amount": {
"type": "number"
@@ -14254,15 +14506,16 @@
"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"
@@ -14291,6 +14544,9 @@
"$ref": "#/definitions/model.Product"
}
},
+ "quotationId": {
+ "type": "integer"
+ },
"remark": {
"type": "string"
},
@@ -14303,6 +14559,12 @@
"signTime": {
"type": "string"
},
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/definitions/constvar.SalesDetailsStatus"
+ },
"wechatOrderStatusId": {
"type": "integer"
}
@@ -14313,9 +14575,6 @@
"properties": {
"city_id": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -14440,9 +14699,6 @@
"clientId": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -14551,9 +14807,6 @@
"description": "瀹㈡埛绫诲瀷ID",
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -14648,9 +14901,6 @@
"clientId": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -14715,9 +14965,6 @@
"clientId": {
"description": "瀹㈡埛id",
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -14791,7 +15038,7 @@
"description": "鏈嶅姟鏂瑰紡id",
"type": "integer"
},
- "severity": {
+ "severityId": {
"description": "涓ラ噸绋嬪害id",
"type": "integer"
},
@@ -14873,9 +15120,6 @@
"properties": {
"clientId": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -15254,9 +15498,6 @@
"client_status_id": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"type": "string"
},
@@ -15520,7 +15761,7 @@
"$ref": "#/definitions/constvar.SalesDetailsKeywordType"
},
"number": {
- "description": "閿�鍞瓙鍗曞彿",
+ "description": "閿�鍞槑缁嗗崟鍙�",
"type": "string"
},
"page": {
@@ -15834,15 +16075,16 @@
"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"
@@ -15871,6 +16113,9 @@
"$ref": "#/definitions/model.Product"
}
},
+ "quotationId": {
+ "type": "integer"
+ },
"remark": {
"type": "string"
},
@@ -15882,6 +16127,12 @@
},
"signTime": {
"type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "status": {
+ "$ref": "#/definitions/constvar.SalesDetailsStatus"
},
"wechatOrderStatusId": {
"type": "integer"
@@ -15901,9 +16152,6 @@
},
"clientId": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -15953,9 +16201,6 @@
"properties": {
"clientId": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -16155,9 +16400,6 @@
"client_type_id": {
"description": "瀹㈡埛绫诲瀷ID",
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -16448,9 +16690,6 @@
"client_id": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -16473,6 +16712,10 @@
},
"quotation_id": {
"type": "integer"
+ },
+ "sendTime": {
+ "description": "鍙戣揣鏃堕棿",
+ "type": "string"
},
"status_id": {
"type": "integer"
@@ -16711,6 +16954,9 @@
"description": "瀹㈡埛id",
"type": "integer"
},
+ "codeStandID": {
+ "type": "string"
+ },
"courierCompanyId": {
"description": "鐗╂祦鍏徃",
"type": "integer"
@@ -16737,6 +16983,10 @@
"invoiceTypeId": {
"description": "鍙戠エ绫诲瀷id",
"type": "integer"
+ },
+ "number": {
+ "description": "鍙戠エ缂栧彿",
+ "type": "string"
},
"principalId": {
"description": "閿�鍞礋璐d汉id",
@@ -16852,9 +17102,6 @@
"properties": {
"client_id": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -17036,9 +17283,6 @@
"properties": {
"client_id": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -17401,9 +17645,6 @@
"client_id": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -17458,6 +17699,12 @@
},
"process": {
"type": "string"
+ },
+ "products": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/model.Product"
+ }
},
"projected_amount": {
"type": "number"
@@ -17566,14 +17813,22 @@
}
}
},
+ "request.UpdateSalesDetailsStatus": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "status": {
+ "$ref": "#/definitions/constvar.SalesDetailsStatus"
+ }
+ }
+ },
"request.UpdateSalesLeads": {
"type": "object",
"properties": {
"city_id": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -17828,9 +18083,6 @@
"clientId": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -17960,9 +18212,6 @@
"description": "瀹㈡埛绫诲瀷ID",
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -18058,9 +18307,6 @@
"clientId": {
"type": "integer"
},
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
- },
"codeStandID": {
"description": "缂栫爜id",
"type": "string"
@@ -18128,9 +18374,6 @@
"clientId": {
"description": "瀹㈡埛id",
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
@@ -18207,7 +18450,7 @@
"description": "鏈嶅姟鏂瑰紡id",
"type": "integer"
},
- "severity": {
+ "severityId": {
"description": "涓ラ噸绋嬪害id",
"type": "integer"
},
@@ -18325,9 +18568,6 @@
"properties": {
"clientId": {
"type": "integer"
- },
- "codeRule": {
- "$ref": "#/definitions/code.CodeStandard"
},
"codeStandID": {
"description": "缂栫爜id",
--
Gitblit v1.8.0