From c965651da313fa6b41d0f07d7910824c57582cae Mon Sep 17 00:00:00 2001
From: lishihai <dslsh@dscom>
Date: 星期三, 26 六月 2024 11:55:18 +0800
Subject: [PATCH] 库存盘点应用按钮记录创建人,创建时间,应用时间、应用人员等信息;根据条形码查询产品详情;新增编辑产品增加条形码字段->添加条形码被使用验证
---
docs/docs.go | 414 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 409 insertions(+), 5 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 44264e2..a30715f 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -166,6 +166,251 @@
}
}
},
+ "/api-wms/v1/attribute/attribute": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "娣诲姞灞炴�у�煎拰瀵硅薄",
+ "parameters": [
+ {
+ "description": "灞炴�у�煎拰瀵硅薄淇℃伅",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.AttributeList"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attribute/delete/{id}": {
+ "delete": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "灞炴��"
+ ],
+ "summary": "鍒犻櫎灞炴��",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "灞炴�d",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attribute/primary/{id}": {
+ "get": {
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "鏌ヨ灞炴�у�煎拰瀵硅薄 閫氳繃涓婚敭ID鏌ヨ",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attribute/updateAttribute/{id}": {
+ "put": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "灞炴��"
+ ],
+ "summary": "缂栬緫灞炴��",
+ "parameters": [
+ {
+ "description": "灞炴�т俊鎭�",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.UpdateAttribute"
+ }
+ },
+ {
+ "type": "string",
+ "description": "灞炴�d",
+ "name": "id",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attributeValue/add": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "娣诲姞灞炴�у�煎拰瀵硅薄",
+ "parameters": [
+ {
+ "description": "灞炴�у�煎拰瀵硅薄淇℃伅",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.AddAttributeValue"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attributeValue/delete/{id}": {
+ "delete": {
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "鍒犻櫎灞炴�у�煎拰瀵硅薄",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "id",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attributeValue/list": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "鏌ヨ灞炴�у�煎拰瀵硅薄 鍒嗛〉鏉′欢绛涢�塚alue like '%v%' 妯$硦鏌ヨ",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attributeValue/primary/{id}": {
+ "get": {
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "鏌ヨ灞炴�у�煎拰瀵硅薄 閫氳繃涓婚敭ID鏌ヨ",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/attributeValue/update": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "灞炴�у�煎拰瀵硅薄"
+ ],
+ "summary": "鏇存柊灞炴�у�煎拰瀵硅薄",
+ "parameters": [
+ {
+ "description": "灞炴�у�煎拰瀵硅薄淇℃伅",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.UpdateAttributeValue"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/code/getAutoCode": {
"post": {
"produces": [
@@ -1861,6 +2106,7 @@
"parameters": [
{
"type": "string",
+ "description": "鍏抽敭瀛楁悳绱�",
"name": "keyword",
"in": "query"
},
@@ -2417,6 +2663,25 @@
}
}
]
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/product/inputProduct": {
+ "post": {
+ "produces": [
+ "application/xlsx"
+ ],
+ "tags": [
+ "鐗╂枡绠$悊"
+ ],
+ "summary": "瀵煎叆鐗╂枡",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
}
}
}
@@ -3826,6 +4091,10 @@
"description": "鎴愭湰",
"type": "number"
},
+ "createBy": {
+ "description": "鍒涘缓浜�",
+ "type": "string"
+ },
"currencyName": {
"description": "甯佺鍚嶇О",
"type": "string"
@@ -4214,9 +4483,6 @@
}
]
},
- "checkedAt": {
- "type": "string"
- },
"checkedBy": {
"type": "string"
},
@@ -4255,6 +4521,10 @@
},
"id": {
"type": "integer"
+ },
+ "isInternalOutput": {
+ "description": "鏄惁璋冩嫧浜х敓鐨勫嚭搴�",
+ "type": "boolean"
},
"location": {
"description": "婧愪綅缃�",
@@ -4373,6 +4643,10 @@
"auxiliaryUnit": {
"type": "string"
},
+ "cost": {
+ "description": "鎴愭湰鍗曚环",
+ "type": "number"
+ },
"createTime": {
"type": "string"
},
@@ -4391,8 +4665,9 @@
"id": {
"type": "integer"
},
- "note": {
- "type": "string"
+ "isInternalOutput": {
+ "description": "鏄惁璋冩嫧浜х敓鐨勫嚭搴�",
+ "type": "boolean"
},
"operationId": {
"description": "鎿嶄綔id",
@@ -4409,6 +4684,13 @@
"productId": {
"description": "浜у搧id",
"type": "string"
+ },
+ "remark": {
+ "type": "string"
+ },
+ "salePrice": {
+ "description": "閿�鍞崟浠�",
+ "type": "number"
},
"toLocation": {
"description": "鐩爣浣嶇疆",
@@ -4650,6 +4932,43 @@
},
"warehouseLocation": {
"description": "搴撳瓨浣嶇疆",
+ "type": "string"
+ }
+ }
+ },
+ "request.AddAttribute": {
+ "type": "object",
+ "properties": {
+ "dataType": {
+ "description": "鍊肩被鍨嬶紙1瀛楃涓� 2 int 3 涓嬫媺妗� 锛�",
+ "type": "integer"
+ },
+ "entityType": {
+ "description": "缁欒皝鐢ㄧ殑 1 鐗╂枡锛堜骇鍝侊級",
+ "type": "integer"
+ },
+ "name": {
+ "description": "灞炴�у悕绉�",
+ "type": "string"
+ },
+ "selectValues": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "request.AddAttributeValue": {
+ "type": "object",
+ "properties": {
+ "attributeId": {
+ "type": "integer"
+ },
+ "entityId": {
+ "type": "string"
+ },
+ "value": {
"type": "string"
}
}
@@ -4983,6 +5302,25 @@
}
}
},
+ "request.AttributeList": {
+ "type": "object",
+ "properties": {
+ "entityType": {
+ "type": "integer"
+ },
+ "keyword": {
+ "type": "string"
+ },
+ "page": {
+ "description": "椤电爜",
+ "type": "integer"
+ },
+ "pageSize": {
+ "description": "姣忛〉澶у皬",
+ "type": "integer"
+ }
+ }
+ },
"request.DoMonthStats": {
"type": "object",
"properties": {
@@ -5254,12 +5592,24 @@
"condition": {
"type": "string"
},
+ "keyword": {
+ "description": "鍏抽敭瀛楁悳绱�",
+ "type": "string"
+ },
+ "locationId": {
+ "description": "浣嶇疆ID",
+ "type": "integer"
+ },
"page": {
"description": "椤电爜",
"type": "integer"
},
"pageSize": {
"description": "姣忛〉澶у皬",
+ "type": "integer"
+ },
+ "warehouseId": {
+ "description": "浠撳簱ID",
"type": "integer"
}
}
@@ -5283,6 +5633,10 @@
"description": "杈呭姪鍗曚綅",
"type": "string"
},
+ "cost": {
+ "description": "鎴愭湰鍗曚环",
+ "type": "number"
+ },
"fromLocationId": {
"description": "Unit string ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:鍗曚綅\"` + "`" + ` //鍗曚綅\nProduct models.Material ` + "`" + `json:\"product\" gorm:\"foreignKey:ProductId;references:ID\"` + "`" + `",
"type": "integer"
@@ -5290,6 +5644,13 @@
"productId": {
"description": "浜у搧id",
"type": "string"
+ },
+ "remark": {
+ "type": "string"
+ },
+ "salePrice": {
+ "description": "閿�鍞崟浠�",
+ "type": "number"
},
"toLocationId": {
"description": "鐩爣浣嶇疆id",
@@ -5413,6 +5774,49 @@
}
}
},
+ "request.UpdateAttribute": {
+ "type": "object",
+ "properties": {
+ "dataType": {
+ "description": "鍊肩被鍨嬶紙1瀛楃涓� 2 int 3 涓嬫媺妗� 锛�",
+ "type": "integer"
+ },
+ "entityType": {
+ "description": "缁欒皝鐢ㄧ殑 1 鐗╂枡锛堜骇鍝侊級",
+ "type": "integer"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "description": "灞炴�у悕绉�",
+ "type": "string"
+ },
+ "selectValues": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "request.UpdateAttributeValue": {
+ "type": "object",
+ "properties": {
+ "attributeId": {
+ "type": "integer"
+ },
+ "entityId": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "value": {
+ "type": "string"
+ }
+ }
+ },
"request.UpdateCompany": {
"type": "object",
"properties": {
--
Gitblit v1.8.0