From d63c4c08a7571f10433be03f06ed9f4f0323eea9 Mon Sep 17 00:00:00 2001
From: dsmzx <dsmzx@123.com>
Date: 星期二, 25 六月 2024 09:39:03 +0800
Subject: [PATCH] 出库/入库 打印修改查询动态属性方式
---
docs/docs.go | 569 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 569 insertions(+), 0 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 24e7450..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": [
@@ -614,6 +859,58 @@
"type": "array",
"items": {
"$ref": "#/definitions/response.LocationForms"
+ }
+ }
+ }
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/forms/downloadMonthStats": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "鎶ヨ〃"
+ ],
+ "summary": "涓嬭浇鏈堝害缁熻搴撳瓨鎶ヨ〃",
+ "parameters": [
+ {
+ "description": "鏌ヨ鍙傛暟",
+ "name": "object",
+ "in": "body",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/request.GetMonthStats"
+ }
+ },
+ {
+ "type": "string",
+ "description": "token",
+ "name": "Authorization",
+ "in": "header",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "allOf": [
+ {
+ "$ref": "#/definitions/util.ResponseList"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "data": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.MonthStats"
}
}
}
@@ -1809,6 +2106,7 @@
"parameters": [
{
"type": "string",
+ "description": "鍏抽敭瀛楁悳绱�",
"name": "keyword",
"in": "query"
},
@@ -1822,6 +2120,12 @@
"type": "integer",
"description": "姣忛〉澶у皬",
"name": "pageSize",
+ "in": "query"
+ },
+ {
+ "type": "integer",
+ "description": "浠撳簱id",
+ "name": "warehouseId",
"in": "query"
}
],
@@ -2359,6 +2663,25 @@
}
}
]
+ }
+ }
+ }
+ }
+ },
+ "/api-wms/v1/product/inputProduct": {
+ "post": {
+ "produces": [
+ "application/xlsx"
+ ],
+ "tags": [
+ "鐗╂枡绠$悊"
+ ],
+ "summary": "瀵煎叆鐗╂枡",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
}
}
}
@@ -3393,6 +3716,18 @@
"ReservationNever"
]
},
+ "gorm.DeletedAt": {
+ "type": "object",
+ "properties": {
+ "time": {
+ "type": "string"
+ },
+ "valid": {
+ "description": "Valid is true if Time is not NULL",
+ "type": "boolean"
+ }
+ }
+ },
"inventory_order.WorkerInfo": {
"type": "object",
"properties": {
@@ -3421,6 +3756,46 @@
},
"id": {
"type": "integer"
+ }
+ }
+ },
+ "models.Attribute": {
+ "type": "object",
+ "properties": {
+ "createdAt": {
+ "type": "string"
+ },
+ "dataType": {
+ "description": "鍊肩被鍨嬶紙1瀛楃涓� 2 int 3 涓嬫媺妗� 锛�",
+ "type": "integer"
+ },
+ "deletedAt": {
+ "$ref": "#/definitions/gorm.DeletedAt"
+ },
+ "entityType": {
+ "description": "缁欒皝鐢ㄧ殑 1 鐗╂枡锛堜骇鍝侊級",
+ "type": "integer"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "description": "灞炴�у悕绉�",
+ "type": "string"
+ },
+ "selectValues": {
+ "description": "dateType=3鏃剁敤",
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "updatedAt": {
+ "type": "string"
+ },
+ "value": {
+ "description": "浠嶢ttributeValue鍙栧埌鐨剉alue",
+ "type": "string"
}
}
},
@@ -3662,6 +4037,13 @@
"$ref": "#/definitions/models.Attachment"
}
},
+ "attributes": {
+ "description": "鍔ㄦ�佸睘鎬�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.Attribute"
+ }
+ },
"autoIncr": {
"type": "integer"
},
@@ -3708,6 +4090,10 @@
"cost": {
"description": "鎴愭湰",
"type": "number"
+ },
+ "createBy": {
+ "description": "鍒涘缓浜�",
+ "type": "string"
},
"currencyName": {
"description": "甯佺鍚嶇О",
@@ -4097,6 +4483,9 @@
}
]
},
+ "checkedBy": {
+ "type": "string"
+ },
"comment": {
"type": "string"
},
@@ -4110,6 +4499,9 @@
"type": "integer"
},
"contacterName": {
+ "type": "string"
+ },
+ "createBy": {
"type": "string"
},
"createTime": {
@@ -4129,6 +4521,10 @@
},
"id": {
"type": "integer"
+ },
+ "isInternalOutput": {
+ "description": "鏄惁璋冩嫧浜х敓鐨勫嚭搴�",
+ "type": "boolean"
},
"location": {
"description": "婧愪綅缃�",
@@ -4247,6 +4643,10 @@
"auxiliaryUnit": {
"type": "string"
},
+ "cost": {
+ "description": "鎴愭湰鍗曚环",
+ "type": "number"
+ },
"createTime": {
"type": "string"
},
@@ -4265,6 +4665,10 @@
"id": {
"type": "integer"
},
+ "isInternalOutput": {
+ "description": "鏄惁璋冩嫧浜х敓鐨勫嚭搴�",
+ "type": "boolean"
+ },
"operationId": {
"description": "鎿嶄綔id",
"type": "integer"
@@ -4280,6 +4684,13 @@
"productId": {
"description": "浜у搧id",
"type": "string"
+ },
+ "remark": {
+ "type": "string"
+ },
+ "salePrice": {
+ "description": "閿�鍞崟浠�",
+ "type": "number"
},
"toLocation": {
"description": "鐩爣浣嶇疆",
@@ -4439,6 +4850,7 @@
"type": "number"
},
"floating": {
+ "description": "鏄惁娴姩鍒╃巼",
"type": "boolean"
},
"unit": {
@@ -4520,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"
}
}
@@ -4853,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": {
@@ -5124,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"
}
}
@@ -5153,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"
@@ -5160,6 +5644,13 @@
"productId": {
"description": "浜у搧id",
"type": "string"
+ },
+ "remark": {
+ "type": "string"
+ },
+ "salePrice": {
+ "description": "閿�鍞崟浠�",
+ "type": "number"
},
"toLocationId": {
"description": "鐩爣浣嶇疆id",
@@ -5279,6 +5770,49 @@
"type": "boolean"
},
"name": {
+ "type": "string"
+ }
+ }
+ },
+ "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"
}
}
@@ -5622,9 +6156,23 @@
"description": "鍦ㄥ簱鏁伴噺",
"type": "number"
},
+ "amountMoreUnits": {
+ "description": "鍦ㄥ簱鏁伴噺澶氬崟浣�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitItems"
+ }
+ },
"availableNumber": {
"description": "鍙敤搴撳瓨",
"type": "number"
+ },
+ "availableNumberMoreUnits": {
+ "description": "鍙敤搴撳瓨澶氬崟浣�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitItems"
+ }
},
"cost": {
"description": "鎴愭湰",
@@ -5634,9 +6182,23 @@
"description": "鍏ュ簱",
"type": "number"
},
+ "inMoreUnits": {
+ "description": "鍏ュ簱澶氬崟浣�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitItems"
+ }
+ },
"out": {
"description": "鍑哄簱",
"type": "number"
+ },
+ "outMoreUnits": {
+ "description": "鍑哄簱澶氬崟浣�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitItems"
+ }
},
"produceId": {
"description": "浜у搧id",
@@ -5667,6 +6229,13 @@
"description": "鏁伴噺",
"type": "number"
},
+ "amountMoreUnits": {
+ "description": "鍦ㄥ簱鏁伴噺澶氬崟浣�",
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/models.UnitItems"
+ }
+ },
"locationId": {
"description": "浣嶇疆id",
"type": "integer"
--
Gitblit v1.8.0