From 69f0410081da54e6cea8a04a07fd0119a8edc623 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 30 三月 2024 11:38:42 +0800
Subject: [PATCH] 采购单修改

---
 model/purchase/response/purchase.go |   41 ++++++++++++++++++++++++++---------------
 1 files changed, 26 insertions(+), 15 deletions(-)

diff --git a/model/purchase/response/purchase.go b/model/purchase/response/purchase.go
index a66dcc4..ec3a5a8 100644
--- a/model/purchase/response/purchase.go
+++ b/model/purchase/response/purchase.go
@@ -51,19 +51,30 @@
 }
 
 type OperationInfo 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"`           //鎬讳环
-	OperationNumber string          `json:"operationNumber"` //鍏ュ簱鍗曞彿
-	WarehouseName   string          `json:"warehouseName"`   //浠撳簱鍚�
-	OverTime        string          `json:"overTime"`        //鍏ュ簱鏃堕棿
-	Status          int64           `json:"status"`
-	Principal       string          `json:"principal"` //璐熻矗浜�
+	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