From 2ee651f6d5612cdec35f6e5f8d9d5ff7c66b7ec4 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 19 四月 2024 16:57:09 +0800 Subject: [PATCH] 更改接口前置 --- model/purchase/response/purchase.go | 32 +++++++++++++++++++++++++++++++- 1 files changed, 31 insertions(+), 1 deletions(-) diff --git a/model/purchase/response/purchase.go b/model/purchase/response/purchase.go index 043729b..ec3a5a8 100644 --- a/model/purchase/response/purchase.go +++ b/model/purchase/response/purchase.go @@ -13,7 +13,7 @@ type PurchaseProducts struct { PurchaseId int `json:"purchaseId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:閲囪喘绫诲瀷id"` // 閲囪喘id - ProductId int `json:"productId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:渚涘簲鍟唅d"` // 浜у搧id + ProductId int `json:"productId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:浜у搧id"` // 浜у搧id Amount decimal.Decimal `json:"amount" form:"amount" gorm:"type:decimal(12,2);not null;default 0;comment:閲囪喘鏁伴噺"` // 閲囪喘鏁伴噺 Price decimal.Decimal `json:"price" form:"price" gorm:"type:decimal(12,2);not null;default 0.00;comment:閲囪喘鍗曚环"` // 閲囪喘鍗曚环 Total decimal.Decimal `json:"total" form:"total" gorm:"type:decimal(12,2);not null;default 0.00;comment:閲囪喘鎬讳环"` // 閲囪喘鎬讳环 @@ -26,6 +26,7 @@ Specifications string `json:"specifications" form:"specifications" gorm:"column:specifications;comment:瑙勬牸;size:255;"` ModelNumber string `json:"modelNumber" form:"modelNumber" gorm:"column:model_number;comment:鍨嬪彿;size:255;"` ProductType string `json:"productType" form:"productType" gorm:"column:product_type;comment:浜у搧绫诲埆;size:255;"` + Remark string `json:"remark" form:"remark" gorm:"type:varchar(1000);not null; default '';comment:鎻忚堪"` //鎻忚堪 } type QualityInspectList struct { @@ -48,3 +49,32 @@ Quantity decimal.Decimal `json:"quantity" form:"quantity" gorm:"type:decimal(12,4);not null;comment:閲囪喘鏁伴噺"` // 閲囪喘鏁伴噺 InspectStatus string `json:"inspectStatus" form:"inspectStatus"` //妫�娴嬬粨鏋� } + +type OperationInfo struct { + ProductInfos []ProductInfo `json:"productInfos"` + InWarehouseInfos []InWarehouseInfo `json:"inWarehouseInfos"` +} + +type ProductInfo struct { + Number string `json:"number"` //浜у搧缂栫爜 + Name string `json:"name"` //浜у搧鍚嶇О + Specifications string `json:"specifications"` //瑙勬牸 + ModelNumber string `json:"modelNumber"` //鍨嬪彿 + Amount decimal.Decimal `json:"amount"` //閲囪喘鏁� + SendAmount int64 `json:"sendAmount"` //鏀惰揣鏁� + OverAmount int64 `json:"overAmount"` //鍏ュ簱鏁� + Unit string `json:"unit"` //鍗曚綅 + PurchasePrice decimal.Decimal `json:"purchasePrice"` //鍗曚环 + Total decimal.Decimal `json:"total"` //鎬讳环 +} + +type InWarehouseInfo struct { + Number string `json:"number"` //浜у搧缂栫爜 + Name string `json:"name"` //浜у搧鍚嶇О + OperationNumber string `json:"operationNumber"` //鍏ュ簱鍗曞彿 + WarehouseName string `json:"warehouseName"` //浠撳簱鍚� + OverTime string `json:"overTime"` //鍏ュ簱鏃堕棿 + Status int64 `json:"status"` + Principal string `json:"principal"` //璐熻矗浜� + OverAmount int64 `json:"overAmount"` //鍏ュ簱鏁� +} -- Gitblit v1.8.0