From 1e65185f0ecb8d4f8f1fd9ea822137e0c841a47f Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 30 三月 2024 17:30:38 +0800
Subject: [PATCH] crm获取发货数量
---
model/response/salesDetails.go | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 51 insertions(+), 3 deletions(-)
diff --git a/model/response/salesDetails.go b/model/response/salesDetails.go
index ec7d90f..f47b2b3 100644
--- a/model/response/salesDetails.go
+++ b/model/response/salesDetails.go
@@ -1,6 +1,9 @@
package response
-import "github.com/shopspring/decimal"
+import (
+ "aps_crm/model"
+ "github.com/shopspring/decimal"
+)
type Info struct {
MakeInfo []WorkOrderInfo `json:"makeInfo"`
@@ -62,10 +65,54 @@
SalePrice string `json:"salePrice"` //閿�鍞崟浠�
Valorem string `json:"valorem"` //浠风◣鍚堣
Warehouse string `json:"warehouse"`
- Amount string `json:"amount"` //鍦ㄥ簱鏁伴噺
+ Amount string `json:"amount"` //鍑哄簱鏁伴噺
AvailableNumber string `json:"availableNumber"` //鍙敤搴撳瓨
+ Status int `json:"status"` //0灏辩华 1瀹屾垚
+}
+type OutputInfo struct {
+ Number string `json:"number"` //浜у搧缂栫爜
+ Name string `json:"name"` //浜у搧鍚嶇О
+ OrderAmount string `json:"orderAmount"` //璁㈠崟鏁伴噺
+ Unit string `json:"unit"` //鍗曚綅
+ Invoice string `json:"invoice"` //鍙戣揣鍗�
+ Carrier string `json:"carrier"` //鎵胯繍鍟�
+ Waybill string `json:"waybill"` //杩愬崟鍙�
+ SalePrice string `json:"salePrice"` //閿�鍞崟浠�
+ Valorem string `json:"valorem"` //浠风◣鍚堣
+ Warehouse string `json:"warehouse"` //浠撳簱鍚嶇О
+ Amount string `json:"amount"` //鍙戣揣鏁伴噺
+ Status int `json:"status"` //0灏辩华 1瀹屾垚
+ Specs string `json:"specs"` //瑙勬牸
+ CreateTime string `json:"createTime"` //鍒涘缓鏃堕棿
}
+type StoreInfo struct {
+ Name string `json:"name"` //浜у搧鍚嶇О
+ Number string `json:"number"` //浜у搧缂栧彿
+ OrderAmount decimal.Decimal `json:"orderAmount"` //璁㈠崟鏁伴噺
+ FinishAmount decimal.Decimal `json:"finishAmount"` //璁㈠崟瀹屾垚鏁伴噺
+ LeftAmount decimal.Decimal `json:"leftAmount"` //鏈彂璐ф暟閲�
+ AvailableAmount decimal.Decimal `json:"availableAmount"` //鍓╀綑鍙敤鏁伴噺
+}
+
+type OutputSimpleInfo struct {
+ Number string `json:"number"` //浜у搧缂栧彿
+ Amount decimal.Decimal `json:"amount"` //鍦ㄥ簱鏁伴噺
+ Status int `json:"status"` //0灏辩华 1瀹屾垚
+}
+
+type WarehouseProducts struct {
+ WarehouseID string `protobuf:"bytes,1,opt,name=WarehouseID,proto3" json:"WarehouseID,omitempty"`
+ WarehouseName string `protobuf:"bytes,2,opt,name=WarehouseName,proto3" json:"WarehouseName,omitempty"`
+ ProductList []*ProductInfo `protobuf:"bytes,3,rep,name=ProductList,proto3" json:"ProductList,omitempty"`
+ ProductInfoMap map[string]*ProductInfo
+}
+
+type WarehouseProductInfo struct {
+ WarehouseID string `json:"WarehouseID,omitempty"`
+ WarehouseName string `json:"WarehouseName,omitempty"`
+ ProductList []*model.DeliveryOrder `json:"ProductList,omitempty"`
+}
type SalesDetailsProductInfo struct {
ProductId string `json:"productId"`
ProductName string `json:"productName"`
@@ -73,7 +120,7 @@
Unit string `json:"unit"` //鍗曚綅
Amount decimal.Decimal `json:"amount"` //璁㈠崟鏁伴噺
FinishAmount int64 `json:"finishAmount"` //瀹屾垚鏁伴噺
- DeliveryAmount int64 `json:"deliveryAmount"` //鍙戣揣鏁伴噺
+ DeliveryAmount int `json:"deliveryAmount"` //鍙戣揣鏁伴噺
PurchaseAmount int64 `json:"purchaseAmount"` //閲囪喘鏁伴噺
PurchaseFinishAmount int64 `json:"purchaseFinishAmount"` //閲囪喘瀹屾垚鏁伴噺
MakeAmount int64 `json:"makeAmount"` //鍒堕�犳暟閲�
@@ -85,4 +132,5 @@
Total decimal.Decimal `json:"total"` //浜у搧鎬讳环
Profit string `json:"profit"` //姣涘埄
Margin string `json:"margin"` //姣涘埄鐜�
+
}
--
Gitblit v1.8.0