| | |
| | | ) |
| | | |
| | | type Info struct { |
| | | MakeInfo []WorkOrderInfo `json:"makeInfo"` |
| | | PurchaseInfo []Purchase `json:"purchaseInfo"` |
| | | OutsourcingInfo []OutsourcingInfo `json:"outsourcingInfo"` |
| | | MakeInfo []WorkOrderInfo `json:"makeInfo"` |
| | | PurchaseInfo []Purchase `json:"purchaseInfo"` |
| | | OutsourcingInfo []OutsourcingInfo `json:"outsourcingInfo"` |
| | | ProductInfo []SalesDetailsProductInfo `json:"productInfo"` |
| | | } |
| | | |
| | | type WorkOrderInfo struct { |
| | |
| | | Amount string `json:"amount"` //在库数量 |
| | | AvailableNumber string `json:"availableNumber"` //可用库存 |
| | | } |
| | | |
| | | type OutputInfo struct { |
| | | Number string `json:"number"` |
| | | Name string `json:"name"` |
| | |
| | | WarehouseName string `json:"WarehouseName,omitempty"` |
| | | ProductList []*model.DeliveryOrder `json:"ProductList,omitempty"` |
| | | } |
| | | type SalesDetailsProductInfo struct { |
| | | ProductId string `json:"productId"` |
| | | ProductName string `json:"productName"` |
| | | Specs string `json:"specs"` //物料规格 |
| | | Unit string `json:"unit"` //单位 |
| | | Amount decimal.Decimal `json:"amount"` //订单数量 |
| | | FinishAmount int64 `json:"finishAmount"` //完成数量 |
| | | DeliveryAmount int64 `json:"deliveryAmount"` //发货数量 |
| | | PurchaseAmount int64 `json:"purchaseAmount"` //采购数量 |
| | | PurchaseFinishAmount int64 `json:"purchaseFinishAmount"` //采购完成数量 |
| | | MakeAmount int64 `json:"makeAmount"` //制造数量 |
| | | MakeFinishAmount int64 `json:"makeFinishAmount"` //制造完成数量 |
| | | OutsourcingAmount int64 `json:"outsourcingAmount"` //委外数量 |
| | | OutsourcingFinishAmount int64 `json:"outsourcingFinishAmount"` //委外完成数量 |
| | | Cost string `json:"cost"` //产品成本 |
| | | Price decimal.Decimal `json:"price"` //产品价格 |
| | | Total decimal.Decimal `json:"total"` //产品总价 |
| | | Profit string `json:"profit"` //毛利 |
| | | Margin string `json:"margin"` //毛利率 |
| | | |
| | | } |